wp/wp-includes/blocks/button/style-rtl.css
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
     1 /**
     1 .wp-block-button__link{
     2  * Colors
     2   box-sizing:border-box;
     3  */
     3   cursor:pointer;
     4 /**
     4   display:inline-block;
     5  * Breakpoints & Media Queries
     5   text-align:center;
     6  */
     6   word-break:break-word;
     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  * 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 .wp-block-button__link {
       
    78   color: #fff;
       
    79   background-color: #32373c;
       
    80   border-radius: 9999px;
       
    81   box-shadow: none;
       
    82   cursor: pointer;
       
    83   display: inline-block;
       
    84   font-size: 1.125em;
       
    85   padding: calc(0.667em + 2px) calc(1.333em + 2px);
       
    86   text-align: center;
       
    87   text-decoration: none;
       
    88   word-break: break-word;
       
    89   box-sizing: border-box;
       
    90 }
     7 }
    91 .wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active, .wp-block-button__link:visited {
     8 .wp-block-button__link.aligncenter{
    92   color: #fff;
     9   text-align:center;
    93 }
    10 }
    94 .wp-block-button__link.aligncenter {
    11 .wp-block-button__link.alignright{
    95   text-align: center;
    12   text-align:right;
    96 }
       
    97 .wp-block-button__link.alignright {
       
    98   text-align: right;
       
    99 }
    13 }
   100 
    14 
   101 .wp-block-buttons > .wp-block-button.has-custom-width {
    15 :where(.wp-block-button__link){
   102   max-width: none;
    16   border-radius:9999px;
   103 }
    17   box-shadow:none;
   104 .wp-block-buttons > .wp-block-button.has-custom-width .wp-block-button__link {
    18   padding:calc(.667em + 2px) calc(1.333em + 2px);
   105   width: 100%;
    19   text-decoration:none;
   106 }
       
   107 .wp-block-buttons > .wp-block-button.has-custom-font-size .wp-block-button__link {
       
   108   font-size: inherit;
       
   109 }
       
   110 .wp-block-buttons > .wp-block-button.wp-block-button__width-25 {
       
   111   width: calc(25% - (var(--wp--style--block-gap, 0.5em) * 0.75));
       
   112 }
       
   113 .wp-block-buttons > .wp-block-button.wp-block-button__width-50 {
       
   114   width: calc(50% - (var(--wp--style--block-gap, 0.5em) * 0.5));
       
   115 }
       
   116 .wp-block-buttons > .wp-block-button.wp-block-button__width-75 {
       
   117   width: calc(75% - (var(--wp--style--block-gap, 0.5em) * 0.25));
       
   118 }
       
   119 .wp-block-buttons > .wp-block-button.wp-block-button__width-100 {
       
   120   width: 100%;
       
   121   flex-basis: 100%;
       
   122 }
    20 }
   123 
    21 
   124 .wp-block-buttons.is-vertical > .wp-block-button.wp-block-button__width-25 {
    22 .wp-block-button[style*=text-decoration] .wp-block-button__link{
   125   width: 25%;
    23   text-decoration:inherit;
   126 }
       
   127 .wp-block-buttons.is-vertical > .wp-block-button.wp-block-button__width-50 {
       
   128   width: 50%;
       
   129 }
       
   130 .wp-block-buttons.is-vertical > .wp-block-button.wp-block-button__width-75 {
       
   131   width: 75%;
       
   132 }
    24 }
   133 
    25 
   134 .wp-block-button.is-style-squared,
    26 .wp-block-buttons>.wp-block-button.has-custom-width{
   135 .wp-block-button__link.wp-block-button.is-style-squared {
    27   max-width:none;
   136   border-radius: 0;
    28 }
       
    29 .wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{
       
    30   width:100%;
       
    31 }
       
    32 .wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{
       
    33   font-size:inherit;
       
    34 }
       
    35 .wp-block-buttons>.wp-block-button.wp-block-button__width-25{
       
    36   width:calc(25% - var(--wp--style--block-gap, .5em)*.75);
       
    37 }
       
    38 .wp-block-buttons>.wp-block-button.wp-block-button__width-50{
       
    39   width:calc(50% - var(--wp--style--block-gap, .5em)*.5);
       
    40 }
       
    41 .wp-block-buttons>.wp-block-button.wp-block-button__width-75{
       
    42   width:calc(75% - var(--wp--style--block-gap, .5em)*.25);
       
    43 }
       
    44 .wp-block-buttons>.wp-block-button.wp-block-button__width-100{
       
    45   flex-basis:100%;
       
    46   width:100%;
   137 }
    47 }
   138 
    48 
   139 .wp-block-button.no-border-radius,
    49 .wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{
   140 .wp-block-button__link.no-border-radius {
    50   width:25%;
   141   border-radius: 0 !important;
    51 }
       
    52 .wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{
       
    53   width:50%;
       
    54 }
       
    55 .wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{
       
    56   width:75%;
   142 }
    57 }
   143 
    58 
   144 .is-style-outline > :where(.wp-block-button__link),
    59 .wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{
   145 :where(.wp-block-button__link).is-style-outline {
    60   border-radius:0;
   146   border: 2px solid currentColor;
       
   147   padding: 0.667em 1.333em;
       
   148 }
    61 }
   149 
    62 
   150 .is-style-outline > .wp-block-button__link:not(.has-text-color),
    63 .wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{
   151 .wp-block-button__link.is-style-outline:not(.has-text-color) {
    64   border-radius:0 !important;
   152   color: currentColor;
       
   153 }
    65 }
   154 
    66 
   155 .is-style-outline > .wp-block-button__link:not(.has-background),
    67 :root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){
   156 .wp-block-button__link.is-style-outline:not(.has-background) {
    68   border:2px solid;
   157   background-color: transparent;
    69   padding:.667em 1.333em;
   158 }
    70 }
       
    71 :root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){
       
    72   color:currentColor;
       
    73 }
       
    74 :root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){
       
    75   background-color:initial;
       
    76   background-image:none;
       
    77 }