wp/wp-includes/css/dist/edit-post/classic-rtl.css
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
     1 /**
     1 :root{
     2  * Colors
     2   --wp-admin-theme-color:#007cba;
     3  */
     3   --wp-admin-theme-color--rgb:0, 124, 186;
     4 /**
     4   --wp-admin-theme-color-darker-10:#006ba1;
     5  * Breakpoints & Media Queries
     5   --wp-admin-theme-color-darker-10--rgb:0, 107, 161;
     6  */
     6   --wp-admin-theme-color-darker-20:#005a87;
     7 /**
     7   --wp-admin-theme-color-darker-20--rgb:0, 90, 135;
     8  * SCSS Variables.
     8   --wp-admin-border-width-focus:2px;
     9  *
     9   --wp-block-synced-color:#7a00df;
    10  * Please use variables from this sheet to ensure consistency across the UI.
    10   --wp-block-synced-color--rgb:122, 0, 223;
    11  * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
    11   --wp-bound-block-color:var(--wp-block-synced-color);
    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  * Grid System.
       
    22  * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
       
    23  */
       
    24 /**
       
    25  * Dimensions.
       
    26  */
       
    27 /**
       
    28  * Shadows.
       
    29  */
       
    30 /**
       
    31  * Editor widths.
       
    32  */
       
    33 /**
       
    34  * Block & Editor UI.
       
    35  */
       
    36 /**
       
    37  * Block paddings.
       
    38  */
       
    39 /**
       
    40  * React Native specific.
       
    41  * These variables do not appear to be used anywhere else.
       
    42  */
       
    43 /**
       
    44 *  Converts a hex value into the rgb equivalent.
       
    45 *
       
    46 * @param {string} hex - the hexadecimal value to convert
       
    47 * @return {string} comma separated rgb values
       
    48 */
       
    49 /**
       
    50  * Breakpoint mixins
       
    51  */
       
    52 /**
       
    53  * Long content fade mixin
       
    54  *
       
    55  * Creates a fading overlay to signify that the content is longer
       
    56  * than the space allows.
       
    57  */
       
    58 /**
       
    59  * Focus styles.
       
    60  */
       
    61 /**
       
    62  * Applies editor left position to the selector passed as argument
       
    63  */
       
    64 /**
       
    65  * Styles that are reused verbatim in a few places
       
    66  */
       
    67 /**
       
    68  * Allows users to opt-out of animations via OS-level preferences.
       
    69  */
       
    70 /**
       
    71  * Reset default styles for JavaScript UI based pages.
       
    72  * This is a WP-admin agnostic reset
       
    73  */
       
    74 /**
       
    75  * Reset the WP Admin page styles for Gutenberg-like pages.
       
    76  */
       
    77 :root {
       
    78   --wp-admin-theme-color: #007cba;
       
    79   --wp-admin-theme-color--rgb: 0, 124, 186;
       
    80   --wp-admin-theme-color-darker-10: #006ba1;
       
    81   --wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
       
    82   --wp-admin-theme-color-darker-20: #005a87;
       
    83   --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
       
    84   --wp-admin-border-width-focus: 2px;
       
    85 }
    12 }
    86 @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    13 @media (min-resolution:192dpi){
    87   :root {
    14   :root{
    88     --wp-admin-border-width-focus: 1.5px;
    15     --wp-admin-border-width-focus:1.5px;
    89   }
    16   }
    90 }
    17 }
    91 
    18 
    92 .editor-styles-wrapper .wp-block {
    19 .editor-styles-wrapper :where(:not(.is-layout-flex,.is-layout-grid))>.wp-block{
    93   margin-right: auto;
    20   margin-left:auto;
    94   margin-left: auto;
    21   margin-right:auto;
    95 }
    22 }
    96 
    23 
    97 html :where(.editor-styles-wrapper) {
    24 html :where(.editor-styles-wrapper){
    98   padding: 8px;
    25   padding:8px;
    99 }
    26 }
   100 html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container > .wp-block[data-align=full] {
    27 html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{
   101   margin-right: -8px;
    28   margin-left:-8px;
   102   margin-left: -8px;
    29   margin-right:-8px;
   103 }
    30 }
   104 
    31 
   105 html :where(.wp-block) {
    32 html :where(.wp-block){
   106   max-width: 840px;
    33   margin-bottom:28px;
   107   margin-top: 28px;
    34   margin-top:28px;
   108   margin-bottom: 28px;
    35   max-width:840px;
   109 }
    36 }
   110 html :where(.wp-block)[data-align=wide] {
    37 html :where(.wp-block)[data-align=wide]{
   111   max-width: 1100px;
    38   max-width:1100px;
   112 }
    39 }
   113 html :where(.wp-block)[data-align=full] {
    40 html :where(.wp-block)[data-align=full]{
   114   max-width: none;
    41   max-width:none;
   115 }
    42 }
   116 html :where(.wp-block)[data-align=left], html :where(.wp-block)[data-align=right] {
    43 html :where(.wp-block)[data-align=left],html :where(.wp-block)[data-align=right]{
   117   width: 100%;
    44   height:0;
   118   height: 0;
    45   width:100%;
   119 }
    46 }
   120 html :where(.wp-block)[data-align=left]::before, html :where(.wp-block)[data-align=right]::before {
    47 html :where(.wp-block)[data-align=left]:before,html :where(.wp-block)[data-align=right]:before{
   121   content: none;
    48   content:none;
   122 }
    49 }
   123 html :where(.wp-block)[data-align=left] > * {
    50 html :where(.wp-block)[data-align=left]>*{
   124   float: left;
    51   float:left;
   125   margin-right: 2em;
    52   margin-right:2em;
   126 }
    53 }
   127 html :where(.wp-block)[data-align=right] > * {
    54 html :where(.wp-block)[data-align=right]>*{
   128   float: right;
    55   float:right;
   129   margin-left: 2em;
    56   margin-left:2em;
   130 }
    57 }
   131 html :where(.wp-block)[data-align=full], html :where(.wp-block)[data-align=wide] {
    58 html :where(.wp-block)[data-align=full],html :where(.wp-block)[data-align=wide]{
   132   clear: both;
    59   clear:both;
   133 }
    60 }
   134 
    61 
   135 .wp-block-group > [data-align=full] {
    62 .wp-block-group>[data-align=full]{
   136   margin-right: auto;
    63   margin-left:auto;
   137   margin-left: auto;
    64   margin-right:auto;
   138 }
    65 }
   139 
    66 
   140 .wp-block-group.has-background > [data-align=full] {
    67 .wp-block-group.has-background>[data-align=full]{
   141   margin-right: -30px;
    68   margin-right:-30px;
   142   width: calc(100% + 60px);
    69   width:calc(100% + 60px);
   143 }
    70 }
   144 
    71 [data-align=full] .wp-block-group>.wp-block{
   145 /**
    72   padding-left:14px;
   146 * Group: Full Width Alignment
    73   padding-right:14px;
   147 */
       
   148 [data-align=full] .wp-block-group > .wp-block {
       
   149   padding-right: 14px;
       
   150   padding-left: 14px;
       
   151 }
    74 }
   152 @media (min-width: 600px) {
    75 @media (min-width:600px){
   153   [data-align=full] .wp-block-group > .wp-block {
    76   [data-align=full] .wp-block-group>.wp-block{
   154     padding-right: 0;
    77     padding-left:0;
   155     padding-left: 0;
    78     padding-right:0;
   156   }
    79   }
   157 }
    80 }
   158 [data-align=full] .wp-block-group > [data-align=full] {
    81 [data-align=full] .wp-block-group>[data-align=full]{
   159   padding-left: 0;
    82   max-width:none;
   160   padding-right: 0;
    83   padding-left:0;
   161   right: 0;
    84   padding-right:0;
   162   width: 100%;
    85   right:0;
   163   max-width: none;
    86   width:100%;
   164 }
    87 }
   165 [data-align=full] .wp-block-group.has-background > [data-align=full] {
    88 [data-align=full] .wp-block-group.has-background>[data-align=full]{
   166   width: calc(100% + 60px);
    89   width:calc(100% + 60px);
   167 }
    90 }