回答編集履歴

1

コード微修正

2020/09/01 07:52

投稿

hatena19
hatena19

スコア33722

test CHANGED
@@ -4,107 +4,9 @@
4
4
 
5
5
  ```css
6
6
 
7
- .contact__flow-area {
7
+ .contact__flow-area .box02:before,
8
8
 
9
- margin: 0 auto 40px;
10
-
11
- width: 100%;
12
-
13
- }
14
-
15
-
16
-
17
- .contact__flow-area:after {
18
-
19
- height: 0;
20
-
21
- visibility: hidden;
22
-
23
- content: ".";
24
-
25
- display: block;
26
-
27
- clear: both;
28
-
29
- }
30
-
31
-
32
-
33
- .contact__flow-list {
34
-
35
- display: flex;
36
-
37
- align-items: center;
38
-
39
- justify-content: center;
40
-
41
- width: calc(100%/3);
42
-
43
- height: 60px;
44
-
45
- float: left;
46
-
47
- position: relative;
48
-
49
- font-size: 18px;
50
-
51
- font-weight: bold;
52
-
53
- text-align: center;
54
-
55
- }
56
-
57
-
58
-
59
- .contact__title-number {
60
-
61
- margin-bottom: 6px;
62
-
63
- display: block;
64
-
65
- }
66
-
67
-
68
-
69
- .contact__flow-area .box01 {
70
-
71
- background: #003CB0;
72
-
73
- }
74
-
75
- .contact__flow-area .box02 {
76
-
77
- color: #000;
78
-
79
- border-top: 1px solid #B4B4B4;
80
-
81
- border-bottom: 1px solid #B4B4B4;
82
-
83
- box-sizing: border-box;
84
-
85
- }
86
-
87
- .contact__flow-area .box03 {
88
-
89
- background: #FFF;
90
-
91
- color: #000;
92
-
93
- border-top: 1px solid #B4B4B4;
94
-
95
- border-bottom: 1px solid #B4B4B4;
96
-
97
- border-right: 1px solid #B4B4B4;
98
-
99
- /* border-left: 1px solid #B4B4B4;*/
100
-
101
- box-sizing: border-box;
102
-
103
- }
104
-
105
-
106
-
107
- .contact__flow-area .box02:before,
9
+ .contact__flow-area .box03:before,
108
10
 
109
11
  .contact__flow-area .box03:after {
110
12
 
@@ -124,11 +26,21 @@
124
26
 
125
27
  }
126
28
 
127
-
128
-
129
29
  .contact__flow-area .box02:before {
130
30
 
131
31
  border-left-color: #003CB0;
32
+
33
+ }
34
+
35
+ .contact__flow-area .box03::before {
36
+
37
+ border-left-color: #B4B4B4;
38
+
39
+ left: 0;
40
+
41
+ top: -1px;
42
+
43
+ z-index: 1;
132
44
 
133
45
  }
134
46
 
@@ -138,40 +50,14 @@
138
50
 
139
51
  left: -1px;
140
52
 
141
- top: -1px;
53
+ top: -1px;
142
-
143
-
144
54
 
145
55
  z-index: 2;
146
56
 
147
57
  }
148
58
 
149
- .contact__flow-list {
150
-
151
- color: #fff;
152
-
153
- }
59
+ ```
154
60
 
155
61
 
156
62
 
157
- .contact__flow-area .box03::before {
158
-
159
- border-left: 20px solid #B4B4B4;
160
-
161
- border-top: 30px solid transparent;
162
-
163
- border-bottom: 30px solid transparent;
63
+ [Codepenサンプル](https://codepen.io/hatena19/pen/abNyjaY?editors=1000)
164
-
165
- content: "";
166
-
167
- position: absolute;
168
-
169
- left: 0;
170
-
171
- top: -1px;
172
-
173
- z-index: 1;
174
-
175
- }
176
-
177
- ```