Browse Source

Fix pages.

pull/25/head
Ned Zimmerman 7 years ago
parent
commit
f6ace5936e
  1. 14
      resources/assets/styles/layouts/_pages.scss
  2. 2
      resources/views/page.blade.php
  3. 4
      yarn.lock

14
resources/assets/styles/layouts/_pages.scss

@ -25,11 +25,7 @@
} }
} }
.wrap { .page-content {
padding: 0 rem(8);
}
.content {
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -51,16 +47,12 @@
@media (min-width: $medium) { @media (min-width: $medium) {
.page { .page {
.wrap {
margin-top: rem(-366);
}
.page-header h1 { .page-header h1 {
font-size: rem(48); font-size: rem(48);
line-height: (56/48); line-height: (56/48);
} }
.content { .page-content {
width: rem(775); width: rem(775);
min-height: rem(494); min-height: rem(494);
margin: rem(-600) auto rem(119); margin: rem(-600) auto rem(119);
@ -80,7 +72,7 @@
@media (min-width: $large) { @media (min-width: $large) {
.page { .page {
.content { .page-content {
width: rem(1115); width: rem(1115);
} }
} }

2
resources/views/page.blade.php

@ -2,7 +2,9 @@
@section('content') @section('content')
@while(have_posts()) @php(the_post()) @while(have_posts()) @php(the_post())
<section class="page-content">
@include('partials.page-header') @include('partials.page-header')
@include('partials.content-page') @include('partials.content-page')
</section>
@endwhile @endwhile
@endsection @endsection

4
yarn.lock

@ -63,9 +63,9 @@ adjust-sourcemap-loader@^1.1.0:
object-path "^0.9.2" object-path "^0.9.2"
regex-parser "^2.2.1" regex-parser "^2.2.1"
"aetna@github:pressbooks/aetna#825dc3e": "aetna@github:pressbooks/aetna#3a0a323":
version "0.1.0" version "0.1.0"
resolved "https://codeload.github.com/pressbooks/aetna/tar.gz/825dc3e585b98b72c7d47d883afa56f2a4d4b810" resolved "https://codeload.github.com/pressbooks/aetna/tar.gz/3a0a32315b48877bf7ef30c384fad9d3b92f875f"
dependencies: dependencies:
tachyons-sass "~4.8" tachyons-sass "~4.8"

Loading…
Cancel
Save