style.css (3306B)
1 /** 2 * Colors 3 */ 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 * Breakpoint mixins 45 */ 46 /** 47 * Long content fade mixin 48 * 49 * Creates a fading overlay to signify that the content is longer 50 * than the space allows. 51 */ 52 /** 53 * Focus styles. 54 */ 55 /** 56 * Applies editor left position to the selector passed as argument 57 */ 58 /** 59 * Styles that are reused verbatim in a few places 60 */ 61 /** 62 * Allows users to opt-out of animations via OS-level preferences. 63 */ 64 /** 65 * Reset default styles for JavaScript UI based pages. 66 * This is a WP-admin agnostic reset 67 */ 68 /** 69 * Reset the WP Admin page styles for Gutenberg-like pages. 70 */ 71 .wp-block-image { 72 margin: 0 0 1em 0; 73 } 74 .wp-block-image img { 75 max-width: 100%; 76 } 77 .wp-block-image:not(.is-style-rounded) img { 78 border-radius: inherit; 79 } 80 .wp-block-image.aligncenter { 81 text-align: center; 82 } 83 .wp-block-image.alignfull img, .wp-block-image.alignwide img { 84 width: 100%; 85 } 86 .wp-block-image .alignleft, 87 .wp-block-image .alignright, 88 .wp-block-image .aligncenter { 89 display: table; 90 } 91 .wp-block-image .alignleft > figcaption, 92 .wp-block-image .alignright > figcaption, 93 .wp-block-image .aligncenter > figcaption { 94 display: table-caption; 95 caption-side: bottom; 96 } 97 .wp-block-image .alignleft { 98 /*rtl:ignore*/ 99 float: left; 100 /*rtl:ignore*/ 101 margin-left: 0; 102 margin-right: 1em; 103 margin-top: 0.5em; 104 margin-bottom: 0.5em; 105 } 106 .wp-block-image .alignright { 107 /*rtl:ignore*/ 108 float: right; 109 /*rtl:ignore*/ 110 margin-right: 0; 111 margin-left: 1em; 112 margin-top: 0.5em; 113 margin-bottom: 0.5em; 114 } 115 .wp-block-image .aligncenter { 116 margin-left: auto; 117 margin-right: auto; 118 } 119 .wp-block-image figcaption { 120 margin-top: 0.5em; 121 margin-bottom: 1em; 122 } 123 .wp-block-image.is-style-rounded img { 124 border-radius: 9999px; 125 } 126 .wp-block-image.is-style-circle-mask img { 127 border-radius: 9999px; 128 } 129 @supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) { 130 .wp-block-image.is-style-circle-mask img { 131 /* stylelint-disable */ 132 -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>'); 133 mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>'); 134 /* stylelint-enable */ 135 mask-mode: alpha; 136 -webkit-mask-repeat: no-repeat; 137 mask-repeat: no-repeat; 138 -webkit-mask-size: contain; 139 mask-size: contain; 140 -webkit-mask-position: center; 141 mask-position: center; 142 border-radius: 0; 143 } 144 } 145 146 .wp-block-image figure { 147 margin: 0; 148 }