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

Add funfetti themeing #566

Merged
merged 4 commits into from
Oct 6, 2022
Merged
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
3 changes: 2 additions & 1 deletion style-sets/fhdasl/_output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ bookdown::gitbook:
toc:
collapse: section
before: |
<a href="https://anvilproject.org/" target="_blank"><img src="assets/logo-fhdasl.png" style="width: 80%; padding-left: 15px; padding-top: 8px;"</a>
<a href="https://hutchdatascience.org/" target="_blank"><img src="assets/FHDaSL_SQ-funfetti.png" style="width: 80%; padding-left: 15px; padding-top: 8px;"</a>
after: |
<p style="text-align:center;"> <a href="https://github.com/jhudsl/OTTR_Template" target="blank" > This content was published with</a> <a href="https://bookdown.org/" target="blank"> bookdown by: </a> </p>
<p style="text-align:center;"> <a href="http://hutchdatascience.org/"> The Fred Hutch Data Science Lab </a></p>
<a href="http://hutchdatascience.org/"><img src="https://hutchdatascience.org/images/FHDataScienceLab_Rec_funfetti.png" style=" width: 80%; padding-left: 40px; padding-top: 8px; vertical-align: top "</a>
<p style="text-align:center; font-size: 12px;"> <a href="https://github.com/rstudio4edu/rstudio4edu-book/"> Style adapted from: rstudio4edu-book </a> <a href ="https://creativecommons.org/licenses/by/2.0/"> (CC-BY 2.0) </a></p>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified style-sets/fhdasl/copy_to_assets/dasl_thin_main_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified style-sets/fhdasl/copy_to_assets/favicon.ico
Binary file not shown.
Binary file removed style-sets/fhdasl/copy_to_assets/logo-fhdasl.png
Binary file not shown.
47 changes: 12 additions & 35 deletions style-sets/fhdasl/copy_to_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pre code {
/* ------------Links------------------ */

.book .book-body .page-wrapper .page-inner section.normal a {
color: #89C348;
color: #00C1D5;
}


Expand Down Expand Up @@ -71,14 +71,14 @@ h1, h2, h3, h4 {
.title {
font-family: 'Lora';
font-size: 4em !important;
color: #112345;
color: #1B365D;
margin-top: 0.275em !important;
margin-bottom: 0.35em !important;
}

.subtitle {
font-family: 'Lora';
color: #0b8d96;
color: #1B365D;
}


Expand All @@ -99,7 +99,7 @@ h1, h2, h3, h4 {
*/

.section.level1 > p:first-of-type:first-letter { /*drop cap for first p beneath level 1 headers only within class .section*/
color: #112345;
color: #1B365D;
float: left;
font-family: 'Abril Fatface', serif;
font-size: 7em;
Expand Down Expand Up @@ -138,7 +138,7 @@ h1, h2, h3, h4 {
/*---color of links in TOC----*/

.book .book-summary a {
color: #112345
color: #1B365D
}

.summary{
Expand All @@ -152,17 +152,17 @@ color: #112345
padding-bottom: 8px;
padding-left: 15px;
padding-right: 15px;
color: #112345;
color: #1B365D;
}

.summary a:hover {
color: #89C348 !important;
color: #00C1D5 !important;
}

.book .book-summary ul.summary li.active>a { /*active TOC links*/
color: #89C348 !important;
color: #00C1D5 !important;
border-left: solid 4px;
border-color: #89C348;
border-color: #00C1D5;
padding-left: 11px !important;
}

Expand Down Expand Up @@ -260,7 +260,7 @@ div.notice, div.warning, div.github, div.dictionary, div.reflection {
}

div.notice{
border: 4px #89C348;
border: 4px #00C1D5;
background-size: 70px;
background-position: 15px center;
background-color: #e8ebee;
Expand All @@ -284,22 +284,21 @@ div.github{
}

div.dictionary{
border: 4px #89C348;
border: 4px #00C1D5;
background-size: 70px;
background-position: 15px center;
background-color: #e8ebee;
background-image: url("../assets/box_images/dictionary.png");
}

div.reflection{
border: 4px #89C348;
border: 4px #00C1D5;
background-size: 90px;
background-position: 15px center;
background-color: #e8ebee;
background-image: url("../assets/box_images/thinking_face.png");
}


/* .book .book-body .page-wrapper .page-inner section.normal is needed
to override the styles produced by gitbook, which are ridiculously
overspecified. Goal of the selectors is to ensure internal "margins"
Expand Down Expand Up @@ -446,25 +445,3 @@ a.anchor:hover {
margin-bottom: 1em;
}

/* fix the image urls since our AnVIL style is in a different location */
/* images paths are relative to the CSS file */

div.notice{
background-image: url("../box_images/note.png");
}

div.warning{
background-image: url("../box_images/warning.png");
}

div.github{
background-image: url("../box_images/github.png");
}

div.dictionary{
background-image: url("../box_images/dictionary.png");
}

div.reflection{
background-image: url("../box_images/thinking_face.png");
}