main menu style refactoing
This commit is contained in:
1 parent
eb6cbea2f3
commit
b125212b49
2 files changed
+76
-79
No files matched your search
@@ -0,0 +1,76 @@
|
||||
@import "variables";
|
||||
|
||||
.main-menu {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
z-index: 100;
|
||||
overflow-x: scroll;
|
||||
|
||||
background-color: $darker-color;
|
||||
font-size: 1.1em;
|
||||
color: $menu-inactive-item-color;
|
||||
|
||||
list-style: none;
|
||||
white-space: nowrap;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
padding: 0.3em 0.2em 0.5em;
|
||||
margin: 0 0.5em;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
a{
|
||||
text-decoration: none;
|
||||
|
||||
color: $light-color;
|
||||
border-bottom: 1px solid darken($light-color, 50%);
|
||||
|
||||
&:hover {
|
||||
color: $lighter-color;
|
||||
border-bottom: 1px solid darken($lighter-color, 50%);
|
||||
}
|
||||
}
|
||||
|
||||
.selected {
|
||||
font-weight: bold;
|
||||
border-top: $menu-colored-mark-thickness solid $light-color;
|
||||
|
||||
a:link, a:visited {
|
||||
color: $lighter-color;
|
||||
text-decoration: none;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
&.blue {
|
||||
border-top: $menu-colored-mark-thickness solid $blue-color;
|
||||
}
|
||||
|
||||
&.green {
|
||||
border-top: $menu-colored-mark-thickness solid $green-color;
|
||||
}
|
||||
|
||||
&.yellow {
|
||||
border-top: $menu-colored-mark-thickness solid $yellow-color;
|
||||
}
|
||||
|
||||
&.pink {
|
||||
border-top: $menu-colored-mark-thickness solid $pink-color;
|
||||
}
|
||||
|
||||
&.red {
|
||||
border-top: $menu-colored-mark-thickness solid $red-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: $mobile-width) {
|
||||
header{
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
.main-menu {
|
||||
|
||||
position: fixed;
|
||||
z-index: 100;
|
||||
overflow-x: scroll;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
width: 100%;
|
||||
//max-height: 15em;
|
||||
|
||||
background-color: black;
|
||||
font-size: 1.1em;
|
||||
color: #666;
|
||||
|
||||
list-style: none;
|
||||
white-space: nowrap;
|
||||
|
||||
& :link, & :visited {
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid #333;
|
||||
color: #a2a2a2;
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline-block; /* 6 */
|
||||
padding: 0.3em 0.2em 0.5em;
|
||||
margin: 0 0.5em;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: white;
|
||||
border-bottom: 1px solid #555;
|
||||
}
|
||||
|
||||
.selected {
|
||||
border-top: 4px solid white;
|
||||
font-weight: bold;
|
||||
|
||||
a:link, a:visited {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
&.blue {
|
||||
border-top: 4px solid #3f9cea;
|
||||
}
|
||||
|
||||
&.green {
|
||||
border-top: 4px solid #5cbe40;
|
||||
}
|
||||
|
||||
&.yellow {
|
||||
border-top: 4px solid #ffee00;
|
||||
}
|
||||
|
||||
&.pink {
|
||||
border-top: 4px solid #f655a0;
|
||||
}
|
||||
|
||||
&.red {
|
||||
border-top: 4px solid #f61b14;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 31.25em) {
|
||||
header{
|
||||
//max-height: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.main-menu {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user