[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/image/ -> style-rtl.css (source)

   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   * 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  .wp-block-image > a,
  87  .wp-block-image > figure > a {
  88    display: inline-block;
  89  }
  90  .wp-block-image img {
  91    height: auto;
  92    max-width: 100%;
  93    vertical-align: bottom;
  94    box-sizing: border-box;
  95  }
  96  @media not (prefers-reduced-motion) {
  97    .wp-block-image img.hide {
  98      visibility: hidden;
  99    }
 100    .wp-block-image img.show {
 101      animation: show-content-image 0.4s;
 102    }
 103  }
 104  .wp-block-image[style*=border-radius] > a,
 105  .wp-block-image[style*=border-radius] img {
 106    border-radius: inherit;
 107  }
 108  .wp-block-image.has-custom-border img {
 109    box-sizing: border-box;
 110  }
 111  .wp-block-image.aligncenter {
 112    text-align: center;
 113  }
 114  .wp-block-image.alignfull > a, .wp-block-image.alignwide > a {
 115    width: 100%;
 116  }
 117  .wp-block-image.alignfull img, .wp-block-image.alignwide img {
 118    height: auto;
 119    width: 100%;
 120  }
 121  .wp-block-image.alignleft, .wp-block-image.alignright, .wp-block-image.aligncenter,
 122  .wp-block-image .alignleft,
 123  .wp-block-image .alignright,
 124  .wp-block-image .aligncenter {
 125    display: table;
 126  }
 127  .wp-block-image.alignleft > figcaption, .wp-block-image.alignright > figcaption, .wp-block-image.aligncenter > figcaption,
 128  .wp-block-image .alignleft > figcaption,
 129  .wp-block-image .alignright > figcaption,
 130  .wp-block-image .aligncenter > figcaption {
 131    display: table-caption;
 132    caption-side: bottom;
 133  }
 134  .wp-block-image .alignleft {
 135    float: left;
 136    margin-left: 0;
 137    margin-right: 1em;
 138    margin-top: 0.5em;
 139    margin-bottom: 0.5em;
 140  }
 141  .wp-block-image .alignright {
 142    float: right;
 143    margin-right: 0;
 144    margin-left: 1em;
 145    margin-top: 0.5em;
 146    margin-bottom: 0.5em;
 147  }
 148  .wp-block-image .aligncenter {
 149    margin-right: auto;
 150    margin-left: auto;
 151  }
 152  .wp-block-image :where(figcaption) {
 153    margin-top: 0.5em;
 154    margin-bottom: 1em;
 155  }
 156  .wp-block-image.is-style-circle-mask img {
 157    border-radius: 9999px;
 158  }
 159  @supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) {
 160    .wp-block-image.is-style-circle-mask img {
 161      /* stylelint-disable-next-line function-url-quotes -- We need quotes for the data URL to use the SVG inline. */
 162      -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>');
 163              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>');
 164      mask-mode: alpha;
 165      -webkit-mask-repeat: no-repeat;
 166              mask-repeat: no-repeat;
 167      -webkit-mask-size: contain;
 168              mask-size: contain;
 169      -webkit-mask-position: center;
 170              mask-position: center;
 171      border-radius: 0;
 172    }
 173  }
 174  
 175  :root :where(.wp-block-image.is-style-rounded img, .wp-block-image .is-style-rounded img) {
 176    border-radius: 9999px;
 177  }
 178  
 179  .wp-block-image figure {
 180    margin: 0;
 181  }
 182  
 183  .wp-lightbox-container {
 184    position: relative;
 185    display: flex;
 186    flex-direction: column;
 187  }
 188  .wp-lightbox-container img {
 189    cursor: zoom-in;
 190  }
 191  .wp-lightbox-container img:hover + button {
 192    opacity: 1;
 193  }
 194  .wp-lightbox-container button {
 195    opacity: 0;
 196    border: none;
 197    background-color: rgba(90, 90, 90, 0.25);
 198    backdrop-filter: blur(16px) saturate(180%);
 199    cursor: zoom-in;
 200    display: flex;
 201    justify-content: center;
 202    align-items: center;
 203    width: 20px;
 204    height: 20px;
 205    position: absolute;
 206    z-index: 100;
 207    top: 16px;
 208    left: 16px;
 209    text-align: center;
 210    padding: 0;
 211    border-radius: 4px;
 212  }
 213  @media not (prefers-reduced-motion) {
 214    .wp-lightbox-container button {
 215      transition: opacity 0.2s ease;
 216    }
 217  }
 218  .wp-lightbox-container button:focus-visible {
 219    outline: 3px auto rgba(90, 90, 90, 0.25);
 220    outline: 3px auto -webkit-focus-ring-color;
 221    outline-offset: 3px;
 222  }
 223  .wp-lightbox-container button:hover {
 224    cursor: pointer;
 225    opacity: 1;
 226  }
 227  .wp-lightbox-container button:focus {
 228    opacity: 1;
 229  }
 230  .wp-lightbox-container button:hover, .wp-lightbox-container button:focus, .wp-lightbox-container button:not(:hover):not(:active):not(.has-background) {
 231    background-color: rgba(90, 90, 90, 0.25);
 232    border: none;
 233  }
 234  
 235  .wp-lightbox-overlay {
 236    position: fixed;
 237    top: 0;
 238    right: 0;
 239    z-index: 100000;
 240    overflow: hidden;
 241    width: 100%;
 242    height: 100vh;
 243    box-sizing: border-box;
 244    visibility: hidden;
 245    cursor: zoom-out;
 246  }
 247  .wp-lightbox-overlay .close-button {
 248    position: absolute;
 249    top: calc(env(safe-area-inset-top) + 16px);
 250    left: calc(env(safe-area-inset-left) + 16px);
 251    padding: 0;
 252    cursor: pointer;
 253    z-index: 5000000;
 254    min-width: 40px;
 255    min-height: 40px;
 256    display: flex;
 257    align-items: center;
 258    justify-content: center;
 259  }
 260  .wp-lightbox-overlay .close-button:hover, .wp-lightbox-overlay .close-button:focus, .wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background) {
 261    background: none;
 262    border: none;
 263  }
 264  .wp-lightbox-overlay .lightbox-image-container {
 265    position: absolute;
 266    overflow: hidden;
 267    top: 50%;
 268    right: 50%;
 269    transform-origin: top right;
 270    transform: translate(50%, -50%);
 271    width: var(--wp--lightbox-container-width);
 272    height: var(--wp--lightbox-container-height);
 273    z-index: 9999999999;
 274  }
 275  .wp-lightbox-overlay .wp-block-image {
 276    position: relative;
 277    transform-origin: 100% 0;
 278    display: flex;
 279    width: 100%;
 280    height: 100%;
 281    justify-content: center;
 282    align-items: center;
 283    box-sizing: border-box;
 284    z-index: 3000000;
 285    margin: 0;
 286  }
 287  .wp-lightbox-overlay .wp-block-image img {
 288    min-width: var(--wp--lightbox-image-width);
 289    min-height: var(--wp--lightbox-image-height);
 290    width: var(--wp--lightbox-image-width);
 291    height: var(--wp--lightbox-image-height);
 292  }
 293  .wp-lightbox-overlay .wp-block-image figcaption {
 294    display: none;
 295  }
 296  .wp-lightbox-overlay button {
 297    border: none;
 298    background: none;
 299  }
 300  .wp-lightbox-overlay .scrim {
 301    width: 100%;
 302    height: 100%;
 303    position: absolute;
 304    z-index: 2000000;
 305    background-color: rgb(255, 255, 255);
 306    opacity: 0.9;
 307  }
 308  .wp-lightbox-overlay.active {
 309    visibility: visible;
 310  }
 311  @media not (prefers-reduced-motion) {
 312    .wp-lightbox-overlay.active {
 313      animation: both turn-on-visibility 0.25s;
 314    }
 315  }
 316  @media not (prefers-reduced-motion) {
 317    .wp-lightbox-overlay.active img {
 318      animation: both turn-on-visibility 0.35s;
 319    }
 320  }
 321  @media not (prefers-reduced-motion) {
 322    .wp-lightbox-overlay.show-closing-animation:not(.active) {
 323      animation: both turn-off-visibility 0.35s;
 324    }
 325  }
 326  @media not (prefers-reduced-motion) {
 327    .wp-lightbox-overlay.show-closing-animation:not(.active) img {
 328      animation: both turn-off-visibility 0.25s;
 329    }
 330  }
 331  @media not (prefers-reduced-motion) {
 332    .wp-lightbox-overlay.zoom.active {
 333      opacity: 1;
 334      visibility: visible;
 335      animation: none;
 336    }
 337    .wp-lightbox-overlay.zoom.active .lightbox-image-container {
 338      animation: lightbox-zoom-in 0.4s;
 339    }
 340    .wp-lightbox-overlay.zoom.active .lightbox-image-container img {
 341      animation: none;
 342    }
 343    .wp-lightbox-overlay.zoom.active .scrim {
 344      animation: turn-on-visibility 0.4s forwards;
 345    }
 346    .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) {
 347      animation: none;
 348    }
 349    .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container {
 350      animation: lightbox-zoom-out 0.4s;
 351    }
 352    .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img {
 353      animation: none;
 354    }
 355    .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim {
 356      animation: turn-off-visibility 0.4s forwards;
 357    }
 358  }
 359  
 360  @keyframes show-content-image {
 361    0% {
 362      visibility: hidden;
 363    }
 364    99% {
 365      visibility: hidden;
 366    }
 367    100% {
 368      visibility: visible;
 369    }
 370  }
 371  @keyframes turn-on-visibility {
 372    0% {
 373      opacity: 0;
 374    }
 375    100% {
 376      opacity: 1;
 377    }
 378  }
 379  @keyframes turn-off-visibility {
 380    0% {
 381      opacity: 1;
 382      visibility: visible;
 383    }
 384    99% {
 385      opacity: 0;
 386      visibility: visible;
 387    }
 388    100% {
 389      opacity: 0;
 390      visibility: hidden;
 391    }
 392  }
 393  @keyframes lightbox-zoom-in {
 394    0% {
 395      transform: translate(calc(-1*((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position))), calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));
 396    }
 397    100% {
 398      transform: translate(50%, -50%) scale(1, 1);
 399    }
 400  }
 401  @keyframes lightbox-zoom-out {
 402    0% {
 403      visibility: visible;
 404      transform: translate(50%, -50%) scale(1, 1);
 405    }
 406    99% {
 407      visibility: visible;
 408    }
 409    100% {
 410      visibility: hidden;
 411      transform: translate(calc(-1*((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position))), calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));
 412    }
 413  }


Generated : Fri Apr 24 08:20:12 2026 Cross-referenced by PHPXref