You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

202 lines
3.4 KiB

3 years ago
/* variables */
:root {
/* paddings */
--padding-sm: 10px;
--padding: 20px;
--padding-lg: 50px;
--padding-xl: 100px;
--padding-xxl: 200px;
/* color palette */
3 years ago
--theme-color: #2463EB;
--theme-color-500: rgba(36, 99, 235, 0.5);
--theme-color-dilluted: rgba(36, 99, 235, 0.1);
3 years ago
--warning: rgb(255, 163, 25);
--danger: rgb(255, 117, 117);
/* shadows */
3 years ago
--box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}
body, body[data-theme="light"] {
3 years ago
3 years ago
--background-color: #F3F4F6;
--background-color-light: #1044b427;
--background-color-dark: #E5E7EB;
--background-color-body: white;
--text-color: black;
}
3 years ago
body, body[data-theme="dark"] {
3 years ago
--background-color: #1F2937;
--background-color-light: #374151;
--background-color-dark: #374151;
--background-color-body: #111827;
--text-color: white;
}
/* html */
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700;1,900&display=swap');
html,
body {
padding: 0;
margin: 0;
font-family: 'Red Hat Text';
font-size: 1.1rem;
3 years ago
background-color: var(--background-color-body);
color: var(--text-color);
scroll-behavior: smooth;
}
3 years ago
img {
max-width: 100%;
}
p, b, i {
font-size: 1rem;
}
h1, h2, h3, h4 {
font-family: 'Red Hat Display';
}
h5, h6 {
font-weight: normal;
}
h5 {
font-size: 1.05rem;
}
a:not([class]) {
color: inherit;
text-decoration: none;
border-bottom: 1px dashed currentColor;
}
a:not([class]):hover {
border-bottom: 1px solid currentColor;
}
* {
box-sizing: border-box;
}
hr {
width: 100%;
background-color: var(--text-color);
opacity: 10%;
border: unset;
height: 2px;
}
/* layout */
.page {
3 years ago
background-color: var(--background-color-body);
color: var(--text-color);
}
.container {
max-width: 1000px;
margin: auto;
}
.content {
border-radius: 1em;
background-color: var(--background-color);
box-shadow: var(--box-shadow);
padding: var(--padding-lg);
display: flex;
flex-direction: column;
gap: var(--padding-lg);
margin: var(--padding-lg) 0;
-webkit-animation-name: contentanim;
animation-name: contentanim;
-webkit-animation-duration: 0.5s;
animation-duration: 0.5s;
}
3 years ago
.text-center {
text-align: center;
}
.my-5 {
margin-top: 2em;
margin-bottom: 2em;
}
.mt-reset {
margin-top: unset;
}
@keyframes contentanim {
0% {
margin-top: var(--padding-xxl);
opacity: 0;
}
100% {
margin-top: var(--padding-lg);
opacity: 100;
}
}
/* form defaults */
form {
display: flex;
flex-direction: column;
gap: var(--padding);
}
form > div {
display: flex;
flex-direction: column;
gap: var(--padding-sm);
}
textarea {
max-width: 100%;
min-width: 100%;
}
form input, form textarea {
border-radius: var(--padding-sm);
font-size: 1rem;
border: unset;
background-color: var(--background-color-body);
padding: 0.3em 0.4em;
}
form button {
background-color: var(--background-color-dark);
border-radius: var(--padding-sm);
border: unset;
padding: 0.3em 0.6em;
font-size: 1em;
cursor: pointer;
}
/* mobile */
@media(max-aspect-ratio: 5/4) {
.content {
gap: var(--padding);
padding: var(--padding-lg);
}
}
@media(max-aspect-ratio: 3/2) {
.content {
gap: var(--padding);
padding: var(--padding);
}
}