From 230d11ba7aaadb957e2124426d3dffde2756c31b Mon Sep 17 00:00:00 2001 From: s1to Date: Sat, 1 Aug 2026 14:41:49 +0200 Subject: [PATCH] Clean up Oasis-Mobile-UX theme: cascade order, drop dead JS - Link the theme after mobile.css on mobile builds (OASIS_MOBILE=1) so it wins by cascade; removed ~420 !important, keeping only the few that override epsylon's inline styles. - Reveal the quick bar without !important: the inline display:none is emitted only on desktop. - Remove unused oasis-mobile-nav.js (it was never linked and would be blocked by CSP script-src 'none' on clearnet). - epsylon's mobile.css and OasisMobile.css left untouched. --- src/client/assets/themes/OasisMobileUX.css | 854 ++++++++++----------- src/client/public/js/oasis-mobile-nav.js | 36 - src/views/main_views.js | 14 +- 3 files changed, 436 insertions(+), 468 deletions(-) delete mode 100644 src/client/public/js/oasis-mobile-nav.js diff --git a/src/client/assets/themes/OasisMobileUX.css b/src/client/assets/themes/OasisMobileUX.css index 9aaf186..b412861 100644 --- a/src/client/assets/themes/OasisMobileUX.css +++ b/src/client/assets/themes/OasisMobileUX.css @@ -1,94 +1,94 @@ -html { overflow-x: clip !important; overflow-y: visible !important; height: auto !important; } -body { overflow-x: clip !important; overflow-y: visible !important; } +html { overflow-x: clip; overflow-y: visible; height: auto; } +body { overflow-x: clip; overflow-y: visible; } .oasis-bottombar { - display: flex !important; - position: fixed !important; - left: 0 !important; right: 0 !important; bottom: 0 !important; - z-index: 1000 !important; - justify-content: space-around !important; - align-items: center !important; - gap: 4px !important; - background: #1F1F1F !important; - border-top: 1px solid #333 !important; - padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)) !important; + display: flex; + position: fixed; + left: 0; right: 0; bottom: 0; + z-index: 1000; + justify-content: space-around; + align-items: center; + gap: 4px; + background: #1F1F1F; + border-top: 1px solid #333; + padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)); } .oasis-bottombar .bb-item { - position: relative !important; - display: flex !important; - flex-direction: column !important; - align-items: center !important; - gap: 3px !important; - flex: 1 1 0 !important; - min-width: 0 !important; - padding: 2px 0 !important; - text-decoration: none !important; + position: relative; + display: flex; + flex-direction: column; + align-items: center; + gap: 3px; + flex: 1 1 0; + min-width: 0; + padding: 2px 0; + text-decoration: none; } -.oasis-bottombar .bb-ico { font-size: 18px !important; line-height: 1 !important; color: #FFA500 !important; } -.oasis-bottombar .bb-lbl { font-size: 9px !important; color: #ccc !important; white-space: nowrap !important; } +.oasis-bottombar .bb-ico { font-size: 18px; line-height: 1; color: #FFA500; } +.oasis-bottombar .bb-lbl { font-size: 9px; color: #ccc; white-space: nowrap; } .oasis-bottombar .bb-badge { - position: absolute !important; - top: -4px !important; - left: calc(50% + 6px) !important; - min-width: 15px !important; height: 15px !important; - padding: 0 3px !important; - border-radius: 8px !important; - background: #FFA500 !important; - color: #121212 !important; - font-size: 9px !important; font-weight: bold !important; - display: flex !important; align-items: center !important; justify-content: center !important; + position: absolute; + top: -4px; + left: calc(50% + 6px); + min-width: 15px; height: 15px; + padding: 0 3px; + border-radius: 8px; + background: #FFA500; + color: #121212; + font-size: 9px; font-weight: bold; + display: flex; align-items: center; justify-content: center; } -body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; } +body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } .oasis-mobile-topbar { - display: flex !important; - align-items: center !important; - justify-content: space-between !important; - width: 100% !important; - padding: 8px 12px !important; - background: transparent !important; - box-shadow: none !important; border: 0 !important; + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + padding: 8px 12px; + background: transparent; + box-shadow: none; border: 0; } .oasis-mobile-topbar .omt-logo img, .oasis-mobile-topbar .omt-avatar img { - width: 32px !important; height: 32px !important; - border-radius: 50% !important; - border: 2px solid #FFA500 !important; - object-fit: cover !important; display: block !important; + width: 32px; height: 32px; + border-radius: 50%; + border: 2px solid #FFA500; + object-fit: cover; display: block; } .oasis-mobile-topbar .omt-title { - flex: 1 1 auto !important; - text-align: center !important; - font-size: 26px !important; font-weight: bold !important; - letter-spacing: 10px !important; text-indent: 10px !important; - color: #FFD700 !important; text-decoration: none !important; - white-space: nowrap !important; - background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; + flex: 1 1 auto; + text-align: center; + font-size: 26px; font-weight: bold; + letter-spacing: 10px; text-indent: 10px; + color: #FFD700; text-decoration: none; + white-space: nowrap; + background: transparent; border: 0; box-shadow: none; padding: 0; } -.header .top-bar-left > a.logo-icon { display: none !important; } +.header .top-bar-left > a.logo-icon { display: none; } -.oasis-mobile-menus { display: flex !important; gap: 8px !important; padding: 0 10px 6px !important; } -.oasis-mobile-menus .oasis-menu-ico { display: none !important; } +.oasis-mobile-menus { display: flex; gap: 8px; padding: 0 10px 6px; } +.oasis-mobile-menus .oasis-menu-ico { display: none; } .oasis-mobile-menus .oasis-menu-btn { - flex: 1 1 0 !important; - display: flex !important; align-items: center !important; justify-content: center !important; - padding: 12px !important; - border: 1.5px solid #333 !important; border-radius: 10px !important; - background: #121212 !important; color: #ccc !important; - font-weight: bold !important; letter-spacing: 1px !important; cursor: pointer !important; + flex: 1 1 0; + display: flex; align-items: center; justify-content: center; + padding: 12px; + border: 1.5px solid #333; border-radius: 10px; + background: #121212; color: #ccc; + font-weight: bold; letter-spacing: 1px; cursor: pointer; } #nav-left-toggle:checked ~ .header .oasis-menu-btn[for="nav-left-toggle"] { - background: #FFA500 !important; color: #121212 !important; border-color: #FFA500 !important; + background: #FFA500; color: #121212; border-color: #FFA500; } #nav-right-toggle:checked ~ .header .oasis-menu-btn[for="nav-right-toggle"] { - background: #FFD700 !important; color: #121212 !important; border-color: #FFD700 !important; + background: #FFD700; color: #121212; border-color: #FFD700; } :root { @@ -99,158 +99,158 @@ body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; } .oasis-bottombar .bb-fab .bb-ico { - width: 46px !important; height: 46px !important; - margin-top: -22px !important; - border-radius: 50% !important; - background: #FFA500 !important; color: #121212 !important; - display: flex !important; align-items: center !important; justify-content: center !important; - font-size: 22px !important; - box-shadow: 0 2px 8px rgba(0,0,0,.4) !important; + width: 46px; height: 46px; + margin-top: -22px; + border-radius: 50%; + background: #FFA500; color: #121212; + display: flex; align-items: center; justify-content: center; + font-size: 22px; + box-shadow: 0 2px 8px rgba(0,0,0,.4); } -.oasis-bottombar .bb-fab .bb-lbl { color: #FFA500 !important; font-weight: bold !important; } +.oasis-bottombar .bb-fab .bb-lbl { color: #FFA500; font-weight: bold; } .main-column, .main-column p, .main-column li, .main-column a, .main-column span, .main-column td, .main-column h1, .main-column h2, .main-column h3 { - overflow-wrap: anywhere !important; - word-break: break-word !important; + overflow-wrap: anywhere; + word-break: break-word; } -.main-column { padding: var(--space-3) !important; } -.main-column p { line-height: var(--lh-body) !important; } +.main-column { padding: var(--space-3); } +.main-column p { line-height: var(--lh-body); } -.main-column > * + * { margin-top: var(--space-3) !important; } +.main-column > * + * { margin-top: var(--space-3); } .main-column img, .main-column video, .main-column table, .main-column pre, .main-column iframe { - max-width: 100% !important; height: auto !important; + max-width: 100%; height: auto; } -.main-column pre { white-space: pre-wrap !important; } +.main-column pre { white-space: pre-wrap; } .oasis-nav-group { - list-style: none !important; - background: #1c1c1c !important; - border: 1px solid #333 !important; - border-radius: var(--radius-md) !important; - overflow: hidden !important; - margin-bottom: var(--space-2) !important; + list-style: none; + background: #1c1c1c; + border: 1px solid #333; + border-radius: var(--radius-md); + overflow: hidden; + margin-bottom: var(--space-2); } .oasis-nav-header { - display: flex !important; align-items: center !important; gap: var(--space-2) !important; - min-height: 48px !important; padding: 0 var(--space-3) !important; - cursor: pointer !important; - color: #FFD700 !important; font-weight: bold !important; - text-transform: uppercase !important; letter-spacing: .04em !important; - font-size: var(--fs-caption) !important; + display: flex; align-items: center; gap: var(--space-2); + min-height: 48px; padding: 0 var(--space-3); + cursor: pointer; + color: #FFD700; font-weight: bold; + text-transform: uppercase; letter-spacing: .04em; + font-size: var(--fs-caption); } -.oasis-nav-header .nav-text { flex: 1 1 auto !important; } -.oasis-nav-header .oasis-nav-arrow { color: var(--c-muted) !important; transition: transform 150ms ease !important; } -.oasis-nav-toggle:checked + .oasis-nav-header .oasis-nav-arrow { transform: rotate(180deg) !important; } -.oasis-nav-header:active { background: #262626 !important; } -.oasis-nav-list { list-style: none !important; padding: 0 !important; margin: 0 !important; } +.oasis-nav-header .nav-text { flex: 1 1 auto; } +.oasis-nav-header .oasis-nav-arrow { color: var(--c-muted); transition: transform 150ms ease; } +.oasis-nav-toggle:checked + .oasis-nav-header .oasis-nav-arrow { transform: rotate(180deg); } +.oasis-nav-header:active { background: #262626; } +.oasis-nav-list { list-style: none; padding: 0; margin: 0; } .oasis-nav-list li a { - display: flex !important; align-items: center !important; gap: var(--space-3) !important; - min-height: 48px !important; padding: 0 var(--space-3) !important; - color: #e8e8e8 !important; text-decoration: none !important; - border-top: 1px solid #262626 !important; + display: flex; align-items: center; gap: var(--space-3); + min-height: 48px; padding: 0 var(--space-3); + color: #e8e8e8; text-decoration: none; + border-top: 1px solid #262626; } -.oasis-nav-list li a .emoji { flex: 0 0 auto !important; width: 22px !important; text-align: center !important; color: #FFA500 !important; } -.oasis-nav-list li a .nav-text { font-size: var(--fs-body) !important; } -.oasis-nav-list li a:active { background: #262626 !important; } -.oasis-nav-list li a.current { color: #FFA500 !important; font-weight: bold !important; } +.oasis-nav-list li a .emoji { flex: 0 0 auto; width: 22px; text-align: center; color: #FFA500; } +.oasis-nav-list li a .nav-text { font-size: var(--fs-body); } +.oasis-nav-list li a:active { background: #262626; } +.oasis-nav-list li a.current { color: #FFA500; font-weight: bold; } -.main-column h1 { font-size: var(--fs-title) !important; font-weight: 700 !important; line-height: 1.25 !important; margin: 0 0 var(--space-2) !important; } -.main-column h2 { font-size: 18px !important; font-weight: 700 !important; line-height: 1.3 !important; margin: 0 0 var(--space-2) !important; } -.main-column h3 { font-size: var(--fs-body-lg) !important; font-weight: 600 !important; margin: 0 0 var(--space-1) !important; } -.main-column p { font-size: var(--fs-body-lg) !important; } +.main-column h1 { font-size: var(--fs-title); font-weight: 700; line-height: 1.25; margin: 0 0 var(--space-2); } +.main-column h2 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 var(--space-2); } +.main-column h3 { font-size: var(--fs-body-lg); font-weight: 600; margin: 0 0 var(--space-1); } +.main-column p { font-size: var(--fs-body-lg); } .main-column .created-at, .main-column .small, .main-column .time, .main-column .meta, .main-column .author-meta, .main-column .subtitle { - color: var(--c-muted) !important; font-size: var(--fs-caption) !important; + color: var(--c-muted); font-size: var(--fs-caption); } .main-column article, .main-column [class*="-card"] { - background: #1c1c1c !important; - border: 1px solid #333 !important; - border-radius: var(--radius-md) !important; - padding: var(--space-3) !important; + background: #1c1c1c; + border: 1px solid #333; + border-radius: var(--radius-md); + padding: var(--space-3); } .main-column article:active, -.main-column [class*="-card"]:active { background: #202020 !important; } +.main-column [class*="-card"]:active { background: #202020; } .btn, button, input[type="submit"], input[type="button"], .submit-button, .filter-btn, .create-button, .edit-btn, .delete-btn, .join-btn, .leave-btn, .buy-btn { - min-height: 48px !important; + min-height: 48px; } button:active, input[type="submit"]:active, .submit-button:active, .filter-btn:active, .create-button:active, .edit-btn:active, .delete-btn:active, .join-btn:active, .leave-btn:active, .buy-btn:active { - filter: brightness(.85) !important; + filter: brightness(.85); } -.main-column a:active { opacity: .6 !important; } +.main-column a:active { opacity: .6; } -* { -webkit-tap-highlight-color: transparent !important; } +* { -webkit-tap-highlight-color: transparent; } a, button, label, .tap, .oasis-menu-btn, .bb-item, .oasis-nav-header, .oasis-nav-list li a { - touch-action: manipulation !important; + touch-action: manipulation; } -body { overscroll-behavior: none !important; } +body { overscroll-behavior: none; } .main-content, .main-column, .header, -.sidebar-left, .sidebar-right { overflow: visible !important; } +.sidebar-left, .sidebar-right { overflow: visible; } -.sidebar-left, .sidebar-right { display: none !important; } -#nav-left-toggle:checked ~ .main-content .sidebar-left { display: block !important; } -#nav-right-toggle:checked ~ .main-content .sidebar-right { display: block !important; } +.sidebar-left, .sidebar-right { display: none; } +#nav-left-toggle:checked ~ .main-content .sidebar-left { display: block; } +#nav-right-toggle:checked ~ .main-content .sidebar-right { display: block; } -.bb-manage { margin: 8px 0 16px !important; } +.bb-manage { margin: 8px 0 16px; } .bb-manage h3, .bb-manage-add h3 { - font-size: 13px !important; text-transform: uppercase !important; letter-spacing: .05em !important; - color: #FFA500 !important; margin: 14px 0 8px !important; + font-size: 13px; text-transform: uppercase; letter-spacing: .05em; + color: #FFA500; margin: 14px 0 8px; } -.bb-manage-list { display: flex !important; flex-direction: column !important; gap: 8px !important; } -.bb-manage-form { margin: 0 !important; width: 100% !important; } +.bb-manage-list { display: flex; flex-direction: column; gap: 8px; } +.bb-manage-form { margin: 0; width: 100%; } .bb-manage-btn { - width: 100% !important; - display: flex !important; align-items: center !important; gap: 12px !important; - min-height: 52px !important; padding: 0 14px !important; - background: #1c1c1c !important; border: 1px solid #333 !important; border-radius: 10px !important; - color: #eee !important; cursor: pointer !important; text-align: left !important; + width: 100%; + display: flex; align-items: center; gap: 12px; + min-height: 52px; padding: 0 14px; + background: #1c1c1c; border: 1px solid #333; border-radius: 10px; + color: #eee; cursor: pointer; text-align: left; } -.bb-manage-ico { font-size: 20px !important; color: #FFA500 !important; width: 26px !important; text-align: center !important; } -.bb-manage-lbl { flex: 1 1 auto !important; font-size: 15px !important; } -.bb-manage-x { font-size: 16px !important; color: #ff6b6b !important; font-weight: bold !important; } -.bb-manage-empty, .bb-manage-full { color: #999 !important; font-size: 14px !important; padding: 8px 2px !important; } +.bb-manage-ico { font-size: 20px; color: #FFA500; width: 26px; text-align: center; } +.bb-manage-lbl { flex: 1 1 auto; font-size: 15px; } +.bb-manage-x { font-size: 16px; color: #ff6b6b; font-weight: bold; } +.bb-manage-empty, .bb-manage-full { color: #999; font-size: 14px; padding: 8px 2px; } .bb-manage-done { - display: block !important; text-align: center !important; - margin-top: 16px !important; min-height: 48px !important; line-height: 48px !important; + display: block; text-align: center; + margin-top: 16px; min-height: 48px; line-height: 48px; } -.hive-nav { --hx: min(64px, calc((100vw - 40px) / 4)); --hxm: min(58px, calc((100vw - 36px) / 5)); margin: 8px 0 16px !important; overflow: visible !important; background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; } -.hive-radio { position: absolute !important; opacity: 0 !important; width: 0 !important; height: 0 !important; pointer-events: none !important; } -.hive-grid { display: flex !important; flex-direction: column !important; align-items: center !important; overflow: visible !important; background: transparent !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; } -.hive-row { display: flex !important; justify-content: center !important; gap: 3px !important; overflow: visible !important; background: transparent !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; } -.hive-cats .hive-row + .hive-row { margin-top: calc(var(--hx) * -0.30) !important; } +.hive-nav { --hx: min(64px, calc((100vw - 40px) / 4)); --hxm: min(58px, calc((100vw - 36px) / 5)); margin: 8px 0 16px; overflow: visible; background: transparent; padding: 0; border: 0; box-shadow: none; } +.hive-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; } +.hive-grid { display: flex; flex-direction: column; align-items: center; overflow: visible; background: transparent; padding: 0; margin: 0; box-shadow: none; } +.hive-row { display: flex; justify-content: center; gap: 3px; overflow: visible; background: transparent; padding: 0; margin: 0; box-shadow: none; } +.hive-cats .hive-row + .hive-row { margin-top: calc(var(--hx) * -0.30); } .hex-cat, .hex-mod { - position: relative !important; - -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important; - clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important; - display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; - text-decoration: none !important; cursor: pointer !important; box-sizing: border-box !important; - background: #D9A400 !important; - filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)) !important; + position: relative; + -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); + clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); + display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; + text-decoration: none; cursor: pointer; box-sizing: border-box; + background: #D9A400; + filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); } .hex-cat::before, .hex-mod::before { - content: '' !important; position: absolute !important; inset: 1.5px !important; z-index: 0 !important; - -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important; - clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important; - background: #161616 !important; + content: ''; position: absolute; inset: 1.5px; z-index: 0; + -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); + clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); + background: #161616; } -.hex-cat { width: var(--hx) !important; height: calc(var(--hx) * 1.15) !important; } -.hex-mod { width: var(--hxm) !important; height: calc(var(--hxm) * 1.15) !important; } -.hex-cat .hx-ico, .hex-mod .hx-ico { color: #FFA500 !important; line-height: 1 !important; position: relative !important; z-index: 1 !important; } -.hex-cat .hx-ico { font-size: 17px !important; } -.hex-mod .hx-ico { font-size: 16px !important; } -.hex-cat .hx-lbl, .hex-mod .hx-lbl { color: #d8d8d8 !important; text-align: center !important; line-height: 1 !important; font-weight: bold !important; overflow: hidden !important; position: relative !important; z-index: 1 !important; } -.hex-cat .hx-lbl { font-size: 8px !important; max-width: 88% !important; } -.hex-mod .hx-lbl { font-size: 8px !important; max-width: 92% !important; } -.hex-cat:active::before, .hex-mod:active::before { background: #242424 !important; } +.hex-cat { width: var(--hx); height: calc(var(--hx) * 1.15); } +.hex-mod { width: var(--hxm); height: calc(var(--hxm) * 1.15); } +.hex-cat .hx-ico, .hex-mod .hx-ico { color: #FFA500; line-height: 1; position: relative; z-index: 1; } +.hex-cat .hx-ico { font-size: 17px; } +.hex-mod .hx-ico { font-size: 16px; } +.hex-cat .hx-lbl, .hex-mod .hx-lbl { color: #d8d8d8; text-align: center; line-height: 1; font-weight: bold; overflow: hidden; position: relative; z-index: 1; } +.hex-cat .hx-lbl { font-size: 8px; max-width: 88%; } +.hex-mod .hx-lbl { font-size: 8px; max-width: 92%; } +.hex-cat:active::before, .hex-mod:active::before { background: #242424; } #hive-personal:checked ~ .hive-grid .hex-cat[for="hive-personal"], #hive-governance:checked ~ .hive-grid .hex-cat[for="hive-governance"], #hive-office:checked ~ .hive-grid .hex-cat[for="hive-office"], @@ -260,7 +260,7 @@ body { overscroll-behavior: none !important; } #hive-blogs:checked ~ .hive-grid .hex-cat[for="hive-blogs"], #hive-creative:checked ~ .hive-grid .hex-cat[for="hive-creative"], #hive-media:checked ~ .hive-grid .hex-cat[for="hive-media"], -#hive-fediverse:checked ~ .hive-grid .hex-cat[for="hive-fediverse"] { background: #FFA500 !important; } +#hive-fediverse:checked ~ .hive-grid .hex-cat[for="hive-fediverse"] { background: #FFA500; } #hive-personal:checked ~ .hive-grid .hex-cat[for="hive-personal"]::before, #hive-governance:checked ~ .hive-grid .hex-cat[for="hive-governance"]::before, #hive-office:checked ~ .hive-grid .hex-cat[for="hive-office"]::before, @@ -270,7 +270,7 @@ body { overscroll-behavior: none !important; } #hive-blogs:checked ~ .hive-grid .hex-cat[for="hive-blogs"]::before, #hive-creative:checked ~ .hive-grid .hex-cat[for="hive-creative"]::before, #hive-media:checked ~ .hive-grid .hex-cat[for="hive-media"]::before, -#hive-fediverse:checked ~ .hive-grid .hex-cat[for="hive-fediverse"]::before { background: #FFA500 !important; } +#hive-fediverse:checked ~ .hive-grid .hex-cat[for="hive-fediverse"]::before { background: #FFA500; } #hive-personal:checked ~ .hive-grid .hex-cat[for="hive-personal"] :is(.hx-ico,.hx-lbl), #hive-governance:checked ~ .hive-grid .hex-cat[for="hive-governance"] :is(.hx-ico,.hx-lbl), #hive-office:checked ~ .hive-grid .hex-cat[for="hive-office"] :is(.hx-ico,.hx-lbl), @@ -280,8 +280,8 @@ body { overscroll-behavior: none !important; } #hive-blogs:checked ~ .hive-grid .hex-cat[for="hive-blogs"] :is(.hx-ico,.hx-lbl), #hive-creative:checked ~ .hive-grid .hex-cat[for="hive-creative"] :is(.hx-ico,.hx-lbl), #hive-media:checked ~ .hive-grid .hex-cat[for="hive-media"] :is(.hx-ico,.hx-lbl), -#hive-fediverse:checked ~ .hive-grid .hex-cat[for="hive-fediverse"] :is(.hx-ico,.hx-lbl) { color: #121212 !important; } -.hive-panel { display: none !important; margin: 12px auto 0 !important; max-width: 340px !important; background: #101010 !important; border: 1px solid #242424 !important; border-radius: 16px !important; padding: 12px 8px !important; overflow: visible !important; box-shadow: none !important; } +#hive-fediverse:checked ~ .hive-grid .hex-cat[for="hive-fediverse"] :is(.hx-ico,.hx-lbl) { color: #121212; } +.hive-panel { display: none; margin: 12px auto 0; max-width: 340px; background: #101010; border: 1px solid #242424; border-radius: 16px; padding: 12px 8px; overflow: visible; box-shadow: none; } #hive-personal:checked ~ #hive-panel-personal, #hive-governance:checked ~ #hive-panel-governance, #hive-office:checked ~ #hive-panel-office, @@ -291,31 +291,31 @@ body { overscroll-behavior: none !important; } #hive-blogs:checked ~ #hive-panel-blogs, #hive-creative:checked ~ #hive-panel-creative, #hive-media:checked ~ #hive-panel-media, -#hive-fediverse:checked ~ #hive-panel-fediverse { display: block !important; } -.hive-mods { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 4px !important; margin: 0 !important; padding: 0 !important; background: transparent !important; overflow: visible !important; } +#hive-fediverse:checked ~ #hive-panel-fediverse { display: block; } +.hive-mods { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; background: transparent; overflow: visible; } .header .top-bar-left nav, -.header .top-bar-right nav { display: none !important; } +.header .top-bar-right nav { display: none; } -.oasis-mobile-topbar { padding-top: calc(env(safe-area-inset-top, 0px) + 10px) !important; } +.oasis-mobile-topbar { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); } .oasis-bottombar .bb-pair { - display: flex !important; align-items: center !important; - flex: 0 0 auto !important; - gap: 2px !important; padding: 3px !important; - background: #262626 !important; - border: 1px solid #3a3a3a !important; - border-radius: 999px !important; + display: flex; align-items: center; + flex: 0 0 auto; + gap: 2px; padding: 3px; + background: #262626; + border: 1px solid #3a3a3a; + border-radius: 999px; } -.oasis-bottombar .bb-pair .bb-item { flex: 0 0 auto !important; padding: 2px 8px !important; } -.oasis-bottombar .bb-pair .bb-lbl { font-size: 8px !important; } +.oasis-bottombar .bb-pair .bb-item { flex: 0 0 auto; padding: 2px 8px; } +.oasis-bottombar .bb-pair .bb-lbl { font-size: 8px; } .oasis-bottombar a.bb-item.current .bb-ico { - background: #FFA500 !important; color: #121212 !important; - border-radius: 999px !important; padding: 4px 12px !important; + background: #FFA500; color: #121212; + border-radius: 999px; padding: 4px 12px; } -.oasis-bottombar a.bb-item.current .bb-lbl { color: #FFA500 !important; font-weight: bold !important; } -.oasis-bottombar a.bb-item.current .bb-badge { background: #121212 !important; color: #FFA500 !important; } +.oasis-bottombar a.bb-item.current .bb-lbl { color: #FFA500; font-weight: bold; } +.oasis-bottombar a.bb-item.current .bb-badge { background: #121212; color: #FFA500; } .main-column, .main-column p, .main-column li, .main-column a, .main-column span, .main-column td, .main-column th, .main-column label, @@ -325,10 +325,10 @@ body { overscroll-behavior: none !important; } .feed-row .small, .feed-row .time, .feed-row .created-at, .profile-sensors-box > *, .card-field .card-value, .card-field .card-label { - overflow-wrap: break-word !important; - word-break: normal !important; - -webkit-hyphens: none !important; - hyphens: none !important; + overflow-wrap: break-word; + word-break: normal; + -webkit-hyphens: none; + hyphens: none; } .main-column pre, .main-column code, kbd, samp, @@ -338,8 +338,8 @@ body { overscroll-behavior: none !important; } .pm-info-table td .user-link, .main-column a[href*="ed25519"], .main-column a[href^="ssb:"], .main-column a[href^="/author/"] { - overflow-wrap: anywhere !important; - word-break: break-all !important; + overflow-wrap: anywhere; + word-break: break-all; } button, input[type="submit"], input[type="button"], @@ -349,285 +349,285 @@ button, input[type="submit"], input[type="button"], .mode-buttons button, .mode-buttons .filter-btn, .filter-group button, .filter-group .filter-btn, .main-column button, .main-column input[type="submit"] { - white-space: normal !important; - word-break: normal !important; - overflow-wrap: break-word !important; - -webkit-hyphens: none !important; - hyphens: none !important; + white-space: normal; + word-break: normal; + overflow-wrap: break-word; + -webkit-hyphens: none; + hyphens: none; } .conn-actions, .peers-conn-actions { - display: flex !important; - flex-direction: row !important; - flex-wrap: wrap !important; - justify-content: center !important; - align-items: stretch !important; - gap: 8px !important; - width: 100% !important; - max-width: 100% !important; - overflow-x: hidden !important; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + align-items: stretch; + gap: 8px; + width: 100%; + max-width: 100%; + overflow-x: hidden; } .conn-actions > form, .peers-conn-actions > form { - flex: 0 1 auto !important; - width: auto !important; - min-width: 0 !important; - margin: 0 !important; - display: flex !important; + flex: 0 1 auto; + width: auto; + min-width: 0; + margin: 0; + display: flex; } .pm-info-table, .pm-info-table tbody, .block-info-table, .block-info-table tbody { - display: block !important; - width: 100% !important; - max-width: 100% !important; - border: 0 !important; - background: transparent !important; - box-shadow: none !important; - table-layout: auto !important; + display: block; + width: 100%; + max-width: 100%; + border: 0; + background: transparent; + box-shadow: none; + table-layout: auto; } -.pm-info-table thead, .block-info-table thead { display: none !important; } +.pm-info-table thead, .block-info-table thead { display: none; } .pm-info-table tr, .block-info-table tr { - display: block !important; - width: 100% !important; - box-sizing: border-box !important; - border: 0 !important; - border-bottom: 1px solid rgba(255,165,0,0.18) !important; - border-radius: 0 !important; - margin: 0 0 8px 0 !important; - padding: 6px 0 !important; - background: transparent !important; + display: block; + width: 100%; + box-sizing: border-box; + border: 0; + border-bottom: 1px solid rgba(255,165,0,0.18); + border-radius: 0; + margin: 0 0 8px 0; + padding: 6px 0; + background: transparent; } .pm-info-table td, .block-info-table td { - display: block !important; - width: 100% !important; - max-width: 100% !important; - box-sizing: border-box !important; - border: 0 !important; - background: transparent !important; - padding: 1px 0 !important; - text-align: left !important; - overflow-wrap: break-word !important; - word-break: normal !important; + display: block; + width: 100%; + max-width: 100%; + box-sizing: border-box; + border: 0; + background: transparent; + padding: 1px 0; + text-align: left; + overflow-wrap: break-word; + word-break: normal; } .pm-info-table td.card-label, .block-info-table td.card-label { - color: var(--c-muted, #8c8c8c) !important; - font-size: 11px !important; - font-weight: 700 !important; - text-transform: uppercase !important; - letter-spacing: .03em !important; - margin-bottom: 2px !important; - padding-bottom: 0 !important; + color: var(--c-muted, #8c8c8c); + font-size: 11px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: .03em; + margin-bottom: 2px; + padding-bottom: 0; } .pm-info-table td.card-value, .block-info-table td.card-value { - font-size: 15px !important; - line-height: 1.5 !important; - margin-bottom: 6px !important; + font-size: 15px; + line-height: 1.5; + margin-bottom: 6px; } -.block-info-table tr:first-child:has(> td.card-label) { display: none !important; } +.block-info-table tr:first-child:has(> td.card-label) { display: none; } .block-info-table td[data-label]:not([data-label=""])::before { content: attr(data-label); - display: block !important; - color: var(--c-muted, #8c8c8c) !important; - font-size: 10px !important; - font-weight: 700 !important; - text-transform: uppercase !important; - letter-spacing: .03em !important; - margin-bottom: 1px !important; - white-space: nowrap !important; - word-break: normal !important; + display: block; + color: var(--c-muted, #8c8c8c); + font-size: 10px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: .03em; + margin-bottom: 1px; + white-space: nowrap; + word-break: normal; } -.block-info-table td[data-label=""]::before { content: none !important; } +.block-info-table td[data-label=""]::before { content: none; } .peers-list .block-info-table td, .peers-technical-block .block-info-table td, .gov-overview tbody td { - word-break: normal !important; - overflow-wrap: break-word !important; + word-break: normal; + overflow-wrap: break-word; } .pm-info-table td .user-link, .pm-info-table td .peer-key, .pm-info-table td a[href], .block-info-table td .peer-key, .block-info-table td .user-link, .block-info-table td a[href] { - display: inline-block !important; - max-width: 100% !important; - overflow-wrap: anywhere !important; - word-break: break-all !important; + display: inline-block; + max-width: 100%; + overflow-wrap: anywhere; + word-break: break-all; } .pm-info-table td form, .block-info-table td form, .pm-info-table td button, .block-info-table td button { - width: 100% !important; - margin: 0 !important; + width: 100%; + margin: 0; } -.main-content { width: 100% !important; max-width: 100% !important; } +.main-content { width: 100%; max-width: 100%; } .main-column { - width: 100% !important; max-width: 100% !important; - padding: 16px !important; box-sizing: border-box !important; + width: 100%; max-width: 100%; + padding: 16px; box-sizing: border-box; } .main-column .card-field { - flex-direction: column !important; - align-items: stretch !important; - gap: 2px !important; + flex-direction: column; + align-items: stretch; + gap: 2px; } .main-column .card-field .card-value { - width: 100% !important; max-width: 100% !important; font-size: 15px !important; + width: 100%; max-width: 100%; font-size: 15px; } .main-column .card-field .card-label { - color: var(--c-muted, #8c8c8c) !important; font-size: 11px !important; + color: var(--c-muted, #8c8c8c); font-size: 11px; } .main-column img, .main-column video, .main-column iframe, .main-column canvas { - max-width: 100% !important; height: auto !important; + max-width: 100%; height: auto; } .main-column hr { - width: 100% !important; border: 0 !important; - border-top: 1px solid #333 !important; margin: 16px 0 !important; + width: 100%; border: 0; + border-top: 1px solid #333; margin: 16px 0; } -.activity-filter-acc { width: 100% !important; margin-bottom: 8px !important; } +.activity-filter-acc { width: 100%; margin-bottom: 8px; } .activity-quick-modes { - display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; margin-bottom: 8px !important; + display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 8px; } -.activity-quick-modes form { flex: 1 1 0 !important; min-width: 0 !important; margin: 0 !important; display: flex !important; } +.activity-quick-modes form { flex: 1 1 0; min-width: 0; margin: 0; display: flex; } .activity-quick-modes .filter-btn { - flex: 1 1 0 !important; width: 100% !important; min-height: 44px !important; - white-space: nowrap !important; word-break: keep-all !important; overflow-wrap: normal !important; - padding-left: 6px !important; padding-right: 6px !important; font-size: 14px !important; + flex: 1 1 0; width: 100%; min-height: 44px; + white-space: nowrap; word-break: keep-all; overflow-wrap: normal; + padding-left: 6px; padding-right: 6px; font-size: 14px; } -.activity-groups { list-style: none !important; padding: 0 !important; margin: 0 !important; } +.activity-groups { list-style: none; padding: 0; margin: 0; } -.activity-groups .oasis-nav-header .emoji { display: none !important; } -.activity-groups .oasis-nav-header .nav-text { flex: 1 1 auto !important; } +.activity-groups .oasis-nav-header .emoji { display: none; } +.activity-groups .oasis-nav-header .nav-text { flex: 1 1 auto; } .activity-groups .act-count { - flex: 0 0 auto !important; min-width: 20px !important; text-align: center !important; - font-size: 11px !important; font-weight: 700 !important; color: #121212 !important; - background: #FFA500 !important; border-radius: 999px !important; padding: 1px 7px !important; - margin: 0 8px 0 0 !important; + flex: 0 0 auto; min-width: 20px; text-align: center; + font-size: 11px; font-weight: 700; color: #121212; + background: #FFA500; border-radius: 999px; padding: 1px 7px; + margin: 0 8px 0 0; } -.activity-groups .oasis-nav-list li { list-style: none !important; margin: 0 !important; padding: 0 !important; } -.activity-groups .oasis-nav-list form { margin: 0 !important; display: block !important; width: 100% !important; } +.activity-groups .oasis-nav-list li { list-style: none; margin: 0; padding: 0; } +.activity-groups .oasis-nav-list form { margin: 0; display: block; width: 100%; } .activity-groups .oasis-nav-list .filter-btn { - display: block !important; width: 100% !important; text-align: left !important; - min-height: 44px !important; margin: 2px 0 !important; box-sizing: border-box !important; + display: block; width: 100%; text-align: left; + min-height: 44px; margin: 2px 0; box-sizing: border-box; } .activity-groups .oasis-nav-list .filter-btn.active { - outline: 2px solid #FFA500 !important; outline-offset: -2px !important; + outline: 2px solid #FFA500; outline-offset: -2px; } -.message-list { display: flex !important; flex-direction: column !important; gap: 4px !important; width: 100% !important; } -.message-list .pm-thread { display: flex !important; flex-direction: column !important; width: 100% !important; align-self: stretch !important; } -.pm-thread-replies { display: flex !important; flex-direction: column !important; gap: 4px !important; } +.message-list { display: flex; flex-direction: column; gap: 4px; width: 100%; } +.message-list .pm-thread { display: flex; flex-direction: column; width: 100%; align-self: stretch; } +.pm-thread-replies { display: flex; flex-direction: column; gap: 4px; } .pm-card.pm-bubble { - max-width: 82% !important; width: fit-content !important; min-width: 0 !important; - box-sizing: border-box !important; padding: 8px 12px !important; margin: 2px 0 !important; - border-radius: 16px !important; border: 1px solid #333 !important; - background: #1e1e1e !important; box-shadow: none !important; cursor: default !important; + max-width: 82%; width: fit-content; min-width: 0; + box-sizing: border-box; padding: 8px 12px; margin: 2px 0; + border-radius: 16px; border: 1px solid #333; + background: #1e1e1e; box-shadow: none; cursor: default; } .pm-card.pm-bubble.pm-recv { - align-self: flex-start !important; margin-left: 0 !important; margin-right: auto !important; - border-bottom-left-radius: 4px !important; background: #1e1e1e !important; border-color: #343434 !important; + align-self: flex-start; margin-left: 0; margin-right: auto; + border-bottom-left-radius: 4px; background: #1e1e1e; border-color: #343434; } .pm-card.pm-bubble.pm-sent { - align-self: flex-end !important; margin-left: auto !important; margin-right: 0 !important; - border-bottom-right-radius: 4px !important; background: #2a2413 !important; border-color: #5c4c1f !important; + align-self: flex-end; margin-left: auto; margin-right: 0; + border-bottom-right-radius: 4px; background: #2a2413; border-color: #5c4c1f; } -.pm-bubble .pm-bubble-sender { font-size: 11px !important; font-weight: 700 !important; color: #FFA500 !important; margin-bottom: 3px !important; } -.pm-bubble .pm-bubble-sender a { color: #FFA500 !important; } +.pm-bubble .pm-bubble-sender { font-size: 11px; font-weight: 700; color: #FFA500; margin-bottom: 3px; } +.pm-bubble .pm-bubble-sender a { color: #FFA500; } -.pm-bubble .message-text { font-size: 15px !important; line-height: 1.42 !important; color: #ececec !important; margin: 0 !important; } -.pm-bubble .message-text a { color: #FFD700 !important; } +.pm-bubble .message-text { font-size: 15px; line-height: 1.42; color: #ececec; margin: 0; } +.pm-bubble .message-text a { color: #FFD700; } .pm-bubble .pm-bubble-meta { - display: flex !important; flex-wrap: wrap !important; align-items: center !important; - gap: 6px !important; margin-top: 4px !important; font-size: 10px !important; color: var(--c-muted, #8c8c8c) !important; + display: flex; flex-wrap: wrap; align-items: center; + gap: 6px; margin-top: 4px; font-size: 10px; color: var(--c-muted, #8c8c8c); } -.pm-card.pm-sent .pm-bubble-meta { justify-content: flex-end !important; } -.pm-card.pm-recv .pm-bubble-meta { justify-content: flex-start !important; } -.pm-bubble .pm-bubble-subject { font-style: italic !important; opacity: .75 !important; max-width: 50% !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; } -.pm-bubble .pm-bubble-lock { opacity: .85 !important; } -.pm-bubble .pm-bubble-eco { font-size: 9px !important; opacity: .9 !important; } -.pm-bubble .pm-bubble-eco * { font-size: 9px !important; } +.pm-card.pm-sent .pm-bubble-meta { justify-content: flex-end; } +.pm-card.pm-recv .pm-bubble-meta { justify-content: flex-start; } +.pm-bubble .pm-bubble-subject { font-style: italic; opacity: .75; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.pm-bubble .pm-bubble-lock { opacity: .85; } +.pm-bubble .pm-bubble-eco { font-size: 9px; opacity: .9; } +.pm-bubble .pm-bubble-eco * { font-size: 9px; } -.pm-bubble .pm-actions { margin-top: 6px !important; display: flex !important; gap: 6px !important; } -.pm-card.pm-sent .pm-actions { justify-content: flex-end !important; } -.pm-bubble .pm-actions .pm-btn { font-size: 10px !important; padding: 3px 8px !important; min-height: 28px !important; } -.pm-bubble .pm-actions form { margin: 0 !important; } +.pm-bubble .pm-actions { margin-top: 6px; display: flex; gap: 6px; } +.pm-card.pm-sent .pm-actions { justify-content: flex-end; } +.pm-bubble .pm-actions .pm-btn { font-size: 10px; padding: 3px 8px; min-height: 28px; } +.pm-bubble .pm-actions form { margin: 0; } -.pm-bubble .pm-info-table { display: none !important; } +.pm-bubble .pm-info-table { display: none; } -.pm-thread .pm-thread-details { width: 100% !important; } -.pm-thread .pm-thread-toggle { font-size: 12px !important; color: var(--c-muted, #8c8c8c) !important; padding: 4px 0 !important; cursor: pointer !important; } +.pm-thread .pm-thread-details { width: 100%; } +.pm-thread .pm-thread-toggle { font-size: 12px; color: var(--c-muted, #8c8c8c); padding: 4px 0; cursor: pointer; } .main-column h1, .main-column h2, .main-column h3, .main-column h4, .tags-header h2, .tags-header h3, .title-with-chip h2, .pm-title, h2.pm-title, .cn-name, h1.cn-name, .cn-section, h2.cn-section, .profile-side-name, h2.profile-side-name { - text-wrap: balance !important; - overflow-wrap: break-word !important; - word-break: keep-all !important; - -webkit-hyphens: none !important; hyphens: none !important; - text-align: left !important; + text-wrap: balance; + overflow-wrap: break-word; + word-break: keep-all; + -webkit-hyphens: none; hyphens: none; + text-align: left; } .main-column h1, .tags-header h2, .cn-name { - font-size: var(--fs-title, 20px) !important; font-weight: 700 !important; - line-height: 1.22 !important; letter-spacing: -0.01em !important; - margin: 0 0 var(--space-2, 8px) !important; + font-size: var(--fs-title, 20px); font-weight: 700; + line-height: 1.22; letter-spacing: -0.01em; + margin: 0 0 var(--space-2, 8px); } .main-column h2, .pm-title, .title-with-chip h2, .cn-section { - font-size: 18px !important; font-weight: 700 !important; - line-height: 1.28 !important; margin: var(--space-1, 4px) 0 var(--space-2, 8px) !important; + font-size: 18px; font-weight: 700; + line-height: 1.28; margin: var(--space-1, 4px) 0 var(--space-2, 8px); } .main-column h3 { - font-size: var(--fs-body-lg, 16px) !important; font-weight: 600 !important; - line-height: 1.35 !important; margin: var(--space-1, 4px) 0 !important; + font-size: var(--fs-body-lg, 16px); font-weight: 600; + line-height: 1.35; margin: var(--space-1, 4px) 0; } .main-column h1, .main-column h2, .main-column h3, .tags-header h2, .pm-title, .cn-name, .cn-section { - max-width: 40ch !important; width: auto !important; min-width: 0 !important; + max-width: 40ch; width: auto; min-width: 0; } .main-column h1 code, .main-column h2 code, .main-column h3 code, .tags-header h2 code, .pm-title code, .main-column h1 a[href*="ed25519"], .main-column h2 a[href*="ed25519"], .main-column h1 a[href^="ssb:"], .main-column h2 a[href^="ssb:"] { - word-break: break-all !important; overflow-wrap: anywhere !important; + word-break: break-all; overflow-wrap: anywhere; } .main-column .tags-header { - display: flex !important; flex-direction: column !important; align-items: flex-start !important; - gap: var(--space-1, 4px) !important; width: 100% !important; max-width: 100% !important; - margin: 0 0 var(--space-2, 8px) !important; + display: flex; flex-direction: column; align-items: flex-start; + gap: var(--space-1, 4px); width: 100%; max-width: 100%; + margin: 0 0 var(--space-2, 8px); } -.main-column .tags-header h2 { margin: 0 !important; } +.main-column .tags-header h2 { margin: 0; } .main-column .title-with-chip { - display: flex !important; flex-wrap: wrap !important; align-items: center !important; - gap: var(--space-2, 8px) !important; width: 100% !important; max-width: 100% !important; + display: flex; flex-wrap: wrap; align-items: center; + gap: var(--space-2, 8px); width: 100%; max-width: 100%; } -.main-column .title-with-chip h2 { flex: 1 1 auto !important; min-width: 0 !important; margin: 0 !important; max-width: none !important; } -.main-column .title-with-chip > :not(h2) { flex: 0 0 auto !important; } +.main-column .title-with-chip h2 { flex: 1 1 auto; min-width: 0; margin: 0; max-width: none; } +.main-column .title-with-chip > :not(h2) { flex: 0 0 auto; } .main-column p, .main-column li, .tags-header p, .tags-header .prefs-help, .indexing-note, .indexing-percent, .error-page-message, .welcome-text, .message-text, .pm-bubble .message-text { - text-wrap: pretty !important; - line-height: 1.55 !important; - max-width: min(66ch, 100%) !important; - overflow-wrap: anywhere !important; - word-break: normal !important; - min-width: 0 !important; - -webkit-hyphens: none !important; hyphens: none !important; + text-wrap: pretty; + line-height: 1.55; + max-width: min(66ch, 100%); + overflow-wrap: anywhere; + word-break: normal; + min-width: 0; + -webkit-hyphens: none; hyphens: none; } -.main-column p + p { margin-top: var(--space-3, 16px) !important; } -.tags-header p, .tags-header .prefs-help, .indexing-note { line-height: 1.5 !important; margin: 4px 0 0 0 !important; } -.pm-bubble .message-text { line-height: 1.45 !important; max-width: 100% !important; } +.main-column p + p { margin-top: var(--space-3, 16px); } +.tags-header p, .tags-header .prefs-help, .indexing-note { line-height: 1.5; margin: 4px 0 0 0; } +.pm-bubble .message-text { line-height: 1.45; max-width: 100%; } [style*="auto-fill"], [style*="minmax(240px"], [style*="minmax(280px"], [style*="minmax(300px"], @@ -640,25 +640,25 @@ button, input[type="submit"], input[type="button"], .feed-container, .feed-card, .trending-card, .main-column article, .main-column [class*="-card"], .main-column [class*="-item"], .main-column [class*="-entry"], .main-column .card { - width: 100% !important; max-width: 100% !important; min-width: 0 !important; - box-sizing: border-box !important; margin-left: 0 !important; margin-right: 0 !important; + width: 100%; max-width: 100%; min-width: 0; + box-sizing: border-box; margin-left: 0; margin-right: 0; } .feed-card .feed-text, .trending-card .feed-text, -.main-column article p, .main-column [class*="-card"] p { max-width: var(--measure, 66ch) !important; } +.main-column article p, .main-column [class*="-card"] p { max-width: var(--measure, 66ch); } .main-column form, .comment-form, .comment-form-wrapper, .market-form, .new-message-form, .project-control-form, .filter-box { - display: block !important; width: 100% !important; max-width: 100% !important; - min-width: 0 !important; box-sizing: border-box !important; + display: block; width: 100%; max-width: 100%; + min-width: 0; box-sizing: border-box; } .main-column input:not([type="checkbox"]):not([type="radio"]):not(.oasis-nav-toggle):not(.oasis-nav-side-toggle), .main-column textarea, .main-column select { - width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; + width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; } .main-column form > button:only-of-type, .main-column form > .create-button, .comment-form button[type="submit"], .market-form button[type="submit"], .new-message-form button[type="submit"] { - display: block !important; width: 100% !important; max-width: 100% !important; - box-sizing: border-box !important; margin-top: 8px !important; + display: block; width: 100%; max-width: 100%; + box-sizing: border-box; margin-top: 8px; } [style*="width:33%"], [style*="width: 33%"], [style*="width:25%"], [style*="width: 25%"], [style*="width:60%"], [style*="width: 60%"], [style*="width:40%"], [style*="width: 40%"] { @@ -668,120 +668,120 @@ button, input[type="submit"], input[type="button"], .ai-response, .ai-train-bar { max-width: 100% !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box !important; } -.message-list, .pm-thread, .pm-thread-replies { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; } +.message-list, .pm-thread, .pm-thread-replies { width: 100%; max-width: 100%; box-sizing: border-box; } .main-column p .user-link, .main-column p a[href^="/author/"], .main-column li .user-link, .main-column span .user-link, .main-column .message-text .user-link, .main-column .message-text a[href^="/author/"], .pm-bubble .message-text .user-link, .pm-bubble .message-text a[href^="/author/"], .pm-quote a[href^="/author/"] { - display: inline !important; white-space: normal !important; - overflow-wrap: anywhere !important; word-break: keep-all !important; - -webkit-hyphens: none !important; hyphens: none !important; + display: inline; white-space: normal; + overflow-wrap: anywhere; word-break: keep-all; + -webkit-hyphens: none; hyphens: none; } .peer-key, .user-link.peer-key, .block-info-table td .peer-key, .pm-info-table td .peer-key, .pm-info-table td .user-link, .block-info-table td .user-link, .search-oasis-id, .pm-sent-key-value, .kpi__value { - display: inline-block !important; max-width: 100% !important; - overflow-wrap: anywhere !important; word-break: break-all !important; - font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; - font-variant-numeric: tabular-nums !important; line-height: 1.45 !important; + display: inline-block; max-width: 100%; + overflow-wrap: anywhere; word-break: break-all; + font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; + font-variant-numeric: tabular-nums; line-height: 1.45; } .oasis-id-copy { - display: block !important; width: 100% !important; white-space: nowrap !important; - overflow: hidden !important; text-overflow: ellipsis !important; - font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; + display: block; width: 100%; white-space: nowrap; + overflow: hidden; text-overflow: ellipsis; + font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } .invites-list .user-link.peer-key, .peers-list .block-info-table td .peer-key { - display: block !important; max-width: 100% !important; white-space: nowrap !important; - overflow: hidden !important; text-overflow: ellipsis !important; word-break: normal !important; + display: block; max-width: 100%; white-space: nowrap; + overflow: hidden; text-overflow: ellipsis; word-break: normal; } .main-column .message-text a[href^="http"], .main-column p a[href^="http"], .pm-bubble .message-text a[href^="http"], .main-column .message-text a.oasis-path-link, .main-column .message-text a.job-link, .main-column .message-text a.project-link, .main-column .message-text a.market-link { - overflow-wrap: anywhere !important; word-break: keep-all !important; - -webkit-hyphens: none !important; hyphens: none !important; + overflow-wrap: anywhere; word-break: keep-all; + -webkit-hyphens: none; hyphens: none; } .main-column code:not(pre code), .pm-bubble .message-text code { - display: inline !important; max-width: 100% !important; - overflow-wrap: anywhere !important; word-break: break-word !important; white-space: pre-wrap !important; + display: inline; max-width: 100%; + overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; } -.main-column .tags-header { margin-bottom: 6px !important; gap: 2px !important; } +.main-column .tags-header { margin-bottom: 6px; gap: 2px; } .main-column .tags-header h2, .tags-header h2 { - font-size: 17px !important; line-height: 1.2 !important; letter-spacing: 0 !important; + font-size: 17px; line-height: 1.2; letter-spacing: 0; } -.main-column .tags-header p { font-size: 13px !important; line-height: 1.35 !important; margin: 0 !important; } +.main-column .tags-header p { font-size: 13px; line-height: 1.35; margin: 0; } -.main-column { padding: 10px 12px 16px 12px !important; } -.activity-filter-acc { margin-bottom: 4px !important; } +.main-column { padding: 10px 12px 16px 12px; } +.activity-filter-acc { margin-bottom: 4px; } .empty-state { - display: flex !important; flex-direction: column !important; align-items: center !important; - justify-content: center !important; text-align: center !important; - padding: 40px 16px !important; gap: 8px !important; width: 100% !important; box-sizing: border-box !important; + display: flex; flex-direction: column; align-items: center; + justify-content: center; text-align: center; + padding: 40px 16px; gap: 8px; width: 100%; box-sizing: border-box; } -.empty-state-icon { font-size: 44px !important; line-height: 1 !important; opacity: 0.55 !important; } -.empty-state-title { font-size: 16px !important; font-weight: 700 !important; margin: 4px 0 0 0 !important; color: #eee !important; } -.empty-state-text { color: var(--c-muted, #8c8c8c) !important; font-size: 14px !important; line-height: 1.4 !important; max-width: 40ch !important; margin: 0 !important; } -.empty-state-cta { margin-top: 10px !important; min-height: 48px !important; display: inline-flex !important; align-items: center !important; } +.empty-state-icon { font-size: 44px; line-height: 1; opacity: 0.55; } +.empty-state-title { font-size: 16px; font-weight: 700; margin: 4px 0 0 0; color: #eee; } +.empty-state-text { color: var(--c-muted, #8c8c8c); font-size: 14px; line-height: 1.4; max-width: 40ch; margin: 0; } +.empty-state-cta { margin-top: 10px; min-height: 48px; display: inline-flex; align-items: center; } .activity-filter-collapsed { - display: flex !important; align-items: center !important; gap: 10px !important; - flex-wrap: wrap !important; margin-bottom: 8px !important; width: 100% !important; + display: flex; align-items: center; gap: 10px; + flex-wrap: wrap; margin-bottom: 8px; width: 100%; } .activity-back { - display: inline-flex !important; align-items: center !important; gap: 4px !important; - min-height: 44px !important; padding: 6px 14px 6px 10px !important; flex: 0 0 auto !important; + display: inline-flex; align-items: center; gap: 4px; + min-height: 44px; padding: 6px 14px 6px 10px; flex: 0 0 auto; } -.activity-back-arrow { font-size: 22px !important; line-height: 1 !important; font-weight: bold !important; } +.activity-back-arrow { font-size: 22px; line-height: 1; font-weight: bold; } .activity-active-filter { - font-weight: 700 !important; color: #FFA500 !important; text-transform: uppercase !important; - font-size: 13px !important; letter-spacing: .03em !important; + font-weight: 700; color: #FFA500; text-transform: uppercase; + font-size: 13px; letter-spacing: .03em; } -.oasis-bottombar .bb-item { min-height: 48px !important; } -.oasis-bottombar .bb-pair .bb-item { min-height: 44px !important; padding: 4px 10px !important; } -.oasis-mobile-menus .oasis-menu-btn { min-height: 48px !important; } -.pm-bubble .pm-actions .pm-btn { min-height: 40px !important; padding: 6px 12px !important; } +.oasis-bottombar .bb-item { min-height: 48px; } +.oasis-bottombar .bb-pair .bb-item { min-height: 44px; padding: 4px 10px; } +.oasis-mobile-menus .oasis-menu-btn { min-height: 48px; } +.pm-bubble .pm-actions .pm-btn { min-height: 40px; padding: 6px 12px; } .score-btn, .vote-btn, .feed-action-btn { - min-height: 44px !important; min-width: 44px !important; - display: inline-flex !important; align-items: center !important; justify-content: center !important; + min-height: 44px; min-width: 44px; + display: inline-flex; align-items: center; justify-content: center; } -.score-btn:active, .vote-btn:active, .feed-action-btn:active { filter: brightness(.85) !important; } +.score-btn:active, .vote-btn:active, .feed-action-btn:active { filter: brightness(.85); } .oasis-bottombar .bb-add .bb-ico { - background: #FFA500 !important; color: #121212 !important; border-radius: 999px !important; - width: 30px !important; height: 30px !important; display: inline-flex !important; - align-items: center !important; justify-content: center !important; - font-weight: bold !important; font-size: 20px !important; line-height: 1 !important; + background: #FFA500; color: #121212; border-radius: 999px; + width: 30px; height: 30px; display: inline-flex; + align-items: center; justify-content: center; + font-weight: bold; font-size: 20px; line-height: 1; } .bb-pick-grid { - display: grid !important; grid-template-columns: repeat(3, 1fr) !important; - gap: 8px !important; width: 100% !important; margin-top: 8px !important; + display: grid; grid-template-columns: repeat(3, 1fr); + gap: 8px; width: 100%; margin-top: 8px; } -.bb-pick-form { margin: 0 !important; display: block !important; } +.bb-pick-form { margin: 0; display: block; } .bb-pick-btn { - display: flex !important; flex-direction: column !important; align-items: center !important; - justify-content: center !important; gap: 6px !important; width: 100% !important; - min-height: 76px !important; padding: 10px 6px !important; box-sizing: border-box !important; - background: #1c1c1c !important; border: 1px solid #333 !important; border-radius: 12px !important; color: #eee !important; + display: flex; flex-direction: column; align-items: center; + justify-content: center; gap: 6px; width: 100%; + min-height: 76px; padding: 10px 6px; box-sizing: border-box; + background: #1c1c1c; border: 1px solid #333; border-radius: 12px; color: #eee; } -.bb-pick-btn.active { border-color: #FFA500 !important; background: #2a2412 !important; } -.bb-pick-ico { font-size: 26px !important; color: #FFA500 !important; line-height: 1 !important; } -.bb-pick-lbl { font-size: 11px !important; text-align: center !important; line-height: 1.2 !important; } +.bb-pick-btn.active { border-color: #FFA500; background: #2a2412; } +.bb-pick-ico { font-size: 26px; color: #FFA500; line-height: 1; } +.bb-pick-lbl { font-size: 11px; text-align: center; line-height: 1.2; } /* Ocultar los checkboxes nativos del drawer (nav-left/right-toggle) — si no, salen 2 cuadrados blancos arriba */ .oasis-nav-side-toggle { - position: absolute !important; - width: 1px !important; - height: 1px !important; - opacity: 0 !important; - pointer-events: none !important; - margin: 0 !important; + position: absolute; + width: 1px; + height: 1px; + opacity: 0; + pointer-events: none; + margin: 0; } diff --git a/src/client/public/js/oasis-mobile-nav.js b/src/client/public/js/oasis-mobile-nav.js deleted file mode 100644 index 2878122..0000000 --- a/src/client/public/js/oasis-mobile-nav.js +++ /dev/null @@ -1,36 +0,0 @@ -(function () { - function mark() { - var p = (location.pathname || "/").replace(/\/+$/, "") || "/"; - var links = document.querySelectorAll(".oasis-bottombar a.bb-item"); - var best = null, bestLen = -1; - links.forEach(function (a) { - var h = (a.getAttribute("href") || "").replace(/\/+$/, "") || "/"; - if (h === "/") return; - if (p === h || p.indexOf(h + "/") === 0) { - if (h.length > bestLen) { best = a; bestLen = h.length; } - } - }); - if (best) best.classList.add("current"); - } - - function onToggle(e) { - var t = e.target; - if (!t || !t.classList || !t.classList.contains("oasis-nav-toggle")) return; - if (!t.checked) return; - var group = t.closest(".oasis-nav-group"); - var scope = group && group.parentElement; - if (!scope) return; - var others = scope.querySelectorAll( - ":scope > .oasis-nav-group > .oasis-nav-toggle" - ); - others.forEach(function (o) { if (o !== t) o.checked = false; }); - } - - function init() { - mark(); - document.addEventListener("change", onToggle); - } - - if (document.readyState !== "loading") init(); - else document.addEventListener("DOMContentLoaded", init); -})(); diff --git a/src/views/main_views.js b/src/views/main_views.js index 71090a1..0840de4 100644 --- a/src/views/main_views.js +++ b/src/views/main_views.js @@ -1185,7 +1185,7 @@ const renderBottomBar = () => { const pair = [ bbLink("/peers", "⧖", i18n.peers || "Peers") ]; if (modOn('invitesMod')) pair.push(bbLink("/invites", "ꔮ", i18n.invites || "Invites")); return nav( - { class: "oasis-bottombar", style: "display:none", "aria-label": i18n.bbQuickActions || "Quick actions" }, + { class: "oasis-bottombar", ...(process.env.OASIS_MOBILE === '1' ? {} : { style: "display:none" }), "aria-label": i18n.bbQuickActions || "Quick actions" }, ...slots, editSlot, div({ class: "bb-pair" }, ...pair) @@ -1267,8 +1267,10 @@ const template = (titlePrefix, ...elements) => { head( title(titlePrefix, " | Oasis"), link({ rel: "stylesheet", href: "/assets/styles/style.css" }), - themeLink, - link({ rel: "stylesheet", href: "/assets/styles/mobile.css", ...(process.env.OASIS_MOBILE === '1' ? {} : { media: "(max-width: 768px)" }) }), + // móvil: el tema va DESPUÉS de mobile.css para ganar por cascada sin !important; escritorio: orden original de epsylon + ...(process.env.OASIS_MOBILE === '1' + ? [ link({ rel: "stylesheet", href: "/assets/styles/mobile.css" }), themeLink ] + : [ themeLink, link({ rel: "stylesheet", href: "/assets/styles/mobile.css", media: "(max-width: 768px)" }) ]), link({ rel: "icon", href: "/assets/images/favicon.svg" }), meta({ charset: "utf-8" }), meta({ name: "description", content: i18n.oasisDescription }), @@ -1597,8 +1599,10 @@ exports.ainavHomeView = ({ recentTags = [] } = {}) => { head( title(placeholder, " | Oasis"), link({ rel: "stylesheet", href: "/assets/styles/style.css" }), - link({ rel: "stylesheet", href: `/assets/themes/${theme}.css` }), - link({ rel: "stylesheet", href: "/assets/styles/mobile.css", ...(process.env.OASIS_MOBILE === '1' ? {} : { media: "(max-width: 768px)" }) }), + // móvil: el tema va DESPUÉS de mobile.css para ganar por cascada sin !important; escritorio: orden original de epsylon + ...(process.env.OASIS_MOBILE === '1' + ? [ link({ rel: "stylesheet", href: "/assets/styles/mobile.css" }), link({ rel: "stylesheet", href: `/assets/themes/${theme}.css` }) ] + : [ link({ rel: "stylesheet", href: `/assets/themes/${theme}.css` }), link({ rel: "stylesheet", href: "/assets/styles/mobile.css", media: "(max-width: 768px)" }) ]), link({ rel: "icon", href: "/assets/images/favicon.svg" }), meta({ charset: "utf-8" }), meta({ name: "description", content: i18n.oasisDescription }),