Skip to content

Commit

Permalink
Merge pull request #87 from isubit/LDOC-43
Browse files Browse the repository at this point in the history
LDOC 43 - Improve book styling
  • Loading branch information
angelamnr authored Feb 22, 2017
2 parents 1a0573a + 4de9c3e commit 661298e
Showing 1 changed file with 129 additions and 0 deletions.
129 changes: 129 additions & 0 deletions css/suitcase.css
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,135 @@ span.date-display-single {
margin-left: 75px !important;
}

/* Book Section Links */

.book-navigation {
padding: 1rem 0;
}

.book-navigation .menu {
margin: 0 0 1rem;
padding: 0;
border: 0;
}

.book-navigation .menu li {
list-style-type: none;
list-style-image: none;
margin: 0;
padding: 0;
}

.book-navigation .menu li a {
display: block;
margin-bottom: 0.5rem;
padding: 10px 16px;
text-decoration: none;
border: 1px solid #ddd;
}

/* Sidebar */

.block-book .block-title {
margin-bottom: 1rem;
}

.block-book .menu li {
list-style-type: none;
list-style-image: none;
margin: 0;
}

.block-book .menu li a {
display: block;
margin-bottom: 0.5rem;
padding-bottom: 0.5rem;
font-size: 15px;
text-decoration: none;
border-bottom: 1px solid #ddd;
}

.block-book .menu li a:hover {
text-decoration: underline;
}

.block-book ul li.collapsed a:after {
content: '›';
float: right;
margin-top: -8px;
font-size: 24px;
}

.block-book ul ul {
margin-left: 1rem;
}

/* Pagination */

.book-navigation .page-links {
border-top: 1px solid #ddd;
border-bottom: 0;
margin-top: 2rem;
padding: 0;
padding-top: 1rem;

}

.book-navigation .page-next,
.book-navigation .page-previous,
.book-navigation .page-up {
display: inline-block;
width: auto;
margin-top: 1rem;
padding: 10px 16px;
color: #333;
font-size: 14px;
font-weight: bold;
text-decoration: none;
border: 1px solid #ddd;
border-radius: 3px;
}

.book-navigation .page-up {
margin-right: auto;
margin-left: auto;
float: none;
}

.book-navigation .page-next:hover,
.book-navigation .page-previous:hover,
.book-navigation .page-up:hover {
text-decoration: underline;
}

@media (max-width: 550px) {
.book-navigation .page-links {
display: flex;
flex-wrap: wrap;
}

.book-navigation .page-next,
.book-navigation .page-previous,
.book-navigation .page-up {
display: block;
float: none;
}

.book-navigation .page-next,
.book-navigation .page-previous {
width: calc(50% - 10px);
}

.book-navigation .page-previous {
margin-right: 20px;
}

.book-navigation .page-up {
width: 100%;
order: -1;
}
}

/* -------------------- */
/* ## NODE - GENERAL
/* -------------------- */
Expand Down

0 comments on commit 661298e

Please sign in to comment.