[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/post-template/ -> style-rtl.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-post-template {
  97    margin-top: 0;
  98    margin-bottom: 0;
  99    max-width: 100%;
 100    list-style: none;
 101    padding: 0;
 102    box-sizing: border-box;
 103  }
 104  .wp-block-post-template.is-flex-container {
 105    flex-direction: row;
 106    display: flex;
 107    flex-wrap: wrap;
 108    gap: 1.25em;
 109  }
 110  .wp-block-post-template.is-flex-container > li {
 111    margin: 0;
 112    width: 100%;
 113  }
 114  @media (min-width: 600px) {
 115    .wp-block-post-template.is-flex-container.is-flex-container.columns-2 > li {
 116      width: calc(100% / 2 - 1.25em + 1.25em / 2);
 117    }
 118    .wp-block-post-template.is-flex-container.is-flex-container.columns-3 > li {
 119      width: calc(100% / 3 - 1.25em + 1.25em / 3);
 120    }
 121    .wp-block-post-template.is-flex-container.is-flex-container.columns-4 > li {
 122      width: calc(100% / 4 - 1.25em + 1.25em / 4);
 123    }
 124    .wp-block-post-template.is-flex-container.is-flex-container.columns-5 > li {
 125      width: calc(100% / 5 - 1.25em + 1.25em / 5);
 126    }
 127    .wp-block-post-template.is-flex-container.is-flex-container.columns-6 > li {
 128      width: calc(100% / 6 - 1.25em + 1.25em / 6);
 129    }
 130  }
 131  
 132  @media (max-width: 600px) {
 133    .wp-block-post-template-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid) {
 134      grid-template-columns: 1fr;
 135    }
 136  }
 137  .wp-block-post-template-is-layout-constrained > li > .alignright,
 138  .wp-block-post-template-is-layout-flow > li > .alignright {
 139    float: left;
 140    margin-inline-start: 2em;
 141    margin-inline-end: 0;
 142  }
 143  
 144  .wp-block-post-template-is-layout-constrained > li > .alignleft,
 145  .wp-block-post-template-is-layout-flow > li > .alignleft {
 146    float: right;
 147    margin-inline-start: 0;
 148    margin-inline-end: 2em;
 149  }
 150  
 151  .wp-block-post-template-is-layout-constrained > li > .aligncenter,
 152  .wp-block-post-template-is-layout-flow > li > .aligncenter {
 153    margin-inline-start: auto;
 154    margin-inline-end: auto;
 155  }


Generated : Wed Jul 29 08:20:18 2026 Cross-referenced by PHPXref