This commit is contained in:
oitsjustjose 2020-02-27 11:56:49 -05:00
commit 13aede1519
5 changed files with 139 additions and 42 deletions

View file

@ -71,7 +71,6 @@ a {
justify-content: center;
p.content {
// height: 100%;
font-size: 64px;
font-weight: 900;
@ -79,9 +78,11 @@ a {
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
.subheader {
font-size: 32px;
text-align: center;
}
}
@ -143,7 +144,7 @@ img {
background-color: map-get($dark, "background");
color: map-get($dark, "foreground");
position: fixed;
z-index: 10000000;
z-index: 1;
top: 0;
left: 0;
width: 100vw;
@ -151,7 +152,7 @@ img {
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);
}
@ -166,15 +167,20 @@ img {
}
.item {
background-color: map-get($dark, "item");
display: flex;
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;
@ -193,6 +199,9 @@ img {
}
.dropdown.item {
position: relative;
display: inline-block;
&:hover .dropdown-content {
max-height: 100vh;
display: block;
@ -201,17 +210,16 @@ img {
& .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");
min-width: 160px;
margin-left: -1rem;
margin-top: 5.45em;
& a {
& .item {
color: $foreground;
padding: 12px 16px;
text-decoration: none;
@ -222,6 +230,22 @@ img {
transition: all ease-in 150ms;
}
}
& .dropdown.item {
position: relative;
display: inline-block;
overflow: visible;
& .dropdown-content {
max-width: 100vw;
max-height: 100vh;
}
}
}
& & .dropdown-content {
top: 0;
left: 100%;
}
}
@ -339,3 +363,18 @@ button {
transform: translateY(-15px);
}
}
// 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;
}
}