| 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 |
* Applies editor left position to the selector passed as argument |
| 72 |
*/ |
| 73 |
/** |
| 74 |
* Styles that are reused verbatim in a few places |
| 75 |
*/ |
| 76 |
/** |
| 77 |
* Allows users to opt-out of animations via OS-level preferences. |
| 78 |
*/ |
| 79 |
/** |
| 80 |
* Reset default styles for JavaScript UI based pages. |
| 81 |
* This is a WP-admin agnostic reset |
| 82 |
*/ |
| 83 |
/** |
| 84 |
* Reset the WP Admin page styles for Gutenberg-like pages. |
| 85 |
*/ |
| 86 |
/** |
| 87 |
* Creates a checkerboard pattern background to indicate transparency. |
| 88 |
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px. |
| 89 |
*/ |
| 90 |
.wp-block-post-template { |
| 91 |
margin-top: 0; |
| 92 |
margin-bottom: 0; |
| 93 |
max-width: 100%; |
| 94 |
list-style: none; |
| 95 |
padding: 0; |
| 96 |
box-sizing: border-box; |
| 97 |
} |
| 98 |
.wp-block-post-template.is-flex-container { |
| 99 |
flex-direction: row; |
| 100 |
display: flex; |
| 101 |
flex-wrap: wrap; |
| 102 |
gap: 1.25em; |
| 103 |
} |
| 104 |
.wp-block-post-template.is-flex-container > li { |
| 105 |
margin: 0; |
| 106 |
width: 100%; |
| 107 |
} |
| 108 |
@media (min-width: 600px) { |
| 109 |
.wp-block-post-template.is-flex-container.is-flex-container.columns-2 > li { |
| 110 |
width: calc(100% / 2 - 1.25em + 1.25em / 2); |
| 111 |
} |
| 112 |
.wp-block-post-template.is-flex-container.is-flex-container.columns-3 > li { |
| 113 |
width: calc(100% / 3 - 1.25em + 1.25em / 3); |
| 114 |
} |
| 115 |
.wp-block-post-template.is-flex-container.is-flex-container.columns-4 > li { |
| 116 |
width: calc(100% / 4 - 1.25em + 1.25em / 4); |
| 117 |
} |
| 118 |
.wp-block-post-template.is-flex-container.is-flex-container.columns-5 > li { |
| 119 |
width: calc(100% / 5 - 1.25em + 1.25em / 5); |
| 120 |
} |
| 121 |
.wp-block-post-template.is-flex-container.is-flex-container.columns-6 > li { |
| 122 |
width: calc(100% / 6 - 1.25em + 1.25em / 6); |
| 123 |
} |
| 124 |
} |
| 125 |
|
| 126 |
@media (max-width: 600px) { |
| 127 |
.wp-block-post-template-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid) { |
| 128 |
grid-template-columns: 1fr; |
| 129 |
} |
| 130 |
} |
| 131 |
.wp-block-post-template-is-layout-constrained > li > .alignright, |
| 132 |
.wp-block-post-template-is-layout-flow > li > .alignright { |
| 133 |
float: right; |
| 134 |
margin-inline-start: 2em; |
| 135 |
margin-inline-end: 0; |
| 136 |
} |
| 137 |
|
| 138 |
.wp-block-post-template-is-layout-constrained > li > .alignleft, |
| 139 |
.wp-block-post-template-is-layout-flow > li > .alignleft { |
| 140 |
float: left; |
| 141 |
margin-inline-start: 0; |
| 142 |
margin-inline-end: 2em; |
| 143 |
} |
| 144 |
|
| 145 |
.wp-block-post-template-is-layout-constrained > li > .aligncenter, |
| 146 |
.wp-block-post-template-is-layout-flow > li > .aligncenter { |
| 147 |
margin-inline-start: auto; |
| 148 |
margin-inline-end: auto; |
| 149 |
} |