回答編集履歴
1
コード微修正
answer
CHANGED
@@ -1,57 +1,8 @@
|
|
1
1
|
疑似要素 befroe と after を使ってグレーの三角形の上に白の三角形を重ねて少しずらせばどうでしょうか。
|
2
2
|
|
3
3
|
```css
|
4
|
-
.contact__flow-area {
|
5
|
-
margin: 0 auto 40px;
|
6
|
-
width: 100%;
|
7
|
-
}
|
8
|
-
|
9
|
-
.contact__flow-area:after {
|
10
|
-
height: 0;
|
11
|
-
visibility: hidden;
|
12
|
-
content: ".";
|
13
|
-
display: block;
|
14
|
-
clear: both;
|
15
|
-
}
|
16
|
-
|
17
|
-
.contact__flow-list {
|
18
|
-
display: flex;
|
19
|
-
align-items: center;
|
20
|
-
justify-content: center;
|
21
|
-
width: calc(100%/3);
|
22
|
-
height: 60px;
|
23
|
-
float: left;
|
24
|
-
position: relative;
|
25
|
-
font-size: 18px;
|
26
|
-
font-weight: bold;
|
27
|
-
text-align: center;
|
28
|
-
}
|
29
|
-
|
30
|
-
.contact__title-number {
|
31
|
-
margin-bottom: 6px;
|
32
|
-
display: block;
|
33
|
-
}
|
34
|
-
|
35
|
-
.contact__flow-area .box01 {
|
36
|
-
background: #003CB0;
|
37
|
-
}
|
38
|
-
.contact__flow-area .box02 {
|
39
|
-
color: #000;
|
40
|
-
border-top: 1px solid #B4B4B4;
|
41
|
-
border-bottom: 1px solid #B4B4B4;
|
42
|
-
box-sizing: border-box;
|
43
|
-
}
|
44
|
-
.contact__flow-area .box03 {
|
45
|
-
background: #FFF;
|
46
|
-
color: #000;
|
47
|
-
border-top: 1px solid #B4B4B4;
|
48
|
-
border-bottom: 1px solid #B4B4B4;
|
49
|
-
border-right: 1px solid #B4B4B4;
|
50
|
-
/* border-left: 1px solid #B4B4B4;*/
|
51
|
-
box-sizing: border-box;
|
52
|
-
}
|
53
|
-
|
54
4
|
.contact__flow-area .box02:before,
|
5
|
+
.contact__flow-area .box03:before,
|
55
6
|
.contact__flow-area .box03:after {
|
56
7
|
border-left: 20px solid #FFFFFF;
|
57
8
|
border-top: 30px solid transparent;
|
@@ -61,29 +12,21 @@
|
|
61
12
|
left: 0;
|
62
13
|
top: 0;
|
63
14
|
}
|
64
|
-
|
65
15
|
.contact__flow-area .box02:before {
|
66
16
|
border-left-color: #003CB0;
|
67
17
|
}
|
18
|
+
.contact__flow-area .box03::before {
|
19
|
+
border-left-color: #B4B4B4;
|
20
|
+
left: 0;
|
21
|
+
top: -1px;
|
22
|
+
z-index: 1;
|
23
|
+
}
|
68
24
|
.contact__flow-area .box03:after {
|
69
25
|
border-left-color: #fff;
|
70
26
|
left: -1px;
|
71
|
-
top: -1px;
|
27
|
+
top: -1px;
|
72
|
-
|
73
28
|
z-index: 2;
|
74
29
|
}
|
75
|
-
.contact__flow-list {
|
76
|
-
color: #fff;
|
77
|
-
|
30
|
+
```
|
78
31
|
|
79
|
-
.contact__flow-area .box03::before {
|
80
|
-
border-left: 20px solid #B4B4B4;
|
81
|
-
border-top: 30px solid transparent;
|
82
|
-
|
32
|
+
[Codepenサンプル](https://codepen.io/hatena19/pen/abNyjaY?editors=1000)
|
83
|
-
content: "";
|
84
|
-
position: absolute;
|
85
|
-
left: 0;
|
86
|
-
top: -1px;
|
87
|
-
z-index: 1;
|
88
|
-
}
|
89
|
-
```
|