CoreFiles by mySites.guru
_blocks.scss678 lines, 11,785 bytes, from wordpress-5.0-beta3.zip
Raw History Compare with 5.0-beta2
md5
11cd1bf8c68fe40d15cf7c68ef8ec36c
sha1
1cdf555d0de8b0fa38f2516bd57d65e78040fc31
sha256
dedf54c66d2d7b92c3ade2826f5c1f076307d4f4b262cfdb79d684524c8f0307
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
/* !Block styles */

.entry-content > *,
.entry-summary > * {
	@include postContentMaxWidth();

	margin: 32px $size__spacing-unit;

	@include media(tablet) {
		margin: 32px calc(2 * (100vw / 12));
	}
/*
	// Set top margins for headings
	& + h1:before,
	& + h2:before,
	& + h3,
	& + h4,
	& + h5,
	& + h6 {
		margin-top: calc(4 * #{ $size__spacing-unit});
	}
*/

	> *:first-child {
		margin-top: 0;
	}

	> *:last-child {
		margin-bottom: 0;
	}

	&.alignwide {

		margin-left: auto;
		margin-right: auto;

		@include media(tablet) {
			margin-left: calc(2 * (100vw / 12));
			margin-right: calc(2 * (100vw / 12));
			max-width: calc(8 * (100vw / 12));
		}
	}

	&.alignfull {
		margin-top: calc(2 * #{$size__spacing-unit});
		margin-right: 0;
		margin-bottom: calc(2 * #{$size__spacing-unit});
		margin-left: 0;
		max-width: 100%;
	}

	&.alignleft {
		float: left;
		max-width: calc(5 * (100vw / 12));
		margin-top: 0;

		@include media(tablet) {
			max-width: calc(4 * (100vw / 12));
			margin-right: calc(2 * #{$size__spacing-unit});
		}

		@include media(desktop) {
			max-width: calc(3 * (100vw / 12));
		}
	}

	&.alignright {
		float: right;
		max-width: calc(5 * (100vw / 12));
		margin-top: 0;
		margin-left: $size__spacing-unit;
		margin-right: $size__spacing-unit;

		@include media(tablet) {
			max-width: calc(4 * (100vw / 12));
			margin-left: calc(2 * #{$size__spacing-unit});
			margin-right: calc(2 * (100vw / 12));
		}
	}
	&.aligncenter {

		margin-left: auto;
		margin-right: auto;

		@include media(desktop) {
			margin-left: calc(2 * (100vw / 12));
			margin-right: calc(2 * (100vw / 12));
			max-width: calc(10 * (100vw / 12));
			position: relative;
			left: 25%;
			transform: translate(-50%);
		}
	}
}

.entry-content {

	//! Audio
	.wp-block-audio {

		width: 100%;

		audio {
			width: 100%;
		}

		&.alignleft audio,
		&.alignright audio {

			max-width: (0.5 * $mobile_width);

			@include media(tablet) {
				max-width: (0.5 * $tablet_width);
			}

			@include media(wide) {
				max-width: (0.33 * $desktop_width);
			}
		}

		&.aligncenter {
			margin: 32px calc(2 * (100vw / 12));
			max-width: calc(6 * (100vw / 12));
		}
	}

	//! Video
	.wp-block-video {

		video {
			width: 100%;
		}
	}

	//! Button
	.wp-block-button {

		.wp-block-button__link {
			@include button-transition;
			border: none;
			background: $color__background-button;
			font-size: $font__size-sm;
			font-family: $font__heading;
			line-height: $font__line-height-heading;
			box-sizing: border-box;
			font-weight: bold;
			text-decoration: none;
			padding: ($size__spacing-unit * .76) $size__spacing-unit;
			outline: none;
			color: white;
			outline: none;

			&:hover {
				cursor: pointer;
			}

			&:hover, &:focus {
				background: $color__background-button-hover;
			}

			&:focus {
				outline: thin dotted;
				outline-offset: -4px;
			}
		}

		&:not(.is-style-squared) .wp-block-button__link {
			border-radius: 5px;
		}

		&.is-style-outline .wp-block-button__link,
		&.is-style-outline .wp-block-button__link:focus,
		&.is-style-outline .wp-block-button__link:active {

			@include button-all-transition;
			background: transparent;
			border: 2px solid currentColor;
			color: $color__background-button;
		}

		&.is-style-outline .wp-block-button__link:hover {
			color: $color__background-button-hover;
		}
	}

	//! Latest posts, categories, archives
	.wp-block-archives,
	.wp-block-categories,
	.wp-block-latest-posts {
		padding: 0;
		list-style: none;

		li {
			color: $color__text-light;
			font-family: $font__heading;
			font-size: calc(#{$font__size_base} * #{$font__size-ratio});
			font-weight: bold;
			line-height: $font__line-height-heading;

			&:not(.menu-item-has-children) {
				padding-bottom: ( .75 * $size__spacing-unit );
			}

			a {
				text-decoration: none;
			}

			ul {
				padding-left: $size__spacing-unit;
			}
		}
	}

	//! Latest posts grid view
	.wp-block-latest-posts.is-grid {
		li {
			border-top: 2px solid $color__border;
			padding-top: (1 * $size__spacing-unit);
			margin-bottom: (2 * $size__spacing-unit);
			a {
				&:after {
					content: '';
				}
			}
			&:last-child {
				margin-bottom: auto;
				a:after {
					content: '';
				}
			}
		}
	}

	//! Latest preformatted text
	.wp-block-preformatted {
		font-size: $font__size-xs;
		line-height: 1.8;
		padding: $size__spacing-unit;
	}

	//! Verse
	.wp-block-verse {
		font-family: $font__body;
		font-size: $font__size_base;
		line-height: 1.8;
	}

	//! Paragraphs
	.has-drop-cap {
		&:not(:focus):first-letter {
			font-family: $font__heading;
			font-size: $font__size-xxxl;
			line-height: 1;
			font-weight: bold;
			margin: 0 0.25em 0 0;
		}
	}

	//! Pullquote
	.wp-block-pullquote {
		border: none;
		padding: $size__spacing-unit;

		blockquote {
			color: $color__text-main;
			border: none;
			padding-bottom: calc(2 * #{$size__spacing-unit});
			margin-right: 0;
		}

		p {
			font-size: $font__size-lg;
			font-style: italic;
			line-height: 1.3;
			margin-bottom: 0.5em;
			margin-top: 0.5em;

			em {
				font-style: normal;
			}

			@include media(tablet) {
				font-size: $font__size-xl;
			}
		}

		cite {
			display: inline-block;
			font-family: $font__heading;
			font-size: $font__size-xs;
			line-height: 1.6;
			text-transform: none;
		}

		&.alignleft,
		&.alignright {
			padding: 0;

			blockquote {
				margin-left: 0;
				padding: 0;
				text-align: left;
				max-width: 100%;
			}
		}

		&.is-style-solid-color {

			background-color: $color__link;

			p {
				font-size: $font__size-lg;
				line-height: 1.3;
				margin-bottom: 0.5em;
				margin-top: 0.5em;

				@include media(tablet) {
					font-size: $font__size-xl;
				}
			}

			a {
				color: $color__background-body;
			}

			blockquote {
				color: $color__background-body;
				margin: 0 auto;
			}

			.has-primary-background-color {
				background-color: $color__link;
			}

			&.alignleft,
			&.alignright {
				padding: $size__spacing-unit $size__spacing-unit 0;

				blockquote {
					padding: 0 0 calc( 1.5 * #{$size__spacing-unit} );
					margin-left: 0;
					margin-top: 0;
				}

				@include media(tablet) {
					padding: calc( 2 * #{$size__spacing-unit} ) calc( 2 * #{$size__spacing-unit} ) $size__spacing-unit;
				}
			}
		}
	}

	//! Blockquote
	.wp-block-quote {

		&:not(.is-large),
		&:not(.is-style-large) {
			border-left: 2px solid $color__link;
			padding-top: 0;
			padding-bottom: 0;
		}

		p {
			font-size: 1em;
			font-style: normal;
			line-height: 1.8;
		}

		cite {
			font-size: $font__size-xs;
		}

		&.is-large,
		&.is-style-large {
			padding: $size__spacing-unit 0 ($size__spacing-unit) ($size__spacing-unit * 2);
			margin: $size__spacing-unit 0;
			border-left: none;

			p {
				font-size: $font__size-lg;
				line-height: 1.4;
				font-style: italic;
			}

			cite,
			footer {
				font-size: $font__size-xs;
			}

			@include media(tablet) {

				margin: $size__spacing-unit calc(2 * (100vw / 12));
				max-width: calc(6 * (100vw / 12));

				p {
					font-size: $font__size-lg;
				}
			}
		}
	}

	//! Image
	.wp-block-image {

		img {
			display: block;
		}

		&.alignleft,
		&.alignright {
			max-width: 100%;
		}

		&.alignfull img {
			width: 100vw;
			margin-left: auto;
			margin-right: auto;
		}
	}

	//! Cover Image
	.wp-block-cover-image,
	.wp-block-cover {

		.wp-block-cover-image-text,
		.wp-block-cover-text,
		h2 {
			font-family: $font__heading;
			font-size: $font__size-lg;
			font-weight: bold;

			width: calc(100vw - (2 * #{ $size__spacing-unit }));
			max-width: calc(100vw - (2 * #{ $size__spacing-unit }));

			@include media(tablet) {
				font-size: $font__size-xl;
				width: calc(8 * (100vw / 12));
				max-width: calc(8 * (100vw / 12));
			}

			@include media(desktop) {
				width: calc(6 * (100vw / 12 ));
				max-width: calc(6 * (100vw / 12 ));
			}
		}

		&.alignleft,
		&.alignright,
		&.aligncenter {
			h2,
			.wp-block-cover-image-text,
			.wp-block-cover-text {
				width: 100%;
				z-index: 1;
				left: 50%;
				position: absolute;
				transform: translate(-50%, -50%);
				top: 50%;
			}
		}

		&.aligncenter {
			margin: 32px calc(2 * (100vw / 12));
			max-width: calc(6 * (100vw / 12));
		}

		&.has-left-content {
			justify-content: center;

			h2,
			.wp-block-cover-image-text,
			.wp-block-cover-text {
				padding: $size__spacing-unit;
			}
		}

		&.has-right-content {
			justify-content: center;

			h2,
			.wp-block-cover-image-text,
			.wp-block-cover-text {
				padding: $size__spacing-unit;
			}
		}
	}

	//! Galleries
	.wp-block-gallery .blocks-gallery-image:last-child,
	.wp-block-gallery .blocks-gallery-item:last-child {
		margin-bottom: 16px;
	}

	//! Captions
	.wp-block-audio figcaption,
	.wp-block-video figcaption,
	.wp-block-image figcaption,
	.wp-block-gallery .blocks-gallery-image figcaption,
	.wp-block-gallery .blocks-gallery-item figcaption {
		font-size: $font__size-xs;
		font-family: $font__heading;
		line-height: $font__line-height-pre;
		margin: 0;
		padding: ( $size__spacing-unit * .5 );
		text-align: center;
	}

	//! Separator
	.wp-block-separator,
	hr {
		margin-bottom: (2 * $size__spacing-unit);
		margin-top: (2 * $size__spacing-unit);
		text-align: left;

		&:not(.is-style-dots) {
			background-color: $color__text-light;
			border: 0;
			height: 2px;
		}

		&:not(.is-style-wide):not(.is-style-dots) {
			max-width: 2.25em;
		}

		/* Remove duplicate rule-line when a separator
		 * is followed by an H1, or H2 */
		& + h1,
		& + h2 {

			&:before {
				display: none;
			}
		}

		&.is-style-dots {
			@include postContentMaxWidth();
			text-align: center;

			&:before {
				color: $color__text-light;
				font-size: $font__size-lg;
				letter-spacing: $font__size-sm;
				padding-left: $font__size-sm;
			}
		}
	}

	//! Twitter Embed
	.wp-block-embed-twitter {
		overflow: hidden;
	}

	//! Table
	.wp-block-table {

		td, th {
			border-color: $color__text-light;
		}
	}

	//! File
	.wp-block-file {
		font-family: $font__heading;

		.wp-block-file__button {
			@include button-transition;
			border: none;
			border-radius: 5px;
			background: $color__background-button;
			font-size: $font__size-base;
			font-family: $font__heading;
			line-height: $font__line-height-heading;
			font-weight: bold;
			padding: ($size__spacing-unit * .75) $size__spacing-unit;

			@include media(desktop) {
				font-size: $font__size-base;
				padding: ($size__spacing-unit * .875) ($size__spacing-unit * 1.5);
			}

			&:hover {
				cursor: pointer;
			}

			&:hover, &:focus {
				background: $color__background-button-hover;
			}

			&:focus {
				outline: thin dotted;
				outline-offset: -4px;
			}
		}
	}

	//! Code
	.wp-block-code {
		border-radius: 0;

		code {
			font-size: $font__size-md;
			white-space: pre-wrap;
    	                word-break: break-word;
		}
	}

	//! Columns
	.wp-block-columns {

		.wp-block-column > * {

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

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

		&[class*='has-'] > * {
			margin-right: $size__spacing-unit;

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

	//! Latest Comments
	.wp-block-latest-comments {

		.wp-block-latest-comments__comment-meta {
			font-family: $font__heading;
			font-weight: bold;

			.wp-block-latest-comments__comment-date {
				font-weight: normal;
			}
		}

		.wp-block-latest-comments__comment,
		.wp-block-latest-comments__comment-date,
		.wp-block-latest-comments__comment-excerpt p {
			font-size: inherit;
		}

		&.has-avatars {

		}

		&.has-dates {

			.wp-block-latest-comments__comment-date {
				font-size: $font__size-xs;
			}
		}

		&.has-excerpts {

		}
	}

	//! Custom colors
	.has-primary-background-color {
		background-color: $color__link;

		p,
		h1,
		h2,
		h3,
		h4,
		h5,
		h6,
		a {
			color: $color__background-body;
		}
	}
}

No other release has this exact content. See every version of this file.