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

adding new, blue styling! #13

Merged
merged 5 commits into from
May 1, 2021
Merged
Show file tree
Hide file tree
Changes from 4 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
4 changes: 3 additions & 1 deletion _output.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
bookdown::gitbook:
include:
in_header: header.html
css: style.css
split_by: chapter
config:
Expand All @@ -8,6 +10,6 @@ bookdown::gitbook:
toc:
collapse: subsection
before: |
<img src="img/Rlogo.png" style="width:150px;padding:10px 0px 0px 10px;"></img>
<img src="img/Rlogo.png" style="width:150px;padding:10px 0px 0px 10px;display: block;margin:auto;"></img>
after: |
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
6 changes: 6 additions & 0 deletions header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script>
// add little icons to top left of note box
$( document ).ready(function() {
$(".note").append("<div class='note-icon'><img src='img/information.svg'></img></div>")
});
</script>
Binary file added img/02-trgz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions img/information.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 22 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,41 @@ a {

h1, h2, h3, h4, h5, h6 {
font-family: 'Josefin Slab', serif;
color: #4C1476 !important;
color: #2673D9 !important;
}

.summary {
background-color: white;
}

a {
color: #FF7666 !important;
color: #2673D9 !important;
}

/* these are Josh Comeau's amazing style!! */
div.note {
position: relative;
padding: 1em;
margin: 2em 0;
padding-left: 100px;
background-size: 70px;
background-image: url("img/lightbulb.svg");
background: hsla(214, 70%, 50%, 0.15);
background-repeat: no-repeat;
background-position: 15px center;
min-height: 120px;
border: dashed 5px #FAEDB6;
border-left: solid 4px hsl(214, 70%, 50%)
}

div.note.image {
content:url(img/information.svg);
}

.note-icon {
height: 32px;
width: 32px;
position: absolute;
top: 0px;
left: 0px;
transform: translate(-50%, -50%);
background: white;
border-radius: 50%;
padding: 8px;
}