bariweb-widget 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bariweb.iife.js +5 -16
- package/dist/bariweb.js +5 -16
- package/package.json +1 -1
package/dist/bariweb.iife.js
CHANGED
|
@@ -184,10 +184,10 @@
|
|
|
184
184
|
.bw-tab:hover { background: var(--bw-bg-hover); color: var(--bw-fg); }
|
|
185
185
|
.bw-tab[active] {
|
|
186
186
|
background: var(--bw-primary);
|
|
187
|
-
color: var(--bw-primary-fg)
|
|
187
|
+
color: var(--bw-primary-fg);
|
|
188
188
|
box-shadow: none;
|
|
189
189
|
}
|
|
190
|
-
.bw-tab[active] svg { color: var(--bw-primary-fg)
|
|
190
|
+
.bw-tab[active] svg { color: var(--bw-primary-fg); }
|
|
191
191
|
|
|
192
192
|
/* ─── Content area ─── */
|
|
193
193
|
.bw-content {
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
background: var(--bw-primary-faded);
|
|
534
534
|
box-shadow: inset 0 0 0 1px var(--bw-primary);
|
|
535
535
|
}
|
|
536
|
-
.settings-card[active] svg { color: var(--bw-primary); }
|
|
536
|
+
.settings-card[active] svg { color: var(--bw-primary-fg); }
|
|
537
537
|
.settings-card svg { width: 22px; height: 22px; color: var(--bw-fg-muted); transition: color 0.18s; }
|
|
538
538
|
.settings-card-label { font-size: 12px; font-weight: 600; color: var(--bw-fg); }
|
|
539
539
|
.settings-card[active] .settings-card-label { color: var(--bw-primary); }
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
align-items: center;
|
|
552
552
|
justify-content: center;
|
|
553
553
|
}
|
|
554
|
-
.active-badge svg { width: 10px; height: 10px; color: var(--bw-primary-fg)
|
|
554
|
+
.active-badge svg { width: 10px; height: 10px; color: var(--bw-primary-fg); stroke-width: 3; }
|
|
555
555
|
|
|
556
556
|
/* Color section */
|
|
557
557
|
.color-section {
|
|
@@ -683,7 +683,7 @@
|
|
|
683
683
|
.admin-overlay input:focus { border-color: var(--bw-primary); }
|
|
684
684
|
.admin-login-btn {
|
|
685
685
|
width: 100%; padding: 12px; border-radius: var(--bw-radius-sm);
|
|
686
|
-
background: var(--bw-primary); color: var(--bw-primary-fg)
|
|
686
|
+
background: var(--bw-primary); color: var(--bw-primary-fg); border: none;
|
|
687
687
|
font-weight: 700; font-size: 14px; cursor: pointer; margin-bottom: 8px;
|
|
688
688
|
transition: all 0.2s;
|
|
689
689
|
}
|
|
@@ -702,17 +702,6 @@
|
|
|
702
702
|
}
|
|
703
703
|
.auth-error { color: #ef4444; font-size: 12px; margin: 0 0 12px; }
|
|
704
704
|
.admin-status { color: #059669; font-size: 14px; font-weight: 600; margin: 0 0 16px; }
|
|
705
|
-
|
|
706
|
-
/* Force all SVGs inside buttons to respect container color */
|
|
707
|
-
button svg {
|
|
708
|
-
color: inherit;
|
|
709
|
-
stroke: currentColor;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
/* High specificity overrides for active states */
|
|
713
|
-
[active] svg, .active svg, .on svg {
|
|
714
|
-
color: inherit !important;
|
|
715
|
-
}
|
|
716
705
|
`,mt=`bw-a11y-settings-v2`,U={monochrome:!1,darkHighContrast:!1,brightHighContrast:!1,lowSaturation:!1,highSaturation:!1,contrastMode:!1,customBgHue:null,customHeaderHue:null,customContentHue:null,activeColorTab:`background`,textScale:1,highlightHeaders:!1,enlargeButtons:!1,textSpacing:!1,dyslexicFont:!1,focusVisualizer:!1,cursorMagnifier:!1,animationsDisabled:!1,linkHighlight:!1},ht=class{constructor(e){this.settings={...U},(this.host=e).addController(this),this._loadSettings()}hostConnected(){this._applySettings()}_loadSettings(){let e=localStorage.getItem(mt);if(e)try{let t=JSON.parse(e);this.settings={...U,...t}}catch(e){console.error(`BariWeb: Failed to parse a11y settings`,e)}}_saveSettings(){localStorage.setItem(mt,JSON.stringify(this.settings)),this._applySettings(),this.host.requestUpdate()}_ensureGlobalStyles(){let e=`bw-global-a11y-styles`,t=document.getElementById(e);t||(t=document.createElement(`style`),t.id=e,document.head.appendChild(t)),t.textContent=`
|
|
717
706
|
/* Global Filters */
|
|
718
707
|
html {
|
package/dist/bariweb.js
CHANGED
|
@@ -1322,10 +1322,10 @@ var at = rt(K), q = (e) => F`${at(`
|
|
|
1322
1322
|
.bw-tab:hover { background: var(--bw-bg-hover); color: var(--bw-fg); }
|
|
1323
1323
|
.bw-tab[active] {
|
|
1324
1324
|
background: var(--bw-primary);
|
|
1325
|
-
color: var(--bw-primary-fg)
|
|
1325
|
+
color: var(--bw-primary-fg);
|
|
1326
1326
|
box-shadow: none;
|
|
1327
1327
|
}
|
|
1328
|
-
.bw-tab[active] svg { color: var(--bw-primary-fg)
|
|
1328
|
+
.bw-tab[active] svg { color: var(--bw-primary-fg); }
|
|
1329
1329
|
|
|
1330
1330
|
/* ─── Content area ─── */
|
|
1331
1331
|
.bw-content {
|
|
@@ -1671,7 +1671,7 @@ var at = rt(K), q = (e) => F`${at(`
|
|
|
1671
1671
|
background: var(--bw-primary-faded);
|
|
1672
1672
|
box-shadow: inset 0 0 0 1px var(--bw-primary);
|
|
1673
1673
|
}
|
|
1674
|
-
.settings-card[active] svg { color: var(--bw-primary); }
|
|
1674
|
+
.settings-card[active] svg { color: var(--bw-primary-fg); }
|
|
1675
1675
|
.settings-card svg { width: 22px; height: 22px; color: var(--bw-fg-muted); transition: color 0.18s; }
|
|
1676
1676
|
.settings-card-label { font-size: 12px; font-weight: 600; color: var(--bw-fg); }
|
|
1677
1677
|
.settings-card[active] .settings-card-label { color: var(--bw-primary); }
|
|
@@ -1689,7 +1689,7 @@ var at = rt(K), q = (e) => F`${at(`
|
|
|
1689
1689
|
align-items: center;
|
|
1690
1690
|
justify-content: center;
|
|
1691
1691
|
}
|
|
1692
|
-
.active-badge svg { width: 10px; height: 10px; color: var(--bw-primary-fg)
|
|
1692
|
+
.active-badge svg { width: 10px; height: 10px; color: var(--bw-primary-fg); stroke-width: 3; }
|
|
1693
1693
|
|
|
1694
1694
|
/* Color section */
|
|
1695
1695
|
.color-section {
|
|
@@ -1821,7 +1821,7 @@ var at = rt(K), q = (e) => F`${at(`
|
|
|
1821
1821
|
.admin-overlay input:focus { border-color: var(--bw-primary); }
|
|
1822
1822
|
.admin-login-btn {
|
|
1823
1823
|
width: 100%; padding: 12px; border-radius: var(--bw-radius-sm);
|
|
1824
|
-
background: var(--bw-primary); color: var(--bw-primary-fg)
|
|
1824
|
+
background: var(--bw-primary); color: var(--bw-primary-fg); border: none;
|
|
1825
1825
|
font-weight: 700; font-size: 14px; cursor: pointer; margin-bottom: 8px;
|
|
1826
1826
|
transition: all 0.2s;
|
|
1827
1827
|
}
|
|
@@ -1840,17 +1840,6 @@ var at = rt(K), q = (e) => F`${at(`
|
|
|
1840
1840
|
}
|
|
1841
1841
|
.auth-error { color: #ef4444; font-size: 12px; margin: 0 0 12px; }
|
|
1842
1842
|
.admin-status { color: #059669; font-size: 14px; font-weight: 600; margin: 0 0 16px; }
|
|
1843
|
-
|
|
1844
|
-
/* Force all SVGs inside buttons to respect container color */
|
|
1845
|
-
button svg {
|
|
1846
|
-
color: inherit;
|
|
1847
|
-
stroke: currentColor;
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
/* High specificity overrides for active states */
|
|
1851
|
-
[active] svg, .active svg, .on svg {
|
|
1852
|
-
color: inherit !important;
|
|
1853
|
-
}
|
|
1854
1843
|
`, st = "bw-a11y-settings-v2", Y = {
|
|
1855
1844
|
monochrome: !1,
|
|
1856
1845
|
darkHighContrast: !1,
|