Small overall fixes
This commit is contained in:
parent
cb16df5d13
commit
87ee22eab5
8 changed files with 152 additions and 328 deletions
|
|
@ -1,216 +1,184 @@
|
|||
.titlebar.top {
|
||||
background-color: $background;
|
||||
color: $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(darken($background, 10%), 0.5);
|
||||
@at-root .masthead {
|
||||
height: calc(100vh - 3rem);
|
||||
}
|
||||
|
||||
@at-root body {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
a {
|
||||
background-color: $background;
|
||||
color: $foreground;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.translucent {
|
||||
background-color: rgba($background, 0.95);
|
||||
}
|
||||
|
||||
.item {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
background-color: map-get($components, "item");
|
||||
padding: 0px 1rem;
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
|
||||
span {
|
||||
display: inline-flex;
|
||||
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(darken($background, 10%), 0.5);
|
||||
@at-root .masthead {
|
||||
height: calc(100vh - 3rem);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: darken($background, 5%);
|
||||
transition: all ease-in 150ms;
|
||||
@at-root body {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $foreground;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.translucent {
|
||||
background-color: rgba($background, 0.95);
|
||||
}
|
||||
|
||||
.item {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
background-color: map-get($components, "item");
|
||||
padding: 0px 1rem;
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
|
||||
span {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: darken($background, 5%);
|
||||
transition: all ease-in 150ms;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Desktop Titlebar Logic
|
||||
@media (min-width: 767px) {
|
||||
.dropdown.item.compact > *,
|
||||
.dropdown.item.compact {
|
||||
display: none;
|
||||
}
|
||||
.dropdown.item.compact > *,
|
||||
.dropdown.item.compact {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Mobile Titlebar Logic
|
||||
@media (max-width: 767px) {
|
||||
.titlebar.top .item:not(.compact) {
|
||||
display: none;
|
||||
}
|
||||
.titlebar.top .item:not(.compact) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-menu {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
|
||||
position: fixed;
|
||||
z-index: 1024;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: rgba($background, 0.95);
|
||||
color: $foreground;
|
||||
|
||||
transition-duration: 200ms, 200ms;
|
||||
transition-property: visibility, opacity;
|
||||
|
||||
&.visible {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transition-duration: 200ms, 0;
|
||||
transition-property: opacity, visibility;
|
||||
transition-delay: 0, 200ms;
|
||||
}
|
||||
|
||||
.close-mobile-menu {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-items: flex-end;
|
||||
position: fixed;
|
||||
z-index: 1024;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
max-width: 100vw;
|
||||
font-size: 4rem;
|
||||
background-color: rgba(darken($red, 10%), 0.5);
|
||||
cursor: pointer;
|
||||
height: 100vh;
|
||||
background-color: rgba($background, 0.95);
|
||||
color: $foreground;
|
||||
|
||||
&:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
width: 100vw;
|
||||
height: 10px;
|
||||
max-height: 4rem;
|
||||
}
|
||||
|
||||
.sub.item {
|
||||
display: block;
|
||||
|
||||
padding-left: 3rem;
|
||||
background-color: lighten($background, 15%);
|
||||
|
||||
-moz-animation: disappear 250ms 1;
|
||||
-webkit-animation: disappear 250ms 1;
|
||||
animation: disappear 250ms 1;
|
||||
|
||||
// USE HEIGHT TO ANIMATE
|
||||
max-height: 0;
|
||||
transition-duration: 200ms, 200ms;
|
||||
transition-property: visibility, opacity;
|
||||
|
||||
&.visible {
|
||||
display: inline-flex;
|
||||
|
||||
// USE HEIGHT TO ANIMATE
|
||||
max-height: 4rem;
|
||||
|
||||
-moz-animation: appear 250ms 1;
|
||||
-webkit-animation: appear 250ms 1;
|
||||
animation: appear 250ms 1;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transition-duration: 200ms, 0;
|
||||
transition-property: opacity, visibility;
|
||||
transition-delay: 0, 200ms;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes appear {
|
||||
0% {
|
||||
max-height: 0;
|
||||
}
|
||||
100% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
}
|
||||
.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;
|
||||
|
||||
@keyframes disappear {
|
||||
0% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
100% {
|
||||
max-height: 0;
|
||||
}
|
||||
&:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
width: 100vw;
|
||||
height: 10px;
|
||||
max-height: 4rem;
|
||||
}
|
||||
|
||||
.sub.item {
|
||||
display: none;
|
||||
|
||||
padding-left: 3rem;
|
||||
background-color: lighten($background, 15%);
|
||||
|
||||
&.visible {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.no-scroll {
|
||||
overflow: hidden;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dropdown.item {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
&.hoverable:hover .dropdown-content,
|
||||
&.active .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($components, "item");
|
||||
|
||||
& .item {
|
||||
color: $foreground;
|
||||
padding: 12px 16px;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
|
||||
&:hover {
|
||||
background-color: darken($background, 5%);
|
||||
transition: all ease-in 150ms;
|
||||
}
|
||||
}
|
||||
|
||||
& .dropdown.item {
|
||||
display: inline-block;
|
||||
overflow: visible;
|
||||
|
||||
&:hover .dropdown-content {
|
||||
position: unset;
|
||||
&:hover .dropdown-content {
|
||||
max-height: 100vh;
|
||||
}
|
||||
|
||||
& .dropdown-content {
|
||||
max-height: 0px;
|
||||
& .item {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
& & .dropdown-content {
|
||||
top: 0;
|
||||
left: 100%;
|
||||
}
|
||||
& .dropdown-content {
|
||||
max-height: 0px;
|
||||
width: 100%;
|
||||
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($components, "item");
|
||||
|
||||
& .item {
|
||||
color: $foreground;
|
||||
padding: 12px 16px;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
|
||||
&:hover {
|
||||
background-color: darken($background, 5%);
|
||||
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%;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1041,57 +1041,15 @@ body {
|
|||
}
|
||||
|
||||
.mobile-menu .sub.item {
|
||||
display: block;
|
||||
display: none;
|
||||
padding-left: 3rem;
|
||||
background-color: #4b4b4b;
|
||||
-webkit-animation: disappear 250ms 1;
|
||||
animation: disappear 250ms 1;
|
||||
max-height: 0;
|
||||
}
|
||||
|
||||
.mobile-menu .sub.item.visible {
|
||||
display: -webkit-inline-box;
|
||||
display: -ms-inline-flexbox;
|
||||
display: inline-flex;
|
||||
max-height: 4rem;
|
||||
-webkit-animation: appear 250ms 1;
|
||||
animation: appear 250ms 1;
|
||||
}
|
||||
|
||||
@-webkit-keyframes appear {
|
||||
0% {
|
||||
max-height: 0;
|
||||
}
|
||||
100% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes appear {
|
||||
0% {
|
||||
max-height: 0;
|
||||
}
|
||||
100% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes disappear {
|
||||
0% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
100% {
|
||||
max-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes disappear {
|
||||
0% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
100% {
|
||||
max-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.no-scroll {
|
||||
|
|
@ -1103,14 +1061,14 @@ body {
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
.dropdown.item.hoverable:hover .dropdown-content,
|
||||
.dropdown.item.active .dropdown-content {
|
||||
.dropdown.item:hover .dropdown-content {
|
||||
max-height: 100vh;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dropdown.item .dropdown-content {
|
||||
max-height: 0px;
|
||||
width: 100%;
|
||||
overflow-y: hidden;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1041,57 +1041,15 @@ body {
|
|||
}
|
||||
|
||||
.mobile-menu .sub.item {
|
||||
display: block;
|
||||
display: none;
|
||||
padding-left: 3rem;
|
||||
background-color: white;
|
||||
-webkit-animation: disappear 250ms 1;
|
||||
animation: disappear 250ms 1;
|
||||
max-height: 0;
|
||||
}
|
||||
|
||||
.mobile-menu .sub.item.visible {
|
||||
display: -webkit-inline-box;
|
||||
display: -ms-inline-flexbox;
|
||||
display: inline-flex;
|
||||
max-height: 4rem;
|
||||
-webkit-animation: appear 250ms 1;
|
||||
animation: appear 250ms 1;
|
||||
}
|
||||
|
||||
@-webkit-keyframes appear {
|
||||
0% {
|
||||
max-height: 0;
|
||||
}
|
||||
100% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes appear {
|
||||
0% {
|
||||
max-height: 0;
|
||||
}
|
||||
100% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes disappear {
|
||||
0% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
100% {
|
||||
max-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes disappear {
|
||||
0% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
100% {
|
||||
max-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.no-scroll {
|
||||
|
|
@ -1103,14 +1061,14 @@ body {
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
.dropdown.item.hoverable:hover .dropdown-content,
|
||||
.dropdown.item.active .dropdown-content {
|
||||
.dropdown.item:hover .dropdown-content {
|
||||
max-height: 100vh;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dropdown.item .dropdown-content {
|
||||
max-height: 0px;
|
||||
width: 100%;
|
||||
overflow-y: hidden;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1041,57 +1041,15 @@ body {
|
|||
}
|
||||
|
||||
.mobile-menu .sub.item {
|
||||
display: block;
|
||||
display: none;
|
||||
padding-left: 3rem;
|
||||
background-color: #404365;
|
||||
-webkit-animation: disappear 250ms 1;
|
||||
animation: disappear 250ms 1;
|
||||
max-height: 0;
|
||||
}
|
||||
|
||||
.mobile-menu .sub.item.visible {
|
||||
display: -webkit-inline-box;
|
||||
display: -ms-inline-flexbox;
|
||||
display: inline-flex;
|
||||
max-height: 4rem;
|
||||
-webkit-animation: appear 250ms 1;
|
||||
animation: appear 250ms 1;
|
||||
}
|
||||
|
||||
@-webkit-keyframes appear {
|
||||
0% {
|
||||
max-height: 0;
|
||||
}
|
||||
100% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes appear {
|
||||
0% {
|
||||
max-height: 0;
|
||||
}
|
||||
100% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes disappear {
|
||||
0% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
100% {
|
||||
max-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes disappear {
|
||||
0% {
|
||||
max-height: 4rem;
|
||||
}
|
||||
100% {
|
||||
max-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.no-scroll {
|
||||
|
|
@ -1103,14 +1061,14 @@ body {
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
.dropdown.item.hoverable:hover .dropdown-content,
|
||||
.dropdown.item.active .dropdown-content {
|
||||
.dropdown.item:hover .dropdown-content {
|
||||
max-height: 100vh;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dropdown.item .dropdown-content {
|
||||
max-height: 0px;
|
||||
width: 100%;
|
||||
overflow-y: hidden;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue