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

Boxes #524

Merged
merged 16 commits into from
Apr 5, 2022
Merged

Boxes #524

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
7c47319
Revert "updating templates_to_edit image"
carriewright11 Sep 29, 2021
e78d4e0
Revert "updating issue pics"
carriewright11 Sep 29, 2021
3984287
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Oct 20, 2021
cd0b9eb
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Nov 1, 2021
d0fa3c7
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Nov 3, 2021
852ef00
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Nov 16, 2021
57e5277
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Dec 7, 2021
6a9835c
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Dec 13, 2021
1c5b28b
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Jan 12, 2022
6d59939
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Jan 12, 2022
c206964
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Jan 20, 2022
51af309
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Mar 2, 2022
8288dc4
Merge branch 'main' of https://github.com/jhudsl/DaSL_Course_Template…
carriewright11 Apr 5, 2022
5a0f00c
adding ITN style code for boxes
carriewright11 Apr 5, 2022
29a2ec9
adding images and general style code for boxes
carriewright11 Apr 5, 2022
6fbe9dd
showing examples of style boxes
carriewright11 Apr 5, 2022
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
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