| @@ -359,8 +359,12 @@ | ||
| 359 | 359 | * W inside, so the two columns share an axis. `--os-dock-width` |
| 360 | 360 | * is now set on :root (see settings.ts → apply()) so it reaches |
| 361 | 361 | * siblings of #os-shell like the admin bar. |
| 362 | 362 | */ |
| 363 | +body.os-active #wpadminbar #wp-admin-bar-menu-toggle { | |
| 364 | + display: none; | |
| 365 | +} | |
| 366 | + | |
| 363 | 367 | body.os-active #wpadminbar #wp-admin-bar-wp-logo { |
| 364 | 368 | width: var( --os-dock-width, 56px ); |
| 365 | 369 | } |
| 366 | 370 | |
| @@ -828,9 +832,10 @@ | ||
| 828 | 832 | background-image: var(--os-tile-image, none); |
| 829 | 833 | background-repeat: var(--os-tile-image-repeat, no-repeat); |
| 830 | 834 | background-size: var(--os-tile-image-size, auto); |
| 831 | 835 | background-position: var(--os-tile-image-position, center); |
| 832 | - color: var(--os-fg, #fff); | |
| 836 | + /* Also the glyph: silhouette art is masked with `currentColor`. */ | |
| 837 | + color: var(--os-desk-fg, var(--os-fg, #fff)); | |
| 833 | 838 | cursor: pointer; |
| 834 | 839 | border-radius: 8px; |
| 835 | 840 | transition: background-color 0.15s ease; |
| 836 | 841 | /* Positioning context for `.os-icon__badge`. */ |
| @@ -892,9 +897,9 @@ | ||
| 892 | 897 | .os-icon:focus-visible { |
| 893 | 898 | /* background-COLOR, not the shorthand: the shorthand would reset |
| 894 | 899 | * the ICON_TILE texture declared above, so a themed tile would |
| 895 | 900 | * vanish on hover. */ |
| 896 | - background-color: rgba(255, 255, 255, 0.12); | |
| 901 | + background-color: var(--os-icon-hover-bg, rgba(255, 255, 255, 0.12)); | |
| 897 | 902 | outline: none; |
| 898 | 903 | } |
| 899 | 904 | |
| 900 | 905 | .os-icon:focus-visible { |
| @@ -918,12 +923,20 @@ | ||
| 918 | 923 | max-height: 48px; |
| 919 | 924 | object-fit: contain; |
| 920 | 925 | } |
| 921 | 926 | |
| 927 | +.os-icon__image { | |
| 928 | + filter: var(--os-icon-glyph-shadow, none); | |
| 929 | +} | |
| 930 | + | |
| 922 | 931 | .os-icon__label { |
| 923 | 932 | font-size: 12px; |
| 924 | 933 | text-align: center; |
| 925 | - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); | |
| 934 | + background: var(--os-icon-label-bg, transparent); | |
| 935 | + border-radius: 6px; | |
| 936 | + /* Inline only: a two-line caption already fills the 96px grid row. */ | |
| 937 | + padding: 0 6px; | |
| 938 | + text-shadow: var(--os-icon-label-shadow, 0 1px 2px rgba(0, 0, 0, 0.45)); | |
| 926 | 939 | line-height: 1.2; |
| 927 | 940 | word-break: break-word; |
| 928 | 941 | } |
| 929 | 942 | |
| @@ -1074,8 +1087,21 @@ | ||
| 1074 | 1087 | .os-widgets__card-close:focus-visible { |
| 1075 | 1088 | opacity: 1; |
| 1076 | 1089 | } |
| 1077 | 1090 | |
| 1091 | +/* | |
| 1092 | + * The corner close button rests at `opacity: 0` and only the card's | |
| 1093 | + * hover reveals it, so on touch it is invisible and the widget cannot | |
| 1094 | + * be dismissed at all. Rest it at the same 0.7 the chrome header's | |
| 1095 | + * close button uses there, rather than a full 1, so a card that is | |
| 1096 | + * only being read does not wear a hard × in its corner. | |
| 1097 | + */ | |
| 1098 | +@media ( hover: none ) { | |
| 1099 | + .os-widgets__card-close { | |
| 1100 | + opacity: 0.7; | |
| 1101 | + } | |
| 1102 | +} | |
| 1103 | + | |
| 1078 | 1104 | .os-widgets__card-close:hover { |
| 1079 | 1105 | background: var( --os-ui-danger, #d63638 ); |
| 1080 | 1106 | color: var( --os-ui-fg-on-accent, #fff ); |
| 1081 | 1107 | } |
| @@ -1328,12 +1354,17 @@ | ||
| 1328 | 1354 | align-items: center; |
| 1329 | 1355 | justify-content: center; |
| 1330 | 1356 | gap: 7px; |
| 1331 | 1357 | pointer-events: none; |
| 1332 | - background: transparent; | |
| 1333 | - border: 1px dashed rgba( 255, 255, 255, 0.22 ); | |
| 1358 | + /* `.os-widgets__card`'s glass, to the number: the pill trails a | |
| 1359 | + stack of those cards. Its dashed edge is what makes it a slot. */ | |
| 1360 | + background: var( --os-widgets-add-bg, transparent ); | |
| 1361 | + backdrop-filter: blur( 18px ) saturate( 140% ); | |
| 1362 | + -webkit-backdrop-filter: blur( 18px ) saturate( 140% ); | |
| 1363 | + box-shadow: 0 8px 28px var( --os-widgets-add-shadow, rgba( 0, 0, 0, 0.35 ) ); | |
| 1364 | + border: 1px dashed var( --os-widgets-add-border, rgba( 255, 255, 255, 0.22 ) ); | |
| 1334 | 1365 | border-radius: 10px; |
| 1335 | - color: rgba( 255, 255, 255, 0.72 ); | |
| 1366 | + color: var( --os-ui-color-text, var( --os-fg, #fff ) ); | |
| 1336 | 1367 | font: inherit; |
| 1337 | 1368 | font-weight: 500; |
| 1338 | 1369 | cursor: pointer; |
| 1339 | 1370 | opacity: 0; |
| @@ -1371,10 +1402,10 @@ | ||
| 1371 | 1402 | } |
| 1372 | 1403 | |
| 1373 | 1404 | .os-widgets__add:hover { |
| 1374 | 1405 | border-color: rgba( 255, 255, 255, 0.4 ); |
| 1375 | - background: rgba( 255, 255, 255, 0.06 ); | |
| 1376 | - color: var( --os-ui-fg-on-accent, #fff ); | |
| 1406 | + background: var( --os-widgets-add-bg-hover, rgba( 255, 255, 255, 0.06 ) ); | |
| 1407 | + color: var( --os-fg, #fff ); | |
| 1377 | 1408 | } |
| 1378 | 1409 | |
| 1379 | 1410 | .os-widgets__add:focus-visible { |
| 1380 | 1411 | outline: 2px solid var( --wp-admin-theme-color, #2271b1 ); |