瀏覽代碼

fixes based on comments on the PR

Ben Dwyer 4 年之前
父節點
當前提交
9ef3e86e3e

+ 0 - 1
seedlet/assets/sass/components/footer/_footer-branding.scss

@@ -2,7 +2,6 @@
 
 .site-footer {
 	overflow: hidden;
-	@extend %responsive-alignwide-width;
 }
 
 // Footer Branding

+ 4 - 3
seedlet/assets/sass/structure/_responsive-logic.scss

@@ -5,7 +5,8 @@
 /**
  * Required Variables
  */
-$default_width: 750px;
+$default_width: 620px;
+$alignwide_width: 790px
 $breakpoint_sm: 482px;
 $breakpoint_md: 592px;
 $breakpoint_lg: 652px;
@@ -80,7 +81,7 @@ $breakpoint_xxl: 1024px;
  * Root Media Query Variables
  */
 :root {
-	--responsive--spacing-horizontal: calc(2 * var(--global--spacing-horizontal) * 0.6);
+	--responsive--spacing-horizontal: calc(2 * var(--global--spacing-horizontal));
 	--responsive--aligndefault-width: calc(100vw - var(--responsive--spacing-horizontal));
 	--responsive--alignwide-width: calc(100vw - var(--responsive--spacing-horizontal));
 	--responsive--alignfull-width: 100%;
@@ -99,7 +100,7 @@ $breakpoint_xxl: 1024px;
 @include media(laptop) {
 	:root {
 		--responsive--aligndefault-width: min(calc(100vw - 8 * var(--global--spacing-horizontal)), #{$default_width});
-		--responsive--alignwide-width: calc(100vw - 8 * var(--global--spacing-horizontal));
+		--responsive--alignwide-width: min(calc(100vw - 8 * var(--global--spacing-horizontal)), #{$alignwide_width});
 	}
 }
 

+ 1 - 1
seedlet/functions.php

@@ -354,7 +354,7 @@ function seedlet_content_width() {
 	// This variable is intended to be overruled from themes.
 	// Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}.
 	// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
-	$GLOBALS['content_width'] = apply_filters( 'seedlet_content_width', 750 );
+	$GLOBALS['content_width'] = apply_filters( 'seedlet_content_width', 620 );
 }
 add_action( 'after_setup_theme', 'seedlet_content_width', 0 );
 

+ 1 - 1
seedlet/template-parts/content/content.php

@@ -11,7 +11,7 @@
 ?>
 
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
-	<header class="entry-header alignwide">
+	<header class="entry-header default-max-width">
 		<?php
 		if ( is_sticky() && is_home() && ! is_paged() ) {
 			printf( '<span class="sticky-post">%s</span>', _x( 'Featured', 'post', 'seedlet' ) );