回答編集履歴
1
修正
test
CHANGED
@@ -1 +1,159 @@
|
|
1
|
+
```HTML
|
2
|
+
|
3
|
+
<div id="design">
|
4
|
+
|
5
|
+
<section class="section-wrapper">
|
6
|
+
|
7
|
+
<h2 class="section-title">design</h2>
|
8
|
+
|
9
|
+
<ul class="design-list">
|
10
|
+
|
11
|
+
<li class="design-item">
|
12
|
+
|
13
|
+
<a href="portfolio_pf.html" target="_blank">
|
14
|
+
|
15
|
+
<div class="design-list-img"><img src="./img/portfolio_top.png"></div>
|
16
|
+
|
17
|
+
<div class="design-list-text">
|
18
|
+
|
19
|
+
<p class="title">ポートフォリオサイト</p>
|
20
|
+
|
21
|
+
<p class="more">view more</p>
|
22
|
+
|
23
|
+
</div>
|
24
|
+
|
25
|
+
</a>
|
26
|
+
|
27
|
+
</li>
|
28
|
+
|
29
|
+
・
|
30
|
+
|
31
|
+
・
|
32
|
+
|
33
|
+
・
|
34
|
+
|
35
|
+
```
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
```CSS
|
40
|
+
|
41
|
+
.design-list{
|
42
|
+
|
43
|
+
max-width: 1000px;
|
44
|
+
|
45
|
+
margin: 0 auto;
|
46
|
+
|
47
|
+
padding: 0 50px;
|
48
|
+
|
1
|
-
|
49
|
+
display: flex;
|
50
|
+
|
51
|
+
justify-content: space-between;
|
52
|
+
|
53
|
+
flex-wrap: wrap;
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
.design-item{
|
58
|
+
|
59
|
+
width: 32%;
|
60
|
+
|
61
|
+
position: relative;
|
62
|
+
|
63
|
+
overflow: hidden;
|
64
|
+
|
65
|
+
margin-bottom: 80px;
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
.design-item a{
|
70
|
+
|
71
|
+
color: #141414;
|
72
|
+
|
73
|
+
text-decoration: none;
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
.design-list-text{
|
78
|
+
|
79
|
+
position: absolute;
|
80
|
+
|
81
|
+
top: 0;
|
82
|
+
|
83
|
+
bottom: 0;
|
84
|
+
|
85
|
+
left: 0;
|
86
|
+
|
87
|
+
right: 0;
|
88
|
+
|
89
|
+
background: rgba(0,0,0,0.5);
|
90
|
+
|
91
|
+
opacity: 0;
|
92
|
+
|
93
|
+
color: #fff;
|
94
|
+
|
95
|
+
text-align: center;
|
96
|
+
|
97
|
+
display: flex;
|
98
|
+
|
99
|
+
flex-direction: column;
|
100
|
+
|
101
|
+
justify-content: center;
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
.design-list-text:hover{
|
106
|
+
|
107
|
+
opacity: 1;
|
108
|
+
|
109
|
+
transition: all 0.6s ease;
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
.title{
|
114
|
+
|
115
|
+
padding-bottom: 10px;
|
116
|
+
|
117
|
+
font-size: 1.4rem;
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
.more{
|
122
|
+
|
123
|
+
border: 1px #fff solid;
|
124
|
+
|
125
|
+
padding:5px;
|
126
|
+
|
127
|
+
font-size: 1.2rem;
|
128
|
+
|
129
|
+
width:100px;
|
130
|
+
|
131
|
+
height: 20px;
|
132
|
+
|
133
|
+
display: flex;
|
134
|
+
|
135
|
+
flex-direction: column;
|
136
|
+
|
137
|
+
justify-content: center;
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
.more:hover{
|
142
|
+
|
143
|
+
background-color: white;
|
144
|
+
|
145
|
+
color: rgba(0,0,0,0.5);
|
146
|
+
|
147
|
+
transition: all 0.3s;
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
.design-list-text p {
|
152
|
+
|
153
|
+
margin: 0 auto;
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
```
|