Przeglądaj źródła

Skatepark: Add comment font & spacing styles

Sarah Norris 4 lat temu
rodzic
commit
9116b718b7
2 zmienionych plików z 47 dodań i 27 usunięć
  1. 16 5
      skatepark/assets/theme.css
  2. 31 22
      skatepark/sass/blocks/_post-comments.scss

+ 16 - 5
skatepark/assets/theme.css

@@ -113,6 +113,18 @@
 	line-height: var(--wp--custom--body--typography--line-height);
 }
 
+.wp-block-post-comments .comment-author {
+	margin-bottom: var(--wp--custom--margin--baseline);
+}
+
+.wp-block-post-comments .comment-author cite {
+	font-weight: bold;
+}
+
+.wp-block-post-comments .reply {
+	margin-bottom: var(--wp--custom--margin--vertical);
+}
+
 .wp-block-post-comments .reply a {
 	--wp--custom--button--typography--font-size: var(--wp--preset--font-size--normal);
 	border-style: var(--wp--custom--button--border--style);
@@ -153,9 +165,10 @@
 }
 
 .wp-block-post-comments form label:not([for=wp-comment-cookies-consent]) {
-	text-transform: uppercase;
 	font-size: var(--wp--preset--font-size--tiny);
 	font-weight: 900;
+	margin-bottom: var(--wp--custom--margin--baseline);
+	text-transform: uppercase;
 }
 
 .wp-block-post-comments form p {
@@ -235,10 +248,6 @@
 	grid-area: form-submit;
 }
 
-.wp-block-post-comments .reply {
-	margin-bottom: 30px;
-}
-
 .wp-block-post-comments .commentmetadata {
 	margin-bottom: 20px;
 }
@@ -273,12 +282,14 @@ a {
 	color: var(--wp--custom--color--background);
 }
 
+.wp-block-post-comments .comment-meta > a,
 .wp-block-post-comments .comment-body > p > a,
 .wp-block-post-comments .comment-edit-link {
 	-webkit-text-decoration-line: underline;
 	        text-decoration-line: underline;
 }
 
+.wp-block-post-comments .comment-meta > a:hover,
 .wp-block-post-comments .comment-body > p > a:hover,
 .wp-block-post-comments .comment-edit-link:hover {
 	-webkit-text-decoration-line: none;

+ 31 - 22
skatepark/sass/blocks/_post-comments.scss

@@ -4,26 +4,38 @@
 
 	line-height: var(--wp--custom--body--typography--line-height);
 
-	.reply a {
-		--wp--custom--button--typography--font-size: var(--wp--preset--font-size--normal);
-		@include button-border-styles;
-		--wp--custom--button--color--text: var(--wp--custom--button--hover--color--text);
-		--wp--custom--button--color--background: var(--wp--custom--button--color--background);
-		--wp--custom--button--border--color: var(--wp--custom--button--hover--color--text);
-
-		& ,
-		&:hover,
-		&:focus,
-		&:active {
-			line-height: 1;
+	.comment-author {
+		margin-bottom: var(--wp--custom--margin--baseline);
+
+		cite {
+			font-weight: bold;
 		}
-		&:not(.has-background):not(.has-text-color) {
+	}
+
+	.reply {
+		margin-bottom: var(--wp--custom--margin--vertical);
+
+		a {
+			--wp--custom--button--typography--font-size: var(--wp--preset--font-size--normal);
+			@include button-border-styles;
+			--wp--custom--button--color--text: var(--wp--custom--button--hover--color--text);
+			--wp--custom--button--color--background: var(--wp--custom--button--color--background);
+			--wp--custom--button--border--color: var(--wp--custom--button--hover--color--text);
+
+			& ,
 			&:hover,
 			&:focus,
-			&.has-focus {
-				--wp--custom--button--typography--font-size: var(--wp--preset--font-size--normal);
-				--wp--custom--button--color--text: var(--wp--custom--button--hover--color--background);
-				--wp--custom--button--color--background: var(--wp--custom--button--hover--color--text);
+			&:active {
+				line-height: 1;
+			}
+			&:not(.has-background):not(.has-text-color) {
+				&:hover,
+				&:focus,
+				&.has-focus {
+					--wp--custom--button--typography--font-size: var(--wp--preset--font-size--normal);
+					--wp--custom--button--color--text: var(--wp--custom--button--hover--color--background);
+					--wp--custom--button--color--background: var(--wp--custom--button--hover--color--text);
+				}
 			}
 		}
 	}
@@ -49,9 +61,10 @@
 		}
 
 		label:not([for=wp-comment-cookies-consent]) {
-			text-transform: uppercase;
 			font-size: var(--wp--preset--font-size--tiny);
 			font-weight: 900;
+			margin-bottom: var(--wp--custom--margin--baseline);
+			text-transform: uppercase;
 		}
 
 		p {
@@ -119,10 +132,6 @@
 		}
 	}
 
-	.reply {
-		margin-bottom: 30px;
-	}
-
 	.commentmetadata {
 		margin-bottom: 20px;
 	}