Skip to content

Commit

Permalink
Merge 6fbe9dd into 70df770
Browse files Browse the repository at this point in the history
  • Loading branch information
carriewright11 authored Apr 5, 2022
2 parents 70df770 + 6fbe9dd commit 8b96474
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 0 deletions.
42 changes: 42 additions & 0 deletions 01-intro.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,48 @@ ottrpal::set_knitr_image_path()

# Introduction

To add a warning box like the following use:

`<div class = "warning">`

Followed by the text you want inside/

`</div>`

The line above marks the end of the box.

This will create the following:

<div class = "warning">

Followed by the text you want inside/

</div>

Here is a `<div class = "notice">` box:

<div class = "notice">

note text

</div>

Here is a `<div class = "github">` box:

<div class = "github">

github text

</div>


Here is a `<div class = "dictionary">` box:

<div class = "dictionary">

dictionary text

</div>

## Motivation

Expand Down
Binary file added assets/dictionary.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 added assets/github.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 added assets/note.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,78 @@ li.appendix span, li.part span { /* for TOC part names */
/* Sidebar formating --------------------------------------------*/
/* from r-pkgs.org*/


div.notice{
border: 4px #68ace5;
border-style: solid;
padding: 1em;
margin: 1em 0;
padding-left: 100px;
background-size: 70px;
background-repeat: no-repeat;
background-position: 15px center;
min-height: 120px;
background-color: #e8ebee;
}

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

div.warning{
border: 4px #e0471c;
border-style: solid;
padding: 1em;
margin: 1em 0;
padding-left: 100px;
background-size: 70px;
background-repeat: no-repeat;
background-position: 15px center;
min-height: 120px;
background-color: #e8ebee;
}

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



div.github{
border: 4px #000000;
border-style: solid;
padding: 1em;
margin: 1em 0;
padding-left: 100px;
background-size: 70px;
background-repeat: no-repeat;
background-position: 15px center;
min-height: 120px;
background-color: #e8ebee;
}

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

div.dictionary{
border: 4px #68ace5;
border-style: solid;
padding: 1em;
margin: 1em 0;
padding-left: 100px;
background-size: 70px;
background-repeat: no-repeat;
background-position: 15px center;
min-height: 120px;
background-color: #e8ebee;
}

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


div.rstudio-tip, div.tip, div.gotcha, div.design, div.hat{
border: 4px #aed6d963;
border-style: dashed solid;
Expand Down
Binary file added assets/warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions style-sets/itcr/copy-to-assets/style_ITN.css
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,76 @@ li.appendix span, li.part span { /* for TOC part names */
/* Sidebar formating --------------------------------------------*/
/* from r-pkgs.org*/

div.notice{
border: 4px #193a5c;
border-style: solid;
padding: 1em;
margin: 1em 0;
padding-left: 100px;
background-size: 70px;
background-repeat: no-repeat;
background-position: 15px center;
min-height: 120px;
background-color: #e8ebee;
}

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

div.warning{
border: 4px #e0471c;
border-style: solid;
padding: 1em;
margin: 1em 0;
padding-left: 100px;
background-size: 70px;
background-repeat: no-repeat;
background-position: 15px center;
min-height: 120px;
background-color: #e8ebee;
}

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



div.github{
border: 4px #000000;
border-style: solid;
padding: 1em;
margin: 1em 0;
padding-left: 100px;
background-size: 70px;
background-repeat: no-repeat;
background-position: 15px center;
min-height: 120px;
background-color: #e8ebee;
}

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

div.dictionary{
border: 4px #193a5c;
border-style: solid;
padding: 1em;
margin: 1em 0;
padding-left: 100px;
background-size: 70px;
background-repeat: no-repeat;
background-position: 15px center;
min-height: 120px;
background-color: #e8ebee;
}

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

div.rstudio-tip, div.tip, div.gotcha, div.design, div.hat{
border: 4px #aed6d963;
border-style: dashed solid;
Expand Down

0 comments on commit 8b96474

Please sign in to comment.