mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-19 01:07:39 +00:00
98 lines
1.7 KiB
CSS
98 lines
1.7 KiB
CSS
@import './fonts.css';
|
|
|
|
:root {
|
|
/* --font: 'Baskervville', serif; */
|
|
/* --font: 'EB Garamond', serif; */
|
|
/* --font: 'Plantin MT Pro', serif; */
|
|
--font: 'Redaction', serif;
|
|
/* --font: 'Young Serif', serif; */
|
|
/* --font: "SohneBuch", sans-serif; */
|
|
--font-hover: 'Redaction 70', serif;
|
|
/* --font-hover: var(--font); */
|
|
--text: #333;
|
|
--muted: #666;
|
|
--bg: #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;
|
|
}
|
|
|
|
.punch-link {
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
position: relative;
|
|
color: var(--bg);
|
|
text-decoration: none;
|
|
transition: all 200ms ease;
|
|
padding: 0 4px;
|
|
margin: 0 -4px;
|
|
background-image: linear-gradient(var(--bg), var(--bg));
|
|
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);
|
|
}
|