|
1 /** |
|
2 * Colors |
|
3 */ |
|
4 /** |
|
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 * Breakpoint mixins |
|
45 */ |
|
46 /** |
|
47 * Long content fade mixin |
|
48 * |
|
49 * Creates a fading overlay to signify that the content is longer |
|
50 * than the space allows. |
|
51 */ |
|
52 /** |
|
53 * Focus styles. |
|
54 */ |
|
55 /** |
|
56 * Applies editor left position to the selector passed as argument |
|
57 */ |
|
58 /** |
|
59 * Styles that are reused verbatim in a few places |
|
60 */ |
|
61 /** |
|
62 * Allows users to opt-out of animations via OS-level preferences. |
|
63 */ |
|
64 /** |
|
65 * Reset default styles for JavaScript UI based pages. |
|
66 * This is a WP-admin agnostic reset |
|
67 */ |
|
68 /** |
|
69 * Reset the WP Admin page styles for Gutenberg-like pages. |
|
70 */ |
|
71 .wp-block-image { |
|
72 margin: 0 0 1em 0; |
|
73 } |
|
74 .wp-block-image img { |
|
75 max-width: 100%; |
|
76 } |
|
77 .wp-block-image:not(.is-style-rounded) img { |
|
78 border-radius: inherit; |
|
79 } |
|
80 .wp-block-image.aligncenter { |
|
81 text-align: center; |
|
82 } |
|
83 .wp-block-image.alignfull img, .wp-block-image.alignwide img { |
|
84 width: 100%; |
|
85 } |
|
86 .wp-block-image .alignleft, |
|
87 .wp-block-image .alignright, |
|
88 .wp-block-image .aligncenter { |
|
89 display: table; |
|
90 } |
|
91 .wp-block-image .alignleft > figcaption, |
|
92 .wp-block-image .alignright > figcaption, |
|
93 .wp-block-image .aligncenter > figcaption { |
|
94 display: table-caption; |
|
95 caption-side: bottom; |
|
96 } |
|
97 .wp-block-image .alignleft { |
|
98 float: left; |
|
99 margin-left: 0; |
|
100 margin-left: 1em; |
|
101 margin-top: 0.5em; |
|
102 margin-bottom: 0.5em; |
|
103 } |
|
104 .wp-block-image .alignright { |
|
105 float: right; |
|
106 margin-right: 0; |
|
107 margin-right: 1em; |
|
108 margin-top: 0.5em; |
|
109 margin-bottom: 0.5em; |
|
110 } |
|
111 .wp-block-image .aligncenter { |
|
112 margin-right: auto; |
|
113 margin-left: auto; |
|
114 } |
|
115 .wp-block-image figcaption { |
|
116 margin-top: 0.5em; |
|
117 margin-bottom: 1em; |
|
118 } |
|
119 .wp-block-image.is-style-rounded img { |
|
120 border-radius: 9999px; |
|
121 } |
|
122 .wp-block-image.is-style-circle-mask img { |
|
123 border-radius: 9999px; |
|
124 } |
|
125 @supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) { |
|
126 .wp-block-image.is-style-circle-mask img { |
|
127 /* stylelint-disable */ |
|
128 -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>'); |
|
129 mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>'); |
|
130 /* stylelint-enable */ |
|
131 mask-mode: alpha; |
|
132 -webkit-mask-repeat: no-repeat; |
|
133 mask-repeat: no-repeat; |
|
134 -webkit-mask-size: contain; |
|
135 mask-size: contain; |
|
136 -webkit-mask-position: center; |
|
137 mask-position: center; |
|
138 border-radius: 0; |
|
139 } |
|
140 } |
|
141 |
|
142 .wp-block-image figure { |
|
143 margin: 0; |
|
144 } |