aboutsummaryrefslogtreecommitdiff
path: root/p/themes/base-theme/template.css
diff options
context:
space:
mode:
authorGravatar ORelio <ORelio@users.noreply.github.com> 2021-08-30 10:58:06 +0200
committerGravatar GitHub <noreply@github.com> 2021-08-30 10:58:06 +0200
commit50ba6bbe07b0bb86eb07e3212ba2e22cb2878cf2 (patch)
tree3e54faf8e06be88468d0be1e9df808f88691194e /p/themes/base-theme/template.css
parent812eda1fa05e370c4c1645b5b82f09f9da2c7bf7 (diff)
UI: Add optional thumbnail and summary on feed items (#3805)
* UI: Add optional thumbnail and summary on feed items Implements #561 * UI: Thumbnail: Own column, Custom size, Lazy load * UI: Thumbnail: Remove unnecessary CSS rule Remove rule already defined in base theme, no override needed * CSS lint + RTL * Improve thumbail and summary generation * Support img alt * Missing htmlspecialchars Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'p/themes/base-theme/template.css')
-rw-r--r--p/themes/base-theme/template.css55
1 files changed, 55 insertions, 0 deletions
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css
index 77fc8b792..9c2ace776 100644
--- a/p/themes/base-theme/template.css
+++ b/p/themes/base-theme/template.css
@@ -723,11 +723,66 @@ input[type="search"] {
position: absolute;
}
+.flux:not(.current):hover .item.title.multiline {
+ position: initial;
+}
+
.flux .item.title a {
color: #000;
text-decoration: none;
}
+.flux .item.thumbnail {
+ line-height: 0;
+ padding: 10px;
+ height: 80px;
+}
+
+.flux .item.thumbnail.small {
+ height: 40px;
+}
+
+.flux .item.thumbnail.portrait {
+ width: 60px;
+}
+
+.flux .item.thumbnail.square {
+ width: 80px;
+}
+
+.flux .item.thumbnail.landscape {
+ width: 128px;
+}
+
+.flux .item.thumbnail.portrait.small {
+ width: 30px;
+}
+
+.flux .item.thumbnail.square.small {
+ width: 40px;
+}
+
+.flux .item.thumbnail.landscape.small {
+ width: 64px;
+}
+
+.flux .item.thumbnail img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
+
+.flux .item.title .summary {
+ max-height: 3em;
+ color: #666;
+ font-size: 0.9em;
+ line-height: 1.5em;
+ font-weight: normal;
+ white-space: initial;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
.flux .item.title .author {
padding-left: 1rem;
color: #555;