Files
lair.moe/blueprints/root/static/style/main.scss
T

277 lines
4.2 KiB
SCSS

@use "sass:color";
@use "catppuccin" as theme;
html {
height: 100%;
}
body {
display: flex;
flex-direction: column;
background-color: theme.$base;
font-family: Pixeloid, PixelMPlus;
color: theme.$text;
width: 100%;
height: 100%;
margin: 0;
}
main {
max-width: 45rem;
margin-inline: auto;
padding: 0 .5rem;
flex: 1 0 auto;
}
h1 {
text-align: center;
}
a {
color: unset;
text: {
decoration: underline {color: theme.$blue};
underline-offset: 1px;
}
transition: 0.3s ease;
&:hover {
text-underline-offset: 3px;
}
&:active {
transition: none !important;
display: inline-block;
transform: scale(.98) !important;
background-color: theme.$mantle !important;
}
&.block {
text-decoration: none;
&:hover {
transform: scale(1.02) translateY(-.25rem);
background-color: theme.$surface1;
}
}
}
p {
margin: .5rem;
}
ul {
margin-top: .25rem;
}
header {
display: flex;
justify-content: space-between;
background-color: theme.$mantle;
padding: .5rem;
font-size: larger;
.header-links * + * {
padding-left: 1ch;
}
}
footer {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
background-color: theme.$mantle;
margin-top: 2rem;
padding: 1rem;
column-gap: 4ch;
}
.mono {
font-family: Monocraft, monospace;
background-color: theme.$mantle;
border-radius: 2px;
padding: 0 .25rem;
color: theme.$subtext0;
overflow-wrap: anywhere;
&:hover {
transition: .3s ease;
background-color: theme.$crust;
}
}
.block {
display: block;
background-color: theme.$surface0;
border-radius: .5rem;
padding: .5rem;
h2 {
margin: -.5rem -.5rem 1rem;
padding: .5rem;
text-align: center;
}
.block {
background-color: theme.$surface1;
}
& + & {
margin-top: .5rem;
}
&.red {
background-color: color.mix(theme.$surface0, theme.$red, 60%);
}
&.orange {
background-color: color.mix(theme.$surface0, theme.$peach, 60%);
}
&.green {
background-color: color.mix(theme.$surface0, theme.$green, 60%);
&:hover { background-color: color.mix(theme.$surface1, theme.$green, 60%); }
&:active { background-color: color.mix(theme.$mantle, theme.$green, 60%) !important; }
}
& .header {
display: flex;
align-items: center;
font-size: x-large;
.icon {
margin-right: .5ch;
}
}
}
.blocks {
display: flex;
flex-wrap: wrap;
margin-top: .5rem;
gap: .5rem;
& + &,
& + .block,
.block + & {
margin-top: .5rem;
}
.block {
margin-top: 0;
}
}
.badges {
.block {
flex: 1;
text-wrap-mode: nowrap;
text-align: -webkit-center;
&:hover {
flex: 1.5;
transform: none;
}
}
}
.icon {
width: 1.5em;
vertical-align: middle;
border-radius: .2em;
}
.webring {
margin-top: 1rem;
display: flex;
justify-content: center;
a {
padding: .5rem 1rem;
margin: .1rem !important;
border-radius: 0;
}
}
.\38 8-31 {
margin-top: 2rem;
display: flex;
justify-content: center;
& + & {
margin-top: 0;
}
a, img {
width: 88px;
height: 31px;
}
img {
transition-timing-function: ease-out;
transition-duration: .2s;
&:hover {
transform: scale(1.5);
}
}
}
.disabled {
opacity: 50%;
cursor: not-allowed;
a {
pointer-events: none;
}
}
::-webkit-scrollbar {
width: .5rem;
&-button {
display: none;
}
&-track {
background-color: theme.$base;
}
&-thumb {
background-color: theme.$overlay0;
border-radius: .25rem;
&:hover {
background-color: theme.$overlay1;
}
}
}
@font-face {
font-family: Monocraft;
src: url("/static/font/Monocraft.ttc");
}
@font-face {
font-family: Pixeloid;
src:
url("/static/font/Pixeloid/woff/Sans.woff2") format("woff2"),
url("/static/font/Pixeloid/otf/Sans.otf") format("opentype");
}
@font-face {
font-family: Pixeloid;
src:
url("/static/font/Pixeloid/woff/Sans-Bold.woff2") format("woff2"),
url("/static/font/Pixeloid/otf/Sans-Bold.otf") format("opentype");
font-weight: bold;
}
@font-face {
font-family: PixelMPlus;
src: url("/static/font/PixelMPlus/Regular.ttf");
}
@font-face {
font-family: PixelMPlus;
src: url("/static/font/PixelMPlus/Bold.ttf");
font-weight: bold;
}