isosilo/static/css/style.css

255 lines
4.8 KiB
CSS
Raw Normal View History

:root {
2026-04-20 10:21:17 +02:00
/* Gruvbox Dark Palette */
--bg: #282828; /* dark0 */
--surface: #3c3836; /* dark1 */
--border: #504945; /* dark2 */
--accent: #fabd2f; /* yellow */
--text: #ebdbb2; /* light1 */
--muted: #a89984; /* gray */
--radius: 0px; /* Forced to 0 for sharp corners */
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
body {
background: var(--bg);
color: var(--text);
2026-04-20 10:21:17 +02:00
font-family: system-ui, -apple-system, sans-serif;
2026-04-15 10:31:54 +02:00
margin: 0;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
header {
2026-04-20 10:21:17 +02:00
background: #1d2021; /* dark0_hard */
2026-04-15 10:31:54 +02:00
border-bottom: 1px solid var(--border);
padding: 0 2rem;
height: 56px;
display: flex;
align-items: center;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.logo {
color: var(--accent);
font-weight: bold;
text-decoration: none;
font-family: monospace;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
main {
max-width: 1100px;
margin: 0 auto;
padding: 2rem;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
display: flex;
flex-direction: column;
text-decoration: none;
color: inherit;
transition: transform 0.1s;
position: relative;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.card:hover {
border-color: var(--accent);
2026-04-20 10:21:17 +02:00
background: #45413e; /* Slight highlight on hover */
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.card-img {
width: 100%;
height: 150px;
object-fit: cover;
2026-04-20 10:21:17 +02:00
background: #1d2021;
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.folder-icon {
height: 150px;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
2026-04-20 10:21:17 +02:00
background: #32302f;
color: #d79921; /* Gruvbox faded yellow */
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.iso-icon {
height: 150px;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
2026-04-20 10:21:17 +02:00
background: #1d2021;
color: #83a598; /* Gruvbox blue */
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.card-body {
padding: 1rem;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.card-name {
font-weight: bold;
color: var(--accent);
margin-bottom: 0.5rem;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.card-desc {
font-size: 0.8rem;
color: var(--muted);
height: 3em;
overflow: hidden;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.bc {
background: var(--surface);
padding: 0.6rem 1rem;
2026-04-20 10:21:17 +02:00
border-radius: var(--radius);
2026-04-15 10:31:54 +02:00
margin-bottom: 1.5rem;
font-size: 0.85rem;
2026-04-20 10:21:17 +02:00
border: 1px solid var(--border);
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.bc a {
color: var(--accent);
text-decoration: none;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.tbl {
width: 100%;
border-collapse: collapse;
background: var(--surface);
border-radius: var(--radius);
overflow: hidden;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.tbl th {
text-align: left;
padding: 1rem;
2026-04-20 10:21:17 +02:00
background: #32302f;
2026-04-15 10:31:54 +02:00
color: var(--muted);
font-size: 0.75rem;
2026-04-20 10:21:17 +02:00
text-transform: uppercase;
letter-spacing: 0.05em;
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.tbl td {
padding: 1rem;
border-bottom: 1px solid var(--border);
}
2026-04-15 12:22:43 +02:00
/* Button style */
.btn {
2026-04-15 10:31:54 +02:00
border: 1px solid var(--accent);
color: var(--accent);
padding: 0.2rem 0.5rem;
2026-04-20 10:21:17 +02:00
border-radius: var(--radius);
2026-04-15 10:31:54 +02:00
font-size: 0.7rem;
text-decoration: none;
2026-04-15 12:22:43 +02:00
background: transparent;
cursor: pointer;
display: inline-flex;
align-items: center;
transition: background 0.2s, color 0.2s;
2026-04-15 10:31:54 +02:00
}
2026-04-15 12:22:43 +02:00
.btn:hover {
2026-04-15 10:31:54 +02:00
background: var(--accent);
2026-04-20 10:21:17 +02:00
color: var(--bg); /* Inverted for readability */
2026-04-15 10:31:54 +02:00
}
/* Modal styles */
.modal-overlay {
display: flex;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
2026-04-20 10:21:17 +02:00
background: rgba(29, 32, 33, 0.9); /* Gruvbox-friendly overlay */
2026-04-15 10:31:54 +02:00
z-index: 1000;
justify-content: center;
align-items: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
}
.modal-overlay.visible {
opacity: 1;
pointer-events: auto;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.modal-content {
2026-04-20 10:21:17 +02:00
background: var(--bg);
border: 2px solid var(--border);
2026-04-15 10:31:54 +02:00
border-radius: var(--radius);
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
position: relative;
2026-04-20 10:21:17 +02:00
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.modal-header {
padding: 1.5rem;
border-bottom: 1px solid var(--border);
2026-04-20 10:21:17 +02:00
background: var(--surface);
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.modal-title {
margin: 0;
font-size: 1.2rem;
color: var(--text);
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.close-btn {
position: absolute;
top: 1rem;
right: 1rem;
background: none;
border: none;
color: var(--muted);
font-size: 1.5rem;
cursor: pointer;
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.close-btn:hover {
2026-04-20 10:21:17 +02:00
color: var(--accent);
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.modal-body {
padding: 1.5rem;
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.modal-image {
width: 100%;
max-height: 300px;
object-fit: contain;
2026-04-20 10:21:17 +02:00
background: #1d2021;
border-radius: var(--radius);
2026-04-15 10:31:54 +02:00
margin-bottom: 1rem;
display: none;
2026-04-20 10:21:17 +02:00
border: 1px solid var(--border);
2026-04-15 10:31:54 +02:00
}
2026-04-20 10:21:17 +02:00
2026-04-15 10:31:54 +02:00
.modal-description {
color: var(--text);
line-height: 1.6;
white-space: pre-wrap;
}