CoreFiles by mySites.guru
_comments.scss404 lines, 5,936 bytes, from wordpress-5.0-beta1.zip
Raw History Compare with 4.9.8-beta2
md5
cc56a6a38f372961e6fdd9aff9bee067
sha1
4be6ffd9621320ef38ec44c837ac41fbb90c53c0
sha256
b9a1dcc8a41297cc28cf4670dc3d1b7041bc4857a825bac6b29aabe775f4d042
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

.comments-area {

	/* Add extra margin when the comments section is located immediately after the
	 * post itself (this happens on pages). 
	 */
	.hentry + & {
		margin-top: calc(3 * #{$size__spacing-unit});
	}

	.comments-title-wrap,
	.comment-list,
	> .comment-respond,
	.comment-form-flex,
	.no-comments {

		margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;

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

	.comments-title-wrap {

		align-items: baseline;
		display: flex;
		justify-content: space-between;

		.comments-title {
			@include post-section-dash;
			margin: 0;
		}
	}
}

#comment {
	max-width: 100%;
	box-sizing: border-box;
}

#respond {

	position: relative;

	.comment-user-avatar {
		display: none;
	}

	.comment .comment-form {
		padding-left: 0;
	}

	> small {
		display: block;
		font-size: $font__size_base;
		position: absolute;
		left: calc(#{$size__spacing-unit} + 100%);
		top: calc(-3.5 * #{$size__spacing-unit});
		width: calc(100vw / 12 );
	}
}

#comments {

	> .comments-title:last-child {
		display: none;
	}

	> #respond {
		@include media(desktop) {

			.comment-user-avatar {
				position: absolute;
				display: block;
				top: 0;
				left: 0;

				.avatar {
					display: block;
				}
			}
		}
	}
}

.comment-form-flex {

	display: flex;
	flex-direction: column;

	.comments-title {
		display: none;
		margin: 0;
		order: 1;
	}

	#respond {

		order: 2;
		+ .comments-title {
			display: block;
		}
	}
}

.comment-list {

	list-style: none;
	padding: 0;

	.children {
		margin: 0;
		padding: 0 0 0 $size__spacing-unit;
	}

	> .comment:first-child {
		margin-top: 0;
	}

}

.comment-reply {

	left: calc(#{$size__spacing-unit} + 100%);
	bottom: 0;
	position: absolute;

	#respond + & {
		display: none;
	}

	.comment-reply-link {
		display: inline-block;
	}
}

.comment {

	list-style: none;
	position: relative;

	@include media(tablet) {

		padding-left: calc(.5 * (#{$size__spacing-unit} + calc(100vw / 12 )));

		.children {
			padding-left: 0;
		}
	}

	&:hover > .comment-body > .comment-meta > .comment-metadata {
		> .edit-link-sep,
		> .edit-link {
			opacity: 1;
		}
	}

	.comment-body {
		margin: calc(2 * #{$size__spacing-unit}) 0;
	}

	.comment-meta {
		position: relative;
	}

	.comment-author {

		@include media(tablet) {
			display: inline-block;
			vertical-align: baseline;
		}

		.avatar {
			float: left;
			margin-right: $size__spacing-unit;
			position: relative;

			@include media(tablet) {
				float: inherit;
				margin-right: inherit;
				position: absolute;
				top: 0;
				right: calc(100% + #{$size__spacing-unit});
			}
		}

		.fn {
			position: relative;
			display: block;

			@include media(tablet) {
				display: inline-block;
				vertical-align: baseline;
			}

			a {
				color: inherit;

				&:hover {
					color: $color__link-hover;
				}
			}
		}

		.post-author-badge {
			border-radius: 100%;
			display: block;
			height: 18px;
			position: absolute;
			background: lighten( $color__link, 8% );
			right: calc(100% + #{$size__spacing-unit * .25});
			top: -3px;
			width: 18px;

			svg {
				width: inherit;
				height: inherit;
				display: block;
				fill: white;
				transform: scale(0.875);
			}
		}
	}

	.comment-metadata {

		@include media(tablet) {
			display: inline-block;
			margin-left: $size__spacing-unit;
			position: relative;
			vertical-align: baseline;
		}

		> a,
		.comment-edit-link {
			display: inline-block;
			font-weight: 500;
			color: $color__text-light;
			vertical-align: baseline;

			time {
				vertical-align: baseline;
			}

			&:hover {
				color: $color__text-hover;
				text-decoration: none;
			}
		}

		> * {
			display: inline-block;
		}

		.edit-link-sep {
			color: $color__text-light;
			margin: 0 0.2em;
			opacity: 0;
			transition: opacity 200ms ease-in-out;
			vertical-align: baseline;
		}

		.edit-link {
			color: $color__text-light;
			transition: opacity 200ms ease-in-out;
			opacity: 0;

			svg {
				transform: scale(0.8);
				vertical-align: baseline;
				margin-right: 0.1em;
			}
		}

		.comment-edit-link {

			position: relative;
			padding-left: $size__spacing-unit;
			margin-left: -#{$size__spacing-unit};
			z-index: 1;

			&:hover {
				color: $color__link;
			}
		}
	}

	.comment-content {

		margin: $size__spacing-unit 0;

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

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

		a {
			text-decoration: underline;

			&:hover {
				text-decoration: none;
			}
		}
	}
}

.comment-reply-link,
#cancel-comment-reply-link {
	font-weight: 500;

	&:hover {
		color: $color__link-hover;
	}
}

.discussion-avatar-list {
	@include clearfix;

	margin: 0;
	padding: 0;

	li {
		position: relative;
		list-style: none;
		margin: 0 -8px 0 0;
		padding: 0;
		float: left;
	}

	.comment-user-avatar {

		img {
			height: calc(1.5 * #{$size__spacing-unit});
			width: calc(1.5 * #{$size__spacing-unit});
		}

		@include media(tablet) {

		}
	}
}

.discussion-meta {

	.discussion-avatar-list {
		display: inline-block;
		margin-right: 8px;
	}

	.discussion-meta-info {
		margin: 0;

		.svg-icon {
			vertical-align: middle;
			fill: currentColor;
			transform: scale( 0.6 ) scaleX(-1) translateY(-0.1em);
			margin-left: -#{.25 * $size__spacing-unit}; // Align icon with avatars above.
		}
	}

}

.comment-form {

	.comment-notes,
	label {
		font-family: $font__heading;
		font-size: $font__size-xs;
		color: $color__text-light;
	}

	.comment-form-author,
	.comment-form-email {
		@include media(tablet) {
			width: calc(50% - #{$size__spacing-unit / 2});
			float: left;
		}
	}

	.comment-form-email {
		@include media(tablet) {
			margin-left: $size__spacing-unit;
		}
	}

	input[name="author"],
	input[name="email"],
	input[name="url"] {
		display: block;
		width: 100%;
	}
}

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