mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
232 lines
3.7 KiB
CSS
232 lines
3.7 KiB
CSS
/* ===== Variables ===== */
|
|
|
|
:root {
|
|
--main-color: #7D36E7;
|
|
--main-background-color: #1D1320;
|
|
--secondary-background-color: #261F31;
|
|
--footer-color: rgb(12, 12, 15);
|
|
|
|
--header-color: rgb(255, 255, 255);
|
|
--text-color: #EEEEEE;
|
|
--light-text-color: #CCCCCC;
|
|
--link-color: #7D36E7;
|
|
--link-color-hover: #D1B3FF;
|
|
|
|
--main-font: "Nunito", sans-serif;
|
|
|
|
--card-section-divider: 2px solid rgba(128, 128, 128, 0.5);
|
|
--blog-header-divider: 1px solid rgba(128, 128, 128, 0.25);
|
|
--shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
|
|
--desktop: 60em;
|
|
}
|
|
|
|
/* ===== RESET ===== */
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
p,
|
|
figure,
|
|
blockquote,
|
|
dl,
|
|
dd {
|
|
margin: 0;
|
|
}
|
|
|
|
ul[role="list"],
|
|
ol[role="list"] {
|
|
list-style: none;
|
|
}
|
|
|
|
html:focus-within {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
text-rendering: optimizeSpeed;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
a:not([class]) {
|
|
text-decoration-skip-ink: auto;
|
|
}
|
|
|
|
img,
|
|
picture {
|
|
max-width: 100%;
|
|
display: block;
|
|
}
|
|
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
html:focus-within {
|
|
scroll-behavior: auto;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|
|
|
|
/* ===== Base styling ===== */
|
|
|
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,900;1,100;1,400;1,900&display=swap");
|
|
|
|
::-webkit-scrollbar {
|
|
width: 0.5em;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: var(--link-color);
|
|
border-radius: 999rem;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background-color: var(--link-color-hover);
|
|
}
|
|
|
|
::selection {
|
|
background-color: var(--main-color);
|
|
}
|
|
a::selection {
|
|
color: blue;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--main-font);
|
|
font-size: 1.35rem;
|
|
font-weight: 400;
|
|
line-height: 1.6;
|
|
|
|
background-color: var(--main-background-color);
|
|
color: var(--text-color);
|
|
|
|
scrollbar-color: var(--link-color) var(--main-background-color);
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
p {
|
|
max-width: 60ch;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
color: var(--header-color);
|
|
}
|
|
|
|
h2,
|
|
h3 {
|
|
font-weight: 900;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
a {
|
|
color: var(--main-color);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
color: var(--link-color-hover);
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
section {
|
|
padding: 7em 1em;
|
|
display: grid;
|
|
justify-content: center;
|
|
}
|
|
section:nth-child(2n + 1) {
|
|
background-color: var(--secondary-background-color);
|
|
}
|
|
section h2 {
|
|
font-size: 3.25rem;
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--main-color);
|
|
margin-bottom: 2em;
|
|
text-align: center;
|
|
justify-self: center;
|
|
}
|
|
@media (min-width: 60em) {
|
|
section {
|
|
padding: 10em 5em;
|
|
}
|
|
}
|
|
|
|
/* ===== Helper classes ===== */
|
|
.content-box {
|
|
box-sizing: content-box;
|
|
}
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
.remove-bullets {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
.no-styling-link {
|
|
color: inherit;
|
|
}
|
|
.no-styling-link:hover {
|
|
color: inherit;
|
|
}
|
|
.left-section-header {
|
|
margin-bottom: 1em;
|
|
}
|
|
.no-mobile {
|
|
display: none;
|
|
}
|
|
.circular-container {
|
|
/* Fuck webkit */
|
|
border-radius: 50%;
|
|
-webkit-border-radius: 50%;
|
|
-moz-border-radius: 50%;
|
|
-khtml-border-radius: 50%;
|
|
}
|
|
.circular {
|
|
/* Fuck webkit */
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
-webkit-border-radius: 50%;
|
|
-moz-border-radius: 50%;
|
|
-khtml-border-radius: 50%;
|
|
mask-image: radial-gradient(white, black);
|
|
-webkit-mask-image: -webkit-radial-gradient(white, black);
|
|
}
|
|
@media (min-width: 60em) {
|
|
.no-mobile {
|
|
display: block;
|
|
}
|
|
.left-section-header {
|
|
text-align: left;
|
|
justify-self: start;
|
|
margin-bottom: 1em;
|
|
}
|
|
}
|