BlueFox 7f12cdc3e7
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Made the background a little lighter in dark mode
2025-02-20 16:07:56 +01:00

186 lines
3.1 KiB
CSS

/* Prevents Padding or borders from changing box size */
html { box-sizing: border-box; }
*,
*:before,
*:after { box-sizing: inherit; }
:root {
--bg-color: #ffffff;
--fg-color: #000000;
--selection-bg-color: #bbffbb;
--selection-fg-color: #000000;
--accent: #96ff96;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #111111;
--fg-color: #ffffff;
--selection-bg-color: var(--accent);
--selection-fg-color: #000000;
}
}
body {
background-color: var(--bg-color);
color: var(--fg-color);
font-family: sans-serif;
}
::-moz-selection { /* Code for Firefox */
color: var(--selection-fg-color);
background: var(--selection-bg-color);
}
::selection {
color: var(--selection-fg-color);
background: var(--selection-bg-color);
}
h1 {
text-align: center;
}
/* Blinking cursor */
@keyframes cursor-blink {
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
h1::after {
content: "";
width: 5px;
height: 0.9em;
background: #00ff00;
margin-left: 3px;
display: inline-block;
animation: cursor-blink 900ms ease-in-out infinite;
}
a {
color: inherit;
text-decoration: underline;
text-decoration-thickness: 2px;
text-decoration-color: var(--bg-color);
transition: all 200ms ease-in-out;
}
a:hover {
text-decoration-color: var(--accent);
}
p {
text-align: center;
width: 70%;
margin: 0 auto;
}
@media (min-width: 992px) {
p {
max-width: 40%;
}
}
br {
margin-bottom: 10px;
}
code {
border: 1px solid var(--fg-color);
border-radius: 5px;
padding: 2px;
margin: 1px;
font-family: serif;
background-color: #000000;
}
.row {
width: 70%;
margin: 0 auto;
}
/* Large Devices */
@media (min-width: 992px) {
.row {
max-width: 40%;
}
}
/* Do a clearfix */
.row::after {
content: "";
display: block;
clear: both;
}
/* Columns */
.col {
width: 100%;
float: left;
padding: 5px;
}
.badge {
padding: 3px 5px;
border: 2px solid var(--accent);
border-radius: 0px;
}
hr {
--hr-color: var(--accent);
width: 70%;
height: 3px;
margin: 2.35em auto;
border-width: 0;
color: var(--hr-color);
background-color: var(--hr-color);
}
/* Large Devices */
@media (min-width: 992px) {
hr {
max-width: 40%;
}
}
.align-left {
text-align: left;
margin-left: 0;
}
.footer {
text-align: center;
margin: 0 auto;
}
/* Small Devices */
@media (min-width: 576px) {
.sm-1 { width: 10%; }
.sm-2 { width: 20%; }
.sm-3 { width: 30%; }
.sm-4 { width: 40%; }
.sm-5 { width: 50%; }
.sm-6 { width: 60%; }
.sm-7 { width: 70%; }
.sm-8 { width: 80%; }
.sm-9 { width: 90%; }
.sm-10 { width: 100%; }
}
/* Medium Devices */
@media (min-width: 768px) {
.md-1 { width: 10%; }
.md-2 { width: 20%; }
.md-3 { width: 30%; }
.md-4 { width: 40%; }
.md-5 { width: 50%; }
.md-6 { width: 60%; }
.md-7 { width: 70%; }
.md-8 { width: 80%; }
.md-9 { width: 90%; }
.md-10 { width: 100%; }
}