CoreFiles by mySites.guru
_style.scss105 lines, 2,034 bytes, from wordpress-5.9.21.zip
Raw History Compare with 5.9.20
md5
3364657bdb68f6bc7c409dbc100bd5b1
sha1
a1f376bc0e233943dc3329d21a2730a95d8dc88c
sha256
17da3b70d4c0cae1f765edaff57548eff657fd23ecc4ab6493c068794dce007f
.wp-block-columns {

	&:not(.alignwide):not(.alignfull) {
		clear: both;
	}

	.wp-block-column {

		> * {
			margin-top: calc(0.66 * var(--global--spacing-vertical));
			margin-bottom: calc(0.66 * var(--global--spacing-vertical));

			@include media(mobile) {
				margin-top: var(--global--spacing-vertical);
				margin-bottom: var(--global--spacing-vertical);
			}

			&:first-child {
				margin-top: 0;
			}

			&:last-child {
				margin-bottom: 0;
			}
		}

		&:last-child {
			margin-bottom: 0;
		}
	}

	.wp-block-column:not(:last-child) {
		margin-bottom: calc(0.66 * var(--global--spacing-vertical));

		@include media(mobile) {
			margin-bottom: var(--global--spacing-vertical);
		}

		@include media(desktop) {
			margin-bottom: 0;
		}
	}

	&.is-style-twentytwentyone-columns-overlap {

		justify-content: space-around;

		@include media(laptop) {

			.wp-block-column {

				&:nth-child(2n) {
					margin-left: calc(-2 * var(--global--spacing-horizontal));
					margin-top: calc(2.5 * var(--global--spacing-horizontal));
					z-index: 2;

					// Provide text-based child blocks with a default background color to ensure they're readable.
					> p,
					> h1,
					> h2,
					> h3,
					> h4,
					> h5,
					> h6,
					> ul,
					> ol,
					> pre {

						&:not(.has-background) {
							background-color: var(--global--color-background);
							padding: var(--global--spacing-unit);
						}
					}

					// Lists should still have their usual left padding.
					> ul:not(.has-background),
					> ol:not(.has-background) {
						padding-left: calc(2 * var(--global--spacing-horizontal));
					}

					&.is-vertically-aligned-center {
						margin-top: 0;
					}
				}
			}
		}
	}

	&.alignfull {

		.wp-block-column {

			p:not(.has-background),
			h1:not(.has-background),
			h2:not(.has-background),
			h3:not(.has-background),
			h4:not(.has-background),
			h5:not(.has-background),
			h6:not(.has-background) {
				padding-left: var(--global--spacing-unit);
				padding-right: var(--global--spacing-unit);
			}
		}
	}
}

The same content is in 246 releases, WordPress 5.6-beta4 to 6.4-RC4. See them all, or every version of this file.