phanpy/src/components/nav-menu.css

95 wiersze
2.0 KiB
CSS
Czysty Zwykły widok Historia

.nav-menu section:last-child {
background-color: var(--bg-faded-color);
margin-bottom: -8px;
padding-bottom: 8px;
}
2023-05-20 09:46:58 +00:00
@media (min-width: 23em) {
.nav-menu {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto 1fr;
grid-template-areas:
'top top'
'left right';
2023-05-20 09:46:58 +00:00
padding: 0;
width: 22em;
2023-10-19 14:10:20 +00:00
max-width: calc(100vw - 16px);
2023-05-20 09:46:58 +00:00
}
.nav-menu .top-menu {
grid-area: top;
padding-top: 8px;
margin-bottom: -8px;
}
2023-05-20 09:46:58 +00:00
.nav-menu section {
padding: 8px 0;
/* width: 50%; */
2023-05-20 09:46:58 +00:00
}
2023-05-22 09:43:02 +00:00
@keyframes phanpying {
0% {
background-position: 0 0, 0 0, 3em 85%;
}
100% {
background-position: 0 0, 0 0, 2em 90%;
}
}
2023-05-20 11:35:58 +00:00
.nav-menu section:last-child {
background-image: linear-gradient(
to right,
var(--divider-color) 1px,
transparent 1px
),
2023-05-22 09:43:02 +00:00
linear-gradient(to bottom left, var(--bg-blur-color), transparent),
2023-05-21 05:24:26 +00:00
url(../assets/phanpy-bg.svg);
background-repeat: no-repeat;
/* background-size: auto, auto, 200%; */
background-position: 0 0, 0 0, 2em 90%;
background-blend-mode: normal, normal, overlay;
2023-05-20 11:35:58 +00:00
box-shadow: inset 0 0 1px var(--bg-color);
2023-05-21 06:12:21 +00:00
position: sticky;
top: 0;
2023-05-22 09:43:02 +00:00
animation: phanpying 0.2s ease-in-out both;
2023-08-13 04:38:03 +00:00
border-top-right-radius: inherit;
border-bottom-right-radius: inherit;
margin-bottom: 0;
display: flex;
flex-direction: column;
.divider-grow {
flex-grow: 1;
height: auto;
background-color: transparent;
}
2023-05-20 11:35:58 +00:00
}
2023-05-20 09:46:58 +00:00
.nav-menu section:last-child > .szh-menu__divider:first-child {
display: none;
}
2023-05-21 03:52:24 +00:00
.nav-menu .szh-menu__item span {
2023-05-20 09:46:58 +00:00
white-space: normal;
}
}
2023-05-23 02:58:33 +00:00
@media (min-width: 40em) {
.nav-menu {
width: 28em;
}
}
@keyframes sparkle-icon {
0% {
transform: scale(1);
color: var(--red-color);
}
100% {
transform: scale(1.2);
color: var(--orange-color);
}
}
.sparkle-icon {
animation: sparkle-icon 0.3s ease-in-out infinite alternate;
}
2024-03-28 10:22:29 +00:00
.nav-submenu {
max-width: 14em;
}