diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-11 00:53:53 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-11 00:53:53 +0200 |
| commit | 876697bdff7e03d98a7a426895b4e5dcc07c5a88 (patch) | |
| tree | c467325da4bef60f8831324f2bd8dcec59aecfc3 /public | |
| parent | ab392d472c15eee3618cb7c02b2b4707151598b6 (diff) | |
Style admin pagination widget, add missing locale keys
Pagination had almost no styling, and its current-page selector never
matched will_paginate's actual markup. Added chip-style page links, a
solid current-page indicator, and distinct disabled states for
Previous/Next.
Previous/Next/gap rendered as empty, unlabeled elements --
will_paginate only ships English translations and this app defaults
to German. Added previous_label/next_label/page_gap to en.yml and
de.yml.
Diffstat (limited to 'public')
| -rw-r--r-- | public/stylesheets/admin.css | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 4723f50..28b8494 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css | |||
| @@ -240,12 +240,52 @@ span.warning a { | |||
| 240 | div.pagination { | 240 | div.pagination { |
| 241 | padding-top: 5px; | 241 | padding-top: 5px; |
| 242 | padding-bottom: 15px; | 242 | padding-bottom: 15px; |
| 243 | display: flex; | ||
| 244 | align-items: center; | ||
| 245 | gap: 0.35rem; | ||
| 246 | } | ||
| 247 | |||
| 248 | div.pagination a, | ||
| 249 | div.pagination em.current, | ||
| 250 | div.pagination span.gap { | ||
| 251 | display: inline-flex; | ||
| 252 | align-items: center; | ||
| 253 | justify-content: center; | ||
| 254 | min-width: 1.75rem; | ||
| 255 | height: 1.75rem; | ||
| 256 | padding: 0 0.4rem; | ||
| 257 | border-radius: 4px; | ||
| 258 | font-style: normal; | ||
| 259 | } | ||
| 260 | |||
| 261 | div.pagination a { | ||
| 262 | text-decoration: underline; | ||
| 263 | text-decoration-style: wavy; | ||
| 264 | text-decoration-color: #b0b0b0; | ||
| 265 | text-decoration-thickness: 1px; | ||
| 266 | text-underline-offset: 2px; | ||
| 243 | } | 267 | } |
| 244 | 268 | ||
| 245 | div.pagination span.current, div.pagination a:hover { | 269 | div.pagination a:hover { |
| 246 | color: #ff9600; | 270 | color: #ff9600; |
| 247 | } | 271 | } |
| 248 | 272 | ||
| 273 | div.pagination em.current { | ||
| 274 | background-color: #ff9600; | ||
| 275 | color: #ffffff; | ||
| 276 | font-weight: bold; | ||
| 277 | } | ||
| 278 | |||
| 279 | div.pagination span.gap { | ||
| 280 | color: #969696; | ||
| 281 | } | ||
| 282 | |||
| 283 | div.pagination .previous_page.disabled, | ||
| 284 | div.pagination .next_page.disabled { | ||
| 285 | color: #969696; | ||
| 286 | cursor: not-allowed; | ||
| 287 | } | ||
| 288 | |||
| 249 | /* ============================================================ | 289 | /* ============================================================ |
| 250 | Buttons | 290 | Buttons |
| 251 | ============================================================ */ | 291 | ============================================================ */ |
