Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework toc styles #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

A viewer application for web publications, based on [NYPL’s prototype](https://github.com/NYPL-Simplified/webpub-viewer), which is itself based on [Hadrien Gardeur’s proof of concept](https://github.com/HadrienGardeur/webpub-viewer).

## About the Jellybooks-shared branch

This branch is meant to host changes and improvements that [Jellybooks](https://www.jellybooks.com) can share with the larger community.

## Quickstart

Clone this repo, `cd` the directory, checkout the `jellybooks-branch` then
Clone this repo, `cd` the directory, then

```
npm install
Expand Down
16 changes: 15 additions & 1 deletion examples/embedded/alice/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion examples/streamed/readers/reader-JBKS/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion src/styles/sass/_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,30 @@
-ms-user-select: none;
user-select: none;

ol {
padding: 0;
margin-left: 1.25rem;

@media screen and (min-width: 60rem) {
margin-left: 2rem;
}
}

> ol {
margin-bottom: 3.2rem; // same value as top above
margin-right: 1.25rem;

@media screen and (min-width: 60rem) {
margin-right: 2rem;
}
}

ol li {
margin-top: 0;
width: 88%;
display: block;

a {
box-sizing: border-box;
color: $ui-dark-gray;
border-bottom: 1px solid darken($ui-white, 20%);
display: block;
Expand All @@ -42,6 +61,7 @@
}

span {
box-sizing: border-box;
color: $ui-dark-gray;
border-bottom: 1px solid darken($ui-white, 20%);
display: block;
Expand Down