isosilo/static/css/style.css

213 lines
4 KiB
CSS
Raw Normal View History

:root {
2026-04-15 10:31:54 +02:00
--bg: #0f1117;
--surface: #1a1d27;
--border: #252836;
--accent: #4f8ef7;
--text: #e2e4ef;
--muted: #6b7090;
--radius: 8px;
}
body {
background: var(--bg);
color: var(--text);
font-family: system-ui;
margin: 0;
}
header {
background: #12151f;
border-bottom: 1px solid var(--border);
padding: 0 2rem;
height: 56px;
display: flex;
align-items: center;
}
.logo {
color: var(--accent);
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 {
transform: translateY(-3px);
border-color: var(--accent);
}
.card-img {
width: 100%;
height: 150px;
object-fit: cover;
background: #000;
}
.folder-icon {
height: 150px;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
background: #1c202d;
color: #f7c948;
}
.iso-icon {
height: 150px;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
background: #12151f;
}
.card-body {
padding: 1rem;
}
.card-name {
font-weight: bold;
color: var(--accent);
margin-bottom: 0.5rem;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-desc {
font-size: 0.8rem;
color: var(--muted);
height: 3em;
overflow: hidden;
}
.bc {
background: var(--surface);
padding: 0.6rem 1rem;
border-radius: 4px;
margin-bottom: 1.5rem;
font-size: 0.85rem;
}
.bc a {
color: var(--accent);
text-decoration: none;
}
.tbl {
width: 100%;
border-collapse: collapse;
background: var(--surface);
border-radius: var(--radius);
overflow: hidden;
}
.tbl th {
text-align: left;
padding: 1rem;
background: #1e2132;
color: var(--muted);
font-size: 0.75rem;
}
.tbl td {
padding: 1rem;
border-bottom: 1px solid var(--border);
}
.dl-btn {
border: 1px solid var(--accent);
color: var(--accent);
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-size: 0.7rem;
text-decoration: none;
}
.dl-btn:hover {
background: var(--accent);
color: #fff;
}
/* Modal styles */
.modal-overlay {
display: flex;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
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(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
position: relative;
}
.modal-header {
padding: 1.5rem;
border-bottom: 1px solid var(--border);
}
.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(--text);
}
.modal-body {
padding: 1.5rem;
}
.modal-image {
width: 100%;
max-height: 300px;
object-fit: contain;
background: #000;
border-radius: 4px;
margin-bottom: 1rem;
display: none;
}
.modal-description {
color: var(--text);
line-height: 1.6;
white-space: pre-wrap;
}