Browse Source

Fix front page book.

pull/49/head
Ned Zimmerman 7 years ago
parent
commit
4bb5bd21c4
  1. 2
      assets/styles/layouts/_front-page.scss
  2. 8
      dist/mix-manifest.json
  3. 14510
      dist/scripts/aldine.js
  4. 10356
      dist/scripts/customizer.js
  5. 2928
      dist/styles/aldine.css
  6. 325
      dist/styles/editor.css
  7. 2
      header.php
  8. 2
      partials/book.php
  9. 4
      partials/content-front-page.php

2
assets/styles/layouts/_front-page.scss

@ -17,8 +17,10 @@
.booknav {
width: 100%;
padding: 0 1rem;
@media #{$breakpoint-large} {
max-width: 22.9375rem;
padding: 0;
}
margin: 1rem auto 2rem;
display: flex;

8
dist/mix-manifest.json vendored

@ -1,6 +1,6 @@
{
"/scripts/aldine.js": "/scripts/aldine.js?id=c8641d03dfb38dc75e0d",
"/styles/aldine.css": "/styles/aldine.css?id=42502f2b5027b3456abd",
"/styles/editor.css": "/styles/editor.css?id=16680c95cc79caed750f",
"/scripts/customizer.js": "/scripts/customizer.js?id=f1f1f4225cba4c1b35f2"
"/scripts/aldine.js": "/scripts/aldine.js",
"/styles/aldine.css": "/styles/aldine.css",
"/styles/editor.css": "/styles/editor.css",
"/scripts/customizer.js": "/scripts/customizer.js"
}

14510
dist/scripts/aldine.js vendored

File diff suppressed because one or more lines are too long

10356
dist/scripts/customizer.js vendored

File diff suppressed because one or more lines are too long

2928
dist/styles/aldine.css vendored

File diff suppressed because one or more lines are too long

325
dist/styles/editor.css vendored

File diff suppressed because one or more lines are too long

2
header.php

@ -21,7 +21,7 @@
</head>
<body <?php body_class(); ?>>
<svg style="position: absolute; width: 0; height: 0;" width="0" height="0" xmlns="http://www.w3.org/2000/svg">
<svg aria-hidden="true" width="0" height="0" xmlns="http://www.w3.org/2000/svg">
<defs>
<symbol id="icon-pressbooks" fill="currentColor" viewBox="0 0 45 44">
<path d="M44.195 41.872c0 .745-.618 1.346-1.377 1.346H1.377C.617 43.219 0 42.617 0 41.872V1.347C0 .604.618 0 1.377 0h41.44c.76 0 1.378.604 1.378 1.347v40.525zM15.282 10.643h-5.21v21.43h3.304V24h1.906c1.435 0 2.656-.5 3.665-1.504 1.008-1.004 1.513-2.213 1.513-3.626v-3.113c0-1.47-.444-2.678-1.33-3.625-.956-.993-2.24-1.489-3.848-1.489zm1.977 5.165h-.001v3.131c0 .513-.184.952-.55 1.318a1.826 1.826 0 0 1-1.338.547h-1.994v-6.86h1.995c.571 0 1.029.171 1.372.513.344.342.516.792.516 1.35zm5.84 16.265h6.118c.828 0 1.662-.25 2.502-.752a4.642 4.642 0 0 0 1.73-1.779c.526-.945.788-2.097.788-3.455 0-.545-.04-1.043-.122-1.486-.163-.868-.414-1.575-.751-2.122-.513-.81-1.137-1.352-1.871-1.625a3.325 3.325 0 0 0 1.154-.839c.78-.866 1.173-2.018 1.173-3.455 0-.876-.105-1.635-.315-2.274-.386-1.198-1.027-2.08-1.925-2.652-1.049-.672-2.225-1.008-3.531-1.008h-4.95v21.447zm3.568-12.69v-5.475h1.382c.652 0 1.184.212 1.592.634.443.456.665 1.13.665 2.018 0 .537-.065.987-.193 1.352-.35.982-1.039 1.471-2.064 1.471h-1.382zm0 9.493v-6.397h1.382c.815 0 1.433.25 1.853.751.466.549.7 1.42.7 2.617 0 .502-.075.948-.227 1.335-.432 1.13-1.208 1.694-2.326 1.694h-1.382z" />

2
partials/book.php

@ -16,6 +16,6 @@ $date = ( isset( $book['metadata']['datePublished'] ) ) ? str_replace( '-', '',
<a href="<?php echo $book['link']; ?>"><?php echo $book['metadata']['name']; ?></a>
</p>
<p class="book__read-more">
<a href="<?php echo $book['link']; ?>"><?php _e( 'About this book', 'pressbooks-aldine' ); ?> <svg><use xlink:href="#arrow-right" /></svg></a>
<a href="<?php echo $book['link']; ?>"><?php _e( 'About this book', 'pressbooks-aldine' ); ?> <svg aria-hidden="true"><use xlink:href="#arrow-right" /></svg></a>
</p>
</div>

4
partials/content-front-page.php

@ -52,7 +52,7 @@ $next_page = $page + 1;
<?php if ( $previous_page ) : ?>
<a class="previous" rel="previous" data-page="<?php echo $previous_page; ?>" href="<?php echo network_home_url( "/page/$previous_page/#latest-titles" ); ?>">
<span class="screen-reader-text"><?php _e( 'Previous Page', 'pressbooks' ); ?></span>
<svg>
<svg aria-hidden="true">
<use xlink:href="#arrow-left" />
</svg>
</a>
@ -60,7 +60,7 @@ $next_page = $page + 1;
<?php if ( $next_page <= $catalog_data['pages'] ) : ?>
<a class="next" rel="next" data-page="<?php echo $next_page; ?>" href="<?php echo network_home_url( "/page/$next_page/#latest-titles" ); ?>">
<span class="screen-reader-text"><?php _e( 'Next Page', 'pressbooks' ); ?></span>
<svg>
<svg aria-hidden="true">
<use xlink:href="#arrow-right" />
</svg>
</a>

Loading…
Cancel
Save