-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
212 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
www/wp-content/themes/ation2016/src/styles/components/_mobile-menu.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
$mobile-menu-width: 225px; | ||
|
||
.mobile-menu { | ||
box-sizing: border-box; | ||
position: fixed; | ||
top: 0; | ||
right: -$mobile-menu-width; | ||
width: $mobile-menu-width; | ||
min-height: 100%; | ||
height: 100%; | ||
overflow-y: auto; | ||
transition: right 0.2s ease-in; | ||
background-color: $grey; | ||
text-transform: uppercase; | ||
padding: 0 1em; | ||
border-left: 1px solid $grey; | ||
|
||
& > ul { | ||
padding: 0; | ||
margin: 0; | ||
list-style-type: none; | ||
|
||
.admin-bar & { | ||
margin-top: 32px; | ||
@media screen and (max-width: 782px) { | ||
margin-top: 46px; | ||
} | ||
} | ||
|
||
ul { | ||
margin: 0 1em; | ||
padding: 0; | ||
list-style-type: none; | ||
|
||
a:link, a:hover, a:visited { | ||
font-size: 0.80em; | ||
color: $orange; | ||
text-decoration: none; | ||
padding: 0 0 10px 10px; | ||
line-height: 1.5em; | ||
} | ||
} | ||
|
||
& > li { | ||
font-size: 14px; | ||
font-weight: 500; | ||
|
||
&:first-child { | ||
// Some height property if doing this | ||
} | ||
|
||
a { | ||
color: $orange; | ||
padding: 10px 10px; | ||
display: block; | ||
text-decoration: none; | ||
|
||
&:hover { | ||
text-decoration: none; | ||
} | ||
} | ||
} | ||
} | ||
|
||
&.mobile-active { | ||
right: 0; | ||
} | ||
} | ||
|
||
#mobile-menu { | ||
right: -$mobile-menu-width; | ||
|
||
&.mobile-active { | ||
right: 0; | ||
transition: right 0.2s ease-in; | ||
} | ||
} | ||
|
||
#page { | ||
position: relative; | ||
transition: right 0.2s ease-in, opacity 0.2s ease-in; | ||
opacity: 1; | ||
right: 0; | ||
|
||
&.mobile-active { | ||
right: $mobile-menu-width; | ||
opacity: 0.4; | ||
height: 100%; | ||
overflow: hidden; | ||
width: 100%; | ||
} | ||
} | ||
|
||
body.mobile-active { | ||
overflow: hidden; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
www/wp-content/themes/ation2016/src/styles/utility/_embeds.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters