[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentynineteen/sass/media/ -> _captions.scss (source)

   1  .wp-caption {
   2      margin-bottom: calc(1.5 * #{$size__spacing-unit});
   3  
   4      &.aligncenter {
   5  
   6          @include media(tablet) {
   7              position: relative;
   8              left: calc( #{$size__site-tablet-content} / 2 );
   9              transform: translateX( -50% );
  10          }
  11  
  12          @include media(desktop) {
  13              left: calc( #{$size__site-desktop-content} / 2 );
  14          }
  15      }
  16  }
  17  
  18  .wp-caption img[class*="wp-image-"] {
  19      display: block;
  20      margin-left: auto;
  21      margin-right: auto;
  22  }
  23  
  24  .wp-caption-text {
  25      color: $color__text-light;
  26      font-size: $font__size-xs;
  27      @include font-family( $font__heading );
  28       line-height: $font__line-height-pre;
  29       margin: 0;
  30       padding: ( $size__spacing-unit * .5 );
  31      text-align: center;
  32  }


Generated : Sun Nov 24 08:20:01 2024 Cross-referenced by PHPXref