[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyone/assets/sass/05-blocks/table/ -> _editor.scss (source)

   1  table,
   2  .wp-block-table {
   3  
   4      thead,
   5      tfoot {
   6          text-align: center;
   7      }
   8  
   9      th {
  10          font-family: var(--heading--font-family);
  11      }
  12  
  13      td,
  14      th {
  15          padding: calc(0.5 * var(--global--spacing-unit));
  16      }
  17  
  18      &.is-style-regular .has-background,
  19      &.is-style-stripes .has-background,
  20      &.is-style-stripes .has-background thead tr,
  21      &.is-style-stripes .has-background tfoot tr,
  22      &.is-style-stripes .has-background tbody tr {
  23          color: var(--table--has-background-text-color);
  24      }
  25  
  26      &.is-style-stripes {
  27          border-color: var(--table--stripes-border-color);
  28  
  29          th,
  30          td {
  31              border-width: 0;
  32          }
  33  
  34          tbody tr:nth-child(odd) {
  35              background-color: var(--table--stripes-background-color);
  36          }
  37  
  38          .has-background tbody tr:nth-child(odd) {
  39              background-color: var(--global--color-white-90);
  40          }
  41      }
  42  }
  43  
  44  table.wp-calendar-table {
  45  
  46      td,
  47      th {
  48          background: transparent;
  49          border: 0;
  50          text-align: center;
  51          line-height: 2;
  52          vertical-align: middle;
  53      }
  54  
  55      th {
  56          font-weight: bold;
  57      }
  58  
  59      thead,
  60      tbody {
  61          color: currentColor;
  62          border: 1px solid;
  63      }
  64  
  65      caption {
  66          font-weight: bold;
  67          text-align: left;
  68          margin-bottom: var(--global--spacing-unit);
  69          color: currentColor;
  70      }
  71  }
  72  
  73  .wp-calendar-nav {
  74      text-align: left;
  75      margin-top: calc(var(--global--spacing-unit) / 2);
  76  
  77      svg {
  78          height: 1em;
  79          vertical-align: middle;
  80  
  81          path {
  82              fill: currentColor;
  83          }
  84      }
  85  
  86      .wp-calendar-nav-next {
  87          float: right;
  88      }
  89  }


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref