Brume's website https://brume.ink
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

266 lines
4.1 KiB

.menu {
height: 4rem;
font-family: 'comfortaa';
font-size: 25px;
z-index: 5;
}
.menu ol {
list-style-type: none;
margin: 0 auto;
padding: 0;
}
.menu > ol {
max-width: 1000px;
padding: 0 2rem;
display: flex;
}
.menu > ol > .menu-item {
flex: 1;
padding: 0.75rem 0;
}
/*.menu > ol > .menu-item:after {
content: "";
position: absolute;
width: 4px;
height: 4px;
border-radius: 50%;
bottom: 5px;
left: calc(50% - 2px);
background: #FECEAB;
will-change: transform;
transform: scale(0);
transition: transform 0.2s ease;
}
.menu > ol > .menu-item:hover:after {
transform: scale(1);
}*/
.menu-item {
position: relative;
line-height: 2.5rem;
text-align: center;
}
.menu-item a {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: block;
color: #FFF;
}
.sub-menu .menu-item {
padding: 0.75rem 0;
background: #5c6f91;
transition: background-color 0.3s ease-in-out;
opacity: 0;
transform-origin: bottom;
animation: enter 0.2s ease forwards;
}
.sub-menu .menu-item:nth-child(1) {
animation-duration: 0.2s;
animation-delay: 0s;
}
.sub-menu .menu-item:nth-child(2) {
animation-duration: 0.3s;
animation-delay: 0.1s;
}
.sub-menu .menu-item:nth-child(3) {
animation-duration: 0.4s;
animation-delay: 0.2s;
}
.sub-menu .menu-item:nth-child(4) {
animation-duration: 0.5s;
animation-delay: 0.3s;
}
.sub-menu .menu-item:hover {
background: #546584;
}
.sub-menu .menu-item a {
padding: 0 0.75rem;
}
@media screen and (max-width: 600px) {
.sub-menu .menu-item {
background: #5c6f91;
}
}
@media screen and (max-width: 600px) {
.menu {
position: relative;
}
.menu:after {
content: "";
position: absolute;
top: calc(50% - 2px);
right: 1rem;
width: 30px;
height: 4px;
background: #FFF;
box-shadow: 0 10px #FFF, 0 -10px #FFF;
}
.menu > ol {
display: none;
background: linear-gradient(-72deg, rgba(96, 117, 150, 1.0), rgba(36, 12, 59, 1.0)) 0 / cover fixed;
flex-direction: column;
justify-content: center;
height: 25rem;
animation: fade 0.2s ease-out;
width: 75%;
border-radius: 0px 0px 15px 15px;
}
.menu > ol > .menu-item {
flex: 0;
opacity: 0;
animation: enter 0.3s ease-out forwards;
}
.menu > ol > .menu-item:nth-child(1) {
animation-delay: 0s;
}
.menu > ol > .menu-item:nth-child(2) {
animation-delay: 0.1s;
}
.menu > ol > .menu-item:nth-child(3) {
animation-delay: 0.2s;
}
.menu > ol > .menu-item:nth-child(4) {
animation-delay: 0.3s;
}
.menu > ol > .menu-item:nth-child(5) {
animation-delay: 0.4s;
}
.menu > ol > .menu-item + .menu-item {
margin-top: 0.75rem;
}
.menu > ol > .menu-item:after {
left: auto;
right: 1rem;
bottom: calc(50% - 2px);
}
.menu > ol > .menu-item:hover {
z-index: 1;
}
.menu:hover > ol {
display: flex;
}
.menu:hover:after {
box-shadow: none;
}
}
.sub-menu {
position: absolute;
width: 100%;
top: 100%;
left: 0;
display: none;
z-index: 1;
}
.menu-item:hover > .sub-menu {
display: block;
}
@media screen and (max-width: 600px) {
.sub-menu {
/*width: 96vw;
left: -2.1rem;
top: 50%;
transform: translateY(-50%);*/
display: none;
}
.sub-menu > li {
display: none;
}
}
/*html, body {
font-size: 16px;
font-family: monospace;
margin: 0;
background: #2A363B;
}*/
* {
box-sizing: border-box;
}
*:before, *:after {
box-sizing: inherit;
}
a {
text-decoration: none;
}
@keyframes enter {
from {
opacity: 0;
transform: scaleY(0.98) translateY(10px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@media screen and (min-width: 600px) {
.menu-borders {
border-radius: 0px 0px 15px 15px;
}
}
.underline {
display: inline-block;
vertical-align: middle;
transform: perspective(1px) translateZ(0);
}
.underline:before {
content: "";
position: absolute;
z-index: -1;
left: 40%;
right: 40%;
bottom: 0;
background: #fff;
height: 3px;
transition-property: left, right;
transition-duration: 0.3s;
transition-timing-function: ease-out;
border-radius: 20px;
}
.underline:hover:before, .underline:focus:before, .underline:active:before {
left: 0;
right: 0;
}
/*.menu-item:first-child {
pointer-events: none;
}*/