nectar/css/kinode.css

184 lines
3.0 KiB
CSS
Raw Normal View History

2024-07-24 19:45:52 +03:00
/* CSS Reset and Base Styles */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font-family: var(--font-family-main);
2024-07-24 19:45:52 +03:00
}
2024-09-17 22:28:48 +03:00
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@700&display=swap');
2024-07-24 19:45:52 +03:00
/* Variables */
:root {
2024-07-25 23:27:31 +03:00
color-scheme: light dark;
2024-07-24 19:45:52 +03:00
--orange: #FF4F00;
--dark-orange: #cc4100;
--blue: #2B88D9;
--off-white: #fdfdfd;
--white: #ffffff;
--off-black: #0C090A;
--black: #000000;
--tan: #fdf6e3;
--ansi-red: #dc322f;
2024-07-25 23:27:31 +03:00
--maroon: #4f0000;
2024-07-24 19:45:52 +03:00
--gray: #657b83;
2024-07-26 20:24:56 +03:00
--tasteful-dark: #1f1f1f;
--font-family-main: 'Kode Mono', monospace;
2024-07-24 19:45:52 +03:00
}
/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
li,
span {
font-family: var(--font-family-main);
2024-07-25 23:27:31 +03:00
color: light-dark(var(--off-black), var(--off-white));
2024-07-24 19:45:52 +03:00
}
p,
li {
font-size: 0.8em;
}
2024-07-24 19:45:52 +03:00
h1 {
font-size: 2em;
}
h2 {
font-size: 1.5em;
}
h3 {
font-size: 1.3em;
}
2024-07-25 23:27:31 +03:00
h4 {
font-size: 1.2em;
}
h5 {
font-size: 1.1em;
}
h6 {
font-size: 1em;
}
2024-07-24 19:45:52 +03:00
a {
font-family: var(--font-family-main);
2024-07-25 23:27:31 +03:00
color: light-dark(var(--blue), var(--orange));
2024-07-24 19:45:52 +03:00
text-decoration: none;
}
a:hover {
2024-07-25 23:27:31 +03:00
color: light-dark(var(--orange), var(--dark-orange));
2024-07-24 19:45:52 +03:00
text-decoration: underline wavy;
}
/* Layout */
2024-07-25 23:27:31 +03:00
body {
line-height: 1.6;
-webkit-font-smoothing: antialiased;
2024-07-26 20:24:56 +03:00
background-color: light-dark(var(--tan), var(--tasteful-dark));
2024-07-29 21:44:01 +03:00
background-image: radial-gradient(circle at -1% -47%, #4700002b 7%, transparent 58.05%), radial-gradient(circle at 81% 210%, #d6430550 17%, transparent 77.05%);
min-width: 100vw;
min-height: 100vh;
2024-07-25 23:27:31 +03:00
}
2024-07-24 19:45:52 +03:00
/* Sections */
2024-07-25 23:33:49 +03:00
section {
2024-07-25 23:27:31 +03:00
background-color: light-dark(var(--white), var(--maroon));
2024-07-24 19:45:52 +03:00
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 2rem;
margin-bottom: 2rem;
transition: transform 0.3s ease;
}
2024-07-25 23:33:49 +03:00
section:hover {
2024-07-24 19:45:52 +03:00
transform: translateY(-5px);
}
/* Forms */
2024-07-25 23:33:49 +03:00
form {
2024-07-24 19:45:52 +03:00
display: flex;
flex-direction: column;
gap: 1rem;
}
2024-07-25 23:33:49 +03:00
form label {
2024-07-24 19:45:52 +03:00
margin-bottom: 0.5rem;
font-weight: bold;
}
2024-07-25 23:33:49 +03:00
form input {
2024-07-24 19:45:52 +03:00
padding: 0.75rem;
border: 2px solid var(--orange);
border-radius: 4px;
transition: all 0.3s ease;
}
2024-07-25 23:33:49 +03:00
form input:focus {
2024-07-24 19:45:52 +03:00
outline: none;
border-color: var(--dark-orange);
box-shadow: 0 0 0 3px rgba(255, 79, 0, 0.2);
}
/* Button styles */
2024-07-25 23:27:31 +03:00
button {
2024-07-24 19:45:52 +03:00
display: inline-block;
padding: 10px 20px;
font-size: 16px;
font-weight: bold;
text-align: center;
text-decoration: none;
background-color: var(--orange);
color: white;
border: none;
border-radius: 4px;
transition: background-color 0.3s;
}
2024-07-25 23:27:31 +03:00
button:hover {
2024-07-24 19:45:52 +03:00
background-color: var(--dark-orange);
}
2024-07-25 23:27:31 +03:00
button:disabled {
2024-07-24 19:45:52 +03:00
opacity: 0.5;
cursor: not-allowed;
}
2024-07-25 23:27:31 +03:00
button.secondary {
2024-08-13 23:55:36 +03:00
background-color: light-dark(var(--off-white), var(--off-black));
2024-07-24 19:45:52 +03:00
color: var(--orange);
border: 2px solid var(--orange);
}
2024-07-25 23:27:31 +03:00
button.secondary:hover {
2024-07-24 19:45:52 +03:00
background-color: var(--orange);
color: white;
}