summaryrefslogtreecommitdiff
path: root/theme
diff options
context:
space:
mode:
authorjade (winter)2026-07-20 15:02:06 +0100
committerjade (winter)2026-07-20 15:02:06 +0100
commitc34ce636639654be1862e3c39bda9be50e0fcd6e (patch)
tree952ab37a5b064272c31d9408242f6ad7b6e90762 /theme
parentd5ea0f332bf8e5f0745e2c0e592ee895423a70ad (diff)
add image support (lots of janky css)HEADmain
Diffstat (limited to 'theme')
-rw-r--r--theme/Brutalist/main.css4
-rw-r--r--theme/Default/main.css61
2 files changed, 62 insertions, 3 deletions
diff --git a/theme/Brutalist/main.css b/theme/Brutalist/main.css
index e9b22ed..f24c72c 100644
--- a/theme/Brutalist/main.css
+++ b/theme/Brutalist/main.css
@@ -196,3 +196,7 @@ segment-item {
content: '—';
}
}
+
+img {
+ display: none;
+}
diff --git a/theme/Default/main.css b/theme/Default/main.css
index ba66120..5799c6f 100644
--- a/theme/Default/main.css
+++ b/theme/Default/main.css
@@ -125,6 +125,21 @@ inline-display-module {
text-align: center;
font-weight: bold;
}
+
+ container-item, playable-item, broadcast-summary, display-item {
+ display: grid;
+ grid-template-columns: 1fr 72px;
+
+ img {
+ grid-row-start: 1;
+ grid-row-end: 1000;
+ grid-column: 2;
+ width: 100%;
+
+ }
+ > :not(img, a) { grid-column: 1; }
+ > a { grid-column: 1 / 3; }
+ }
}
inline-header-module {
@@ -163,6 +178,17 @@ inline-display-module:first-child h2 { margin-top: 0; }
border-right: 1px solid #ccc;
width: 300px;
background: #eee;
+ position: relative;
+
+ img {
+ opacity: 20%;
+ position: absolute;
+ top: 0;
+ width: 100%;
+ filter: blur(4px);
+ pointer-events: none;
+ height: 100%;
+ }
}
module-items {
@@ -184,6 +210,23 @@ inline-display-module:first-child h2 { margin-top: 0; }
border: none;
}
h2 { display: none; }
+
+ display-item {
+ display: grid;
+ background: #ffeecb;
+ grid-template-columns: max-content 1fr;
+ > :not(item-titles, img) {
+ grid-column: 1 / 3;
+ background: white;
+ }
+ > img {
+ height: 80px;
+ width: 100%;
+ object-fit: cover;
+ object-position: 0 30%;
+ mask-image: linear-gradient(to left, #fff9, #fff0);
+ }
+ }
}
#categories {
@@ -205,17 +248,22 @@ inline-display-module:first-child h2 { margin-top: 0; }
font-size: 0;
&::after {
font-size: 10pt;
- content: "view category »"
+ content: "view category »";
}
}
+ img {
+ display: none;
+ }
}
}
segment-item {
display: grid;
- grid-template-columns: 1fr auto auto;
+ grid-template-columns: 1fr auto auto 80px;
+ &:not(:has(img)) {
+ grid-template-columns: 1fr auto auto;
+ }
align-items: baseline;
- padding: 0 8px 0 0;
background: linear-gradient(to bottom, #fff, #f8f8f8);
border-bottom: 1px solid #ccc;
@@ -246,6 +294,13 @@ segment-item {
offset-end {
grid-row: 1;
grid-column: 3;
+ padding-right: 8px;
+ }
+
+ img {
+ align-self: center;
+ grid-column: 4;
+ width: 100%;
}
}