浏览代码

Blockbase: Move label position relative to Blockbase

Sarah Norris 3 年之前
父节点
当前提交
4c0be8a98e

+ 6 - 2
blockbase/assets/ponyfill.css

@@ -475,8 +475,12 @@ p.has-background {
 	margin-left: 0;
 }
 
-.wp-block-post-comments form .comment-form-cookies-consent input[type="checkbox"] + ::before,
-.wp-block-post-comments form .comment-form-cookies-consent input[type="checkbox"] + ::after {
+.wp-block-post-comments form .comment-form-cookies-consent input[type="checkbox"] + label {
+	position: relative;
+}
+
+.wp-block-post-comments form .comment-form-cookies-consent input[type="checkbox"] + label::before,
+.wp-block-post-comments form .comment-form-cookies-consent input[type="checkbox"] + label::after {
 	box-sizing: border-box;
 }
 

+ 5 - 3
blockbase/sass/blocks/_post-comments.scss

@@ -33,9 +33,11 @@
 		.comment-form-cookies-consent {
 			input[type="checkbox"] {
 				margin-left: 0;
-				
-				& + ::before,
-				& + ::after {
+				& + label {
+					position: relative;
+				}
+				& + label::before,
+				& + label::after {
 					box-sizing: border-box;
 				}
 				& + ::before {

+ 0 - 1
quadrat/assets/theme.css

@@ -408,7 +408,6 @@ ul ul {
 .wp-block-post-comments form .comment-form-cookies-consent input[type="checkbox"] + label {
 	margin-left: 0;
 	padding-left: 2em;
-	position: relative;
 }
 
 .wp-block-post-comments form .form-submit {

+ 0 - 1
quadrat/sass/blocks/_post-comments.scss

@@ -80,7 +80,6 @@
 				& + label {
 					margin-left: 0;
 					padding-left: 2em;
-					position: relative;
 				}
 			}
 

+ 0 - 1
skatepark/assets/theme.css

@@ -213,7 +213,6 @@
 .wp-block-post-comments form .comment-form-cookies-consent input[type="checkbox"] + label {
 	margin-left: 0;
 	padding-left: 3em;
-	position: relative;
 }
 
 .wp-block-post-comments form .form-submit {

+ 0 - 1
skatepark/sass/blocks/_post-comments.scss

@@ -96,7 +96,6 @@
 				& + label {
 					margin-left: 0;
 					padding-left: 3em;
-					position: relative;
 				}
 			}
 		}