build/styles/block-library/embed
editor-rtl.css
858 B
7 months ago
editor-rtl.min.css
707 B
7 months ago
editor.css
858 B
7 months ago
editor.min.css
707 B
7 months ago
style-rtl.css
3.5 KB
7 months ago
style-rtl.min.css
1.6 KB
7 months ago
style.css
3.5 KB
7 months ago
style.min.css
1.6 KB
7 months ago
theme-rtl.css
1.9 KB
7 months ago
theme-rtl.min.css
176 B
7 months ago
theme.css
1.9 KB
7 months ago
theme.min.css
176 B
7 months ago
style.css in Gutenberg 23.2.0, at build/styles/block-library/embed/style.css
| 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[data-align=left] > [data-type="core/embed"], |
| 91 | .wp-block[data-align=right] > [data-type="core/embed"], |
| 92 | .wp-block-embed.alignleft, |
| 93 | .wp-block-embed.alignright { |
| 94 | max-width: 360px; |
| 95 | width: 100%; |
| 96 | } |
| 97 | .wp-block[data-align=left] > [data-type="core/embed"] .wp-block-embed__wrapper, |
| 98 | .wp-block[data-align=right] > [data-type="core/embed"] .wp-block-embed__wrapper, |
| 99 | .wp-block-embed.alignleft .wp-block-embed__wrapper, |
| 100 | .wp-block-embed.alignright .wp-block-embed__wrapper { |
| 101 | min-width: 280px; |
| 102 | } |
| 103 | |
| 104 | .wp-block-cover .wp-block-embed { |
| 105 | min-width: 320px; |
| 106 | min-height: 240px; |
| 107 | } |
| 108 | |
| 109 | .wp-block-group.is-layout-flex .wp-block-embed { |
| 110 | flex: 1 1 0%; |
| 111 | min-width: 0; |
| 112 | } |
| 113 | |
| 114 | .wp-block-embed { |
| 115 | overflow-wrap: break-word; |
| 116 | } |
| 117 | .wp-block-embed :where(figcaption) { |
| 118 | margin-top: 0.5em; |
| 119 | margin-bottom: 1em; |
| 120 | } |
| 121 | .wp-block-embed iframe { |
| 122 | max-width: 100%; |
| 123 | } |
| 124 | |
| 125 | .wp-block-embed__wrapper { |
| 126 | position: relative; |
| 127 | } |
| 128 | |
| 129 | .wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper::before { |
| 130 | content: ""; |
| 131 | display: block; |
| 132 | padding-top: 50%; |
| 133 | } |
| 134 | .wp-embed-responsive .wp-has-aspect-ratio iframe { |
| 135 | position: absolute; |
| 136 | top: 0; |
| 137 | right: 0; |
| 138 | bottom: 0; |
| 139 | left: 0; |
| 140 | height: 100%; |
| 141 | width: 100%; |
| 142 | } |
| 143 | |
| 144 | .wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper::before { |
| 145 | padding-top: 42.85%; |
| 146 | } |
| 147 | .wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper::before { |
| 148 | padding-top: 50%; |
| 149 | } |
| 150 | .wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { |
| 151 | padding-top: 56.25%; |
| 152 | } |
| 153 | .wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { |
| 154 | padding-top: 75%; |
| 155 | } |
| 156 | .wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { |
| 157 | padding-top: 100%; |
| 158 | } |
| 159 | .wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { |
| 160 | padding-top: 177.77%; |
| 161 | } |
| 162 | .wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { |
| 163 | padding-top: 200%; |
| 164 | } |