93 lines
1.4 KiB
CSS
93 lines
1.4 KiB
CSS
.menu-wrap {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.menu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.menu__item {
|
|
flex: 1;
|
|
position: relative;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
border-top: 1px solid;
|
|
}
|
|
|
|
.menu__item:first-child {
|
|
border-top: none;
|
|
}
|
|
|
|
.menu__item-link {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
position: relative;
|
|
cursor: pointer;
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
font-weight: 600;
|
|
font-family: var(--font-heading), sans-serif;
|
|
font-size: 5vh;
|
|
}
|
|
|
|
.marquee {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
transform: translate3d(0, 101%, 0);
|
|
}
|
|
|
|
.marquee__inner-wrap {
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.marquee__inner {
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
height: 100%;
|
|
width: fit-content;
|
|
will-change: transform;
|
|
}
|
|
|
|
.marquee__part {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.marquee span {
|
|
white-space: nowrap;
|
|
text-transform: uppercase;
|
|
font-weight: 400;
|
|
font-family: var(--font-mono), monospace;
|
|
font-size: 3vh;
|
|
line-height: 1;
|
|
padding: 0 1vw;
|
|
}
|
|
|
|
.marquee__img {
|
|
width: 150px;
|
|
height: 6vh;
|
|
margin: 2em 2vw;
|
|
padding: 1em 0;
|
|
border-radius: 8px;
|
|
background-size: cover;
|
|
background-position: 50% 50%;
|
|
}
|