CoreFiles by mySites.guru
mixins.scss73 lines, 1,700 bytes, from wordpress-5.6.13.zip
Raw History Compare with 5.6.12
md5
3a61d9cae75deb609a6772c668336afd
sha1
792be32b08651a0c1fad46dc91e05c3d5e9bb3b2
sha256
1fb43f5ecffea20aff436f983687c0dc6d53ef5f5179ef8dd70a59c93e268b25
// Responsive breakpoints mixin
@mixin add_variables( $view: frontend ) {

	@if frontend == $view {

		:root {
			@content;
		}
	}

	@if editor == $view {

		:root,
		body {
			@content;
		}
	}
}

// Button style
// - Applies button styles to blocks and elements that share them.
@mixin button-style() {
	line-height: var(--button--line-height);
	color: var(--button--color-text);
	cursor: pointer;
	font-weight: var(--button--font-weight);
	font-family: var(--button--font-family);
	font-size: var(--button--font-size);
	background-color: var(--button--color-background);
	border-radius: var(--button--border-radius);
	border: var(--button--border-width) solid var(--button--color-background);
	text-decoration: none;
	padding: var(--button--padding-vertical) var(--button--padding-horizontal);

	&:focus {
		background: transparent;
		outline-offset: -6px;
		outline: 2px dotted currentColor;

		.is-dark-theme & {
			color: var(--button--color-background);
		}

		&:not(.has-background) {
			color: var(--button--color-text-hover);
		}
	}

	&:disabled {
		background-color: var(--global--color-white-50);
		border-color: var(--global--color-white-50);
		color: var(--button--color-text-active);
	}
}

@mixin innerblock-margin-clear($container) {

	// Clear the top margin for the first-child.
	> #{$container} > *:first-child {
		margin-top: 0;
	}

	// Last child that is not the appender.
	> #{$container} > *:last-child:not(.block-list-appender) {
		margin-bottom: 0;
	}

	// When selected, the last item becomes the second last because of the appender.
	&.has-child-selected > #{$container} > *:nth-last-child(2),
	&.is-selected > #{$container} > *:nth-last-child(2) {
		margin-bottom: 0;
	}
}

The same content is in 31 releases, WordPress 5.6-RC2 to 5.6.24. See them all, or every version of this file.