1 /** |
1 .wp-block-audio :where(figcaption){ |
2 * Colors |
2 color:#555; |
3 */ |
3 font-size:13px; |
4 /** |
4 text-align:center; |
5 * Breakpoints & Media Queries |
|
6 */ |
|
7 /** |
|
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. |
|
13 */ |
|
14 /** |
|
15 * Colors |
|
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 /** |
|
34 * Block & Editor UI. |
|
35 */ |
|
36 /** |
|
37 * Block paddings. |
|
38 */ |
|
39 /** |
|
40 * React Native specific. |
|
41 * These variables do not appear to be used anywhere else. |
|
42 */ |
|
43 /** |
|
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 /** |
|
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 /** |
|
59 * Focus styles. |
|
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 */ |
|
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 .wp-block-audio figcaption { |
|
78 color: #555; |
|
79 font-size: 13px; |
|
80 text-align: center; |
|
81 } |
5 } |
82 .is-dark-theme .wp-block-audio figcaption { |
6 .is-dark-theme .wp-block-audio :where(figcaption){ |
83 color: rgba(255, 255, 255, 0.65); |
7 color:#ffffffa6; |
84 } |
8 } |
85 |
9 |
86 .wp-block-code { |
10 .wp-block-audio{ |
87 border: 1px solid #ccc; |
11 margin:0 0 1em; |
88 border-radius: 4px; |
|
89 font-family: Menlo, Consolas, monaco, monospace; |
|
90 padding: 0.8em 1em; |
|
91 } |
12 } |
92 |
13 |
93 .wp-block-embed figcaption { |
14 .wp-block-code{ |
94 color: #555; |
15 border:1px solid #ccc; |
95 font-size: 13px; |
16 border-radius:4px; |
96 text-align: center; |
17 font-family:Menlo,Consolas,monaco,monospace; |
97 } |
18 padding:.8em 1em; |
98 .is-dark-theme .wp-block-embed figcaption { |
|
99 color: rgba(255, 255, 255, 0.65); |
|
100 } |
19 } |
101 |
20 |
102 .blocks-gallery-caption { |
21 .wp-block-embed :where(figcaption){ |
103 color: #555; |
22 color:#555; |
104 font-size: 13px; |
23 font-size:13px; |
105 text-align: center; |
24 text-align:center; |
106 } |
25 } |
107 .is-dark-theme .blocks-gallery-caption { |
26 .is-dark-theme .wp-block-embed :where(figcaption){ |
108 color: rgba(255, 255, 255, 0.65); |
27 color:#ffffffa6; |
109 } |
28 } |
110 |
29 |
111 .wp-block-image figcaption { |
30 .wp-block-embed{ |
112 color: #555; |
31 margin:0 0 1em; |
113 font-size: 13px; |
|
114 text-align: center; |
|
115 } |
|
116 .is-dark-theme .wp-block-image figcaption { |
|
117 color: rgba(255, 255, 255, 0.65); |
|
118 } |
32 } |
119 |
33 |
120 .wp-block-pullquote { |
34 .blocks-gallery-caption{ |
121 border-top: 4px solid currentColor; |
35 color:#555; |
122 border-bottom: 4px solid currentColor; |
36 font-size:13px; |
123 margin-bottom: 1.75em; |
37 text-align:center; |
124 color: currentColor; |
|
125 } |
38 } |
126 .wp-block-pullquote cite, |
39 .is-dark-theme .blocks-gallery-caption{ |
127 .wp-block-pullquote footer, .wp-block-pullquote__citation { |
40 color:#ffffffa6; |
128 color: currentColor; |
|
129 text-transform: uppercase; |
|
130 font-size: 0.8125em; |
|
131 font-style: normal; |
|
132 } |
41 } |
133 |
42 |
134 .wp-block-quote { |
43 :root :where(.wp-block-image figcaption){ |
135 border-right: 0.25em solid currentColor; |
44 color:#555; |
136 margin: 0 0 1.75em 0; |
45 font-size:13px; |
137 padding-right: 1em; |
46 text-align:center; |
138 } |
47 } |
139 .wp-block-quote cite, |
48 .is-dark-theme :root :where(.wp-block-image figcaption){ |
140 .wp-block-quote footer { |
49 color:#ffffffa6; |
141 color: currentColor; |
|
142 font-size: 0.8125em; |
|
143 position: relative; |
|
144 font-style: normal; |
|
145 } |
|
146 .wp-block-quote.has-text-align-right { |
|
147 border-right: none; |
|
148 border-left: 0.25em solid currentColor; |
|
149 padding-right: 0; |
|
150 padding-left: 1em; |
|
151 } |
|
152 .wp-block-quote.has-text-align-center { |
|
153 border: none; |
|
154 padding-right: 0; |
|
155 } |
|
156 .wp-block-quote.is-style-plain, .wp-block-quote.is-style-large, .wp-block-quote.is-large { |
|
157 border: none; |
|
158 } |
50 } |
159 |
51 |
160 .wp-block-search .wp-block-search__label { |
52 .wp-block-image{ |
161 font-weight: bold; |
53 margin:0 0 1em; |
162 } |
54 } |
163 |
55 |
164 :where(.wp-block-group.has-background) { |
56 .wp-block-pullquote{ |
165 padding: 1.25em 2.375em; |
57 border-bottom:4px solid; |
|
58 border-top:4px solid; |
|
59 color:currentColor; |
|
60 margin-bottom:1.75em; |
|
61 } |
|
62 .wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{ |
|
63 color:currentColor; |
|
64 font-size:.8125em; |
|
65 font-style:normal; |
|
66 text-transform:uppercase; |
166 } |
67 } |
167 |
68 |
168 .wp-block-separator.has-css-opacity { |
69 .wp-block-quote{ |
169 opacity: 0.4; |
70 border-right:.25em solid; |
|
71 margin:0 0 1.75em; |
|
72 padding-right:1em; |
|
73 } |
|
74 .wp-block-quote cite,.wp-block-quote footer{ |
|
75 color:currentColor; |
|
76 font-size:.8125em; |
|
77 font-style:normal; |
|
78 position:relative; |
|
79 } |
|
80 .wp-block-quote.has-text-align-right{ |
|
81 border-left:.25em solid; |
|
82 border-right:none; |
|
83 padding-left:1em; |
|
84 padding-right:0; |
|
85 } |
|
86 .wp-block-quote.has-text-align-center{ |
|
87 border:none; |
|
88 padding-right:0; |
|
89 } |
|
90 .wp-block-quote.is-large,.wp-block-quote.is-style-large,.wp-block-quote.is-style-plain{ |
|
91 border:none; |
170 } |
92 } |
171 |
93 |
172 .wp-block-separator { |
94 .wp-block-search .wp-block-search__label{ |
173 border: none; |
95 font-weight:700; |
174 border-bottom: 2px solid currentColor; |
|
175 margin-right: auto; |
|
176 margin-left: auto; |
|
177 } |
|
178 .wp-block-separator.has-alpha-channel-opacity { |
|
179 opacity: initial; |
|
180 } |
|
181 .wp-block-separator:not(.is-style-wide):not(.is-style-dots) { |
|
182 width: 100px; |
|
183 } |
|
184 .wp-block-separator.has-background:not(.is-style-dots) { |
|
185 border-bottom: none; |
|
186 height: 1px; |
|
187 } |
|
188 .wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots) { |
|
189 height: 2px; |
|
190 } |
96 } |
191 |
97 |
192 .wp-block-table thead { |
98 .wp-block-search__button{ |
193 border-bottom: 3px solid; |
99 border:1px solid #ccc; |
194 } |
100 padding:.375em .625em; |
195 .wp-block-table tfoot { |
|
196 border-top: 3px solid; |
|
197 } |
|
198 .wp-block-table td, |
|
199 .wp-block-table th { |
|
200 padding: 0.5em; |
|
201 border: 1px solid; |
|
202 word-break: normal; |
|
203 } |
|
204 .wp-block-table figcaption { |
|
205 color: #555; |
|
206 font-size: 13px; |
|
207 text-align: center; |
|
208 } |
|
209 .is-dark-theme .wp-block-table figcaption { |
|
210 color: rgba(255, 255, 255, 0.65); |
|
211 } |
101 } |
212 |
102 |
213 .wp-block-video figcaption { |
103 :where(.wp-block-group.has-background){ |
214 color: #555; |
104 padding:1.25em 2.375em; |
215 font-size: 13px; |
|
216 text-align: center; |
|
217 } |
|
218 .is-dark-theme .wp-block-video figcaption { |
|
219 color: rgba(255, 255, 255, 0.65); |
|
220 } |
105 } |
221 |
106 |
222 .wp-block-template-part.has-background { |
107 .wp-block-separator.has-css-opacity{ |
223 padding: 1.25em 2.375em; |
108 opacity:.4; |
224 margin-top: 0; |
|
225 margin-bottom: 0; |
|
226 } |
109 } |
|
110 |
|
111 .wp-block-separator{ |
|
112 border:none; |
|
113 border-bottom:2px solid; |
|
114 margin-left:auto; |
|
115 margin-right:auto; |
|
116 } |
|
117 .wp-block-separator.has-alpha-channel-opacity{ |
|
118 opacity:1; |
|
119 } |
|
120 .wp-block-separator:not(.is-style-wide):not(.is-style-dots){ |
|
121 width:100px; |
|
122 } |
|
123 .wp-block-separator.has-background:not(.is-style-dots){ |
|
124 border-bottom:none; |
|
125 height:1px; |
|
126 } |
|
127 .wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){ |
|
128 height:2px; |
|
129 } |
|
130 |
|
131 .wp-block-table{ |
|
132 margin:0 0 1em; |
|
133 } |
|
134 .wp-block-table td,.wp-block-table th{ |
|
135 word-break:normal; |
|
136 } |
|
137 .wp-block-table :where(figcaption){ |
|
138 color:#555; |
|
139 font-size:13px; |
|
140 text-align:center; |
|
141 } |
|
142 .is-dark-theme .wp-block-table :where(figcaption){ |
|
143 color:#ffffffa6; |
|
144 } |
|
145 |
|
146 .wp-block-video :where(figcaption){ |
|
147 color:#555; |
|
148 font-size:13px; |
|
149 text-align:center; |
|
150 } |
|
151 .is-dark-theme .wp-block-video :where(figcaption){ |
|
152 color:#ffffffa6; |
|
153 } |
|
154 |
|
155 .wp-block-video{ |
|
156 margin:0 0 1em; |
|
157 } |
|
158 |
|
159 :root :where(.wp-block-template-part.has-background){ |
|
160 margin-bottom:0; |
|
161 margin-top:0; |
|
162 padding:1.25em 2.375em; |
|
163 } |