Files
frangipane-client/src/base.css

232 lines
3.7 KiB
CSS

*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
padding: 0;
}
html,
body,
#app {
height: 100%;
overflow-y: hidden;
}
/* This is overwritten by the theme configuration */
:root {
--bg: #0f1116;
--panel: #171922;
--panel-accent: #12141B;
--text: #e6e6eb;
--muted: #9aa0aa;
--accent: #f27aa3;
--accent-rgb: 242, 122, 163;
--accent-hover: #ff91b3;
--accent-second: #96CDFB;
--border: #2a2f3b;
--error: #ff5050;
--radius: 8px;
}
* {
transition: background-color 0.2s ease, border-color 0.2s ease;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", sans-serif;
background-color: var(--bg);
color: var(--text);
line-height: 1.5;
}
input, textarea {
background: var(--panel);
border: 1px solid var(--border);
color: var(--text);
padding: 0.6rem 0.7rem;
border-radius: var(--radius);
font-size: 0.95rem;
}
input::placeholder, textarea::placeholder {
color: var(--muted);
}
input:focus, textarea:focus {
outline: none;
border-color: var(--accent);
}
button, .button {
font-size: 1rem;
background: var(--accent);
color: var(--bg);
/* color: var(--btn-text); */
border: none;
border-radius: var(--radius);
padding: 0.6rem 1rem;
font-weight: 600;
cursor: pointer;
text-decoration: none;
margin: 5px;
outline: none;
}
button:hover, .button:hover {
background: var(--accent-hover);
}
.secondary {
background: transparent;
color: var(--text);
border: 1px solid var(--border);
padding: 8px 16px;
border-radius: var(--radius);
cursor: pointer;
}
.secondary:hover {
background: var(--panel-hover);
}
input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
width: 1.25rem;
height: 1.25rem;
aspect-ratio: 1;
flex-shrink: 0;
padding: 0;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 4px;
cursor: pointer;
display: inline-grid;
place-content: center;
vertical-align: middle;
position: relative;
transition: all 0.15s ease-in-out;
}
input[type="checkbox"]:hover {
border-color: var(--accent);
}
input[type="checkbox"]:checked {
background: var(--accent);
border-color: var(--accent);
}
input[type="checkbox"]::before {
content: "";
width: 0.7rem;
height: 0.7rem;
transform: scale(0);
transition: 120ms transform ease-in-out;
background-color: #0b0d12;
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
input[type="checkbox"]:checked::before {
transform: scale(1);
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background-color: var(--text);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
filter: brightness(1.2);
}
* {
scrollbar-width: thin;
scrollbar-color: var(--text) transparent;
}
i {
color: var(--muted);
transition: color 0.2s ease;
}
i:hover {
color: var(--text);
}
.btn {
outline: none;
}
.input-group {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.input-group label {
font-size: 0.8rem;
font-weight: 600;
color: var(--muted);
}
.error-message {
color: var(--error);
font-size: 0.9rem;
}
.modal {
margin: 30px;
}
.avatar {
width: 35px;
height: 35px;
border-radius: 50%;
object-fit: cover;
border: 1px solid var(--border);
flex-shrink: 0;
}
@media (hover: hover) {
i:hover {
color: var(--text);
}
button:hover, .button:hover {
background: var(--accent-hover);
}
input[type="checkbox"]:hover {
border-color: var(--accent);
}
::-webkit-scrollbar-thumb:hover {
filter: brightness(1.2);
}
}
button:active, .nav-item:active {
opacity: 0.7;
}
* {
-webkit-tap-highlight-color: transparent;
}