@oksigenia/access-panel 0.7.0 → 0.7.1

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.
@@ -902,6 +902,7 @@ var PANEL_CSS = `
902
902
  }
903
903
  .oks-access-panel.is-open { opacity: 1; pointer-events: all; }
904
904
  .oks-access-header {
905
+ flex: 0 0 auto;
905
906
  padding: 15px 20px;
906
907
  border-bottom: 1px solid #eee;
907
908
  display: flex;
@@ -925,7 +926,11 @@ var PANEL_CSS = `
925
926
  }
926
927
  .oks-access-close:hover { background: #e0e0e0; border-color: #ccc; }
927
928
  .oks-access-close svg { width: 24px; height: 24px; stroke-width: 2.5px; }
928
- .oks-access-content { padding: 0 20px 20px; overflow-y: auto; }
929
+ /* flex:1 1 auto + min-height:0 lets the content scroll inside the 90vh panel.
930
+ Without min-height:0 a flex child won't shrink below its content, so the
931
+ header (\xD7) and footer (Reset) get pushed off-screen on short viewports or at
932
+ high zoom \u2014 the panel becomes impossible to close. */
933
+ .oks-access-content { flex: 1 1 auto; min-height: 0; padding: 0 20px 20px; overflow-y: auto; }
929
934
  .oks-access-title {
930
935
  margin: 10px 0 5px;
931
936
  font-size: 11px;
@@ -1026,6 +1031,7 @@ var PANEL_CSS = `
1026
1031
  .oks-access-opt[data-level="4"] .oks-levels span:nth-child(-n+4) { background: #000; }
1027
1032
  .oks-access-opt:hover .oks-levels span { background: #555; }
1028
1033
  .oks-access-footer {
1034
+ flex: 0 0 auto;
1029
1035
  padding: 12px 20px;
1030
1036
  border-top: 1px solid #eee;
1031
1037
  text-align: center;
@@ -1232,12 +1238,14 @@ body.oks-a11y-bigtargets summary:not(oksigenia-access-panel):not(oksigenia-acces
1232
1238
  }
1233
1239
  `;
1234
1240
  function scopedEffectCss(s) {
1235
- return `
1241
+ const isRoot = s === "body" || s === "html" || s === ":root";
1242
+ const zoom = isRoot ? "" : `
1236
1243
  ${s}.oks-zoom-1 { font-size: 110% !important; }
1237
1244
  ${s}.oks-zoom-2 { font-size: 120% !important; }
1238
1245
  ${s}.oks-zoom-3 { font-size: 135% !important; }
1239
1246
  ${s}.oks-zoom-4 { font-size: 150% !important; }
1240
-
1247
+ `;
1248
+ return `${zoom}
1241
1249
  ${s}.oks-lh-1 * { line-height: 1.6 !important; }
1242
1250
  ${s}.oks-lh-2 * { line-height: 1.9 !important; }
1243
1251
  ${s}.oks-lh-3 * { line-height: 2.2 !important; }