Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/the2ne/hugo-frais.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorOlivier Fredon <the2ne@gmail.com>2016-10-20 14:13:28 +0300
committerOlivier Fredon <the2ne@gmail.com>2016-10-20 14:13:28 +0300
commit86182a1ccafe8205bff42e9bc8607786c569448e (patch)
tree88f9c0896e518e0f158b70bd816eae29ebf6fde3 /static
parent5c20eb5a6adac1d4566fa11f167960213218069c (diff)
style for mobile first nav
Diffstat (limited to 'static')
-rw-r--r--static/css/style.css85
-rw-r--r--static/sass/custom/breakpoints.scss57
-rw-r--r--static/sass/custom/layout.scss39
3 files changed, 127 insertions, 54 deletions
diff --git a/static/css/style.css b/static/css/style.css
index 924f140..bb965aa 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -480,50 +480,31 @@ html {
background-color: #FFFFFF;
}
-.header-wrapper {
+.header-wrapper .headline {
background-color: #E5E1D1;
- display: table;
padding: .5em 1.5em;
- width: 100%;
}
.header-wrapper a {
text-decoration: none;
}
-.header-wrapper .headline,
-.header-wrapper .menu {
- display: table-cell;
- vertical-align: middle;
-}
-
-.header-wrapper .headline {
- text-align: left;
-}
-
-.header-wrapper .menu {
- text-align: right;
-}
-
.menu__items {
list-style-type: none;
margin: 0;
padding: 0;
}
-.menu__items .item {
- display: inline-block;
-}
-
-.menu__items .item + .item {
- margin-left: .5em;
+.menu__items a {
+ background-color: #C44741;
+ color: #E5E1D1;
+ display: block;
+ padding: .5em 1.5em;
+ text-decoration: none;
}
-.menu__items .item + .item::before {
- color: #FFFFFF;
- content: "|";
- display: inline-block;
- margin-right: 0.5em;
+.menu__items a:hover {
+ background-color: #77201C;
}
.content {
@@ -706,6 +687,54 @@ h2, h4, h6 {
h6 {
font-size: 1em;
}
+ .header-wrapper {
+ background-color: #E5E1D1;
+ display: table;
+ padding: .5em 1.5em;
+ width: 100%;
+ }
+ .header-wrapper .headline {
+ padding: 0;
+ }
+ .header-wrapper .headline,
+ .header-wrapper .menu {
+ display: table-cell;
+ vertical-align: middle;
+ }
+ .header-wrapper .headline {
+ text-align: left;
+ }
+ .header-wrapper .menu {
+ text-align: right;
+ }
+ .menu__items {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ }
+ .menu__items li {
+ display: inline-block;
+ }
+ .menu__items li + li {
+ margin-left: .5em;
+ }
+ .menu__items li + li::before {
+ color: #FFFFFF;
+ content: "|";
+ display: inline-block;
+ margin-right: 0.5em;
+ }
+ .menu__items a {
+ background-color: transparent;
+ color: #C44741;
+ display: inline;
+ padding: 0;
+ text-decoration: none;
+ }
+ .menu__items a:hover {
+ background-color: transparent;
+ color: #77201C;
+ }
}
/*# sourceMappingURL=style.css.map */ \ No newline at end of file
diff --git a/static/sass/custom/breakpoints.scss b/static/sass/custom/breakpoints.scss
index a3b109c..fd25ab0 100644
--- a/static/sass/custom/breakpoints.scss
+++ b/static/sass/custom/breakpoints.scss
@@ -21,4 +21,61 @@
h4 { font-size: $fontSize * 2; }
h5 { font-size: $fontSize * 1.5; }
h6 { font-size: $fontSize * 1; }
+
+ // header
+ .header-wrapper {
+ background-color: $neutral;
+ display: table;
+ padding: .5em 1.5em;
+ width: 100%;
+ .headline {
+ padding: 0;
+ }
+
+ .headline,
+ .menu {
+ display: table-cell;
+ vertical-align: middle;
+ }
+
+ .headline {
+ text-align: left;
+ }
+
+ .menu {
+ text-align: right;
+ }
+ }
+
+ // Menu
+ .menu__items {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+
+ li {
+ display: inline-block;
+ }
+
+ li + li {
+ margin-left: .5em;
+ }
+
+ li + li::before {
+ @include _separator-before($white, "|");
+ }
+
+ a {
+ background-color: transparent;
+ color: $contrast;
+ display: inline;
+ padding: 0;
+ text-decoration: none;
+ }
+
+ a:hover {
+ background-color: transparent;
+ color: $shadow;
+ }
+ }
}
diff --git a/static/sass/custom/layout.scss b/static/sass/custom/layout.scss
index 6a99b84..113b61c 100644
--- a/static/sass/custom/layout.scss
+++ b/static/sass/custom/layout.scss
@@ -9,27 +9,12 @@ html {
// header
.header-wrapper {
- background-color: $neutral;
- display: table;
- padding: .5em 1.5em;
- width: 100%;
-
- a {
- text-decoration: none;
- }
-
- .headline,
- .menu {
- display: table-cell;
- vertical-align: middle;
- }
-
.headline {
- text-align: left;
+ background-color: $neutral;
+ padding: .5em 1.5em;
}
-
- .menu {
- text-align: right;
+ a {
+ text-decoration: none;
}
}
@@ -39,19 +24,21 @@ html {
margin: 0;
padding: 0;
- .item {
- display: inline-block;
+ a {
+ background-color: $contrast;
+ color: $neutral;
+ display: block;
+ padding: .5em 1.5em;
+ text-decoration: none;
}
- .item + .item {
- margin-left: .5em;
- }
+ a:hover {
+ background-color: $shadow;
- .item + .item::before {
- @include _separator-before($white, "|");
}
}
+
// Content
.content {
margin: 0 auto;