質問編集履歴

3

タグの追加

2024/02/05 04:17

投稿

yudai1107
yudai1107

スコア15

test CHANGED
File without changes
test CHANGED
@@ -122,7 +122,7 @@
122
122
  </body>
123
123
  </html>
124
124
  ```
125
- ```
125
+ ```css
126
126
  .mainMenu{
127
127
  height: 60px;
128
128
  width: 100%;

2

footerのコード追加

2024/02/05 04:16

投稿

yudai1107
yudai1107

スコア15

test CHANGED
File without changes
test CHANGED
@@ -220,7 +220,167 @@
220
220
  }
221
221
  }
222
222
  }
223
-
223
+ footer{
224
+ padding: 4em 12em;
225
+ background-color: $footer_back;
226
+ .footer-topFlex{
227
+ padding-bottom: 4em;
228
+ display: flex;
229
+ justify-content: space-between;
230
+ border-bottom: 1px solid $footer_border;
231
+ .footer-topLink{
232
+ ul{
233
+ li{
234
+ margin-bottom: 1em;
235
+ a{
236
+ color: $white_fff;
237
+ text-decoration: none;
238
+ font-size: 1.2em;
239
+ &:hover{
240
+ color: $link_hover;
241
+ }
242
+ }
243
+ }
244
+ }
245
+ }
246
+ .footer-topArea{
247
+ ul{
248
+ li{
249
+ margin-bottom: 1em;
250
+ a{
251
+ color: $white_fff;
252
+ text-decoration: none;
253
+ font-size: 1.2em;
254
+ &:hover{
255
+ color: $link_hover;
256
+ }
257
+ }
258
+ }
259
+ }
260
+ }
261
+ .footer-topEpicContainer{
262
+ .footer-topEpicBox{
263
+ .footer-topEpic{
264
+ display: block;
265
+ position: relative;
266
+ margin-bottom: 2em;
267
+ img{
268
+ width: 100%;
269
+ height: auto;
270
+ transition: opacity 0.4s;
271
+ }
272
+ &:hover{
273
+ img{
274
+ opacity: 0.5;
275
+
276
+ }
277
+ }
278
+ }
279
+ .footer-topEpicText{
280
+ top: 50%;
281
+ left: 50%;
282
+ transform: translate(-50%,-50%);
283
+ margin-top: 0;
284
+ margin-bottom: 0;
285
+ position: absolute;
286
+ color: $white_fff;
287
+ font-size: 2.4em;
288
+ width: 100%;
289
+ text-align: center;
290
+ font-weight: 500;
291
+ z-index: 3;
292
+ &:hover{
293
+ color: $white_fff;
294
+ }
295
+ }
296
+ }
297
+ }
298
+ }
299
+ .footer-bottom{
300
+ padding-top: 3em;
301
+ .footer-bottomFlex{
302
+ display: flex;
303
+ justify-content: space-between;
304
+ ul{
305
+ flex: 1;
306
+ height: auto;
307
+ align-items: center;
308
+ padding-left: 0;
309
+ display: flex;
310
+ li{
311
+ margin-right: 1.2em;
312
+ display: flex;
313
+ justify-content: center;
314
+ a{
315
+ i{
316
+ color: $white_fff;
317
+ font-size: 1.8em;
318
+ }
319
+ }
320
+ }
321
+ }
322
+ .footer-bottomLink{
323
+ flex: 1.5;
324
+ h2{
325
+ a{
326
+ text-align: center;
327
+ text-decoration: none;
328
+ font-size: 2.4em;
329
+ color: $white_fff;
330
+ display: flex;
331
+ justify-content: center;
332
+ }
333
+ }
334
+ .footer-bottomLinkText{
335
+ text-align: center;
336
+ margin-top: 2em;
337
+ a{
338
+ color: $white_fff;
339
+ text-decoration: none;
340
+ font-size: 1.4em;
341
+ margin-right: 1em;
342
+ position: relative;
343
+ &:not(:last-child)::before{
344
+ content: "";
345
+ right: -0.7em;
346
+ display: inline-block;
347
+ width: 1px;
348
+ height: 100%;
349
+ position: absolute;
350
+ background-color: $white_fff;
351
+ top: 0;
352
+ }
353
+ }
354
+ }
355
+ }
356
+ .footer-bottomCopy{
357
+ flex: 1;
358
+ display: flex;
359
+ width: 100%;
360
+ justify-content: right;
361
+ align-items: center;
362
+ p{
363
+ color: $white_fff;
364
+ font-size: 12px;
365
+ display: flex;
366
+ align-items: center;
367
+ span{
368
+ padding-right: 0.4em;
369
+ padding-left: 0.4em;
370
+ font-size: 1.2em;
371
+ }
372
+ a{
373
+ color: $white_fff;
374
+ margin-right: 0.4em;
375
+ &:hover{
376
+ color: $link_hover;
377
+ }
378
+ }
379
+ }
380
+ }
381
+ }
382
+ }
383
+ }
224
384
  ```
225
385
  ### 試したこと・調べたこと
226
386
  - [ ] teratailやGoogle等で検索した
@@ -234,6 +394,3 @@
234
394
  片方を大きくしたり数を合わせるなど変更をしてみたがうまくいかない
235
395
  - 元々トップページのheaderがswiperの中に入っているものなので個別ページに反応しない?
236
396
 
237
-
238
- ### 補足
239
- 文字数がオーバーしてしまうのでSCSSはコメントで追加させて頂きます。

1

SCSSコードの追加

2024/02/05 04:15

投稿

yudai1107
yudai1107

スコア15

test CHANGED
File without changes
test CHANGED
@@ -122,7 +122,106 @@
122
122
  </body>
123
123
  </html>
124
124
  ```
125
-
125
+ ```
126
+ .mainMenu{
127
+ height: 60px;
128
+ width: 100%;
129
+ z-index: 3;
130
+ background-color: rgba(0,0,0,0);
131
+ position: absolute;
132
+ top: 0;
133
+ left: 0;
134
+ display: flex;
135
+ justify-content: space-between;
136
+ border-bottom: 1px solid rgba(255,255,255,0.4);
137
+ h1{
138
+ padding-left: 4em;
139
+ display: flex;
140
+ margin: 0;
141
+ align-items: center;
142
+ a{
143
+ font-size: 1.6em;
144
+ text-decoration: none;
145
+ color: $white_fff;
146
+ }
147
+ span{
148
+ display: block;
149
+ display: inline-block;
150
+ align-items: center;
151
+ height: 100%;
152
+ a{
153
+ display: flex;
154
+ align-items: center;
155
+ font-size: 0.8em;
156
+ height: 100%;
157
+ text-decoration: none;
158
+ margin-left: 1.3em;
159
+ }
160
+ }
161
+ }
162
+ nav{
163
+ padding-right: 8em;
164
+ display: flex;
165
+ align-items: center;
166
+ position: relative;
167
+ li{
168
+ position: relative;
169
+ list-style: none;
170
+ height: 100%;
171
+ display: flex;
172
+ align-items: center;
173
+ .mainMenuList{
174
+ cursor: pointer;
175
+ height: 100%;
176
+ display: flex;
177
+ align-items: center;
178
+ text-decoration: none;
179
+ color: $white_fff;
180
+ font-size: 1.4em;
181
+ margin-left: 2.5em;
182
+ &:hover + .subMenuNav,
183
+ .subMenuNav:hover {
184
+ width: 200px;
185
+ }
186
+ }
187
+ .subMenuNav{
188
+ margin-top: 0;
189
+ width: 0px;
190
+ top: 60px;
191
+ left: 0px;
192
+ z-index: 4;
193
+ padding-left: 0;
194
+ margin-bottom: 0;
195
+ position: absolute;
196
+ overflow: hidden;
197
+ &:hover{
198
+ width: 200px;
199
+ }
200
+ li{
201
+ width: 100%;
202
+ display: block;
203
+ padding: 1em 2em;
204
+ color: $white_fff;
205
+ font-size: 1.4em;
206
+ background-color: $light_brown;
207
+ box-sizing: border-box;
208
+ transition: all 0.4s ease;
209
+ &:hover{
210
+ width: 200px;
211
+ }
212
+ a{
213
+ display: block;
214
+ color: $white_fff;
215
+ font-size: 1em;
216
+ text-decoration: none;
217
+ }
218
+ }
219
+ }
220
+ }
221
+ }
222
+ }
223
+
224
+ ```
126
225
  ### 試したこと・調べたこと
127
226
  - [ ] teratailやGoogle等で検索した
128
227
  - [x] ソースコードを自分なりに変更した