|
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-table { |
|
72 margin: 0 0 1em 0; |
|
73 overflow-x: auto; |
|
74 } |
|
75 .wp-block-table table { |
|
76 border-collapse: collapse; |
|
77 width: 100%; |
|
78 } |
|
79 .wp-block-table .has-fixed-layout { |
|
80 table-layout: fixed; |
|
81 width: 100%; |
|
82 } |
|
83 .wp-block-table .has-fixed-layout td, |
|
84 .wp-block-table .has-fixed-layout th { |
|
85 word-break: break-word; |
|
86 } |
|
87 .wp-block-table.alignleft, .wp-block-table.aligncenter, .wp-block-table.alignright { |
|
88 display: table; |
|
89 width: auto; |
|
90 } |
|
91 .wp-block-table.alignleft td, |
|
92 .wp-block-table.alignleft th, .wp-block-table.aligncenter td, |
|
93 .wp-block-table.aligncenter th, .wp-block-table.alignright td, |
|
94 .wp-block-table.alignright th { |
|
95 word-break: break-word; |
|
96 } |
|
97 .wp-block-table .has-subtle-light-gray-background-color { |
|
98 background-color: #f3f4f5; |
|
99 } |
|
100 .wp-block-table .has-subtle-pale-green-background-color { |
|
101 background-color: #e9fbe5; |
|
102 } |
|
103 .wp-block-table .has-subtle-pale-blue-background-color { |
|
104 background-color: #e7f5fe; |
|
105 } |
|
106 .wp-block-table .has-subtle-pale-pink-background-color { |
|
107 background-color: #fcf0ef; |
|
108 } |
|
109 .wp-block-table.is-style-stripes { |
|
110 border-spacing: 0; |
|
111 border-collapse: inherit; |
|
112 background-color: transparent; |
|
113 border-bottom: 1px solid #f0f0f0; |
|
114 } |
|
115 .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { |
|
116 background-color: #f0f0f0; |
|
117 } |
|
118 .wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd) { |
|
119 background-color: #f3f4f5; |
|
120 } |
|
121 .wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd) { |
|
122 background-color: #e9fbe5; |
|
123 } |
|
124 .wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd) { |
|
125 background-color: #e7f5fe; |
|
126 } |
|
127 .wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd) { |
|
128 background-color: #fcf0ef; |
|
129 } |
|
130 .wp-block-table.is-style-stripes th, |
|
131 .wp-block-table.is-style-stripes td { |
|
132 border-color: transparent; |
|
133 } |
|
134 .wp-block-table .has-border-color > *, |
|
135 .wp-block-table .has-border-color tr, |
|
136 .wp-block-table .has-border-color th, |
|
137 .wp-block-table .has-border-color td { |
|
138 border-color: inherit; |
|
139 } |
|
140 .wp-block-table table[style*=border-style] > *, |
|
141 .wp-block-table table[style*=border-style] tr, |
|
142 .wp-block-table table[style*=border-style] th, |
|
143 .wp-block-table table[style*=border-style] td { |
|
144 border-style: inherit; |
|
145 } |
|
146 .wp-block-table table[style*=border-width] > *, |
|
147 .wp-block-table table[style*=border-width] tr, |
|
148 .wp-block-table table[style*=border-width] th, |
|
149 .wp-block-table table[style*=border-width] td { |
|
150 border-width: inherit; |
|
151 } |