146 lines
3.3 KiB
CSS
146 lines
3.3 KiB
CSS
body > nav {
|
|
position: sticky;
|
|
z-index: 50;
|
|
top: 0;
|
|
padding: 1rem;
|
|
background-color: color-mix(in srgb, var(--surface), transparent 20%);
|
|
backdrop-filter: blur(var(--backdrop-blur));
|
|
|
|
& > div {
|
|
display: grid;
|
|
align-items: center;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
grid-template-rows: 1fr;
|
|
|
|
& img {
|
|
width: 20rem;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
& img {
|
|
width: 14rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-rows: 1fr 1fr;
|
|
gap: 0.5rem;
|
|
|
|
& img {
|
|
width: 12rem;
|
|
}
|
|
|
|
& > .btn {
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
}
|
|
|
|
& > :last-child {
|
|
justify-self: end;
|
|
}
|
|
|
|
& > div {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
|
|
@media (max-width: 1024px) {
|
|
gap: 1rem;
|
|
|
|
& > a {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
grid-row: 2;
|
|
grid-column: 1 / span 2;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
|
|
& > a {
|
|
font-size: 1.25rem;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
color: var(--on-background);
|
|
|
|
&[href] {
|
|
font-weight: 200;
|
|
transition: color 0.2s;
|
|
|
|
&:hover {
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
font-size: 0.875rem;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
footer {
|
|
display: grid;
|
|
grid-template-columns: 3fr 2fr 2fr;
|
|
gap: 1rem;
|
|
|
|
@media (max-width: 768px) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
& > :first-child {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
|
|
& p {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
& > :last-child {
|
|
font-size: 0.75rem;
|
|
font-weight: lighter;
|
|
}
|
|
}
|
|
|
|
& > :nth-child(2) a {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
& a {
|
|
font-size: 0.875rem;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: row;
|
|
justify-content: flex-start;
|
|
margin: 1rem 0;
|
|
text-decoration: none;
|
|
color: var(--on-background);
|
|
|
|
& > div {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
& h4 {
|
|
color: var(--primary);
|
|
}
|
|
|
|
& svg {
|
|
margin-right: 0.5rem;
|
|
}
|
|
}
|
|
}
|