Something went wrong. Try again.
Rewild Your Web forked from me.webbeef.org/browser.html
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429/* SPDX-License-Identifier: AGPL-3.0-or-later */
:host { display: flex; font-family: var(--font-family-base); box-sizing: border-box; min-width: 0;}
/* Embedded mode — the desktop's Workshop UI provides its own topbar (favicon + title + nav) and tile chrome (radius, halo). When the host is tagged with `.embedded`, the webview drops its chrome (radius, shadow), and only hides the internal title bar while the view is *active* — inactive views fall through to the legacy `.bar.hidden` collapse (opacity:0 + max-height:0 + pointer-events:none) so the iframe's `@embedinputreceived` reliably reports focus clicks. */:host(.embedded) .wrapper.active .bar { display: none;}:host(.embedded) .wrapper,:host(.embedded) .wrapper.active { border-radius: 0; box-shadow: none;}
:host .wrapper { background: var(--bg-webview); border-radius: var(--radius-md) var(--radius-md) 0 0; display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; box-shadow: 0 2px 8px var(--color-shadow-menu); transition: box-shadow var(--transition-fast); position: relative; /* Needed for absolutely positioned menu overlay */}
:host .wrapper.active { box-shadow: 0 0 0 2px var(--color-focus-ring), 0 2px 12px var(--color-shadow);}
/* Container for iframe and dialog overlay */:host .iframe-container { flex: 1; position: relative; min-width: 0; min-height: 0; display: flex;}
:host webview { flex: 1; border: none; min-width: 0; min-height: 0;}
:host .bar { display: flex; align-items: center; gap: var(--spacing-md); padding: var(--spacing-xs) var(--spacing-md) var(--spacing-xs) var(--spacing-md); border-radius: var(--radius-md) var(--radius-md) 0 0; box-shadow: 0 1px 4px var(--color-shadow-menu); position: relative; transition: opacity var(--transition-fast), max-height var(--transition-fast), padding var(--transition-fast); overflow: hidden;}
:host .bar.hidden { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; pointer-events: none; transition-delay: 0.5s;}
:host .bar img { width: var(--size-icon);}
:host .icon { cursor: pointer;}
:host .icon.enabled-false { cursor: not-allowed; opacity: 0.4;}
:host .title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;}
:host .menu-container { position: relative; display: flex; align-items: center;}
:host .blocker-icon { position: relative; display: flex; align-items: center; cursor: pointer; padding: 0 0.4em; border-radius: var(--radius-sm); transition: background var(--transition-fast);}
:host .blocker-icon:hover { background: var(--bg-hover);}
:host .blocker-icon lucide-icon { font-size: 1.1em; color: var(--color-primary); transition: color var(--transition-fast);}
:host .blocker-icon.disabled lucide-icon { color: var(--color-text-secondary);}
:host .blocker-badge { position: absolute; top: -4px; right: -2px; min-width: var(--size-xs); height: var(--size-xs); border-radius: 7px; background: var(--color-primary); color: var(--color-text-on-header); font-size: var(--font-size-2xs); font-weight: var(--font-weight-bold); display: flex; align-items: center; justify-content: center; padding: 0 3px;}
/* Dialog overlay styles - positioned within iframe-container */:host .dialog-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--color-backdrop); display: flex; align-items: center; justify-content: center; z-index: var(--z-dialog);}
:host .dialog-box { background: var(--bg-surface); border-radius: var(--radius-md); padding: var(--spacing-3xl); min-width: 280px; max-width: 80%; box-shadow: 0 8px 32px var(--color-shadow); font-family: var(--font-family-base);}
:host .dialog-message { margin-bottom: var(--spacing-2xl); color: var(--color-text); font-size: var(--font-size-md); line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;}
:host .dialog-input { width: 100%; padding: var(--spacing-md) var(--spacing-2xl); margin-bottom: var(--spacing-2xl); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: var(--font-size-md); background: var(--bg-surface); color: var(--color-text); box-sizing: border-box;}
:host .dialog-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-focus-ring);}
:host .dialog-buttons { display: flex; justify-content: flex-end; gap: var(--spacing-md);}
:host .dialog-button { padding: var(--spacing-md) var(--spacing-2xl); border-radius: var(--radius-sm); font-size: var(--font-size-md); font-weight: var(--font-weight-bold); cursor: pointer; border: 1px solid var(--color-border); background: var(--bg-surface); color: var(--color-text); transition: background var(--transition-fast), border-color var(--transition-fast);}
:host .dialog-button:hover { background: var(--bg-hover);}
:host .dialog-button.primary { background: var(--color-primary); color: var(--color-text-on-header); border-color: var(--color-primary);}
:host .dialog-button.primary:hover { filter: brightness(0.9);}
:host .permission-prompt { text-align: center;}
:host .permission-icon { width: var(--size-logo); height: var(--size-logo); margin: 0 auto var(--spacing-md); display: flex; align-items: center; justify-content: center; background: var(--bg-icon); border-radius: 50%; color: var(--color-primary);}
:host .permission-icon lucide-icon { width: var(--size-notification-icon); height: var(--size-notification-icon);}
:host .permission-title { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); color: var(--color-text); margin-bottom: var(--spacing-md);}
:host .permission-prompt .dialog-message { text-align: center;}
:host .permission-prompt .dialog-buttons { justify-content: center;}
/* Loading progress bar */:host .load-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--color-primary); transition: width 0.3s var(--ease-out), opacity 0.3s var(--ease-out); opacity: 0; width: 0; z-index: var(--z-base);}
:host .load-progress.load-started { width: 30%; opacity: 1; animation: load-travel 1.8s var(--ease-in-out) infinite;}
:host .load-progress.load-headparsed { width: 65%; opacity: 1; animation: load-travel 1.8s var(--ease-in-out) infinite;}
:host .load-progress.load-complete { width: 100%; opacity: 0; animation: none; transition: width 0.2s var(--ease-out), opacity 0.4s var(--ease-out) 0.2s;}
@keyframes load-travel { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; }}
/* ============================================================================ Mobile-specific styles ============================================================================ */
/* When mobile-mode is detected, adjust the wrapper */:host(.mobile-mode) .wrapper { border-radius: 0; box-shadow: none;}
:host(.mobile-mode) .wrapper.active { box-shadow: none;}
/* Hide the title bar completely on mobile */:host(.mobile-mode) .bar { display: none !important;}
/* Make iframe container fill entire space */:host(.mobile-mode) .iframe-container { border-radius: 0;}
/* ============================================================================ Media center styles ============================================================================ */
:host(.mediacenter-mode) .wrapper { border-radius: 0; box-shadow: none;}
:host(.mediacenter-mode) .wrapper.active { box-shadow: none;}
:host(.mediacenter-mode) .bar { display: none !important;}
:host(.mediacenter-mode) .iframe-container { border-radius: 0;}
/* Inline task provider overlay */:host .inline-provider-overlay { position: absolute; inset: 0; background: var(--color-backdrop); display: flex; align-items: center; justify-content: center; z-index: var(--z-dialog);}
:host .inline-provider-dialog { background: var(--bg-surface); border-radius: var(--radius-md); width: 90%; max-width: 500px; height: 70%; max-height: 600px; display: flex; flex-direction: column; box-shadow: 0 8px 32px var(--color-shadow); overflow: hidden;}
:host .inline-provider-header { display: flex; align-items: center; gap: var(--spacing-md); padding: var(--spacing-xs) var(--spacing-md); background: var(--bg-surface); border-bottom: 1px solid var(--color-border); font-family: var(--font-family-base);}
:host .inline-provider-title { flex: 1; font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-text);}
:host .inline-provider-close { background: none; border: none; font-size: var(--font-size-xl); cursor: pointer; padding: var(--spacing-xs) var(--spacing-md); color: var(--color-text-secondary); border-radius: var(--radius-sm); transition: background var(--transition-fast);}
:host .inline-provider-close:hover { background: var(--bg-hover);}
:host .inline-provider-dialog webview { flex: 1; border: none; width: 100%;}