Files
folio/app/assets/css/main.css
T

125 lines
2.1 KiB
CSS

@import './fonts.css';
:root {
/* --font: 'Baskervville', serif; */
/* --font: 'EB Garamond', serif; */
/* --font: 'Plantin MT Pro', serif; */
/* --font: 'Young Serif', serif; */
/* --font: "SohneBuch", sans-serif; */
--font: 'Redaction', serif;
--font-hover: 'Redaction 70', serif;
/* --font-hover: var(--font); */
--text: #333;
--muted: #666;
--bg: #fbfbf7;
--color-white-500: #fbfbf7;
--gap: 1rem;
}
::selection {
background: var(--text);
color: var(--bg);
}
.dark-mode {
--text: #fbfbf7;
--bg: #111111;
--muted: #d1d1d1;
--color-white-500: #fbfbf7;
}
.flex {
display: flex;
}
.flex-center {
display: flex;
justify-content: center;
align-items: center;
}
.flex-ff {
flex: 1;
}
.row {
flex-direction: row;
}
.col {
flex-direction: column;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
background: var(--bg);
overscroll-behavior-y: none;
overscroll-behavior-x: auto;
}
body {
font-family: var(--font);
color: var(--text);
font-size: 16px;
line-height: 1.6;
}
.basic-link {
color: var(--text);
transition: opacity 0.2s ease;
text-underline-offset: 4px;
}
.basic-link:hover {
opacity: 0.5;
}
.punch-link {
display: inline-block;
vertical-align: bottom;
position: relative;
color: var(--color-white-500);
text-decoration: none;
transition: all 200ms ease;
padding: 0 4px;
margin: 0 -4px;
background-image: linear-gradient(var(--color-white-500), var(--color-white-500));
background-size: 100% 1px;
background-position: bottom;
background-repeat: no-repeat;
mix-blend-mode: screen;
}
.punch-link:hover {
background-size: 100% 100%;
background-image: linear-gradient(#fff, #fff);
color: #000;
}
.back-link {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: small;
color: var(--text);
text-decoration: none;
transition: opacity 0.2s ease;
}
.back-link .arrow {
transition: transform 0.2s ease;
}
.back-link:hover .arrow {
transform: translateX(-4px);
}