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 |
} |
|
91 |
|
|
92 |
.block-editor-format-toolbar__image-popover { |
|
93 |
z-index: 159990; |
|
94 |
} |
16
|
95 |
|
9
|
96 |
.block-editor-format-toolbar__image-container-content { |
18
|
97 |
display: flex; |
|
98 |
} |
|
99 |
.block-editor-format-toolbar__image-container-content .components-button { |
|
100 |
align-self: flex-end; |
|
101 |
height: 30px; |
|
102 |
margin-bottom: 8px; |
|
103 |
margin-left: 8px; |
|
104 |
padding: 0 6px; |
|
105 |
} |
9
|
106 |
|
|
107 |
.block-editor-format-toolbar__image-container-value { |
|
108 |
margin: 7px; |
|
109 |
flex-grow: 1; |
|
110 |
flex-shrink: 1; |
|
111 |
white-space: nowrap; |
|
112 |
min-width: 150px; |
18
|
113 |
max-width: 500px; |
|
114 |
} |
|
115 |
.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field { |
|
116 |
margin-bottom: 0; |
|
117 |
} |
|
118 |
.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__label { |
|
119 |
display: block; |
|
120 |
} |
9
|
121 |
|
|
122 |
.block-editor-format-toolbar__link-container-content { |
18
|
123 |
display: flex; |
|
124 |
} |
9
|
125 |
|
|
126 |
.block-editor-format-toolbar__link-container-value { |
|
127 |
margin: 7px; |
|
128 |
flex-grow: 1; |
|
129 |
flex-shrink: 1; |
|
130 |
overflow: hidden; |
|
131 |
text-overflow: ellipsis; |
|
132 |
white-space: nowrap; |
|
133 |
min-width: 150px; |
18
|
134 |
max-width: 500px; |
|
135 |
} |
|
136 |
.block-editor-format-toolbar__link-container-value.has-invalid-link { |
|
137 |
color: #cc1818; |
|
138 |
} |
16
|
139 |
|
19
|
140 |
.components-inline-color-popover .components-popover__content .components-tab-panel__tab-content { |
|
141 |
padding: 16px; |
18
|
142 |
} |
16
|
143 |
.components-inline-color-popover .components-popover__content .components-color-palette { |
18
|
144 |
margin-top: 0.6rem; |
|
145 |
} |
16
|
146 |
.components-inline-color-popover .components-popover__content .components-base-control__title { |
|
147 |
display: block; |
|
148 |
margin-bottom: 16px; |
|
149 |
font-weight: 600; |
18
|
150 |
color: #191e23; |
|
151 |
} |
16
|
152 |
.components-inline-color-popover .components-popover__content .component-color-indicator { |
18
|
153 |
vertical-align: text-bottom; |
|
154 |
} |