PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Notifications / notifications.css

notifications.css in Extendify 3.2.1, at src/Notifications/notifications.css

78 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @import "tailwindcss" source(none) important;
2 @import "../tailwind.css" source(none);
3 @source ".";
4
5 :root {
6 color-scheme: only light;
7 }
8
9 /* The bar is fixed, and the agent reserves its height only while its panel is open. */
10 /* no-prefix */
11 body {
12 padding-bottom: var(--extendify-notification-bar-height, 0px);
13 }
14
15 /* Fixed positioning escapes the body padding; --bottom is TranslatePress's own offset. */
16 /* no-prefix */
17 .trp-floating-switcher.trp-switcher-position-bottom {
18 bottom: calc(
19 var(--bottom, 0px) +
20 var(--extendify-notification-bar-height, 0px)
21 );
22 }
23
24 /* The legacy switcher; a site setting picks which generation renders. */
25 /* no-prefix */
26 #trp-floater-ls.trp-bottom-right,
27 #trp-floater-ls.trp-bottom-left {
28 bottom: var(--extendify-notification-bar-height, 0px);
29 }
30
31 /* Without this the wrapper divs stretch the pill to the host bar's full height. */
32 /* no-prefix */
33 #wpadminbar .extendify-notifications,
34 #wpadminbar .extendify-notifications .extendify-shared,
35 #extendify-toolbar .extendify-notifications,
36 #extendify-toolbar .extendify-notifications .extendify-shared {
37 @apply flex items-center;
38 }
39
40 /* no-prefix */
41 #extendify-toolbar .extendify-notifications {
42 @apply ml-1 mr-2;
43 }
44
45 /* Core's `.ab-item` chrome would frame the pill. Raw lengths, not the spacing
46 scale: the theme vars are scoped below this element. Core's fixed height
47 would leave the margins overflowing the bar. */
48 /* no-prefix */
49 #wpadminbar #wp-admin-bar-extendify-notifications > .ab-item {
50 display: flex !important;
51 align-items: center !important;
52 height: auto !important;
53 margin: 4px 8px !important;
54 padding: 0 !important;
55 background: transparent !important;
56 }
57
58 @media screen and (max-width: 782px) {
59 /* Core hides non-allowlisted items here, and the bottom bar with them — the
60 pill is the only thing left to act on. */
61 /* no-prefix */
62 #wpadminbar li#wp-admin-bar-extendify-notifications {
63 display: block !important;
64 }
65
66 /* no-prefix */
67 #wpadminbar #wp-admin-bar-extendify-notifications > .ab-item {
68 margin: 8px !important;
69 }
70
71 /* Only this bar: its own items already fill the width, so the label would
72 push the pill off-screen. Core hides enough that the label still fits. */
73 /* no-prefix */
74 #extendify-toolbar .ext-notification-pill-label {
75 display: none;
76 }
77 }
78