回答編集履歴
1
コード修正
test
CHANGED
@@ -6,15 +6,19 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
+
---
|
10
|
+
|
11
|
+
質問に提示のHTMLとCSSを元に書き換えました。
|
12
|
+
|
13
|
+
クラス名は少し変更してます。
|
9
14
|
|
10
15
|
|
11
|
-
一例
|
12
16
|
|
13
17
|
```html
|
14
18
|
|
15
|
-
<
|
19
|
+
<ul class="flow-list">
|
16
20
|
|
17
|
-
<
|
21
|
+
<li class="list-item">
|
18
22
|
|
19
23
|
<div class="box">
|
20
24
|
|
@@ -28,11 +32,11 @@
|
|
28
32
|
|
29
33
|
</div>
|
30
34
|
|
31
|
-
<
|
35
|
+
</li>
|
32
36
|
|
33
37
|
|
34
38
|
|
35
|
-
<
|
39
|
+
<li class="list-item">
|
36
40
|
|
37
41
|
<div class="box">
|
38
42
|
|
@@ -46,11 +50,11 @@
|
|
46
50
|
|
47
51
|
</div>
|
48
52
|
|
49
|
-
<
|
53
|
+
</li>
|
50
54
|
|
51
55
|
|
52
56
|
|
53
|
-
<
|
57
|
+
<li class="list-item">
|
54
58
|
|
55
59
|
<div class="box">
|
56
60
|
|
@@ -64,11 +68,11 @@
|
|
64
68
|
|
65
69
|
</div>
|
66
70
|
|
67
|
-
<
|
71
|
+
</li>
|
68
72
|
|
69
73
|
|
70
74
|
|
71
|
-
<
|
75
|
+
<li class="list-item">
|
72
76
|
|
73
77
|
<div class="box">
|
74
78
|
|
@@ -82,12 +86,112 @@
|
|
82
86
|
|
83
87
|
</div>
|
84
88
|
|
85
|
-
<
|
89
|
+
</li>
|
86
90
|
|
87
91
|
|
88
92
|
|
89
|
-
</
|
93
|
+
</ul>
|
94
|
+
|
95
|
+
```
|
90
96
|
|
91
97
|
|
92
98
|
|
99
|
+
```css
|
100
|
+
|
101
|
+
.flow-list{
|
102
|
+
|
103
|
+
list-style-type: none;
|
104
|
+
|
105
|
+
padding:0;
|
106
|
+
|
107
|
+
margin:0;
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
.list-item {
|
112
|
+
|
113
|
+
display: flex;
|
114
|
+
|
115
|
+
align-items: flex-start;
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
.list-item .box{
|
122
|
+
|
123
|
+
position: relative;
|
124
|
+
|
125
|
+
width:100px;
|
126
|
+
|
127
|
+
background: #504944;
|
128
|
+
|
129
|
+
padding: 1em;
|
130
|
+
|
131
|
+
margin-bottom: 1em;
|
132
|
+
|
133
|
+
text-align:center;
|
134
|
+
|
135
|
+
color: #fff;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
.list-item .box:after{
|
140
|
+
|
141
|
+
content: "";
|
142
|
+
|
143
|
+
position: absolute;
|
144
|
+
|
145
|
+
width: 0;
|
146
|
+
|
147
|
+
height: 0;
|
148
|
+
|
149
|
+
bottom: -10px;
|
150
|
+
|
151
|
+
left: 15px;
|
152
|
+
|
153
|
+
border-style: solid;
|
154
|
+
|
155
|
+
border-color: #504944 transparent transparent transparent;
|
156
|
+
|
157
|
+
border-width: 10px 50px 0 50px;
|
158
|
+
|
159
|
+
z-index: 1;
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
.list-item:last-child .box:after {
|
164
|
+
|
165
|
+
border: none;
|
166
|
+
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
.list-item .box{
|
172
|
+
|
173
|
+
background: #9bbb30;
|
174
|
+
|
175
|
+
font-weight: bold;
|
176
|
+
|
177
|
+
border-color: #9bbb30 transparent transparent transparent;
|
178
|
+
|
179
|
+
}
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
.description {
|
184
|
+
|
185
|
+
border: 1px solid;
|
186
|
+
|
187
|
+
margin-left: 20px;
|
188
|
+
|
189
|
+
width: 200px;
|
190
|
+
|
191
|
+
}
|
192
|
+
|
93
193
|
```
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
[CodePenサンプル](https://codepen.io/hatena19/pen/pobgazj?editors=0100)
|