PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
gutenberg / build / styles / block-library / latest-posts / style.css

style.css in Gutenberg trunk, at build/styles/block-library/latest-posts/style.css

202 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Breakpoints & Media Queries
3 */
4 /**
5 * Typography
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 * Typography
22 */
23 /**
24 * Grid System.
25 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
26 */
27 /**
28 * Radius scale.
29 */
30 /**
31 * Elevation scale.
32 */
33 /**
34 * Dimensions.
35 */
36 /**
37 * Mobile specific styles
38 */
39 /**
40 * Editor styles.
41 */
42 /**
43 * Block & Editor UI.
44 */
45 /**
46 * Block paddings.
47 */
48 /**
49 * React Native specific.
50 * These variables do not appear to be used anywhere else.
51 */
52 /**
53 * Converts a hex value into the rgb equivalent.
54 *
55 * @param {string} hex - the hexadecimal value to convert
56 * @return {string} comma separated rgb values
57 */
58 /**
59 * Long content fade mixin
60 *
61 * Creates a fading overlay to signify that the content is longer
62 * than the space allows.
63 */
64 /**
65 * Breakpoint mixins
66 */
67 /**
68 * Focus styles.
69 */
70 /**
71 * Standard focus rings for the WordPress Design System.
72 *
73 * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
74 * e.g. `&:focus { @include outset-ring__focus(); }`.
75 */
76 /**
77 * Applies editor left position to the selector passed as argument
78 */
79 /**
80 * Styles that are reused verbatim in a few places
81 */
82 /**
83 * Allows users to opt-out of animations via OS-level preferences.
84 */
85 /**
86 * Reset default styles for JavaScript UI based pages.
87 * This is a WP-admin agnostic reset
88 */
89 /**
90 * Reset the WP Admin page styles for Gutenberg-like pages.
91 */
92 /**
93 * Creates a checkerboard pattern background to indicate transparency.
94 * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
95 */
96 .wp-block-latest-posts {
97 box-sizing: border-box;
98 }
99 .wp-block-latest-posts.alignleft {
100 /*rtl:ignore*/
101 margin-right: 2em;
102 }
103 .wp-block-latest-posts.alignright {
104 /*rtl:ignore*/
105 margin-left: 2em;
106 }
107 .wp-block-latest-posts.wp-block-latest-posts__list {
108 list-style: none;
109 }
110 .wp-block-latest-posts.wp-block-latest-posts__list li {
111 clear: both;
112 overflow-wrap: break-word;
113 }
114 .wp-block-latest-posts.is-grid:not(.is-layout-grid) {
115 display: flex;
116 flex-wrap: wrap;
117 }
118 .wp-block-latest-posts.is-grid:not(.is-layout-grid) li {
119 margin: 0 1.25em 1.25em 0;
120 width: 100%;
121 }
122 @media (min-width: 600px) {
123 .wp-block-latest-posts.columns-2:not(.is-layout-grid) li {
124 width: calc(100% / 2 - 1.25em + 1.25em / 2);
125 }
126 .wp-block-latest-posts.columns-2:not(.is-layout-grid) li:nth-child(2n) {
127 margin-right: 0;
128 }
129 .wp-block-latest-posts.columns-3:not(.is-layout-grid) li {
130 width: calc(100% / 3 - 1.25em + 1.25em / 3);
131 }
132 .wp-block-latest-posts.columns-3:not(.is-layout-grid) li:nth-child(3n) {
133 margin-right: 0;
134 }
135 .wp-block-latest-posts.columns-4:not(.is-layout-grid) li {
136 width: calc(100% / 4 - 1.25em + 1.25em / 4);
137 }
138 .wp-block-latest-posts.columns-4:not(.is-layout-grid) li:nth-child(4n) {
139 margin-right: 0;
140 }
141 .wp-block-latest-posts.columns-5:not(.is-layout-grid) li {
142 width: calc(100% / 5 - 1.25em + 1.25em / 5);
143 }
144 .wp-block-latest-posts.columns-5:not(.is-layout-grid) li:nth-child(5n) {
145 margin-right: 0;
146 }
147 .wp-block-latest-posts.columns-6:not(.is-layout-grid) li {
148 width: calc(100% / 6 - 1.25em + 1.25em / 6);
149 }
150 .wp-block-latest-posts.columns-6:not(.is-layout-grid) li:nth-child(6n) {
151 margin-right: 0;
152 }
153 }
154
155 @media (max-width: 600px) {
156 .wp-block-latest-posts-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid) {
157 grid-template-columns: 1fr;
158 }
159 }
160 :root :where(.wp-block-latest-posts.is-grid) {
161 padding: 0;
162 }
163 :root :where(.wp-block-latest-posts.wp-block-latest-posts__list) {
164 padding-left: 0;
165 }
166
167 .wp-block-latest-posts__post-date,
168 .wp-block-latest-posts__post-author {
169 display: block;
170 font-size: 0.8125em;
171 }
172
173 .wp-block-latest-posts__post-excerpt,
174 .wp-block-latest-posts__post-full-content {
175 margin-top: 0.5em;
176 margin-bottom: 1em;
177 }
178
179 .wp-block-latest-posts__featured-image a {
180 display: inline-block;
181 }
182 .wp-block-latest-posts__featured-image img {
183 height: auto;
184 width: auto;
185 max-width: 100%;
186 }
187 .wp-block-latest-posts__featured-image.alignleft {
188 /*rtl:ignore*/
189 margin-right: 1em;
190 /*rtl:ignore*/
191 float: left;
192 }
193 .wp-block-latest-posts__featured-image.alignright {
194 /*rtl:ignore*/
195 margin-left: 1em;
196 /*rtl:ignore*/
197 float: right;
198 }
199 .wp-block-latest-posts__featured-image.aligncenter {
200 margin-bottom: 1em;
201 text-align: center;
202 }