[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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


Generated : Mon Jul 27 08:20:18 2026 Cross-referenced by PHPXref