site/style.css

186 lines
3.6 KiB
CSS
Raw Normal View History

/* style.css - For The Absolute Basics:tm: */
2025-04-09 13:51:07 -05:00
2025-04-02 14:46:03 -05:00
/* ----------------------------------
- background wallpaper, global font -
---------------------------------- */
2024-04-19 17:16:50 -05:00
body {
2025-04-02 14:17:31 -05:00
background: linear-gradient(var(--background), color-mix(in srgb, var(--accent) 25%, var(--background)));
2025-01-13 21:50:05 -06:00
min-height: calc(100vh - 4rem);
2025-04-09 13:51:07 -05:00
font-family: var(--font-family);
2024-09-28 01:25:39 -05:00
font-size: 1.125rem;
text-transform: lowercase;
2024-08-11 13:44:26 -05:00
margin: unset !important; /* idk why it does that */
2024-04-19 17:16:50 -05:00
}
/* text formatting and config stuff */
2023-11-12 03:20:34 -06:00
/* headings */
2024-04-19 23:26:23 -05:00
h1, h1 a {
2025-04-02 14:17:31 -05:00
color: var(--foreground);
font-size: 2rem;
2024-04-19 23:26:23 -05:00
text-decoration: none;
2023-11-12 03:20:34 -06:00
}
/* apparently having more than one h1 is against web standards
but i prefer how it looks so i just use the same styling again */
h2, h2 a {
2025-04-02 14:17:31 -05:00
color: var(--foreground);
2024-09-28 01:25:39 -05:00
font-size: 2rem;
text-decoration: none;
2023-11-12 03:20:34 -06:00
}
2024-09-30 22:42:57 -05:00
h3, h3 a {
2024-09-28 01:25:39 -05:00
font-size: 2rem;
2023-11-12 03:20:34 -06:00
}
/* text */
p, li, button {
2024-09-28 01:25:39 -05:00
font-size: 1.125rem;
[class^="tabler--"] {
transform: scale(1.13);
}
2023-11-12 13:42:49 -06:00
}
2024-04-19 17:16:50 -05:00
/* links should look good i think */
a {
2024-09-28 01:25:39 -05:00
font-size: 1.125rem;
2025-04-02 14:17:31 -05:00
color: var(--accent);
2024-12-10 16:28:30 -06:00
transition: 0.2s;
}
a:hover {
transition: 0.2s;
2025-04-02 14:17:31 -05:00
text-shadow: 0em 0em 0.25em var(--accent);
2023-11-15 09:54:00 -06:00
}
2024-04-19 17:16:50 -05:00
/* smol text */
2024-06-05 00:30:27 -05:00
small, small a {
2024-09-28 01:25:39 -05:00
font-size: 0.875rem;
2023-11-14 22:55:10 -06:00
}
2024-04-19 17:16:50 -05:00
/* lists need some styling */
li {
margin-left: -1em;
2024-04-19 17:16:50 -05:00
padding-bottom: 18px;
2023-11-14 22:55:10 -06:00
}
2024-04-19 17:16:50 -05:00
/* gay ass text */
.rainbow {
animation: 2s linear infinite rainbow;
2024-05-31 09:20:16 -05:00
-webkit-animation: 2s linear infinite rainbow;
-moz-animation: 2s linear infinite rainbow;
2023-11-12 03:20:34 -06:00
}
2024-04-19 23:26:23 -05:00
/* heading 1 is also clickable */
h1 a:hover {
text-decoration: underline;
}
2024-12-08 04:24:22 -06:00
/* the tabler icons svgs styling */
.tabler-icon, .icon .icon-tabler {
width: 1.3rem;
height: 1.3rem;
padding-bottom: .2rem;
vertical-align: middle !important;
2025-04-02 14:17:31 -05:00
color: var(--foreground) !important;
}
2025-04-09 13:51:07 -05:00
/* code (enforced monospace) */
.code {
font-family: 'JetBrains Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, system-ui, sans-serif !important;
}
/* caption styled text */
.caption {
font-size: small;
opacity: .8;
.section {
font-size: smaller;
opacity: .9;
}
}
/* the dot */
.dot {
display: inline-flex;
width: .4rem;
height: .4rem;
2025-04-02 14:17:31 -05:00
background-color: var(--foreground);
border-radius: 100%;
vertical-align: middle;
margin-left: .2rem;
margin-right: .2rem;
margin-bottom: .1rem;
}
2025-04-09 13:51:07 -05:00
/* seperator */
.seperator::before {
border-bottom: .1rem solid var(--border);
content: '';
display: block;
height: .5rem;
margin-bottom: .5rem;
margin-top: -.7rem;
min-width: max-content;
}
/* audio */
audio {
border-radius: 3rem;
}
/* summary styling */
summary {
display: flex;
}
2025-04-02 14:46:03 -05:00
/* -----------------------
- styled summary styling -
----------------------- */
details.styled {
summary {
2025-04-02 14:46:03 -05:00
max-width: 30%;
font-size: 1.5rem;
padding: .5rem;
border-radius: .5rem;
}
}
details.styled[open] {
2025-04-02 14:46:03 -05:00
background-color: color-mix(in srgb, var(--background) 90%, var(--accent));
summary {
2025-04-02 14:46:03 -05:00
border-radius: .5rem;
}
section {
padding: .5rem;
border-radius: .5rem;
}
}
/* ---------------
- alt text popup -
--------------- */
.alt-popup {
position: fixed;
text-transform: none !important;
2025-04-02 14:17:31 -05:00
background-color: color-mix(in srgb, var(--background) 85%, transparent);
2025-02-27 14:47:40 -06:00
backdrop-filter: blur(.5rem);
2025-04-02 14:17:31 -05:00
color: var(--foreground);
padding: .5rem;
2025-04-02 14:17:31 -05:00
border: solid .01rem var(--accent);
border-radius: .5rem;
font-size: 1rem;
max-width: 30rem;
z-index: 1000;
pointer-events: none;
opacity: 0;
transition: opacity 0.4s;
}