teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

修正

2021/11/09 10:58

投稿

pay_561
pay_561

スコア26

title CHANGED
File without changes
body CHANGED
@@ -1,280 +1,17 @@
1
- inde.css
2
1
  ```ここに言語を入力
3
- @import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap");
4
-
5
- $red: #ff3838;
6
- $white: #fff;
7
- $black: #000;
8
- $red-one: #cb356b;
9
- $red-two: #bd3f32;
10
- $green-one: #56ab2f;
11
- $green-two: #94d049;
12
- $black-one: #232526;
13
- $black-two: #70767b;
14
- $blue-one: #021b79;
15
- $blue-two: #0575e6;
16
- $silver: #bdc3c7;
17
-
18
- * {
19
- margin: 0;
20
- padding: 0;
21
- box-sizing: border-box;
22
- font-family: "Lato", sans-serif;
23
-
24
- html,
25
- body {
26
- height: 100vh;
27
- overflow: hidden;
28
-
29
- .slider {
30
- overflow: hidden;
31
- height: 500%;
32
-
33
- .row {
34
- display: flex;
35
- flex-wrap: wrap;
36
- flex-direction: row;
37
- &:after,
38
- &:before {
39
- box-sizing: border-box;
40
- }
41
-
42
- .col-6 {
43
- width: 50%;
44
- position: relative;
45
- }
46
-
47
- .img-col {
48
- border-bottom-left-radius: 100%;
49
- }
50
-
51
- .fullheight {
52
- height: 100vh;
53
- }
54
-
55
- //Left
56
- .left {
57
- .product-info {
58
- position: absolute;
59
- top: 50%;
60
- left: 50%;
61
- transform: translate(-50%, -50%);
62
- width: 100%;
63
- padding: 0 10%;
64
- color: $black-two;
65
-
66
- .info-wrapper {
67
- margin: auto;
68
- position: relative;
69
- text-align: right;
70
-
71
- .product-price {
72
- font-weight: 900;
73
- font-size: xx-large;
74
- color: $black;
75
-
76
- span {
77
- font-size: large;
78
- color: $black-two;
79
- }
80
- }
81
-
82
- .product-name {
83
- h2 {
84
- font-weight: 900;
85
- font-size: xxx-large;
86
- color: $black;
87
- }
88
- }
89
-
90
- .product-size {
91
- margin: 20px 0;
92
-
93
- .size-wrapper {
94
- display: flex;
95
- flex-flow: row-reverse;
96
- padding: 5px;
97
-
98
- div {
99
- font-weight: 900;
100
- margin: 5px;
101
- width: 50px;
102
- height: 50px;
103
- border-radius: 50%;
104
- padding: 13px;
105
- border: 2px solid $silver;
106
- color: $silver;
107
-
108
- &:hover {
109
- border: 2px solid $black;
110
- color: $black;
111
- cursor: pointer;
112
- }
113
- }
114
-
115
- .active {
116
- border: 2px solid $black;
117
- color: $black;
118
- }
119
- }
120
- }
121
-
122
- .product-color {
123
- .color-wrapper {
124
- display: flex;
125
- flex-flow: row-reverse;
126
- padding: 5px;
127
-
128
- .color-pallet {
129
- margin: 5px;
130
- width: 50px;
131
- height: 50px;
132
- border-radius: 50%;
133
- padding: 3px;
134
- border: 2px solid $silver;
135
- background-color: $silver;
136
- &:hover {
137
- cursor: pointer;
138
- border: 2px solid $black;
139
- }
140
-
141
- .color {
142
- width: 40px;
143
- height: 40px;
144
- border-radius: 50%;
145
- }
146
- .bg-red {
147
- background-color: $red;
148
- }
149
- .bg-blue {
150
- background-color: $blue-one;
151
- }
152
- .bg-white {
153
- background-color: $white;
154
- }
155
- }
156
- .active {
157
- border: 2px solid $black;
158
- }
159
- }
160
- }
161
-
162
- .product-description {
163
- margin: 60px 0;
164
- text-align: justify;
165
- font-weight: 600;
166
- }
167
-
168
- .button {
169
- button {
170
- font-weight: 900;
171
- font-size: x-large;
172
- padding: 15px 60px;
173
- border-radius: 30px;
174
- border: 2px solid $black;
175
- background-color: $white;
176
- color: $black;
177
- transition: 0.5s;
178
- &:hover {
179
- cursor: pointer;
180
- background-color: $black;
181
- color: $white;
182
- }
183
- }
184
- }
185
- }
186
- }
187
- }
188
-
189
- //Right
190
- .right {
191
- .product-img {
192
- position: absolute;
193
- top: 50%;
194
- left: 50%;
195
- transform: translate(-50%, -50%);
196
- width: 100%;
197
-
198
- .img-wrapper {
199
- .bounce {
200
- img {
201
- height: auto;
202
- width: 80%;
203
- transform: rotate(-35deg);
204
- }
205
- }
206
- }
207
- }
208
-
209
- .more-images {
210
- position: absolute;
211
- right: 90px;
212
- top: 50%;
213
-
214
- .more-images-item {
215
- height: fit-content;
216
- border-radius: 15px;
217
- background-color: #fff;
218
- overflow: hidden;
219
- margin: 5px 0;
220
- &:hover {
221
- cursor: pointer;
222
- }
223
-
224
- img {
225
- height: auto;
226
- width: 80px;
227
- border-radius: 15px;
228
- transition: 1s;
229
- &:hover {
230
- transform: scale(1.5);
231
- }
232
- }
233
- }
234
- }
235
- }
236
- }
237
-
238
- .slide-control {
239
- display: flex;
240
- padding: 5px;
241
- position: absolute;
242
- bottom: 0;
243
- left: 50%;
244
- transform: translateX(-50%);
245
-
246
- .slide-control-item {
247
- height: 50px;
248
- width: 50px;
249
- margin: 10px;
250
- transition: 0.5s;
251
- &:hover {
2
+ .close {
3
+ position: absolute;
4
+ top: 15px;
5
+ right: 35px;
6
+ color: $white;
7
+ font-size: 40px;
8
+ font-weight: 900;
9
+ transition: 0.3s;
10
+ &:hover,
11
+ focus {
12
+ color: $silver;
13
+ text-decoration: none;
252
14
  cursor: pointer;
253
- transform: translateY(-30px);
254
- border-bottom: 2px solid $black;
255
15
  }
256
-
257
- img {
258
- height: auto;
259
- width: 100%;
260
- filter: grayscale(100%);
261
- transform: rotate(-45deg);
262
- &:hover {
263
- filter: unset;
264
- }
265
-
266
- .active {
267
- filter: unset;
268
- }
269
- }
270
-
271
- .active {
272
- border-bottom: 2px solid $black;
273
- }
274
16
  }
275
- }
276
- }
277
- }
278
- }
279
-
280
17
  ```