hugo-theme-paradox/assets/styles/components/nav-section.scss
2022-12-18 08:10:54 -06:00

48 lines
847 B
SCSS

@import "common/mixins.scss";
.section-nav {
.container {
display: grid;
grid-gap: 1em;
}
a {
border-radius: 0.25rem;
display: flex;
padding: 1em;
gap: 1em;
text-decoration: none;
background: var(--ui-overlay);
transition:
background var(--color-crossfade-duration) var(--color-crossfade-ease),
color var(--color-crossfade-duration) var(--color-crossfade-ease);
@include shadow-short;
&:focus {
padding: 1em;
border: none;
}
}
a:link, a:visited {
color: var(--ui-overlay-text);
}
.previous {
justify-content: start;
}
.next {
justify-content: space-between;
}
.arrow {
text-decoration: none;
color: inherit;
display: grid;
place-items: center;
font-size: 2em;
}
@media (min-width: 30rem) {
.container {
grid-template-columns: 1fr 1fr;
}
.next {
grid-column: 2;
}
}
}