diff options
| author | 2025-11-25 23:27:43 +0100 | |
|---|---|---|
| committer | 2025-11-25 23:27:43 +0100 | |
| commit | 1a3565f26c84ed82ef191effc70c5fa6e054e094 (patch) | |
| tree | 16db9acaf4d2d992aac5531fa2761d2dc61cb249 /p | |
| parent | 06d34f9b8ed81854baaaea3a4a7f4e247cab31a0 (diff) | |
More visible selected article (#8230)
There was not enough difference between selected and not-selected articles, especially not due to hovering using the same style.
Already relevant as is, and more relevant for a future feature depending on selected article.
Additional help welcome to further improve the styling, in this PR or a future one, also for the other themes.
In this example, the third article is the one selected:
<img width="443" height="189" alt="image" src="https://github.com/user-attachments/assets/06168e9f-1b91-47e2-9b64-4fd8ca6c7186" />
* Compensate the increased border-left-width
* Implement in Pafat
* Implement in Nord
* Shorten comment
* Implement in Alternative Dark
* Implement for Flat
* Implement for Swage
* Implement in Ansum and Mapco
* Call stylelint_fix before rtlcss
So that RTLCSS includes the fixes from previous step
Diffstat (limited to 'p')
| -rw-r--r-- | p/themes/Alternative-Dark/adark.css | 15 | ||||
| -rw-r--r-- | p/themes/Alternative-Dark/adark.rtl.css | 15 | ||||
| -rw-r--r-- | p/themes/Ansum/_list-view.css | 10 | ||||
| -rw-r--r-- | p/themes/Ansum/_list-view.rtl.css | 10 | ||||
| -rw-r--r-- | p/themes/Flat/flat.css | 11 | ||||
| -rw-r--r-- | p/themes/Flat/flat.rtl.css | 11 | ||||
| -rw-r--r-- | p/themes/Mapco/_list-view.css | 10 | ||||
| -rw-r--r-- | p/themes/Mapco/_list-view.rtl.css | 10 | ||||
| -rw-r--r-- | p/themes/Nord/nord.css | 6 | ||||
| -rw-r--r-- | p/themes/Nord/nord.rtl.css | 6 | ||||
| -rw-r--r-- | p/themes/Origine/origine.css | 19 | ||||
| -rw-r--r-- | p/themes/Origine/origine.rtl.css | 19 | ||||
| -rw-r--r-- | p/themes/Pafat/pafat.css | 19 | ||||
| -rw-r--r-- | p/themes/Pafat/pafat.rtl.css | 19 | ||||
| -rw-r--r-- | p/themes/Swage/swage.css | 16 | ||||
| -rw-r--r-- | p/themes/Swage/swage.rtl.css | 16 |
16 files changed, 194 insertions, 18 deletions
diff --git a/p/themes/Alternative-Dark/adark.css b/p/themes/Alternative-Dark/adark.css index 5a4725309..f23245f42 100644 --- a/p/themes/Alternative-Dark/adark.css +++ b/p/themes/Alternative-Dark/adark.css @@ -753,7 +753,7 @@ kbd { } .flux .flux_header:hover { - background: var(--background-color-hover) !important; + background: var(--background-color-hover); } .flux.current { @@ -801,6 +801,19 @@ kbd { background: var(--background-color-dark); } +/* stylelint-disable-next-line no-duplicate-selectors */ +.flux.current { + border-left-width: 5px; + border-left-style: double; +} + +.flux.current > .flux_header, +.flux.not_read.current > .flux_header, .flux.not_read.current > .flux_header:hover, +.flux.favorite.current > .flux_header, .flux.favorite.current > .flux_header:hover { + background: linear-gradient(to right, transparent 0, transparent 3px, var(--background-color-hover) 3px); + margin-left: -3px; /* Compensate increased border-left-width */ +} + .flux_header { font-size: 0.8rem; border-top: 1px solid var(--border-color-dark); diff --git a/p/themes/Alternative-Dark/adark.rtl.css b/p/themes/Alternative-Dark/adark.rtl.css index f6ba6dea0..e9b38e2b5 100644 --- a/p/themes/Alternative-Dark/adark.rtl.css +++ b/p/themes/Alternative-Dark/adark.rtl.css @@ -753,7 +753,7 @@ kbd { } .flux .flux_header:hover { - background: var(--background-color-hover) !important; + background: var(--background-color-hover); } .flux.current { @@ -801,6 +801,19 @@ kbd { background: var(--background-color-dark); } +/* stylelint-disable-next-line no-duplicate-selectors */ +.flux.current { + border-right-width: 5px; + border-right-style: double; +} + +.flux.current > .flux_header, +.flux.not_read.current > .flux_header, .flux.not_read.current > .flux_header:hover, +.flux.favorite.current > .flux_header, .flux.favorite.current > .flux_header:hover { + background: linear-gradient(to left, transparent 0, transparent 3px, var(--background-color-hover) 3px); + margin-right: -3px; /* Compensate increased border-left-width */ +} + .flux_header { font-size: 0.8rem; border-top: 1px solid var(--border-color-dark); diff --git a/p/themes/Ansum/_list-view.css b/p/themes/Ansum/_list-view.css index 477916601..57cbce410 100644 --- a/p/themes/Ansum/_list-view.css +++ b/p/themes/Ansum/_list-view.css @@ -17,11 +17,17 @@ &.current { background: var(--white); - border-left-color: var(--main-first); + border-left: 2px solid var(--main-first); + transition: unset; &:not(.active) { background: var(--grey-lighter); } + + .flux_header { + background-color: unset; + margin-left: -2px; /* Compensate increased border-left-width */ + } } &.not_read:not(.current) { @@ -52,8 +58,6 @@ &.favorite { border-left-color: var(--fav-bg); - - transition: all 0.15s ease-in-out; } &.favorite:not(.current) { diff --git a/p/themes/Ansum/_list-view.rtl.css b/p/themes/Ansum/_list-view.rtl.css index f6beeee10..5253bb696 100644 --- a/p/themes/Ansum/_list-view.rtl.css +++ b/p/themes/Ansum/_list-view.rtl.css @@ -17,11 +17,17 @@ &.current { background: var(--white); - border-right-color: var(--main-first); + border-right: 2px solid var(--main-first); + transition: unset; &:not(.active) { background: var(--grey-lighter); } + + .flux_header { + background-color: unset; + margin-right: -2px; /* Compensate increased border-left-width */ + } } &.not_read:not(.current) { @@ -52,8 +58,6 @@ &.favorite { border-right-color: var(--fav-bg); - - transition: all 0.15s ease-in-out; } &.favorite:not(.current) { diff --git a/p/themes/Flat/flat.css b/p/themes/Flat/flat.css index bd02514af..ba2442fb8 100644 --- a/p/themes/Flat/flat.css +++ b/p/themes/Flat/flat.css @@ -737,6 +737,17 @@ th { text-align: center; } +/* stylelint-disable-next-line no-duplicate-selectors */ +.flux.current { + border-left-width: 5px; + border-left-style: double; +} + +.flux.current > .flux_header { + background: linear-gradient(to right, transparent 0, transparent 3px, #fff 3px); + margin-left: -3px; /* Compensate increased border-left-width */ +} + /*=== Content of feed articles */ .content { padding: 20px 10px; diff --git a/p/themes/Flat/flat.rtl.css b/p/themes/Flat/flat.rtl.css index 5a4537fcb..a32517a6d 100644 --- a/p/themes/Flat/flat.rtl.css +++ b/p/themes/Flat/flat.rtl.css @@ -737,6 +737,17 @@ th { text-align: center; } +/* stylelint-disable-next-line no-duplicate-selectors */ +.flux.current { + border-right-width: 5px; + border-right-style: double; +} + +.flux.current > .flux_header { + background: linear-gradient(to left, transparent 0, transparent 3px, #fff 3px); + margin-right: -3px; /* Compensate increased border-left-width */ +} + /*=== Content of feed articles */ .content { padding: 20px 10px; diff --git a/p/themes/Mapco/_list-view.css b/p/themes/Mapco/_list-view.css index 2d69e0e24..a491a2a18 100644 --- a/p/themes/Mapco/_list-view.css +++ b/p/themes/Mapco/_list-view.css @@ -16,7 +16,13 @@ &.current { background: var(--grey-lighter); - border-left-color: var(--main-first); + border-left: 2px solid var(--main-first); + transition: unset; + + .flux_header { + background-color: unset; + margin-left: -2px; /* Compensate increased border-left-width */ + } } &.not_read:not(.current) { @@ -48,8 +54,6 @@ &.favorite { border-left-color: var(--fav-bg); - - transition: all 0.15s ease-in-out; } &.favorite:not(.current) { diff --git a/p/themes/Mapco/_list-view.rtl.css b/p/themes/Mapco/_list-view.rtl.css index 27388479a..8e043e347 100644 --- a/p/themes/Mapco/_list-view.rtl.css +++ b/p/themes/Mapco/_list-view.rtl.css @@ -16,7 +16,13 @@ &.current { background: var(--grey-lighter); - border-right-color: var(--main-first); + border-right: 2px solid var(--main-first); + transition: unset; + + .flux_header { + background-color: unset; + margin-right: -2px; /* Compensate increased border-left-width */ + } } &.not_read:not(.current) { @@ -48,8 +54,6 @@ &.favorite { border-right-color: var(--fav-bg); - - transition: all 0.15s ease-in-out; } &.favorite:not(.current) { diff --git a/p/themes/Nord/nord.css b/p/themes/Nord/nord.css index 47769c786..7419de8ea 100644 --- a/p/themes/Nord/nord.css +++ b/p/themes/Nord/nord.css @@ -809,6 +809,12 @@ li.item.active { .flux.current { background: var(--accent-bg); + border-left: 1px solid var(--highlight); +} + +.flux.current > .flux_header { + background: linear-gradient(to right, transparent 0, transparent 1px, var(--accent-bg) 1px); + margin-left: -1px; /* Compensate increased border-left-width */ } .flux:not(.current):hover .item .title { diff --git a/p/themes/Nord/nord.rtl.css b/p/themes/Nord/nord.rtl.css index 5820aebdc..9b3232c79 100644 --- a/p/themes/Nord/nord.rtl.css +++ b/p/themes/Nord/nord.rtl.css @@ -809,6 +809,12 @@ li.item.active { .flux.current { background: var(--accent-bg); + border-right: 1px solid var(--highlight); +} + +.flux.current > .flux_header { + background: linear-gradient(to left, transparent 0, transparent 1px, var(--accent-bg) 1px); + margin-right: -1px; /* Compensate increased border-left-width */ } .flux:not(.current):hover .item .title { diff --git a/p/themes/Origine/origine.css b/p/themes/Origine/origine.css index 6bb083e3f..94474d640 100644 --- a/p/themes/Origine/origine.css +++ b/p/themes/Origine/origine.css @@ -886,6 +886,25 @@ button:hover .icon, background-color: var(--favorite-article-background-color-hover); } +/* stylelint-disable-next-line no-duplicate-selectors */ +.flux.current { + border-left-width: 5px; + border-left-style: double; +} + +.flux.current > .flux_header { + background: linear-gradient(to right, transparent 0, transparent 3px, var(--background-color-hover) 3px); + margin-left: -3px; /* Compensate increased border-left-width */ +} + +.flux.not_read.current > .flux_header, .flux.not_read.current > .flux_header:hover { + background: linear-gradient(to right, transparent 0, transparent 3px, var(--unread-article-background-color-hover) 3px); +} + +.flux.favorite.current > .flux_header, .flux.favorite.current > .flux_header:hover { + background: linear-gradient(to right, transparent 0, transparent 3px, var(--favorite-article-background-color-hover) 3px); +} + .flux_header { font-size: 0.9rem; border-top: 1px solid var(--border-color); diff --git a/p/themes/Origine/origine.rtl.css b/p/themes/Origine/origine.rtl.css index a2b82b987..d2beb6189 100644 --- a/p/themes/Origine/origine.rtl.css +++ b/p/themes/Origine/origine.rtl.css @@ -886,6 +886,25 @@ button:hover .icon, background-color: var(--favorite-article-background-color-hover); } +/* stylelint-disable-next-line no-duplicate-selectors */ +.flux.current { + border-right-width: 5px; + border-right-style: double; +} + +.flux.current > .flux_header { + background: linear-gradient(to left, transparent 0, transparent 3px, var(--background-color-hover) 3px); + margin-right: -3px; /* Compensate increased border-left-width */ +} + +.flux.not_read.current > .flux_header, .flux.not_read.current > .flux_header:hover { + background: linear-gradient(to left, transparent 0, transparent 3px, var(--unread-article-background-color-hover) 3px); +} + +.flux.favorite.current > .flux_header, .flux.favorite.current > .flux_header:hover { + background: linear-gradient(to left, transparent 0, transparent 3px, var(--favorite-article-background-color-hover) 3px); +} + .flux_header { font-size: 0.9rem; border-top: 1px solid var(--border-color); diff --git a/p/themes/Pafat/pafat.css b/p/themes/Pafat/pafat.css index ab9d5d1cd..cdc131e99 100644 --- a/p/themes/Pafat/pafat.css +++ b/p/themes/Pafat/pafat.css @@ -834,6 +834,25 @@ a.signin { background-color: var(--background-color-favorite-hover); } +/* stylelint-disable-next-line no-duplicate-selectors */ +.flux.current { + border-left-width: 5px; + border-left-style: double; +} + +.flux.current > .flux_header { + background: linear-gradient(to right, transparent 0, transparent 3px, var(--background-color-hover) 3px); + margin-left: -3px; /* Compensate increased border-left-width */ +} + +.flux.not_read.current > .flux_header, .flux.not_read.current > .flux_header:hover { + background: linear-gradient(to right, transparent 0, transparent 3px, var(--unread-article-background-color-hover) 3px); +} + +.flux.favorite.current > .flux_header, .flux.favorite.current > .flux_header:hover { + background: linear-gradient(to right, transparent 0, transparent 3px, var(--favorite-article-background-color-hover) 3px); +} + .flux_header { font-size: 0.8rem; border-top: 1px solid var(--border-color-grey-light); diff --git a/p/themes/Pafat/pafat.rtl.css b/p/themes/Pafat/pafat.rtl.css index 8f1de3b89..9a8d2c95c 100644 --- a/p/themes/Pafat/pafat.rtl.css +++ b/p/themes/Pafat/pafat.rtl.css @@ -834,6 +834,25 @@ a.signin { background-color: var(--background-color-favorite-hover); } +/* stylelint-disable-next-line no-duplicate-selectors */ +.flux.current { + border-right-width: 5px; + border-right-style: double; +} + +.flux.current > .flux_header { + background: linear-gradient(to left, transparent 0, transparent 3px, var(--background-color-hover) 3px); + margin-right: -3px; /* Compensate increased border-left-width */ +} + +.flux.not_read.current > .flux_header, .flux.not_read.current > .flux_header:hover { + background: linear-gradient(to left, transparent 0, transparent 3px, var(--unread-article-background-color-hover) 3px); +} + +.flux.favorite.current > .flux_header, .flux.favorite.current > .flux_header:hover { + background: linear-gradient(to left, transparent 0, transparent 3px, var(--favorite-article-background-color-hover) 3px); +} + .flux_header { font-size: 0.8rem; border-top: 1px solid var(--border-color-grey-light); diff --git a/p/themes/Swage/swage.css b/p/themes/Swage/swage.css index 4d03c5955..592f49167 100644 --- a/p/themes/Swage/swage.css +++ b/p/themes/Swage/swage.css @@ -995,8 +995,7 @@ main.post .drop-section li.item.feed a:hover .icon { clear: both; } - .flux_header:hover, - .current { + .flux_header:hover { background-color: var(--color-background-hover); &:not(.current):hover .item .title { @@ -1004,6 +1003,19 @@ main.post .drop-section li.item.feed a:hover .icon { } } + &.current { + border-left: 2px solid var(--color-background-alert-darker); + + .flux_header { + background-color: unset; + margin-left: -2px; /* Compensate increased border-left-width */ + } + + .flux_header:hover { + background: linear-gradient(to right, transparent 0, transparent 2px, var(--color-background-hover) 2px); + } + } + &.favorite:not(.current) { background-color: var(--color-background-stared); diff --git a/p/themes/Swage/swage.rtl.css b/p/themes/Swage/swage.rtl.css index f6b55232a..345622b82 100644 --- a/p/themes/Swage/swage.rtl.css +++ b/p/themes/Swage/swage.rtl.css @@ -995,8 +995,7 @@ main.post .drop-section li.item.feed a:hover .icon { clear: both; } - .flux_header:hover, - .current { + .flux_header:hover { background-color: var(--color-background-hover); &:not(.current):hover .item .title { @@ -1004,6 +1003,19 @@ main.post .drop-section li.item.feed a:hover .icon { } } + &.current { + border-right: 2px solid var(--color-background-alert-darker); + + .flux_header { + background-color: unset; + margin-right: -2px; /* Compensate increased border-left-width */ + } + + .flux_header:hover { + background: linear-gradient(to left, transparent 0, transparent 2px, var(--color-background-hover) 2px); + } + } + &.favorite:not(.current) { background-color: var(--color-background-stared); |
