1 /** |
1 .wp-block-post-featured-image{ |
2 * Colors |
2 margin-left:0; |
3 */ |
3 margin-right:0; |
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 * 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-post-featured-image { |
|
78 margin-right: 0; |
|
79 margin-left: 0; |
|
80 } |
4 } |
81 .wp-block-post-featured-image a { |
5 .wp-block-post-featured-image a{ |
82 display: block; |
6 display:block; |
|
7 height:100%; |
83 } |
8 } |
84 .wp-block-post-featured-image img { |
9 .wp-block-post-featured-image :where(img){ |
85 max-width: 100%; |
10 box-sizing:border-box; |
86 width: 100%; |
11 height:auto; |
87 height: auto; |
12 max-width:100%; |
88 vertical-align: bottom; |
13 vertical-align:bottom; |
|
14 width:100%; |
89 } |
15 } |
90 .wp-block-post-featured-image.alignwide img, .wp-block-post-featured-image.alignfull img { |
16 .wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{ |
91 width: 100%; |
17 width:100%; |
92 } |
18 } |
|
19 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{ |
|
20 background-color:#000; |
|
21 inset:0; |
|
22 position:absolute; |
|
23 } |
|
24 .wp-block-post-featured-image{ |
|
25 position:relative; |
|
26 } |
|
27 |
|
28 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{ |
|
29 background-color:initial; |
|
30 } |
|
31 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{ |
|
32 opacity:0; |
|
33 } |
|
34 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{ |
|
35 opacity:.1; |
|
36 } |
|
37 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{ |
|
38 opacity:.2; |
|
39 } |
|
40 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{ |
|
41 opacity:.3; |
|
42 } |
|
43 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{ |
|
44 opacity:.4; |
|
45 } |
|
46 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{ |
|
47 opacity:.5; |
|
48 } |
|
49 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{ |
|
50 opacity:.6; |
|
51 } |
|
52 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{ |
|
53 opacity:.7; |
|
54 } |
|
55 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{ |
|
56 opacity:.8; |
|
57 } |
|
58 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{ |
|
59 opacity:.9; |
|
60 } |
|
61 .wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{ |
|
62 opacity:1; |
|
63 } |
|
64 .wp-block-post-featured-image:where(.alignleft,.alignright){ |
|
65 width:100%; |
|
66 } |