回答編集履歴
1
コード追記
test
CHANGED
@@ -7,3 +7,83 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
[Font Awesome 5 の使い方 / Web Design Leaves](https://www.webdesignleaves.com/pr/plugins/fontawesome_01.html)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
---
|
14
|
+
|
15
|
+
**疑似要素で表示させる場合**
|
16
|
+
|
17
|
+
下記で表示できるようです。
|
18
|
+
|
19
|
+
`font-weight: 900;` が必要。
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
```css
|
24
|
+
|
25
|
+
.pa-top-guilde-list__item dl:after {
|
26
|
+
|
27
|
+
position: absolute;
|
28
|
+
|
29
|
+
right: 8px;
|
30
|
+
|
31
|
+
top:50%;
|
32
|
+
|
33
|
+
transform:translateY(-50%);
|
34
|
+
|
35
|
+
color: #aaa;
|
36
|
+
|
37
|
+
content: "\f105";
|
38
|
+
|
39
|
+
font-family: "Font Awesome 5 Free";
|
40
|
+
|
41
|
+
font-weight: 900;
|
42
|
+
|
43
|
+
font-size: 18px;
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
```
|
48
|
+
|
49
|
+
---
|
50
|
+
|
51
|
+
**<i class="fas fa-angle-right"></i> で表示させる場合**
|
52
|
+
|
53
|
+
```html
|
54
|
+
|
55
|
+
<p class="pa-top-guilde-list__img fas">
|
56
|
+
|
57
|
+
<i class="fas fa-angle-right"></i>
|
58
|
+
|
59
|
+
</p>
|
60
|
+
|
61
|
+
```
|
62
|
+
|
63
|
+
```css
|
64
|
+
|
65
|
+
.pa-top-guilde-list__img {
|
66
|
+
|
67
|
+
position: relative;
|
68
|
+
|
69
|
+
}
|
70
|
+
|
71
|
+
.pa-top-guilde-list__img > i.fa-angle-right {
|
72
|
+
|
73
|
+
position: absolute;
|
74
|
+
|
75
|
+
right: 8px;
|
76
|
+
|
77
|
+
top:50%;
|
78
|
+
|
79
|
+
transform:translateY(-50%);
|
80
|
+
|
81
|
+
color: #aaa;
|
82
|
+
|
83
|
+
content:"\f101";
|
84
|
+
|
85
|
+
font-size: 18px;
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
```
|