-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample_html.qmd
81 lines (44 loc) · 1.27 KB
/
example_html.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
title: "bsicons Example"
author: Shafayet Khan Shafee
date: last-modified
date-format: "DD MMM, YYYY"
format:
html:
code-tools: true
self-contained: true
engine: knitr
---
> View the source code by clicking `</> Code` on the top right corner
## Using Bootstrap Icons
{{< bi alarm >}}
{{< bi alarm-fill >}}
{{< bi alarm size=5em color=#2ecaf9 >}}
{{< bi emoji-sunglasses size=5em color=#2ecaf9 label="Proud Happy Face" >}}
## icon color
{{< bi alarm-fill color=red >}}
{{< bi twitch color=lightseagreen >}}
{{< bi twitter color=cornflowerblue >}}
{{< bi windows color=#E86033 >}}
{{< bi ubuntu color=rgb(232,96,51) >}}
{{< bi terminal-fill color=rgba(232,96,51,1) >}}
{{< bi stars color=hsl(15,80%,56%) >}}
{{< bi spotify color=hsla(15,80%,56%,360) >}}
## icon sizing
{{< bi incognito size=37px >}}
{{< bi person-plus-fill size=3.1rem >}}
{{< bi postcard-heart size=2.7em >}}
{{< bi reddit size=9.8vw >}}
{{< bi slack size=7.6vh >}}
## using class
We use the class `styled` to color all icons in red.
```{css, filename="css code"}
.styled {
color: red;
}
```
{{< bi windows class=styled >}}
{{< bi ubuntu class=styled >}}
{{< bi terminal-fill class=styled >}}
## That's it
{{< bi hand-thumbs-up-fill size=7em color=cornflowerblue label="Thumbs up" >}}