Browse Source

Maywood: remove alignment; rebuild

Michael Cain 5 years ago
parent
commit
4d83bf3a66
4 changed files with 149 additions and 53 deletions
  1. 3 16
      maywood/sass/_extra-child-theme.scss
  2. 0 6
      maywood/style-editor.css
  3. 139 10
      maywood/style-rtl.css
  4. 7 21
      maywood/style.css

+ 3 - 16
maywood/sass/_extra-child-theme.scss

@@ -203,32 +203,19 @@ a {
  * Blocks
  * Blocks
  */
  */
 // Posts List
 // Posts List
-.a8c-posts-list,
-.wp-block-newspack-blocks-homepage-articles article {
+.a8c-posts-list {
 	text-align: center;
 	text-align: center;
 }
 }
 
 
-.a8c-posts-list-item__title,
-.wp-block-newspack-blocks-homepage-articles article .entry-title {
+.a8c-posts-list-item__title {
 	font-weight: 300;
 	font-weight: 300;
 	font-size: map-deep-get($config-global, "font", "size", "xxl");
 	font-size: map-deep-get($config-global, "font", "size", "xxl");
 }
 }
 
 
-.a8c-posts-list-item__excerpt,
-.wp-block-newspack-blocks-homepage-articles article p {
+.a8c-posts-list-item__excerpt {
 	text-align: left;
 	text-align: left;
 }
 }
 
 
-.wp-block-newspack-blocks-homepage-articles article .entry-meta {
-	display: block;
-}
-
-//Newspack 'load more' is outside the wrapper.
-button[data-load-more-btn] {
-	display: flex;
-	margin: 0 auto;
-}
-
 // Cover
 // Cover
 .wp-block-cover,
 .wp-block-cover,
 .wp-block-cover-image {
 .wp-block-cover-image {

+ 0 - 6
maywood/style-editor.css

@@ -303,12 +303,6 @@ object {
 	width: auto;
 	width: auto;
 }
 }
 
 
-.wp-block-a8c-blog-posts .entry-title {
-	font-size: 1.728rem;
-	letter-spacing: normal;
-	line-height: 1.125;
-}
-
 .wp-block-a8c-blog-posts .entry-title a {
 .wp-block-a8c-blog-posts .entry-title a {
 	color: #897248;
 	color: #897248;
 	text-decoration: underline;
 	text-decoration: underline;

+ 139 - 10
maywood/style-rtl.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,119 @@ 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 {
+	font-size: 1.728rem;
+	letter-spacing: normal;
+	line-height: 1.125;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-title a {
+	color: #897248;
+	text-decoration: underline;
+}
+
+.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover {
+	color: #685636;
+}
+
+.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: #686868;
+	font-size: 0.83333rem;
+}
+
+.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-left: 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-left: 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: #685636;
+}
+
+.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-left: calc(0.25 * 16px);
+}
+
+button[data-load-more-btn] {
+	display: inline-block;
+}
+
 /**
 /**
  * Button
  * Button
  */
  */
@@ -3795,7 +3908,8 @@ p:not(.site-title) a:hover {
 
 
 .entry-title a,
 .entry-title a,
 .page-title a,
 .page-title a,
-.a8c-posts-list .a8c-posts-list-item__title a {
+.a8c-posts-list .a8c-posts-list-item__title a,
+.wp-block-newspack-blocks-homepage-articles article .entry-title a {
 	color: inherit;
 	color: inherit;
 	text-decoration: none;
 	text-decoration: none;
 }
 }
@@ -3806,7 +3920,10 @@ p:not(.site-title) a:hover {
 .page-title a:hover,
 .page-title a:hover,
 .a8c-posts-list .a8c-posts-list-item__title a:active,
 .a8c-posts-list .a8c-posts-list-item__title a:active,
 .a8c-posts-list .a8c-posts-list-item__title a:focus,
 .a8c-posts-list .a8c-posts-list-item__title a:focus,
-.a8c-posts-list .a8c-posts-list-item__title a:hover {
+.a8c-posts-list .a8c-posts-list-item__title a:hover,
+.wp-block-newspack-blocks-homepage-articles article .entry-title a:active,
+.wp-block-newspack-blocks-homepage-articles article .entry-title a:focus,
+.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover {
 	color: #897248;
 	color: #897248;
 }
 }
 
 
@@ -3856,19 +3973,31 @@ p:not(.site-title) a:hover {
 /**
 /**
  * Blocks
  * Blocks
  */
  */
-.a8c-posts-list {
+.a8c-posts-list,
+.wp-block-newspack-blocks-homepage-articles article {
 	text-align: center;
 	text-align: center;
 }
 }
 
 
-.a8c-posts-list-item__title {
+.a8c-posts-list-item__title,
+.wp-block-newspack-blocks-homepage-articles article .entry-title {
 	font-weight: 300;
 	font-weight: 300;
 	font-size: 2.0736rem;
 	font-size: 2.0736rem;
 }
 }
 
 
-.a8c-posts-list-item__excerpt {
+.a8c-posts-list-item__excerpt,
+.wp-block-newspack-blocks-homepage-articles article p {
 	text-align: right;
 	text-align: right;
 }
 }
 
 
+.wp-block-newspack-blocks-homepage-articles article .entry-meta {
+	display: block;
+}
+
+button[data-load-more-btn] {
+	display: flex;
+	margin: 0 auto;
+}
+
 .wp-block-cover p,
 .wp-block-cover p,
 .wp-block-cover-image p {
 .wp-block-cover-image p {
 	text-shadow: 0 0 6px black;
 	text-shadow: 0 0 6px black;

+ 7 - 21
maywood/style.css

@@ -1168,12 +1168,6 @@ object {
 	width: auto;
 	width: auto;
 }
 }
 
 
-.wp-block-newspack-blocks-homepage-articles article .entry-title {
-	font-size: 1.728rem;
-	letter-spacing: normal;
-	line-height: 1.125;
-}
-
 .wp-block-newspack-blocks-homepage-articles article .entry-title a {
 .wp-block-newspack-blocks-homepage-articles article .entry-title a {
 	color: #897248;
 	color: #897248;
 	text-decoration: underline;
 	text-decoration: underline;
@@ -1258,6 +1252,10 @@ object {
 	margin-right: calc(0.25 * 16px);
 	margin-right: calc(0.25 * 16px);
 }
 }
 
 
+.wp-block-newspack-blocks-homepage-articles.is-grid article {
+	margin-top: 0;
+}
+
 button[data-load-more-btn] {
 button[data-load-more-btn] {
 	display: inline-block;
 	display: inline-block;
 }
 }
@@ -4002,31 +4000,19 @@ p:not(.site-title) a:hover {
 /**
 /**
  * Blocks
  * Blocks
  */
  */
-.a8c-posts-list,
-.wp-block-newspack-blocks-homepage-articles article {
+.a8c-posts-list {
 	text-align: center;
 	text-align: center;
 }
 }
 
 
-.a8c-posts-list-item__title,
-.wp-block-newspack-blocks-homepage-articles article .entry-title {
+.a8c-posts-list-item__title {
 	font-weight: 300;
 	font-weight: 300;
 	font-size: 2.0736rem;
 	font-size: 2.0736rem;
 }
 }
 
 
-.a8c-posts-list-item__excerpt,
-.wp-block-newspack-blocks-homepage-articles article p {
+.a8c-posts-list-item__excerpt {
 	text-align: left;
 	text-align: left;
 }
 }
 
 
-.wp-block-newspack-blocks-homepage-articles article .entry-meta {
-	display: block;
-}
-
-button[data-load-more-btn] {
-	display: flex;
-	margin: 0 auto;
-}
-
 .wp-block-cover p,
 .wp-block-cover p,
 .wp-block-cover-image p {
 .wp-block-cover-image p {
 	text-shadow: 0 0 6px black;
 	text-shadow: 0 0 6px black;