Improved Organization
This commit is contained in:
parent
6cfe52da8e
commit
0a757dd500
13 changed files with 833 additions and 679 deletions
163
Libraries/css/themekit/_menu.scss
Normal file
163
Libraries/css/themekit/_menu.scss
Normal file
|
|
@ -0,0 +1,163 @@
|
|||
@import "colors";
|
||||
|
||||
.titlebar.top {
|
||||
background-color: map-get($dark, "background");
|
||||
color: map-get($dark, "foreground");
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 3rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.5);
|
||||
@at-root .masthead {
|
||||
height: calc(100vh - 3rem);
|
||||
}
|
||||
|
||||
@at-root body {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $foreground;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.item {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
background-color: map-get($dark, "item");
|
||||
font-family: "Spartan";
|
||||
padding: 0px 1rem;
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
|
||||
span {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: map-get($dark, "background");
|
||||
transition: all ease-in 150ms;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Desktop Titlebar Logic
|
||||
@media (min-width: 767px) {
|
||||
.dropdown.item.compact > *,
|
||||
.dropdown.item.compact {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Mobile Titlebar Logic
|
||||
@media (max-width: 767px) {
|
||||
.titlebar.top .item:not(.compact) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-menu {
|
||||
position: fixed;
|
||||
z-index: 1024;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: rgba($background, 0.95);
|
||||
color: $foreground;
|
||||
|
||||
.close-mobile-menu {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-items: flex-end;
|
||||
width: 100vw;
|
||||
max-width: 100vw;
|
||||
font-size: 4rem;
|
||||
background-color: rgba(darken($red, 10%), 0.5);
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
width: 100vw;
|
||||
height: 10px;
|
||||
max-height: 4rem;
|
||||
}
|
||||
|
||||
.sub.item {
|
||||
padding-left: 3rem;
|
||||
background-color: map-get($dark, "buttonActive");
|
||||
}
|
||||
}
|
||||
|
||||
.no-scroll {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dropdown.item {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
&:hover .dropdown-content {
|
||||
max-height: 100vh;
|
||||
display: block;
|
||||
}
|
||||
|
||||
& .dropdown-content {
|
||||
max-height: 0px;
|
||||
overflow-y: hidden;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
-webkit-transition: max-height 0.5s ease-in-out;
|
||||
-moz-transition: max-height 0.5s ease-in-out;
|
||||
-o-transition: max-height 0.5s ease-in-out;
|
||||
transition: max-height 0.5s ease-in-out;
|
||||
position: absolute;
|
||||
background-color: map-get($dark, "item");
|
||||
|
||||
& .item {
|
||||
color: $foreground;
|
||||
padding: 12px 16px;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
|
||||
&:hover {
|
||||
background-color: $background;
|
||||
transition: all ease-in 150ms;
|
||||
}
|
||||
}
|
||||
|
||||
& .dropdown.item {
|
||||
display: inline-block;
|
||||
overflow: visible;
|
||||
|
||||
&:hover .dropdown-content {
|
||||
position: unset;
|
||||
max-height: 100vh;
|
||||
}
|
||||
|
||||
& .dropdown-content {
|
||||
max-height: 0px;
|
||||
& .item {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& & .dropdown-content {
|
||||
top: 0;
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue