Changeset 5e3be97 in Klonkt


Ignore:
Timestamp:
06/26/2026 01:56:02 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
1ecbf71
Parents:
9e5438e
Message:

style(fedi-tabs): full-width back button, centered tabs, no scrollbar (wrap)

Big full-width 'back to site' at the top; tabs centered and wrap onto multiple rows on
narrow screens instead of horizontal-scrolling (removes the scrollbar).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/fedi-tabs.ejs

    r9e5438e r5e3be97  
    2121<style>
    2222.fedi-bar { margin: 0 0 1.25rem; }
    23 .fedi-bar-back { margin: 0 0 1rem; }
    24 .fedi-tabs { display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
     23/* Big, full-width "back to site" button at the top of the Fediverse section. */
     24.fedi-bar-back { display: block; width: 100%; box-sizing: border-box; text-align: center; margin: 0 0 1rem; padding: .7rem 1rem; }
     25/* Tabs centered, wrap onto multiple rows on narrow screens (no scrollbar). */
     26.fedi-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .25rem;
    2527  border-bottom: 1px solid color-mix(in srgb, var(--ink, #000) 10%, transparent); }
    26 .fedi-tabs::-webkit-scrollbar { height: 4px; }
    27 .fedi-tab { flex: 0 0 auto; padding: .55rem .85rem; white-space: nowrap; text-decoration: none;
     28.fedi-tab { padding: .55rem .85rem; white-space: nowrap; text-decoration: none;
    2829  color: var(--ink-soft, #888); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
    2930.fedi-tab:hover { color: var(--ink, #000); }
     
    3132.fedi-tab-badge { display: inline-block; min-width: 1.15em; padding: 0 .3em; border-radius: 999px;
    3233  background: var(--accent, #e8b04b); color: #fff; font-size: .68rem; line-height: 1.5; text-align: center; vertical-align: middle; }
    33 @media (max-width: 520px) { .fedi-tab { padding: .55rem .7rem; font-size: .92rem; } }
     34@media (max-width: 520px) { .fedi-tab { padding: .55rem .6rem; font-size: .92rem; } }
    3435</style>
Note: See TracChangeset for help on using the changeset viewer.