Files
website/src/app/app.css

158 lines
2.4 KiB
CSS

.shell {
min-height: 100vh;
position: relative;
}
.content {
max-width: 1500px;
min-height: 100svh;
margin: 0 auto;
padding: 1.5rem 1.25rem 3rem;
display: flex;
flex-direction: column;
box-sizing: border-box;
}
.sidebar {
position: fixed;
top: 1.5rem;
right: 1.5rem;
width: 280px;
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1.2rem;
border: 1px solid #30363d;
border-radius: 20px;
background: rgba(22, 27, 34, 0.92);
backdrop-filter: blur(10px);
z-index: 20;
}
.sidebar-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
}
.brand {
color: #e6edf3;
font-size: 1.05rem;
font-weight: 700;
letter-spacing: 0.02em;
text-decoration: none;
}
.subtitle {
margin: 0;
color: #8b949e;
font-size: 0.92rem;
}
.nav {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.nav a {
padding: 0.7rem 0.8rem;
border: 1px solid transparent;
border-radius: 12px;
color: #c9d1d9;
text-decoration: none;
transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}
.nav a:hover,
.nav a:focus-visible,
.nav a.active {
border-color: #2f81f7;
background: rgba(47, 129, 247, 0.14);
color: #ffffff;
outline: none;
}
.burger {
display: none;
width: 2.25rem;
height: 2.25rem;
border: 1px solid #30363d;
border-radius: 10px;
background: rgba(13, 17, 23, 0.65);
cursor: pointer;
padding: 0.25rem;
}
.burger span {
display: block;
width: 1.2rem;
height: 2px;
margin: 0.24rem auto;
background: #e6edf3;
}
.site-footer {
margin-top: auto;
padding-top: 2rem;
text-align: center;
color: #8b949e;
}
.site-footer p {
margin: 0;
}
@media (max-width: 1320px) {
.content {
max-width: 1040px;
}
.sidebar {
position: static;
width: auto;
margin: 0 1.25rem 1.5rem;
}
.nav {
flex-direction: row;
flex-wrap: wrap;
}
}
@media (max-width: 768px) {
.content {
padding-top: calc(6.5rem + env(safe-area-inset-top));
}
.sidebar {
position: fixed;
top: 0.75rem;
right: 0.75rem;
left: 0.75rem;
width: auto;
margin: 0;
gap: 0.6rem;
border-radius: 16px;
}
.subtitle {
display: none;
}
.burger {
display: inline-block;
}
.nav {
display: none;
flex-direction: column;
gap: 0.4rem;
}
.nav.nav-open {
display: flex;
}
}