Commit e40c6b38 by Kyle Fiedler

Reset some styles for the textbook

parent 29b85773
...@@ -20,7 +20,7 @@ div.info-wrapper { ...@@ -20,7 +20,7 @@ div.info-wrapper {
> li { > li {
@extend .clearfix; @extend .clearfix;
border-bottom: 1px solid #e3e3e3; border-bottom: 1px solid lighten($border-color, 10%);
margin-bottom: lh(); margin-bottom: lh();
padding-bottom: lh(.5); padding-bottom: lh(.5);
list-style-type: disk; list-style-type: disk;
...@@ -101,8 +101,7 @@ div.info-wrapper { ...@@ -101,8 +101,7 @@ div.info-wrapper {
li { li {
@extend .clearfix; @extend .clearfix;
background: none; background: none;
border-bottom: 1px solid #d3d3d3; border-bottom: 1px solid $border-color;
@include box-shadow(0 1px 0 #eee);
@include box-sizing(border-box); @include box-sizing(border-box);
padding: em(7) lh(.75); padding: em(7) lh(.75);
position: relative; position: relative;
...@@ -123,7 +122,7 @@ div.info-wrapper { ...@@ -123,7 +122,7 @@ div.info-wrapper {
li { li {
border-bottom: 0; border-bottom: 0;
border-top: 1px solid #d3d3d3; border-top: 1px solid $border-color;
@include box-shadow(inset 0 1px 0 #eee); @include box-shadow(inset 0 1px 0 #eee);
padding-left: lh(1.5); padding-left: lh(1.5);
font-size: 1em; font-size: 1em;
......
...@@ -7,7 +7,7 @@ div.book-wrapper { ...@@ -7,7 +7,7 @@ div.book-wrapper {
@include box-sizing(border-box); @include box-sizing(border-box);
ul#booknav { ul#booknav {
font-size: 12px; font-size: $body-font-size;
a { a {
color: #000; color: #000;
...@@ -39,8 +39,7 @@ div.book-wrapper { ...@@ -39,8 +39,7 @@ div.book-wrapper {
} }
> li { > li {
border-bottom: 1px solid #d3d3d3; border-bottom: 1px solid $border-color;
@include box-shadow(0 1px 0 #eee);
padding: 7px 7px 7px 30px; padding: 7px 7px 7px 30px;
} }
} }
...@@ -48,9 +47,11 @@ div.book-wrapper { ...@@ -48,9 +47,11 @@ div.book-wrapper {
section.book { section.book {
@extend .content; @extend .content;
padding-right: 0;
padding-bottom: 0;
padding-top: 0;
nav { nav {
@extend .topbar;
@extend .clearfix; @extend .clearfix;
a { a {
...@@ -62,32 +63,41 @@ div.book-wrapper { ...@@ -62,32 +63,41 @@ div.book-wrapper {
@extend .clearfix; @extend .clearfix;
li { li {
position: absolute;
height: 100%;
width: flex-grid(2, 8);
a {
display: table;
@include box-sizing(border-box);
height: 100%;
width: 100%;
padding-top: 200%;
vertical-align: middle;
@include transition;
background: rgba(#000, .7);
opacity: 0;
filter: alpha(opacity=0);
&:hover {
opacity: 1;
filter: alpha(opacity=100);
}
}
&.last { &.last {
display: block; left: 0;
float: left;
a {
border-left: 0;
border-right: 1px solid darken(#f6efd4, 20%);
@include box-shadow(inset -1px 0 0 lighten(#f6efd4, 5%));
}
} }
&.next { &.next {
display: block; right: 0;
float: right;
} }
&:hover {
background: none;
}
} }
} }
&.bottom-nav { &.bottom-nav {
border-bottom: 0; border-bottom: 0;
border-top: 1px solid #EDDFAA;
margin-bottom: -(lh()); margin-bottom: -(lh());
margin-top: lh(); margin-top: lh();
} }
...@@ -95,9 +105,10 @@ div.book-wrapper { ...@@ -95,9 +105,10 @@ div.book-wrapper {
section.page { section.page {
text-align: center; text-align: center;
position: relative;
border: 1px solid $border-color;
img { img {
border: 1px solid $border-color;
max-width: 100%; max-width: 100%;
} }
} }
......
...@@ -51,7 +51,6 @@ h1.top-header { ...@@ -51,7 +51,6 @@ h1.top-header {
.sidebar { .sidebar {
border-right: 1px solid #C8C8C8; border-right: 1px solid #C8C8C8;
@include box-shadow(inset -1px 0 0 #e6e6e6);
@include box-sizing(border-box); @include box-sizing(border-box);
display: table-cell; display: table-cell;
font-family: $sans-serif; font-family: $sans-serif;
......
...@@ -89,17 +89,6 @@ $("#open_close_accordion a").click(function(){ ...@@ -89,17 +89,6 @@ $("#open_close_accordion a").click(function(){
</nav> </nav>
<img id="bookpage" src="${ settings.BOOK_URL }p${ "%03i"%(page) }.png"> <img id="bookpage" src="${ settings.BOOK_URL }p${ "%03i"%(page) }.png">
<nav class="bottom-nav">
<ul>
<li class="last">
<a href="javascript:prev_page()">Previous page</a>
</li>
<li class="next">
<a href="javascript:next_page()">Next page</a>
</li>
</ul>
</nav>
</section> </section>
</section> </section>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment