aboutsummaryrefslogtreecommitdiff
path: root/style/_header.scss
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-07-15 14:06:55 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-07-15 14:06:55 +0200
commit48c6d4a3e478eb2ec10fd7463ecdbf46aeb61dfb (patch)
tree1ec864d52ac8a8fc31432638e14bf1fd8dfc680b /style/_header.scss
parent6af566ded890b02e6b2ef80b839889f6648fc6b1 (diff)
Improve nav bar responsiveness
Diffstat (limited to 'style/_header.scss')
-rw-r--r--style/_header.scss36
1 files changed, 34 insertions, 2 deletions
diff --git a/style/_header.scss b/style/_header.scss
index 28e8100..6593f2a 100644
--- a/style/_header.scss
+++ b/style/_header.scss
@@ -35,14 +35,46 @@ header {
.title {
padding-left: $logo-width + $page-padding-between;
- height: $logo-width;
+ padding-top: ($logo-width - 45px) / 2;;
+ padding-bottom: ($logo-width - 45px) / 2;
display: flex;
flex-direction: column;
- justify-content: center;
.name {
font-weight: bold;
font-size: 1.5em;
}
}
+
+ .menu {
+ ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ }
+
+ li {
+ display: inline;
+ padding-left: 0px;
+
+ &:first-of-type, &:last-of-type {
+ padding-left: 0;
+ }
+ }
+ }
+}
+
+@media screen and (max-width: 900px) {
+ header {
+ .menu {
+ li {
+ display: list-item;
+ padding-left: 20px;
+ }
+ }
+ .title {
+ padding-top: 16px;
+ padding-bottom: 16px;
+ }
+ }
}