Theme: Fix interior page layout

Fixes #4
This commit is contained in:
Kelly Dwan 2019-10-03 17:25:03 -04:00
parent e20a834cb0
commit b3940e8943
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
5 changed files with 26 additions and 14 deletions

View file

@ -20,6 +20,6 @@
@import "../../../pub/wporg/css/components/wporg-footer"; @import "../../../pub/wporg/css/components/wporg-footer";
@import "../../../pub/wporg/css/components/wporg-header"; @import "../../../pub/wporg/css/components/wporg-header";
@import "about"; @import "about";
@import "child-pages";
@import "entry-content"; @import "entry-content";
@import "page";
@import "wporg-header"; @import "wporg-header";

View file

@ -6,6 +6,12 @@
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
color: $color__text-heading-darker; color: $color__text-heading-darker;
} }
h2 {
font-size: ms( 2 );
font-weight: 400;
color: $color__text-heading;
}
} }
p.has-background, p.has-background,

View file

@ -1,5 +1,4 @@
// Styles for child pages. body.page:not(.home) {
body.page-child {
.site-title a { .site-title a {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
@ -10,26 +9,30 @@ body.page-child {
} }
} }
.site-main {
margin: 0 auto;
padding: 0 ms( 2 );
max-width: calc( #{ $size__content-width } + #{ ms( 2 ) * 2 } );
}
.entry-header { .entry-header {
background: none; background: none;
margin: 0 auto;
max-width: 960px;
padding: 0 ms( 4 );
.entry-title { .entry-title {
color: inherit; color: $color__text-heading-darker;
font-size: ms( 8 ); font-size: ms( 8 );
font-weight: 400; font-weight: 300;
line-height: 1.5; line-height: 1.5;
margin: 2rem auto 1rem; margin: 2rem auto 1rem;
@include breakpoint( 0, $ms-breakpoint ) {
padding: 0; padding: 0;
} }
} }
}
.entry-content { .entry-content {
padding-top: 0; padding: 0 0 ms( 10 );
}
.entry-footer {
padding: ms( 10 ) 0;
} }
} }

View file

@ -9,3 +9,6 @@ $breakpoint-large: 960px !default;
$breakpoint-medium: 782px !default; $breakpoint-medium: 782px !default;
$breakpoint-small: 600px !default; $breakpoint-small: 600px !default;
$breakpoint-mobile: 480px !default; $breakpoint-mobile: 480px !default;
$size__site-main: 960px;
$size__content-width: 640px;

File diff suppressed because one or more lines are too long