Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #22 from ronilaukkarinen/master
Browse files Browse the repository at this point in the history
Fix lint warnings, add missing z-index for other modes
  • Loading branch information
balzss authored Feb 21, 2017
2 parents 7e562b4 + 0758e45 commit c763400
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion scss/_global-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ $luxbar-padding: 18px 24px 18px 24px;
$luxbar-transition: .6s ease;
$hamburger-line-height: 2px;
$hamburger-width: 26px;
$luxbar-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
$luxbar-shadow: 0 1px 3px rgba(#000, .12), 0 1px 2px rgba(#000, .24);
1 change: 1 addition & 0 deletions scss/_hamburger-animation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
}
}
}

.luxbar-hamburger-spin {
span {
&::before {
Expand Down
7 changes: 4 additions & 3 deletions scss/_mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
}

.luxbar-menu-left {
.luxbar-navigation, .luxbar-header {
.luxbar-navigation,
.luxbar-header {
justify-content: flex-start;
}
}
Expand Down Expand Up @@ -132,7 +133,7 @@
min-width: 100%;
}

& > a {
> a {
&::after {
$expand-arrow-height: 5px;

Expand All @@ -146,7 +147,7 @@
}
}

& > ul {
> ul {
display: block;
overflow-x: hidden;
list-style: none;
Expand Down
2 changes: 2 additions & 0 deletions scss/_modes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
width: 100%;
position: relative;
box-shadow: $luxbar-shadow;
z-index: 1000;
}

.luxbar-static {
Expand All @@ -10,6 +11,7 @@
position: absolute;
top: 0;
left: 0;
z-index: 1000;

.luxbar-checkbox {
&:checked ~.luxbar-menu {
Expand Down
4 changes: 2 additions & 2 deletions scss/_non-mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
&:not(:checked) ~.luxbar-menu {
overflow: visible;
}

&:checked ~.luxbar-menu {
height: $luxbar-height;
}
Expand All @@ -39,7 +39,7 @@
padding: 0;
}

& > ul {
> ul {
display: none;

.luxbar-item {
Expand Down
20 changes: 10 additions & 10 deletions scss/_themes.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/******* color variables *******/
// ******* color variables *******
$dark-bg: #212121;
$dark-hl: #424242;
$dark-fg: #fff;
Expand Down Expand Up @@ -35,7 +35,7 @@ $material-brown-bg: #3e2723;
$material-brown-hl: #4e342e;
$material-brown-fg: #fff;

/******* default dark *******/
// ******* default dark *******
.luxbar-menu-dark,
.luxbar-menu-dark .dropdown ul {
background-color: $dark-bg;
Expand All @@ -57,7 +57,7 @@ $material-brown-fg: #fff;
}
}

/******* default light *******/
// ******* default light *******
.luxbar-menu-light,
.luxbar-menu-light .dropdown ul {
background-color: $light-bg;
Expand All @@ -79,7 +79,7 @@ $material-brown-fg: #fff;
}
}

/******* default material-red *******/
// ******* default material-red *******
.luxbar-menu-material-red,
.luxbar-menu-material-red .dropdown ul {
background-color: $material-red-bg;
Expand All @@ -101,7 +101,7 @@ $material-brown-fg: #fff;
}
}

/******* default material-indigo *******/
// ******* default material-indigo *******
.luxbar-menu-material-indigo,
.luxbar-menu-material-indigo .dropdown ul {
background-color: $material-indigo-bg;
Expand All @@ -123,7 +123,7 @@ $material-brown-fg: #fff;
}
}

/******* default material-green *******/
// ******* default material-green *******
.luxbar-menu-material-green,
.luxbar-menu-material-green .dropdown ul {
background-color: $material-green-bg;
Expand All @@ -145,7 +145,7 @@ $material-brown-fg: #fff;
}
}

/******* default material-amber *******/
// ******* default material-amber *******
.luxbar-menu-material-amber,
.luxbar-menu-material-amber .dropdown ul {
background-color: $material-amber-bg;
Expand All @@ -167,7 +167,7 @@ $material-brown-fg: #fff;
}
}

/******* default material-brown *******/
// ******* default material-brown *******
.luxbar-menu-material-brown,
.luxbar-menu-material-brown .dropdown ul {
background-color: $material-brown-bg;
Expand All @@ -189,7 +189,7 @@ $material-brown-fg: #fff;
}
}

/******* default material-bluegrey *******/
// ******* default material-bluegrey *******
.luxbar-menu-material-bluegrey,
.luxbar-menu-material-bluegrey .dropdown ul {
background-color: $material-bluegrey-bg;
Expand All @@ -211,7 +211,7 @@ $material-brown-fg: #fff;
}
}

/******* default material-cyan *******/
// ******* default material-cyan *******
.luxbar-menu-material-cyan,
.luxbar-menu-material-cyan .dropdown ul {
background-color: $material-cyan-bg;
Expand Down

0 comments on commit c763400

Please sign in to comment.