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


Generated : Fri Apr 17 08:20:10 2026 Cross-referenced by PHPXref