PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / trunk
Secure Custom Fields vtrunk
6.9.1 6.9.0 6.8.9 6.8.7 6.8.8 6.8.6 6.8.4 6.8.5 trunk 6.4.0-beta1 6.4.0-beta2 6.4.1 6.4.1-beta3 6.4.1-beta4 6.4.1-beta5 6.4.1-beta6 6.4.1-beta7 6.4.2 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 6.5.7 6.6.0 6.7.0 6.7.1 6.8.0 6.8.1 6.8.2 6.8.3
secure-custom-fields / assets / src / sass / _admin-toolbar.scss
secure-custom-fields / assets / src / sass Last commit date
pro 3 weeks ago _acf-headerbar.scss 1 year ago _acf-icon-picker.scss 1 year ago _admin-inputs.scss 1 year ago _admin-toolbar.scss 1 year ago _btn.scss 1 year ago _dark.scss 1 year ago _edit-field-group.scss 1 year ago _field-group.scss 1 year ago _field-picker.scss 1 year ago _field-type-icons.scss 1 year ago _fields.scss 1 month ago _forms.scss 11 months ago _global.scss 1 year ago _icons.scss 1 year ago _input.scss 1 year ago _list-table.scss 1 year ago _media.scss 1 year ago _mixins.scss 1 year ago _post-types-taxonomies.scss 1 year ago _postbox.scss 1 year ago _pro-upgrade.scss 1 year ago _sub-field-groups.scss 1 year ago _tools.scss 1 year ago _typography.scss 1 year ago _updates.scss 1 year ago _variables.scss 1 year ago acf-dark.scss 1 year ago acf-field-group.scss 8 months ago acf-global.scss 2 months ago acf-input.scss 1 month ago
_admin-toolbar.scss
392 lines
1 /*---------------------------------------------------------------------------------------------
2 *
3 * Admin Navigation
4 *
5 *---------------------------------------------------------------------------------------------*/
6 .acf-admin-toolbar {
7 position: unset;
8 top: 32px;
9 height: 72px;
10 z-index: 800;
11 background: $gray-700;
12 color: $gray-400;
13
14 .acf-admin-toolbar-inner {
15 display: flex;
16 justify-content: space-between;
17 align-content: center;
18 align-items: center;
19 max-width: 100%;
20
21 .acf-nav-wrap {
22 display: flex;
23 align-items: center;
24
25 position: relative;
26 padding-left: 72px;
27
28 @media screen and (max-width: 1250px) {
29 .acf-header-tab-acf-post-type,
30 .acf-header-tab-acf-taxonomy {
31 display: none;
32 }
33
34 .acf-more {
35 .acf-header-tab-acf-post-type,
36 .acf-header-tab-acf-taxonomy {
37 display: flex;
38 }
39 }
40 }
41
42 }
43 }
44
45 @media screen and (max-width: $md) {
46 position: static;
47 }
48
49 .acf-logo {
50 display: flex;
51 margin: {
52 right: 24px;
53 }
54 text-decoration: none;
55
56 position: absolute;
57 top: 0;
58 left: 0;
59
60 img {
61 display: block;
62 }
63
64 &.pro img {
65 height: 46px;
66 }
67 }
68
69 h2 {
70 display: none;
71 color: $gray-50;
72 }
73
74 .acf-tab {
75 display: flex;
76 align-items: center;
77 box-sizing: border-box;
78 min-height: 40px;
79 margin: {
80 right: 8px;
81 }
82 padding: {
83 top: 8px;
84 right: 16px;
85 bottom: 8px;
86 left: 16px;
87 }
88 border: {
89 width: 1px;
90 style: solid;
91 color: transparent;
92 }
93 border-radius: $radius-md;
94 @extend .p4;
95 color: $gray-400;
96 text-decoration: none;
97
98 &.is-active {
99 background-color: $gray-600;
100 color: #fff;
101 }
102 &:hover {
103 background-color: $gray-600;
104 color: $gray-50;
105 }
106 &:focus-visible {
107 border: {
108 width: 1px;
109 style: solid;
110 color: $gray-500;
111 }
112 }
113 &:focus {
114 box-shadow: none;
115 }
116 }
117
118 .acf-more {
119 &:hover {
120 .acf-tab.acf-more-tab {
121 background-color: $gray-600;
122 color: $gray-50;
123 }
124 }
125
126 ul {
127 display: none;
128 position: absolute;
129 box-sizing: border-box;
130 background: #fff;
131 z-index: 1051;
132 overflow: hidden;
133 min-width: 280px;
134 margin: {
135 top: 0;
136 right: 0;
137 bottom: 0;
138 left: 0;
139 };
140 padding: 0;
141 border-radius: $radius-lg;
142 box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 23px rgba(0, 0, 0, 0.12);
143
144 li {
145 margin: 0;
146 padding: 0 16px;
147
148 .acf-header-tab-acf-post-type,
149 .acf-header-tab-acf-taxonomy {
150 display: none;
151 }
152
153 &.acf-more-section-header {
154 background: $gray-50;
155 padding: 1px 0 0 0;
156 margin-top: -1px;
157 border-top: 1px solid $gray-200;
158 border-bottom: 1px solid $gray-200;
159
160 span {
161 color: $gray-600;
162 font-size: 12px;
163 font-weight: bold;
164
165 &:hover {
166 background: $gray-50;
167 }
168 }
169 }
170
171 // Links
172 a {
173 margin: 0;
174 padding: 0;
175 color: $gray-800;
176 border-radius: 0;
177 border-top: {
178 width: 1px;
179 style: solid;
180 color: $gray-100;
181 };
182
183 &:hover,
184 &.acf-tab.is-active {
185 background-color: unset;
186 color: $blue-500;
187 }
188
189 i.acf-icon {
190 display: none !important;
191 $icon-size: 16px;
192 width: $icon-size;
193 height: $icon-size;
194 -webkit-mask-size: $icon-size;
195 mask-size: $icon-size;
196 background-color: $gray-400 !important;
197 }
198
199 .acf-requires-pro {
200 justify-content: center;
201 align-items: center;
202 color: white;
203 background: $gradient-pro;
204 border-radius: 100px;
205 font-size: 11px;
206 position: absolute;
207 right: 16px;
208 padding: {
209 right: 6px;
210 left: 6px;
211 }
212 }
213 }
214
215 // First list item
216 &:first-child {
217 a {
218 border-bottom: none;
219 }
220 }
221
222 }
223
224 &:hover,
225 &:focus {
226 display: block;
227 }
228 }
229 &:hover,
230 &:focus {
231 ul {
232 display: block;
233 }
234 }
235 }
236
237 // Within wpcontent.
238 #wpcontent & {
239 box-sizing: border-box;
240 margin-left: -20px;
241 padding: {
242 top: 16px;
243 right: 32px;
244 bottom: 16px;
245 left: 32px;
246 }
247 }
248
249 // Mobile
250 @media screen and (max-width: 600px) {
251 & {
252 display: none;
253 }
254 }
255 }
256
257 .rtl {
258 #wpcontent .acf-admin-toolbar {
259 margin-left: 0;
260 margin-right: -20px;
261
262 .acf-tab {
263 margin: {
264 left: 8px;
265 right: 0;
266 }
267 }
268 }
269
270 .acf-logo {
271 margin: {
272 right: 0;
273 left: 32px;
274 }
275 }
276 }
277
278 /*---------------------------------------------------------------------------------------------
279 *
280 * Admin Toolbar Icons
281 *
282 *---------------------------------------------------------------------------------------------*/
283 .acf-admin-toolbar {
284 .acf-tab,
285 .acf-more {
286 i.acf-icon {
287 display: none; // Icons only shown for specified nav items below
288 margin: {
289 right: 8px;
290 left: -2px;
291 }
292
293 &.acf-icon-dropdown {
294 -webkit-mask-image: url("../../images/icons/icon-chevron-down.svg");
295 mask-image: url("../../images/icons/icon-chevron-down.svg");
296 $icon-size: 16px;
297 width: $icon-size;
298 height: $icon-size;
299 -webkit-mask-size: $icon-size;
300 mask-size: $icon-size;
301 margin: {
302 right: -6px;
303 left: 6px;
304 };
305 }
306
307 }
308
309 // Only show icons for specified nav items, stops third party plugin items with no icon appearing broken
310 &.acf-header-tab-acf-field-group,
311 &.acf-header-tab-acf-post-type,
312 &.acf-header-tab-acf-taxonomy,
313 &.acf-header-tab-acf-tools,
314 &.acf-header-tab-acf-settings-updates,
315 &.acf-header-tab-acf-more {
316 i.acf-icon {
317 display: inline-flex;
318 }
319 }
320
321 &.is-active,
322 &:hover {
323 i.acf-icon {
324 background-color: $gray-200;
325 }
326 }
327 }
328
329 .rtl & .acf-tab {
330 i.acf-icon {
331 margin: {
332 right: -2px;
333 left: 8px;
334 }
335 }
336 }
337
338 // Field groups tab
339 .acf-header-tab-acf-field-group {
340 i.acf-icon {
341 $icon-url: url("../../images/icons/icon-field-groups.svg");
342 -webkit-mask-image: $icon-url;
343 mask-image: $icon-url;
344 }
345 }
346
347 // Post types tab
348 .acf-header-tab-acf-post-type {
349 i.acf-icon {
350 $icon-url: url("../../images/icons/icon-post-type.svg");
351 -webkit-mask-image: $icon-url;
352 mask-image: $icon-url;
353 }
354 }
355
356 // Taxonomies tab
357 .acf-header-tab-acf-taxonomy {
358 i.acf-icon {
359 $icon-url: url("../../images/icons/icon-taxonomies.svg");
360 -webkit-mask-image: $icon-url;
361 mask-image: $icon-url;
362 }
363 }
364
365 // Tools tab
366 .acf-header-tab-acf-tools {
367 i.acf-icon {
368 $icon-url: url("../../images/icons/icon-tools.svg");
369 -webkit-mask-image: $icon-url;
370 mask-image: $icon-url;
371 }
372 }
373
374 // Updates tab
375 .acf-header-tab-acf-settings-updates {
376 i.acf-icon {
377 $icon-url: url("../../images/icons/icon-updates.svg");
378 -webkit-mask-image: $icon-url;
379 mask-image: $icon-url;
380 }
381 }
382
383 // More tab
384 .acf-header-tab-acf-more {
385 i.acf-icon-more {
386 $icon-url: url("../../images/icons/icon-extended-menu.svg");
387 -webkit-mask-image: $icon-url;
388 mask-image: $icon-url;
389 }
390 }
391 }
392