-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
144 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Styling for textbook pages. Jupyter notebooks generate their own HTML markup | ||
* which we style under the #ipython-notebook selector. | ||
* | ||
* Most of the textbook content is styled using this component. | ||
* | ||
* [1]: Don't add horizontal padding since the content lies within a .o-wrapper | ||
* | ||
* Notebook styling: | ||
* | ||
* [2]: Add a border around cell input to distinguish it from the output. | ||
*/ | ||
|
||
.c-textbook__page { | ||
/* [1] */ | ||
padding: $spacing-unit-small 0; | ||
|
||
@include mq($from: tablet, $until: desktop) { | ||
padding: $spacing-unit; | ||
} | ||
|
||
@include mq($from: desktop) { | ||
padding: $spacing-unit-large; | ||
} | ||
} | ||
|
||
/** | ||
* Jupyter notebook styling | ||
*/ | ||
|
||
#ipython-notebook { | ||
.input_area pre, | ||
.output_text pre { | ||
background-color: $color-light-gray; | ||
font-size: 0.9em; | ||
margin-bottom: $spacing-unit-small; | ||
padding: $spacing-unit-small; | ||
overflow-x: scroll; | ||
} | ||
|
||
.input_area pre { | ||
/* [2] */ | ||
border: 1px solid $color-dark-gray; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* Styling for the sidebar. | ||
* | ||
* [1]: The sidebar is implemented as ul and li elements so we need to remove | ||
* the bullets and margins. | ||
* [2]: The entries are <a> tags so we need to remove the default styling. | ||
*/ | ||
|
||
$color-sidebar-bg: #fafafa !default; | ||
$color-sidebar-entry: #364149 !default; | ||
|
||
.c-textbook__sidebar { | ||
background-color: $color-sidebar-bg; | ||
padding: $spacing-unit-small; | ||
@include inuit-font-size(14px); | ||
border-right: 1px solid rgba(0, 0, 0, 0.07); | ||
} | ||
|
||
/* [1] */ | ||
.c-sidebar__chapters { | ||
list-style: none; | ||
margin-left: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
/* [1] */ | ||
.c-sidebar__sections { | ||
list-style: none; | ||
margin-left: $spacing-unit-small; | ||
margin-bottom: 0; | ||
} | ||
|
||
.c-sidebar__chapter, | ||
.c-sidebar__section { | ||
padding: $spacing-unit-tiny; | ||
} | ||
|
||
/* [2] */ | ||
.c-sidebar__entry { | ||
color: $color-sidebar-entry; | ||
text-decoration: none; | ||
|
||
&:hover, | ||
&:active { | ||
text-decoration: underline; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters