Browse Source

Rockfield: Update CSS

* Remove margin if alignfull is first element
* Style the Author Bio
Thomas Guillot 6 năm trước cách đây
mục cha
commit
650ad84d80
3 tập tin đã thay đổi với 65 bổ sung2 xóa
  1. 27 2
      rockfield/sass/_extra-child-theme.scss
  2. 19 0
      rockfield/style-rtl.css
  3. 19 0
      rockfield/style.css

+ 27 - 2
rockfield/sass/_extra-child-theme.scss

@@ -249,6 +249,31 @@ a {
 	text-transform: uppercase;
 }
 
+// Remove margin if alignfull is first element
+.home.hide-homepage-title {
+	.hentry .entry-content {
+		& > *:first-child {
+			&.alignfull {
+				margin-top: -#{map-deep-get($config-global, "spacing", "unit")};
+
+				@include media(mobile) {
+					margin-top: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
+				}
+			}
+		}
+	}
+}
+
+// Author Bio
+.author-bio {
+	border: 2px solid #{map-deep-get($config-global, "color", "border", "default")};
+	padding: #{map-deep-get($config-global, "spacing", "unit")};
+
+	.author-title {
+		font-size: inherit;
+	}
+}
+
 /**
  * Blocks
  */
@@ -256,8 +281,8 @@ a {
 .wp-block-cover .wp-block-cover__inner-container,
 .wp-block-coblocks-hero .wp-block-coblocks-hero__box {
 	& > * {
-		margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
-		margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
+		margin-top: #{0.666 * map-deep-get($config-global, "spacing", "vertical")};
+		margin-bottom: #{0.666 * map-deep-get($config-global, "spacing", "vertical")};
 
 		@include media(mobile) {
 			margin-top: map-deep-get($config-global, "spacing", "vertical");

+ 19 - 0
rockfield/style-rtl.css

@@ -3614,6 +3614,25 @@ p:not(.site-title) a:hover {
 	text-transform: uppercase;
 }
 
+.home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
+	margin-top: -16px;
+}
+
+@media only screen and (min-width: 560px) {
+	.home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
+		margin-top: -64px;
+	}
+}
+
+.author-bio {
+	border: 2px solid #E8E9EA;
+	padding: 16px;
+}
+
+.author-bio .author-title {
+	font-size: inherit;
+}
+
 /**
  * Blocks
  */

+ 19 - 0
rockfield/style.css

@@ -3619,6 +3619,25 @@ p:not(.site-title) a:hover {
 	text-transform: uppercase;
 }
 
+.home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
+	margin-top: -16px;
+}
+
+@media only screen and (min-width: 560px) {
+	.home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
+		margin-top: -64px;
+	}
+}
+
+.author-bio {
+	border: 2px solid #E8E9EA;
+	padding: 16px;
+}
+
+.author-bio .author-title {
+	font-size: inherit;
+}
+
 /**
  * Blocks
  */