18
|
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 |
/** |
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 |
/** |
18
|
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-image { |
|
78 |
margin: 0 0 1em 0; |
|
79 |
} |
|
80 |
.wp-block-image img { |
19
|
81 |
height: auto; |
18
|
82 |
max-width: 100%; |
19
|
83 |
vertical-align: bottom; |
18
|
84 |
} |
19
|
85 |
.wp-block-image:not(.is-style-rounded) > a, |
18
|
86 |
.wp-block-image:not(.is-style-rounded) img { |
|
87 |
border-radius: inherit; |
|
88 |
} |
|
89 |
.wp-block-image.aligncenter { |
|
90 |
text-align: center; |
|
91 |
} |
|
92 |
.wp-block-image.alignfull img, .wp-block-image.alignwide img { |
19
|
93 |
height: auto; |
18
|
94 |
width: 100%; |
|
95 |
} |
19
|
96 |
.wp-block-image.alignleft, .wp-block-image.alignright, .wp-block-image.aligncenter, |
18
|
97 |
.wp-block-image .alignleft, |
|
98 |
.wp-block-image .alignright, |
|
99 |
.wp-block-image .aligncenter { |
|
100 |
display: table; |
|
101 |
} |
19
|
102 |
.wp-block-image.alignleft > figcaption, .wp-block-image.alignright > figcaption, .wp-block-image.aligncenter > figcaption, |
18
|
103 |
.wp-block-image .alignleft > figcaption, |
|
104 |
.wp-block-image .alignright > figcaption, |
|
105 |
.wp-block-image .aligncenter > figcaption { |
|
106 |
display: table-caption; |
|
107 |
caption-side: bottom; |
|
108 |
} |
|
109 |
.wp-block-image .alignleft { |
|
110 |
float: left; |
|
111 |
margin-left: 0; |
|
112 |
margin-left: 1em; |
|
113 |
margin-top: 0.5em; |
|
114 |
margin-bottom: 0.5em; |
|
115 |
} |
|
116 |
.wp-block-image .alignright { |
|
117 |
float: right; |
|
118 |
margin-right: 0; |
|
119 |
margin-right: 1em; |
|
120 |
margin-top: 0.5em; |
|
121 |
margin-bottom: 0.5em; |
|
122 |
} |
|
123 |
.wp-block-image .aligncenter { |
|
124 |
margin-right: auto; |
|
125 |
margin-left: auto; |
|
126 |
} |
|
127 |
.wp-block-image figcaption { |
|
128 |
margin-top: 0.5em; |
|
129 |
margin-bottom: 1em; |
|
130 |
} |
19
|
131 |
.wp-block-image.is-style-rounded img, |
|
132 |
.wp-block-image .is-style-rounded img { |
18
|
133 |
border-radius: 9999px; |
|
134 |
} |
|
135 |
.wp-block-image.is-style-circle-mask img { |
|
136 |
border-radius: 9999px; |
|
137 |
} |
|
138 |
@supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) { |
|
139 |
.wp-block-image.is-style-circle-mask img { |
|
140 |
/* stylelint-disable */ |
|
141 |
-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>'); |
|
142 |
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>'); |
|
143 |
/* stylelint-enable */ |
|
144 |
mask-mode: alpha; |
|
145 |
-webkit-mask-repeat: no-repeat; |
|
146 |
mask-repeat: no-repeat; |
|
147 |
-webkit-mask-size: contain; |
|
148 |
mask-size: contain; |
|
149 |
-webkit-mask-position: center; |
|
150 |
mask-position: center; |
|
151 |
border-radius: 0; |
|
152 |
} |
|
153 |
} |
|
154 |
|
|
155 |
.wp-block-image figure { |
|
156 |
margin: 0; |
|
157 |
} |