gil.ink/src/assets/css/main.css

293 lines
7.8 KiB
CSS
Raw Normal View History

2025-04-28 01:49:10 -04:00
/*
COLORS
*/
2025-05-12 02:31:17 -04:00
/*
Themes
*/
:root, [data-selected-theme=grayscalelight] {
--color-background: #fff;
--text-normal: #000;
--text-invert: #fff;
--text-subtle: #666;
--color-primary: #999;
--color-secondary: #aaa;
--color-link: #00f;
--color-paper: #fff;
--background: #eee;
}
[data-selected-theme=light] {
2025-04-29 23:20:54 -04:00
--color-background: #aabf7e;
2025-05-12 02:31:17 -04:00
--text-normal: #191b19;
--text-invert: #fff;
--text-subtle: #595959;
--color-primary: #344f1f;
--color-secondary: #60941a;
2025-04-29 23:20:54 -04:00
--color-link: #309bae;
--color-paper: #e8efd7;
2025-04-28 01:49:10 -04:00
}
[data-selected-theme=dark] {
2025-04-29 23:20:54 -04:00
--color-background: #191b19;
2025-05-12 02:31:17 -04:00
--text-normal: #f8ffef;
--text-invert: #fff;
--text-subtle: #8c8c8c;
--color-primary: #60941a;
--color-secondary: #344f1f;
2025-04-29 23:20:54 -04:00
--color-link: #05abc4;
--color-paper: #070e07;
2025-04-28 01:49:10 -04:00
}
2025-05-12 02:31:17 -04:00
[data-selected-theme=grayscaledark] {
--color-background: #fff;
--text-normal: #000;
--text-invert: #fff;
--text-subtle: #666;
--color-primary: #999;
--color-secondary: #aaa;
--color-link: #39a;
--color-paper: #fff;
--background: #eee;
}
/*
Themed elements
*/
body {
background: var(--background);
}
a {
color: var(--color-link);
}
h1 {
color: var(--color-primary);
}
h2,
h3,
h4,
h5,
h6 {
color: var(--color-secondary);
}
hr {
background-color: var(--text-normal);
border: none;
}
.muted {
color: var(--text-subtle);
}
.site {
color: var(--text-normal);
}
2025-05-16 17:34:51 -04:00
/* poppins-regular - latin_latin-ext */
2025-04-29 23:20:54 -04:00
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
2025-05-16 17:34:51 -04:00
font-family: "Poppins";
2025-04-29 23:20:54 -04:00
font-style: normal;
font-weight: 400;
2025-05-16 17:34:51 -04:00
src: url("../fonts/poppins-v23-latin_latin-ext-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
2025-04-29 23:20:54 -04:00
}
2025-05-16 17:34:51 -04:00
/* poppins-italic - latin_latin-ext */
2025-04-29 23:20:54 -04:00
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
2025-05-16 17:34:51 -04:00
font-family: "Poppins";
2025-04-29 23:20:54 -04:00
font-style: italic;
font-weight: 400;
2025-05-16 17:34:51 -04:00
src: url("../fonts/poppins-v23-latin_latin-ext-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
2025-04-29 23:20:54 -04:00
}
2025-05-16 17:34:51 -04:00
/* poppins-700 - latin_latin-ext */
2025-05-12 02:31:17 -04:00
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
2025-05-16 17:34:51 -04:00
font-family: "Poppins";
2025-05-12 02:31:17 -04:00
font-style: normal;
2025-05-16 17:34:51 -04:00
font-weight: 700;
src: url("../fonts/poppins-v23-latin_latin-ext-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
2025-05-12 02:31:17 -04:00
}
2025-05-16 17:34:51 -04:00
/* poppins-700italic - latin_latin-ext */
2025-05-12 02:31:17 -04:00
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
2025-05-16 17:34:51 -04:00
font-family: "Poppins";
2025-05-12 02:31:17 -04:00
font-style: italic;
2025-05-16 17:34:51 -04:00
font-weight: 700;
src: url("../fonts/poppins-v23-latin_latin-ext-700italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
2025-05-12 02:31:17 -04:00
}
2025-05-16 17:34:51 -04:00
/* poppins-900 - latin_latin-ext */
2025-04-29 23:20:54 -04:00
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
2025-05-16 17:34:51 -04:00
font-family: "Poppins";
font-style: normal;
font-weight: 900;
src: url("../fonts/poppins-v23-latin_latin-ext-900.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-900italic - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Poppins";
font-style: italic;
font-weight: 900;
src: url("../fonts/poppins-v23-latin_latin-ext-900italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Inter";
2025-04-29 23:20:54 -04:00
font-style: normal;
font-weight: 400;
2025-05-16 17:34:51 -04:00
src: url("../fonts/inter-v18-latin_latin-ext-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
2025-04-29 23:20:54 -04:00
}
2025-05-16 17:34:51 -04:00
/* inter-italic - latin_latin-ext */
2025-05-12 02:31:17 -04:00
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
2025-05-16 17:34:51 -04:00
font-family: "Inter";
2025-05-12 02:31:17 -04:00
font-style: italic;
font-weight: 400;
2025-05-16 17:34:51 -04:00
src: url("../fonts/inter-v18-latin_latin-ext-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Inter";
font-style: normal;
font-weight: 700;
src: url("../fonts/inter-v18-latin_latin-ext-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700italic - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Inter";
font-style: italic;
font-weight: 700;
src: url("../fonts/inter-v18-latin_latin-ext-700italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-900 - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Inter";
font-style: normal;
font-weight: 900;
src: url("../fonts/inter-v18-latin_latin-ext-900.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-900italic - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Inter";
font-style: italic;
font-weight: 900;
src: url("../fonts/inter-v18-latin_latin-ext-900italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
2025-04-28 01:49:10 -04:00
}
2025-05-12 02:31:17 -04:00
.page--about {
2025-05-01 14:24:16 -04:00
display: flex;
flex-direction: column;
2025-04-29 23:20:54 -04:00
}
2025-05-01 14:24:16 -04:00
@media only screen and (min-width: 600px) {
2025-05-12 02:31:17 -04:00
.page--about {
display: grid;
2025-05-13 12:12:16 -04:00
grid: "main idcard" auto "main ." auto "main funfacts" auto "interests funfacts" auto "social social" auto/1fr 1fr;
2025-05-01 14:24:16 -04:00
}
2025-04-28 01:49:10 -04:00
}
2025-05-01 14:24:16 -04:00
@media only screen and (min-width: 768px) {
2025-05-12 02:31:17 -04:00
.page--about {
2025-05-13 12:12:16 -04:00
grid: "main main idcard" auto "main main ." auto "interests funfacts funfacts" auto ". social ." auto/1fr auto 1fr;
2025-04-30 03:01:20 -04:00
}
}
2025-05-12 02:31:17 -04:00
.page--about .main-content {
grid-area: main;
2025-04-29 23:20:54 -04:00
}
2025-05-12 02:31:17 -04:00
.page--about .social {
grid-area: social;
2025-04-29 23:20:54 -04:00
}
2025-05-12 02:31:17 -04:00
.page--about .interests {
grid-area: interests;
2025-04-28 01:49:10 -04:00
}
2025-05-12 02:31:17 -04:00
.page--about .funfacts {
grid-area: funfacts;
2025-04-29 23:20:54 -04:00
}
2025-05-12 02:31:17 -04:00
.idcard {
display: grid;
max-width: 400px;
grid-area: idcard;
grid: "header header" auto ". bio" auto "photo bio" auto ". bio" auto/auto 1fr;
2025-04-29 23:20:54 -04:00
}
2025-05-12 02:31:17 -04:00
.idcard .idcard__bio {
grid-area: bio;
display: grid;
grid-template-columns: repeat(2, 1fr);
2025-04-29 23:20:54 -04:00
}
2025-05-12 02:31:17 -04:00
.idcard .idcard__bio .idcard__line--wide {
grid-column: span 2;
}
.idcard .idcard__header {
grid-area: header;
}
.idcard .idcard__picture {
grid-area: photo;
2025-04-29 23:20:54 -04:00
}
2025-04-30 02:44:05 -04:00
2025-05-12 02:31:17 -04:00
.page--home {
display: grid;
2025-04-30 02:44:05 -04:00
}
2025-05-12 02:31:17 -04:00
@media only screen and (min-width: 600px) {
.page--home {
grid: "main ." auto "main social" auto ". social" auto "badges updates" auto ". updates" auto/1fr auto;
}
.page--home .home__main {
grid-area: main;
2025-04-30 02:44:05 -04:00
}
2025-05-12 02:31:17 -04:00
.page--home .home__social {
grid-area: social;
}
.page--home .home__updates {
grid-area: updates;
}
.page--home .home__badges {
grid-area: badges;
2025-04-30 02:44:05 -04:00
}
}
2025-05-01 14:24:16 -04:00
body {
2025-05-16 17:34:51 -04:00
font-family: "Inter", sans-serif;
2025-05-01 14:24:16 -04:00
}
h1,
h2,
h3,
h4,
h5,
h6 {
2025-05-16 17:34:51 -04:00
font-family: "Poppins", sans-serif;
2025-05-01 14:24:16 -04:00
}
2025-05-12 02:31:17 -04:00
a:hover {
text-decoration-thickness: 3px;
2025-05-01 14:24:16 -04:00
}
2025-05-12 02:31:17 -04:00
.monospace {
font-family: monospace;
2025-05-01 14:24:16 -04:00
}
#skip-navigation {
position: fixed;
top: -100%;
right: 0;
}
#skip-navigation:focus {
top: 0;
}
2025-05-12 02:31:17 -04:00
.site {
display: flex;
flex-direction: column;
width: min(1000px, 100vw);
margin: 1em auto;
2025-05-01 14:24:16 -04:00
}
2025-04-28 01:49:10 -04:00
/*# sourceMappingURL=main.css.map */