isosilo/static/css/style.css
2026-04-20 11:56:24 +02:00

268 lines
4.8 KiB
CSS

:root {
/* 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 */
}
body {
background: var(--bg);
color: var(--text);
font-family:
system-ui,
-apple-system,
sans-serif;
margin: 0;
}
header {
background: #1d2021; /* dark0_hard */
border-bottom: 1px solid var(--border);
padding: 0 2rem;
height: 56px;
display: flex;
align-items: center;
}
.logo {
color: var(--text);
font-weight: bold;
text-decoration: none;
font-family: monospace;
}
main {
max-width: 1100px;
margin: 0 auto;
padding: 2rem;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
}
.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;
}
.card:hover {
border-color: var(--accent);
background: #45413e; /* Slight highlight on hover */
}
.card-img {
width: 100%;
height: 150px;
object-fit: cover;
background: #1d2021;
}
.folder-icon {
height: 150px;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
background: #32302f;
color: #d79921; /* Gruvbox faded yellow */
}
.iso-icon {
height: 150px;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
background: #1d2021;
color: #83a598; /* Gruvbox blue */
}
.card-body {
padding: 1rem;
}
.card-name {
font-weight: bold;
color: var(--text);
margin-bottom: 0.5rem;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-name:hover {
color: var(--accent);
}
.card-desc {
font-size: 0.8rem;
color: var(--muted);
height: 3em;
overflow: hidden;
}
.bc {
background: var(--surface);
padding: 0.6rem 1rem;
border-radius: var(--radius);
margin-bottom: 1.5rem;
font-size: 0.85rem;
border: 1px solid var(--border);
}
.bc a {
color: var(--text);
text-decoration: none;
}
.bc a:hover {
color: var(--accent);
}
.tbl {
width: 100%;
border-collapse: collapse;
background: var(--surface);
border-radius: var(--radius);
overflow: hidden;
}
.tbl th {
text-align: left;
padding: 1rem;
background: #32302f;
color: var(--muted);
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.tbl td {
padding: 1rem;
border-bottom: 1px solid var(--border);
}
/* Button style */
.btn {
border: 1px solid var(--accent);
color: var(--accent);
padding: 0.2rem 0.5rem;
border-radius: var(--radius);
font-size: 0.7rem;
text-decoration: none;
background: transparent;
cursor: pointer;
display: inline-flex;
align-items: center;
transition:
background 0.2s,
color 0.2s;
}
.btn:hover {
background: var(--accent);
color: var(--bg); /* Inverted for readability */
}
/* Modal styles */
.modal-overlay {
display: flex;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(29, 32, 33, 0.9); /* Gruvbox-friendly overlay */
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;
}
.modal-content {
background: var(--bg);
border: 2px solid var(--border);
border-radius: var(--radius);
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
position: relative;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.modal-header {
padding: 1.5rem;
border-bottom: 1px solid var(--border);
background: var(--surface);
}
.modal-title {
margin: 0;
font-size: 1.2rem;
color: var(--text);
}
.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;
}
.close-btn:hover {
color: var(--accent);
}
.modal-body {
padding: 1.5rem;
}
.modal-image {
width: 100%;
max-height: 300px;
object-fit: contain;
background: #1d2021;
border-radius: var(--radius);
margin-bottom: 1rem;
display: none;
border: 1px solid var(--border);
}
.modal-description {
color: var(--text);
line-height: 1.6;
white-space: pre-wrap;
}