| 1 |
/** |
| 2 |
* Typography |
| 3 |
*/ |
| 4 |
/** |
| 5 |
* SCSS Variables. |
| 6 |
* |
| 7 |
* Please use variables from this sheet to ensure consistency across the UI. |
| 8 |
* Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
| 9 |
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
| 10 |
*/ |
| 11 |
/** |
| 12 |
* Colors |
| 13 |
*/ |
| 14 |
/** |
| 15 |
* Fonts & basic variables. |
| 16 |
*/ |
| 17 |
/** |
| 18 |
* Typography |
| 19 |
*/ |
| 20 |
/** |
| 21 |
* Grid System. |
| 22 |
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
| 23 |
*/ |
| 24 |
/** |
| 25 |
* Radius scale. |
| 26 |
*/ |
| 27 |
/** |
| 28 |
* Elevation scale. |
| 29 |
*/ |
| 30 |
/** |
| 31 |
* Dimensions. |
| 32 |
*/ |
| 33 |
/** |
| 34 |
* Mobile specific styles |
| 35 |
*/ |
| 36 |
/** |
| 37 |
* Editor styles. |
| 38 |
*/ |
| 39 |
/** |
| 40 |
* Block & Editor UI. |
| 41 |
*/ |
| 42 |
/** |
| 43 |
* Block paddings. |
| 44 |
*/ |
| 45 |
/** |
| 46 |
* React Native specific. |
| 47 |
* These variables do not appear to be used anywhere else. |
| 48 |
*/ |
| 49 |
/** |
| 50 |
* Breakpoints & Media Queries |
| 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 |
.editor-styles-wrapper :where(:not(.is-layout-flex, .is-layout-grid)) > .wp-block { |
| 97 |
margin-right: auto; |
| 98 |
margin-left: auto; |
| 99 |
} |
| 100 |
|
| 101 |
.editor-styles-wrapper { |
| 102 |
padding: 8px; |
| 103 |
} |
| 104 |
|
| 105 |
html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container > .wp-block[data-align=full] { |
| 106 |
margin-right: -8px; |
| 107 |
margin-left: -8px; |
| 108 |
} |
| 109 |
|
| 110 |
html :where(.wp-block) { |
| 111 |
max-width: 840px; |
| 112 |
margin-top: 28px; |
| 113 |
margin-bottom: 28px; |
| 114 |
} |
| 115 |
html :where(.wp-block)[data-align=wide] { |
| 116 |
max-width: 1100px; |
| 117 |
} |
| 118 |
html :where(.wp-block)[data-align=full] { |
| 119 |
max-width: none; |
| 120 |
} |
| 121 |
html :where(.wp-block)[data-align=left], html :where(.wp-block)[data-align=right] { |
| 122 |
width: 100%; |
| 123 |
height: 0; |
| 124 |
} |
| 125 |
html :where(.wp-block)[data-align=left]::before, html :where(.wp-block)[data-align=right]::before { |
| 126 |
content: none; |
| 127 |
} |
| 128 |
html :where(.wp-block)[data-align=left] > * { |
| 129 |
float: left; |
| 130 |
margin-right: 2em; |
| 131 |
} |
| 132 |
html :where(.wp-block)[data-align=right] > * { |
| 133 |
float: right; |
| 134 |
margin-left: 2em; |
| 135 |
} |
| 136 |
html :where(.wp-block)[data-align=full], html :where(.wp-block)[data-align=wide] { |
| 137 |
clear: both; |
| 138 |
} |
| 139 |
|
| 140 |
.wp-block-group > [data-align=full] { |
| 141 |
margin-right: auto; |
| 142 |
margin-left: auto; |
| 143 |
} |
| 144 |
|
| 145 |
.wp-block-group.has-background > [data-align=full] { |
| 146 |
margin-right: -30px; |
| 147 |
width: calc(100% + 60px); |
| 148 |
} |
| 149 |
|
| 150 |
/** |
| 151 |
* Group: Full Width Alignment |
| 152 |
*/ |
| 153 |
[data-align=full] .wp-block-group > .wp-block { |
| 154 |
padding-right: 14px; |
| 155 |
padding-left: 14px; |
| 156 |
} |
| 157 |
@media (min-width: 600px) { |
| 158 |
[data-align=full] .wp-block-group > .wp-block { |
| 159 |
padding-right: 0; |
| 160 |
padding-left: 0; |
| 161 |
} |
| 162 |
} |
| 163 |
[data-align=full] .wp-block-group > [data-align=full] { |
| 164 |
padding-left: 0; |
| 165 |
padding-right: 0; |
| 166 |
right: 0; |
| 167 |
width: 100%; |
| 168 |
max-width: none; |
| 169 |
} |
| 170 |
[data-align=full] .wp-block-group.has-background > [data-align=full] { |
| 171 |
width: calc(100% + 60px); |
| 172 |
} |