CoreFiles by mySites.guru
_captions.scss32 lines, 648 bytes, from wordpress-5.3.21.zip
Raw History Compare with 5.3.20
md5
27185eaf5fd4da145f5d45f34d27736f
sha1
dcd4af91ab5cb1b3ff6b789ec6cd4437ecc7797a
sha256
c4d294c71538bdbc36222e6e2a1cbd31152f4b9bb81c2936b71cc73e6dd28778
.wp-caption {
	margin-bottom: calc(1.5 * #{$size__spacing-unit});

	&.aligncenter {

		@include media(tablet) {
			position: relative;
			left: calc( #{$size__site-tablet-content} / 2 );
			transform: translateX( -50% );
		}

		@include media(desktop) {
			left: calc( #{$size__site-desktop-content} / 2 );
		}
	}
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text {
	color: $color__text-light;
	font-size: $font__size-xs;
	@include font-family( $font__heading );
 	line-height: $font__line-height-pre;
 	margin: 0;
 	padding: ( $size__spacing-unit * .5 );
	text-align: center;
}

The same content is in 294 releases, WordPress 5.1-beta2 to 5.9-RC3. See them all, or every version of this file.