Michael Cain hace 5 años
padre
commit
fe4de15e4c
Se han modificado 3 ficheros con 151 adiciones y 8 borrados
  1. 7 3
      leven/sass/_extra-child-theme.scss
  2. 24 0
      leven/style-editor.css
  3. 120 5
      leven/style.css

+ 7 - 3
leven/sass/_extra-child-theme.scss

@@ -67,9 +67,9 @@ a {
 		grid-template-rows: auto;
 		grid-template-rows: auto;
 		grid-column-gap: #{map-deep-get($config-global, "spacing", "unit")};
 		grid-column-gap: #{map-deep-get($config-global, "spacing", "unit")};
 		grid-template-areas:
 		grid-template-areas:
-			"site-logo site-logo"
-			"site-branding main-navigation"
-			"site-branding social-navigation";
+				"site-logo site-logo"
+				"site-branding main-navigation"
+				"site-branding social-navigation";
 
 
 		&:before,
 		&:before,
 		&:after {
 		&:after {
@@ -113,3 +113,7 @@ a {
 		}
 		}
 	}
 	}
 }
 }
+
+.wp-block-newspack-blocks-homepage-articles article .entry-title a {
+	text-decoration: none;
+}

+ 24 - 0
leven/style-editor.css

@@ -294,6 +294,30 @@ object {
  * - In the future the Block styles may get compiled to individual .css
  * - In the future the Block styles may get compiled to individual .css
  *   files and conditionally loaded
  *   files and conditionally loaded
  */
  */
+.wp-block-a8c-blog-posts article {
+	margin-bottom: 96px;
+}
+
+.wp-block-a8c-blog-posts .post-thumbnail img {
+	width: auto;
+}
+
+.wp-block-a8c-blog-posts .entry-title a {
+	color: #ff302c;
+	text-decoration: underline;
+}
+
+.wp-block-a8c-blog-posts .entry-title a:hover {
+	color: #1285ce;
+}
+
+.wp-block-a8c-blog-posts .entry-meta,
+.wp-block-a8c-blog-posts .entry-footer,
+.wp-block-a8c-blog-posts .cat-links {
+	color: #767676;
+	font-size: 0.82474rem;
+}
+
 .wp-block-button {
 .wp-block-button {
 	/* Default Style */
 	/* Default Style */
 	/* Outline Style */
 	/* Outline Style */

+ 120 - 5
leven/style.css

@@ -194,7 +194,7 @@ $grid-configuration: map-extend($grid-configuration-default, $grid-configuration
  *   let’s use a placeholder to keep them all
  *   let’s use a placeholder to keep them all
  *   in-sync
  *   in-sync
  */
  */
-button,
+button[data-load-more-btn], button,
 .button,
 .button,
 input[type="submit"],
 input[type="submit"],
 .wp-block-button__link,
 .wp-block-button__link,
@@ -212,11 +212,11 @@ input[type="submit"],
 	padding: 16px 16px;
 	padding: 16px 16px;
 }
 }
 
 
-button:before,
+button[data-load-more-btn]:before, button:before,
 .button:before,
 .button:before,
 input[type="submit"]:before,
 input[type="submit"]:before,
 .wp-block-button__link:before,
 .wp-block-button__link:before,
-.wp-block-file__button:before, .a8c-posts-list__view-all:before, body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:before, button:after,
+.wp-block-file__button:before, .a8c-posts-list__view-all:before, body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:before, button[data-load-more-btn]:after, button:after,
 .button:after,
 .button:after,
 input[type="submit"]:after,
 input[type="submit"]:after,
 .wp-block-button__link:after,
 .wp-block-button__link:after,
@@ -227,7 +227,7 @@ input[type="submit"]:after,
 	width: 0;
 	width: 0;
 }
 }
 
 
-button:before,
+button[data-load-more-btn]:before, button:before,
 .button:before,
 .button:before,
 input[type="submit"]:before,
 input[type="submit"]:before,
 .wp-block-button__link:before,
 .wp-block-button__link:before,
@@ -235,7 +235,7 @@ input[type="submit"]:before,
 	margin-bottom: -0.12em;
 	margin-bottom: -0.12em;
 }
 }
 
 
-button:after,
+button[data-load-more-btn]:after, button:after,
 .button:after,
 .button:after,
 input[type="submit"]:after,
 input[type="submit"]:after,
 .wp-block-button__link:after,
 .wp-block-button__link:after,
@@ -1149,6 +1149,117 @@ object {
 	min-width: 300px;
 	min-width: 300px;
 }
 }
 
 
+.wp-block-newspack-blocks-homepage-articles article {
+	display: block;
+	/* Vertical margins logic between posts */
+	margin-top: calc(3 * 32px);
+	margin-bottom: calc(3 * 32px);
+}
+
+.wp-block-newspack-blocks-homepage-articles article:first-child {
+	margin-top: 0;
+}
+
+.wp-block-newspack-blocks-homepage-articles article:last-child {
+	margin-bottom: calc(3 * 32px);
+}
+
+.wp-block-newspack-blocks-homepage-articles article .post-thumbnail img {
+	width: auto;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-title a {
+	color: #ff302c;
+	text-decoration: underline;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover {
+	color: #1285ce;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-wrapper > * {
+	/* Vertical margins logic between post details */
+	margin-top: 16px;
+	margin-bottom: 16px;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-wrapper > *:first-child {
+	margin-top: 0;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-wrapper > *:last-child {
+	margin-bottom: 0;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .more-link {
+	margin-top: 16px;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-meta,
+.wp-block-newspack-blocks-homepage-articles article .entry-footer,
+.wp-block-newspack-blocks-homepage-articles article .cat-links {
+	color: #767676;
+	font-size: 0.82474rem;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-meta > span,
+.wp-block-newspack-blocks-homepage-articles article .entry-footer > span,
+.wp-block-newspack-blocks-homepage-articles article .cat-links > span {
+	display: inline-block;
+	margin-right: 16px;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-meta > span > *,
+.wp-block-newspack-blocks-homepage-articles article .entry-footer > span > *,
+.wp-block-newspack-blocks-homepage-articles article .cat-links > span > * {
+	display: inline-block;
+	vertical-align: middle;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-meta > span:last-child,
+.wp-block-newspack-blocks-homepage-articles article .entry-footer > span:last-child,
+.wp-block-newspack-blocks-homepage-articles article .cat-links > span:last-child {
+	margin-right: 0;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-meta > span .published + .updated,
+.wp-block-newspack-blocks-homepage-articles article .entry-footer > span .published + .updated,
+.wp-block-newspack-blocks-homepage-articles article .cat-links > span .published + .updated {
+	display: none;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-meta a,
+.wp-block-newspack-blocks-homepage-articles article .entry-footer a,
+.wp-block-newspack-blocks-homepage-articles article .cat-links a {
+	color: currentColor;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-meta a:hover, .wp-block-newspack-blocks-homepage-articles article .entry-meta a:active,
+.wp-block-newspack-blocks-homepage-articles article .entry-footer a:hover,
+.wp-block-newspack-blocks-homepage-articles article .entry-footer a:active,
+.wp-block-newspack-blocks-homepage-articles article .cat-links a:hover,
+.wp-block-newspack-blocks-homepage-articles article .cat-links a:active {
+	color: #1285ce;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-meta .svg-icon,
+.wp-block-newspack-blocks-homepage-articles article .entry-footer .svg-icon,
+.wp-block-newspack-blocks-homepage-articles article .cat-links .svg-icon {
+	fill: currentColor;
+	position: relative;
+	display: inline-block;
+	vertical-align: middle;
+	margin-right: calc(0.25 * 16px);
+}
+
+.wp-block-newspack-blocks-homepage-articles.is-grid article {
+	margin-top: 0;
+}
+
+button[data-load-more-btn] {
+	display: inline-block;
+}
+
 /**
 /**
  * Button
  * Button
  */
  */
@@ -3790,3 +3901,7 @@ p:not(.site-title) a:hover {
 		justify-content: flex-end;
 		justify-content: flex-end;
 	}
 	}
 }
 }
+
+.wp-block-newspack-blocks-homepage-articles article .entry-title a {
+	text-decoration: none;
+}