Forráskód Böngészése

Rockfield: Remove margin if alignfull is last element

Thomas Guillot 6 éve
szülő
commit
396fd125ec
3 módosított fájl, 35 hozzáadás és 0 törlés
  1. 15 0
      rockfield/sass/_extra-child-theme.scss
  2. 10 0
      rockfield/style-rtl.css
  3. 10 0
      rockfield/style.css

+ 15 - 0
rockfield/sass/_extra-child-theme.scss

@@ -292,6 +292,21 @@ a {
 	}
 }
 
+// Remove margin if alignfull is last element
+.page:not(.logged-in) {
+	.hentry .entry-content {
+		& > *:last-child {
+			&.alignfull {
+				margin-bottom: -#{map-deep-get($config-global, "spacing", "vertical")};
+
+				@include media(mobile) {
+					margin-bottom: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
+				}
+			}
+		}
+	}
+}
+
 // Author Bio
 .author-bio {
 	border: 2px solid #{map-deep-get($config-global, "color", "border", "default")};

+ 10 - 0
rockfield/style-rtl.css

@@ -3667,6 +3667,16 @@ p:not(.site-title) a:hover {
 	}
 }
 
+.page:not(.logged-in) .hentry .entry-content > *:last-child.alignfull {
+	margin-bottom: -32px;
+}
+
+@media only screen and (min-width: 560px) {
+	.page:not(.logged-in) .hentry .entry-content > *:last-child.alignfull {
+		margin-bottom: -64px;
+	}
+}
+
 .author-bio {
 	border: 2px solid #E0E0E0;
 	padding: 16px;

+ 10 - 0
rockfield/style.css

@@ -3672,6 +3672,16 @@ p:not(.site-title) a:hover {
 	}
 }
 
+.page:not(.logged-in) .hentry .entry-content > *:last-child.alignfull {
+	margin-bottom: -32px;
+}
+
+@media only screen and (min-width: 560px) {
+	.page:not(.logged-in) .hentry .entry-content > *:last-child.alignfull {
+		margin-bottom: -64px;
+	}
+}
+
 .author-bio {
 	border: 2px solid #E0E0E0;
 	padding: 16px;