Files
slimes-website/templates/_base.css

162 lines
2.9 KiB
CSS

* {
box-sizing: border-box;
}
:root {
--primary-color: #d946ef;
--primary-soft: #fdf2f8;
--primary-border: #fce7f3;
--primary-text: #86198f;
--bg-main: #faf5ff;
--bg-card: #ffffff;
--bg-header: #f5f3ff;
--border-color: #f3e8ff;
--hover-color: #fdf2f8;
--text-dark: #2e1065;
--text-muted: #7e6c88;
--text-secondary: #4a3a54;
}
html, body {
margin: 0;
padding: 0;
background-color: var(--bg-main);
color: var(--text-dark);
font-family: "Inter", system-ui, -apple-system, sans-serif;
line-height: 1.5;
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
main {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
flex: 1;
}
h2 {
text-align: center;
margin: 2rem 0;
}
table {
width: 100%;
border-collapse: collapse;
background: var(--bg-card);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
th {
background: var(--bg-header);
padding: 12px 15px;
text-align: left;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
border-bottom: 2px solid var(--border-color);
}
td {
padding: 12px 15px;
border-bottom: 1px solid var(--border-color);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.9rem;
}
tr:last-child td {
border-bottom: none;
}
tr:hover {
background-color: var(--hover-color);
}
.score-cell {
color: var(--primary-color);
font-weight: 700;
}
.signature-cell {
color: var(--text-muted);
font-style: italic;
font-size: 0.8rem;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
footer {
padding: 2rem;
text-align: center;
color: var(--text-muted);
font-size: 0.9rem;
}
@media (max-width: 768px) {
main {
padding: 0.5rem;
}
table thead {
display: none;
}
table, table tbody, table tr, table td {
display: block;
width: 100%;
}
table {
background: transparent;
box-shadow: none;
}
table tr {
background: var(--bg-card);
margin-bottom: 1rem;
border-radius: 12px;
padding: 1rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
border: 1px solid var(--border-color);
}
table td {
text-align: right;
padding: 8px 0;
border-bottom: 1px solid var(--bg-header);
position: relative;
}
table td:last-child {
border-bottom: none;
}
table td::before {
content: attr(data-label);
position: absolute;
left: 0;
font-weight: 600;
text-transform: uppercase;
font-size: 0.75rem;
color: var(--text-muted);
font-family: "Inter", sans-serif;
}
.signature-cell {
max-width: 100%;
}
}