Skip to content

Commit b42384e

Browse files
Add info note include
1 parent 2fbbf96 commit b42384e

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

_includes/note-info.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="note note-info">
2+
<i class="fas fa-info-circle"></i>{{ include.content }}
3+
</div>

_sass/layout.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,20 @@ body {
202202
min-width: 8rem;
203203
}
204204
}
205+
206+
.note {
207+
font-size: 1.125rem;
208+
margin: 1rem;
209+
padding: 1rem .5rem;
210+
211+
i {
212+
margin: 0 1rem;
213+
vertical-align: baseline;
214+
}
215+
}
216+
217+
.note-info {
218+
background-color: $color-note-info-background;
219+
color: $color-note-info-text;
220+
border-left: .25rem solid $color-note-info-text;
221+
}

_sass/variables.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ $color-text-code: #333344;
1717
$color-text-bold: #111111;
1818
$color-text-highlight: #ffff00;
1919

20+
$color-note-info-background: #bde5f8;
21+
$color-note-info-text: #00529b;
22+
2023
// Color mappings
2124
$color-text-h1: $color-text-bold;
2225
$color-text-h2: $color-text-secondary;

0 commit comments

Comments
 (0)