[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/latest-posts/ -> 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-latest-posts {
  87    box-sizing: border-box;
  88  }
  89  .wp-block-latest-posts.alignleft {
  90    margin-right: 2em;
  91  }
  92  .wp-block-latest-posts.alignright {
  93    margin-left: 2em;
  94  }
  95  .wp-block-latest-posts.wp-block-latest-posts__list {
  96    list-style: none;
  97  }
  98  .wp-block-latest-posts.wp-block-latest-posts__list li {
  99    clear: both;
 100    overflow-wrap: break-word;
 101  }
 102  .wp-block-latest-posts.is-grid {
 103    display: flex;
 104    flex-wrap: wrap;
 105  }
 106  .wp-block-latest-posts.is-grid li {
 107    margin: 0 0 1.25em 1.25em;
 108    width: 100%;
 109  }
 110  @media (min-width: 600px) {
 111    .wp-block-latest-posts.columns-2 li {
 112      width: calc(100% / 2 - 1.25em + 1.25em / 2);
 113    }
 114    .wp-block-latest-posts.columns-2 li:nth-child(2n) {
 115      margin-left: 0;
 116    }
 117    .wp-block-latest-posts.columns-3 li {
 118      width: calc(100% / 3 - 1.25em + 1.25em / 3);
 119    }
 120    .wp-block-latest-posts.columns-3 li:nth-child(3n) {
 121      margin-left: 0;
 122    }
 123    .wp-block-latest-posts.columns-4 li {
 124      width: calc(100% / 4 - 1.25em + 1.25em / 4);
 125    }
 126    .wp-block-latest-posts.columns-4 li:nth-child(4n) {
 127      margin-left: 0;
 128    }
 129    .wp-block-latest-posts.columns-5 li {
 130      width: calc(100% / 5 - 1.25em + 1.25em / 5);
 131    }
 132    .wp-block-latest-posts.columns-5 li:nth-child(5n) {
 133      margin-left: 0;
 134    }
 135    .wp-block-latest-posts.columns-6 li {
 136      width: calc(100% / 6 - 1.25em + 1.25em / 6);
 137    }
 138    .wp-block-latest-posts.columns-6 li:nth-child(6n) {
 139      margin-left: 0;
 140    }
 141  }
 142  
 143  :root :where(.wp-block-latest-posts.is-grid) {
 144    padding: 0;
 145  }
 146  :root :where(.wp-block-latest-posts.wp-block-latest-posts__list) {
 147    padding-right: 0;
 148  }
 149  
 150  .wp-block-latest-posts__post-date,
 151  .wp-block-latest-posts__post-author {
 152    display: block;
 153    font-size: 0.8125em;
 154  }
 155  
 156  .wp-block-latest-posts__post-excerpt,
 157  .wp-block-latest-posts__post-full-content {
 158    margin-top: 0.5em;
 159    margin-bottom: 1em;
 160  }
 161  
 162  .wp-block-latest-posts__featured-image a {
 163    display: inline-block;
 164  }
 165  .wp-block-latest-posts__featured-image img {
 166    height: auto;
 167    width: auto;
 168    max-width: 100%;
 169  }
 170  .wp-block-latest-posts__featured-image.alignleft {
 171    margin-right: 1em;
 172    float: left;
 173  }
 174  .wp-block-latest-posts__featured-image.alignright {
 175    margin-left: 1em;
 176    float: right;
 177  }
 178  .wp-block-latest-posts__featured-image.aligncenter {
 179    margin-bottom: 1em;
 180    text-align: center;
 181  }


Generated : Wed Apr 15 08:20:10 2026 Cross-referenced by PHPXref