質問編集履歴
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -100,6 +100,8 @@
|
|
100
100
|
|
101
101
|
font-weight: bold;
|
102
102
|
|
103
|
+
line-heght: 1.7;
|
104
|
+
|
103
105
|
color: #fff;
|
104
106
|
|
105
107
|
text-align: center;
|
2
CSS追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -195,3 +195,167 @@
|
|
195
195
|
|
196
196
|
|
197
197
|
```
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
```CSS
|
202
|
+
|
203
|
+
.form__flow {
|
204
|
+
|
205
|
+
position: relative;
|
206
|
+
|
207
|
+
margin-top: 70px;
|
208
|
+
|
209
|
+
display: flex;
|
210
|
+
|
211
|
+
justify-content: center;
|
212
|
+
|
213
|
+
}
|
214
|
+
|
215
|
+
.form__flow::before {
|
216
|
+
|
217
|
+
content: "";
|
218
|
+
|
219
|
+
position: absolute;
|
220
|
+
|
221
|
+
top: 0;
|
222
|
+
|
223
|
+
right: 72px;
|
224
|
+
|
225
|
+
width: 50px;
|
226
|
+
|
227
|
+
height: 25px;
|
228
|
+
|
229
|
+
background-color: #fff;
|
230
|
+
|
231
|
+
transform: rotate(65deg);
|
232
|
+
|
233
|
+
z-index: 10;
|
234
|
+
|
235
|
+
}
|
236
|
+
|
237
|
+
.form__flow::after {
|
238
|
+
|
239
|
+
content: "";
|
240
|
+
|
241
|
+
position: absolute;
|
242
|
+
|
243
|
+
bottom: 0;
|
244
|
+
|
245
|
+
right: 72px;
|
246
|
+
|
247
|
+
width: 50px;
|
248
|
+
|
249
|
+
height: 25px;
|
250
|
+
|
251
|
+
background-color: #fff;
|
252
|
+
|
253
|
+
transform: rotate(-65deg);
|
254
|
+
|
255
|
+
}
|
256
|
+
|
257
|
+
.form__flow .flow__contents {
|
258
|
+
|
259
|
+
position: relative;
|
260
|
+
|
261
|
+
padding-top: 18px;
|
262
|
+
|
263
|
+
padding-bottom: 18px;
|
264
|
+
|
265
|
+
width: 260px;
|
266
|
+
|
267
|
+
font-size: 18px;
|
268
|
+
|
269
|
+
font-weight: bold;
|
270
|
+
|
271
|
+
line-heght: 1.7;
|
272
|
+
|
273
|
+
color: #fff;
|
274
|
+
|
275
|
+
text-align: center;
|
276
|
+
|
277
|
+
background-color: #bebebe;
|
278
|
+
|
279
|
+
}
|
280
|
+
|
281
|
+
.form__flow .flow__contents::before {
|
282
|
+
|
283
|
+
content: "";
|
284
|
+
|
285
|
+
position: absolute;
|
286
|
+
|
287
|
+
top: 16px;
|
288
|
+
|
289
|
+
left: -25px;
|
290
|
+
|
291
|
+
width: 37px;
|
292
|
+
|
293
|
+
height: 2px;
|
294
|
+
|
295
|
+
background-color: #fff;
|
296
|
+
|
297
|
+
transform: rotate(65deg);
|
298
|
+
|
299
|
+
}
|
300
|
+
|
301
|
+
.form__flow .flow__contents::after {
|
302
|
+
|
303
|
+
content: "";
|
304
|
+
|
305
|
+
position: absolute;
|
306
|
+
|
307
|
+
bottom: 16px;
|
308
|
+
|
309
|
+
left: -25px;
|
310
|
+
|
311
|
+
width: 37px;
|
312
|
+
|
313
|
+
height: 2px;
|
314
|
+
|
315
|
+
background-color: #fff;
|
316
|
+
|
317
|
+
transform: rotate(-65deg);
|
318
|
+
|
319
|
+
}
|
320
|
+
|
321
|
+
.form__flow .flow__contents:first-of-type::before {
|
322
|
+
|
323
|
+
content: "";
|
324
|
+
|
325
|
+
position: absolute;
|
326
|
+
|
327
|
+
top: 26px;
|
328
|
+
|
329
|
+
left: -28px;
|
330
|
+
|
331
|
+
width: 0;
|
332
|
+
|
333
|
+
height: 0;
|
334
|
+
|
335
|
+
border-style: solid;
|
336
|
+
|
337
|
+
border-width: 0 35px 15px 35px;
|
338
|
+
|
339
|
+
border-color: transparent transparent #ffffff transparent;
|
340
|
+
|
341
|
+
transform: rotate(90deg);
|
342
|
+
|
343
|
+
background-color: transparent;
|
344
|
+
|
345
|
+
}
|
346
|
+
|
347
|
+
.form__flow .flow__contents:first-of-type::after {
|
348
|
+
|
349
|
+
content: none;
|
350
|
+
|
351
|
+
}
|
352
|
+
|
353
|
+
.form__flow .flow__contents:nth-child(3) {
|
354
|
+
|
355
|
+
padding-right: 15px;
|
356
|
+
|
357
|
+
}
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
```
|
1
コード追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,10 +8,190 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
|
11
|
+
画像のように進行を表す装飾を実装したいのですが、方法が思い浮かびません。
|
12
12
|
|
13
13
|
疑似要素で矢印を書いたのですが、背景色を変更することを考えていなく、色々検討したのですがいい案が浮かびません。
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
+
```HTML
|
18
|
+
|
19
|
+
<div class="form__flow">
|
20
|
+
|
21
|
+
<p class="flow__contents">情報入力</p>
|
22
|
+
|
23
|
+
<p class="flow__contents">登録完了</p>
|
24
|
+
|
25
|
+
<p class="flow__contents">マイページで編集</p>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
```SCSS
|
36
|
+
|
17
|
-
|
37
|
+
.form__flow{
|
38
|
+
|
39
|
+
position: relative;
|
40
|
+
|
41
|
+
margin-top: 70px;
|
42
|
+
|
43
|
+
display: flex;
|
44
|
+
|
45
|
+
justify-content: center;
|
46
|
+
|
47
|
+
&::before{
|
48
|
+
|
49
|
+
content: "";
|
50
|
+
|
51
|
+
position: absolute;
|
52
|
+
|
53
|
+
top: 0;
|
54
|
+
|
55
|
+
right: 72px;
|
56
|
+
|
57
|
+
width: 50px;
|
58
|
+
|
59
|
+
height: 25px;
|
60
|
+
|
61
|
+
background-color: #fff;
|
62
|
+
|
63
|
+
transform: rotate(65deg);
|
64
|
+
|
65
|
+
z-index: 10;
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
&::after{
|
70
|
+
|
71
|
+
content: "";
|
72
|
+
|
73
|
+
position: absolute;
|
74
|
+
|
75
|
+
bottom: 0;
|
76
|
+
|
77
|
+
right: 72px;
|
78
|
+
|
79
|
+
width: 50px;
|
80
|
+
|
81
|
+
height: 25px;
|
82
|
+
|
83
|
+
background-color: #fff;
|
84
|
+
|
85
|
+
transform: rotate(-65deg);
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
.flow__contents{
|
90
|
+
|
91
|
+
position: relative;
|
92
|
+
|
93
|
+
padding-top: 18px;
|
94
|
+
|
95
|
+
padding-bottom: 18px;
|
96
|
+
|
97
|
+
width: 260px;
|
98
|
+
|
99
|
+
font-size: 18px;
|
100
|
+
|
101
|
+
font-weight: bold;
|
102
|
+
|
103
|
+
color: #fff;
|
104
|
+
|
105
|
+
text-align: center;
|
106
|
+
|
107
|
+
background-color: #bebebe;
|
108
|
+
|
109
|
+
&::before{
|
110
|
+
|
111
|
+
content: "";
|
112
|
+
|
113
|
+
position: absolute;
|
114
|
+
|
115
|
+
top: 16px;
|
116
|
+
|
117
|
+
left: -25px;
|
118
|
+
|
119
|
+
width: 37px;
|
120
|
+
|
121
|
+
height: 2px;
|
122
|
+
|
123
|
+
background-color: #fff;
|
124
|
+
|
125
|
+
transform: rotate(65deg);
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
&::after{
|
130
|
+
|
131
|
+
content: "";
|
132
|
+
|
133
|
+
position: absolute;
|
134
|
+
|
135
|
+
bottom: 16px;
|
136
|
+
|
137
|
+
left: -25px;
|
138
|
+
|
139
|
+
width: 37px;
|
140
|
+
|
141
|
+
height: 2px;
|
142
|
+
|
143
|
+
background-color: #fff;
|
144
|
+
|
145
|
+
transform: rotate(-65deg);
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
&:first-of-type{
|
150
|
+
|
151
|
+
&::before{
|
152
|
+
|
153
|
+
content: "";
|
154
|
+
|
155
|
+
position: absolute;
|
156
|
+
|
157
|
+
top: 26px;
|
158
|
+
|
159
|
+
left: -28px;
|
160
|
+
|
161
|
+
width: 0;
|
162
|
+
|
163
|
+
height: 0;
|
164
|
+
|
165
|
+
border-style: solid;
|
166
|
+
|
167
|
+
border-width: 0 35px 15px 35px;
|
168
|
+
|
169
|
+
border-color: transparent transparent #ffffff transparent;
|
170
|
+
|
171
|
+
transform: rotate(90deg);
|
172
|
+
|
173
|
+
background-color: transparent;
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
&::after{
|
178
|
+
|
179
|
+
content: none;
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
&:nth-child(3){
|
186
|
+
|
187
|
+
padding-right: 15px;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
}
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
```
|