Skip to content

Commit

Permalink
Add info / note / warn / danger boxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-barrett committed Dec 14, 2023
1 parent 0f4922e commit c39a0e8
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 6 deletions.
1 change: 1 addition & 0 deletions _includes/danger.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p class="noteBoxes danger">⚡ {{ include.content }}</p>
1 change: 1 addition & 0 deletions _includes/info.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p class="noteBoxes info">💡 {{ include.content }}</p>
1 change: 1 addition & 0 deletions _includes/note.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p class="noteBoxes note">✏ {{ include.content }}</p>
1 change: 1 addition & 0 deletions _includes/warn.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p class="noteBoxes warn">⚠ {{ include.content }}</p>
47 changes: 41 additions & 6 deletions public/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ a[href^="http"]::after {
display: inline-block;
}

a[href^="https://www.dennisbarrett.co.za"]::after {
a[href^="https://www.dennisbarrett.co.za"]::after
{
display: none !important;
}

a[href^="http://localhost"]::after {
a[href^="http://localhost"]::after
{
display: none !important;
}

Expand All @@ -64,16 +66,49 @@ a[href^="http://localhost"]::after {
text-decoration: none;
}

#table-of-contents ul, ol, dl {
#table-of-contents ul,
ol,
dl {
margin-bottom: 0px;
}

code, pre {
font-family: 'Ubuntu Mono', Consolas, 'Courier New', Courier, monospace;
code,
pre {
font-family: "Ubuntu Mono", Consolas, "Courier New", Courier, monospace;
}

img + em {
display: block;
text-align: center;
text-align: center;
font-size: 0.6em;
}

.noteBoxes {
border: 1px solid;
border-radius: 5px;
padding: 10px;
margin-top: 10px;
margin-bottom: 10px;
width: 100%;
font-size: smaller;
}

.danger {
border-color: #ec6661;
background-color: rgba(231, 111, 81, 0.1);
}

.warn {
border-color: #e7bf51;
background-color: rgba(231, 191, 81, 0.1);
}

.note {
border-color: #0096c7;
background-color: rgba(0, 150, 199, 0.1);
}

.info {
border-color: #00b353;
background-color: rgba(0, 179, 83, 0.1);
}

0 comments on commit c39a0e8

Please sign in to comment.