9
|
1 |
/** |
|
2 |
* Colors |
|
3 |
*/ |
|
4 |
/** |
|
5 |
* Breakpoints & Media Queries |
|
6 |
*/ |
|
7 |
/** |
18
|
8 |
* SCSS Variables. |
|
9 |
* |
|
10 |
* Please use variables from this sheet to ensure consistency across the UI. |
|
11 |
* Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
|
12 |
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
16
|
13 |
*/ |
|
14 |
/** |
18
|
15 |
* Colors |
16
|
16 |
*/ |
|
17 |
/** |
|
18 |
* Fonts & basic variables. |
|
19 |
*/ |
|
20 |
/** |
|
21 |
* Grid System. |
|
22 |
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
|
23 |
*/ |
|
24 |
/** |
|
25 |
* Dimensions. |
|
26 |
*/ |
|
27 |
/** |
|
28 |
* Shadows. |
|
29 |
*/ |
|
30 |
/** |
|
31 |
* Editor widths. |
|
32 |
*/ |
|
33 |
/** |
18
|
34 |
* Block & Editor UI. |
16
|
35 |
*/ |
|
36 |
/** |
18
|
37 |
* Block paddings. |
|
38 |
*/ |
|
39 |
/** |
|
40 |
* React Native specific. |
|
41 |
* These variables do not appear to be used anywhere else. |
9
|
42 |
*/ |
|
43 |
/** |
19
|
44 |
* Converts a hex value into the rgb equivalent. |
|
45 |
* |
|
46 |
* @param {string} hex - the hexadecimal value to convert |
|
47 |
* @return {string} comma separated rgb values |
|
48 |
*/ |
|
49 |
/** |
9
|
50 |
* Breakpoint mixins |
|
51 |
*/ |
|
52 |
/** |
|
53 |
* Long content fade mixin |
|
54 |
* |
|
55 |
* Creates a fading overlay to signify that the content is longer |
|
56 |
* than the space allows. |
|
57 |
*/ |
|
58 |
/** |
16
|
59 |
* Focus styles. |
9
|
60 |
*/ |
|
61 |
/** |
|
62 |
* Applies editor left position to the selector passed as argument |
|
63 |
*/ |
|
64 |
/** |
|
65 |
* Styles that are reused verbatim in a few places |
|
66 |
*/ |
|
67 |
/** |
|
68 |
* Allows users to opt-out of animations via OS-level preferences. |
|
69 |
*/ |
16
|
70 |
/** |
|
71 |
* Reset default styles for JavaScript UI based pages. |
|
72 |
* This is a WP-admin agnostic reset |
|
73 |
*/ |
|
74 |
/** |
|
75 |
* Reset the WP Admin page styles for Gutenberg-like pages. |
|
76 |
*/ |
|
77 |
:root { |
|
78 |
--wp-admin-theme-color: #007cba; |
19
|
79 |
--wp-admin-theme-color--rgb: 0, 124, 186; |
16
|
80 |
--wp-admin-theme-color-darker-10: #006ba1; |
19
|
81 |
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161; |
18
|
82 |
--wp-admin-theme-color-darker-20: #005a87; |
19
|
83 |
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135; |
18
|
84 |
--wp-admin-border-width-focus: 2px; |
|
85 |
} |
|
86 |
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { |
|
87 |
:root { |
|
88 |
--wp-admin-border-width-focus: 1.5px; |
|
89 |
} |
|
90 |
} |
16
|
91 |
|
9
|
92 |
.nux-dot-tip::before, .nux-dot-tip::after { |
|
93 |
border-radius: 100%; |
|
94 |
content: " "; |
|
95 |
pointer-events: none; |
18
|
96 |
position: absolute; |
|
97 |
} |
9
|
98 |
.nux-dot-tip::before { |
|
99 |
animation: nux-pulse 1.6s infinite cubic-bezier(0.17, 0.67, 0.92, 0.62); |
|
100 |
background: rgba(0, 115, 156, 0.9); |
16
|
101 |
opacity: 0.9; |
9
|
102 |
height: 24px; |
|
103 |
right: -12px; |
|
104 |
top: -12px; |
18
|
105 |
transform: scale(0.3333333333); |
|
106 |
width: 24px; |
|
107 |
} |
9
|
108 |
.nux-dot-tip::after { |
|
109 |
background: #00739c; |
|
110 |
height: 8px; |
|
111 |
right: -4px; |
|
112 |
top: -4px; |
18
|
113 |
width: 8px; |
|
114 |
} |
9
|
115 |
@keyframes nux-pulse { |
|
116 |
100% { |
|
117 |
background: rgba(0, 115, 156, 0); |
18
|
118 |
transform: scale(1); |
|
119 |
} |
|
120 |
} |
9
|
121 |
.nux-dot-tip .components-popover__content { |
18
|
122 |
width: 350px; |
|
123 |
} |
|
124 |
.nux-dot-tip .components-popover__content > div { |
|
125 |
padding: 20px 18px; |
|
126 |
} |
|
127 |
@media (min-width: 600px) { |
|
128 |
.nux-dot-tip .components-popover__content { |
|
129 |
width: 450px; |
|
130 |
} |
|
131 |
} |
|
132 |
.nux-dot-tip .components-popover__content .nux-dot-tip__disable { |
|
133 |
position: absolute; |
|
134 |
left: 0; |
|
135 |
top: 0; |
|
136 |
} |
|
137 |
.nux-dot-tip[data-y-axis=top] { |
|
138 |
margin-top: -4px; |
|
139 |
} |
|
140 |
.nux-dot-tip[data-y-axis=bottom] { |
|
141 |
margin-top: 4px; |
|
142 |
} |
|
143 |
.nux-dot-tip[data-y-axis=middle][data-y-axis=left] { |
|
144 |
margin-right: -4px; |
|
145 |
} |
|
146 |
.nux-dot-tip[data-y-axis=middle][data-y-axis=right] { |
|
147 |
margin-right: 4px; |
|
148 |
} |
|
149 |
.nux-dot-tip[data-y-axis=top] .components-popover__content { |
|
150 |
margin-bottom: 20px; |
|
151 |
} |
|
152 |
.nux-dot-tip[data-y-axis=bottom] .components-popover__content { |
|
153 |
margin-top: 20px; |
|
154 |
} |
|
155 |
.nux-dot-tip[data-y-axis=middle][data-y-axis=left] .components-popover__content { |
|
156 |
margin-left: 20px; |
|
157 |
} |
|
158 |
.nux-dot-tip[data-y-axis=middle][data-y-axis=right] .components-popover__content { |
|
159 |
margin-right: 20px; |
|
160 |
} |
|
161 |
.nux-dot-tip[data-y-axis=left], .nux-dot-tip[data-y-axis=center], .nux-dot-tip[data-y-axis=right] { |
|
162 |
z-index: 1000001; |
|
163 |
} |
|
164 |
@media (max-width: 600px) { |
|
165 |
.nux-dot-tip[data-y-axis=left] .components-popover__content, .nux-dot-tip[data-y-axis=center] .components-popover__content, .nux-dot-tip[data-y-axis=right] .components-popover__content { |
|
166 |
align-self: end; |
|
167 |
right: 5px; |
|
168 |
margin: 20px 0 0 0; |
|
169 |
max-width: none !important; |
|
170 |
position: fixed; |
|
171 |
left: 5px; |
|
172 |
width: auto; |
|
173 |
} |
|
174 |
} |
|
175 |
.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content { |
|
176 |
margin-left: 0; |
|
177 |
} |
|
178 |
.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content { |
|
179 |
margin-right: 0; |
|
180 |
} |
19
|
181 |
.nux-dot-tip.components-popover.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content { |
18
|
182 |
margin-left: -12px; |
|
183 |
} |
19
|
184 |
.nux-dot-tip.components-popover.interface-more-menu-dropdown__content:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content { |
18
|
185 |
margin-right: -12px; |
|
186 |
} |