質問編集履歴

2

修正

2020/08/24 05:21

投稿

..o
..o

スコア28

test CHANGED
File without changes
test CHANGED
@@ -608,194 +608,182 @@
608
608
 
609
609
 
610
610
 
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
611
- .container {
619
+ div.sidenav {
612
-
613
- min-height: 100vh;
620
+
614
-
615
- height: 100%;
621
+ height: 100vh;
616
-
622
+
617
- width: 80%;
623
+ width: 20%;
624
+
618
-
625
+ position: fixed;
626
+
627
+ top: 0;
628
+
629
+ background-color: #fff;
630
+
631
+ overflow: hidden;
632
+
633
+ }
634
+
635
+
636
+
637
+ div.sidenav nav {
638
+
639
+ margin-top: 10vh;
640
+
641
+ margin-bottom: 6vh;
642
+
643
+ height: 84vh;
644
+
645
+ padding-right: 10%;
646
+
647
+ }
648
+
649
+
650
+
651
+ div.sidenav ul.sidemenu {
652
+
653
+ width: auto;
654
+
655
+ float: right;
656
+
657
+ overflow: hidden;
658
+
659
+
660
+
661
+ }
662
+
663
+
664
+
665
+ div.sidenav ul.sidemenu li {
666
+
667
+ list-style: none outside none;
668
+
669
+ width: 100%;
670
+
671
+ float: left;
672
+
673
+ overflow: hidden;
674
+
619
- margin: 6vh 0 100px 20%;
675
+ margin: 0 0 15% 0;
676
+
677
+ text-align: right;
678
+
679
+ }
680
+
681
+
682
+
683
+ div.sidenav nav ul.sidemenu li a {
684
+
685
+ float: right;
686
+
687
+ overflow: hidden;
688
+
689
+ text-align: right;
690
+
691
+ font-size: 18px;
692
+
693
+ font-weight: 400;
694
+
695
+ line-height: 2em;
696
+
697
+ letter-spacing: 1.5px;
698
+
699
+ text-decoration: none;
700
+
701
+ color: #343232;
702
+
703
+ width: 100%;
620
704
 
621
705
  position: relative;
622
706
 
623
- }
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
- div.sidenav {
632
-
633
- height: 100vh;
634
-
635
- width: 20%;
636
-
637
- position: fixed;
638
-
639
- top: 0;
640
-
641
- background-color: #fff;
642
-
643
- overflow: hidden;
644
-
645
- }
646
-
647
-
648
-
649
- div.sidenav nav {
650
-
651
- margin-top: 10vh;
652
-
653
- margin-bottom: 6vh;
654
-
655
- height: 84vh;
656
-
657
- padding-right: 10%;
658
-
659
- }
660
-
661
-
662
-
663
- div.sidenav ul.sidemenu {
664
-
665
- width: auto;
707
+ line-height: 1;
708
+
709
+ }
710
+
711
+
712
+
713
+ div.sidenav nav ul.sidemenu li a::after {
714
+
715
+ position: absolute;
716
+
717
+ left: 0;
718
+
719
+ bottom: 0;
720
+
721
+ display: block;
722
+
723
+ content: "";
724
+
725
+ width: 0%;
726
+
727
+ height: 1px;
728
+
729
+ background: #404040;
730
+
731
+ transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
732
+
733
+ }
734
+
735
+
736
+
737
+ div.sidenav nav ul.sidemenu li a:hover::after {
738
+
739
+ width: 100%;
740
+
741
+ }
742
+
743
+
744
+
745
+ div.sidenav nav ul.sidemenu li a:hover {
746
+
747
+ color: #746be8;
748
+
749
+ }
750
+
751
+
752
+
753
+ div.sidenav nav ul.sidemenu li a span {
754
+
755
+ font-size: 13px;
756
+
757
+ }
758
+
759
+
760
+
761
+
762
+
763
+ div.sidenav h1 {
764
+
765
+ display: block;
766
+
767
+ width: 150px;
666
768
 
667
769
  float: right;
668
770
 
669
- overflow: hidden;
670
-
671
-
672
-
673
- }
771
+ }
772
+
773
+
774
+
674
-
775
+ div.sidenav h1 a {
776
+
675
-
777
+ display: block;
778
+
676
-
779
+ }
780
+
781
+
782
+
677
- div.sidenav ul.sidemenu li {
783
+ div.sidenav h1 a img {
678
-
679
- list-style: none outside none;
680
784
 
681
785
  width: 100%;
682
786
 
683
- float: left;
684
-
685
- overflow: hidden;
686
-
687
- margin: 0 0 15% 0;
688
-
689
- text-align: right;
690
-
691
- }
692
-
693
-
694
-
695
- div.sidenav nav ul.sidemenu li a {
696
-
697
- float: right;
698
-
699
- overflow: hidden;
700
-
701
- text-align: right;
702
-
703
- font-size: 18px;
704
-
705
- font-weight: 400;
706
-
707
- line-height: 2em;
708
-
709
- letter-spacing: 1.5px;
710
-
711
- text-decoration: none;
712
-
713
- color: #343232;
714
-
715
- width: 100%;
716
-
717
- position: relative;
718
-
719
- line-height: 1;
720
-
721
- }
722
-
723
-
724
-
725
- div.sidenav nav ul.sidemenu li a::after {
726
-
727
- position: absolute;
728
-
729
- left: 0;
730
-
731
- bottom: 0;
732
-
733
- display: block;
734
-
735
- content: "";
736
-
737
- width: 0%;
738
-
739
- height: 1px;
740
-
741
- background: #404040;
742
-
743
- transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
744
-
745
- }
746
-
747
-
748
-
749
- div.sidenav nav ul.sidemenu li a:hover::after {
750
-
751
- width: 100%;
752
-
753
- }
754
-
755
-
756
-
757
- div.sidenav nav ul.sidemenu li a:hover {
758
-
759
- color: #746be8;
760
-
761
- }
762
-
763
-
764
-
765
- div.sidenav nav ul.sidemenu li a span {
766
-
767
- font-size: 13px;
768
-
769
- }
770
-
771
-
772
-
773
-
774
-
775
- div.sidenav h1 {
776
-
777
- display: block;
778
-
779
- width: 150px;
780
-
781
- float: right;
782
-
783
- }
784
-
785
-
786
-
787
- div.sidenav h1 a {
788
-
789
- display: block;
790
-
791
- }
792
-
793
-
794
-
795
- div.sidenav h1 a img {
796
-
797
- width: 100%;
798
-
799
787
  }
800
788
 
801
789
 

1

追加

2020/08/24 05:21

投稿

..o
..o

スコア28

test CHANGED
File without changes
test CHANGED
@@ -42,6 +42,14 @@
42
42
 
43
43
  ```HTML
44
44
 
45
+ <!DOCTYPE html>
46
+
47
+
48
+
49
+ <html>
50
+
51
+
52
+
45
53
  <head>
46
54
 
47
55
  <meta charset="utf-8" name="Officialsite" content="">
@@ -70,4 +78,738 @@
70
78
 
71
79
  </head>
72
80
 
81
+
82
+
83
+ <body>
84
+
85
+
86
+
87
+ <div class="firstview sp_none" >
88
+
89
+ <video class="bg-video" src="img/TOP/topmovie.mp4" poster="img/PROFILE/profile1.jpg" muted autoplay loop playsinline></video>
90
+
91
+ </div>
92
+
93
+
94
+
95
+ <header class="header pc_none">
96
+
97
+ <nav class="global-nav">
98
+
99
+ <ul class="global-nav__list">
100
+
101
+ <li class="global-nav__item"><a href="">メニュー1</a></li>
102
+
103
+ <li class="global-nav__item"><a href="">メニュー2</a></li>
104
+
105
+ <li class="global-nav__item"><a href="">メニュー3</a></li>
106
+
107
+ <li class="global-nav__item"><a href="">メニュー4</a></li>
108
+
109
+ <li class="global-nav__item"><a href="">メニュー5</a></li>
110
+
111
+ </ul>
112
+
113
+ </nav>
114
+
115
+
116
+
117
+ <div class="hamburger" id="js-hamburger">
118
+
119
+ <span class="hamburger__line hamburger__line--1"></span>
120
+
121
+ <span class="hamburger__line hamburger__line--2"></span>
122
+
123
+ <span class="hamburger__line hamburger__line--3"></span>
124
+
125
+ </div>
126
+
127
+ <div class="black-bg" id="js-black-bg"></div>
128
+
129
+ </header>
130
+
131
+
132
+
133
+
134
+
135
+ <div class="sidenav sp_none">
136
+
137
+ <nav sp_none>
138
+
139
+ <ul class="sidemenu">
140
+
141
+ <li><a href="index.html">HOME<br><span>ホーム</span></a></li>
142
+
143
+ <li><a href="profile.html">PROFILE<br><span>プロフィール</span></a></li>
144
+
145
+ <li><a href="access.html">ACCESS<br><span>住所</span></a></li>
146
+
147
+ <li><a href="courses.html">COURSES<br><span>コース・料金</span></a></li>
148
+
149
+ <li><a href="reservation/reservation.html">RESERVATI<br><span>ご予約</span></a></li>
150
+
151
+ <li><a href="">CONTACT<br><span>お問い合わせ</span></a></li>
152
+
153
+ </ul>
154
+
155
+ <h1><a href="index.html"><img src="img/TOP/logo1.jpg" alt="HALUロゴ"></a></h1>
156
+
157
+ </nav>
158
+
159
+ </div>
160
+
161
+
162
+
163
+ </body>
164
+
165
+ </html>
166
+
167
+
168
+
73
169
  ```
170
+
171
+ tb.css
172
+
173
+ ```css
174
+
175
+ * {
176
+
177
+ margin: 0;
178
+
179
+ padding: 0;
180
+
181
+ box-sizing: border-box;
182
+
183
+ }
184
+
185
+
186
+
187
+ p {
188
+
189
+ word-break: break-all;
190
+
191
+ }
192
+
193
+
194
+
195
+ a {
196
+
197
+ text-decoration: none;
198
+
199
+ }
200
+
201
+
202
+
203
+ li {
204
+
205
+ list-style: none;
206
+
207
+ }
208
+
209
+
210
+
211
+ .pc_none {
212
+
213
+ display: block;
214
+
215
+ }
216
+
217
+
218
+
219
+ .sp_none {
220
+
221
+ display: none;
222
+
223
+ }
224
+
225
+
226
+
227
+ .clearfix:after {
228
+
229
+ content: "";
230
+
231
+ display: block;
232
+
233
+ clear: both;
234
+
235
+ }
236
+
237
+
238
+
239
+
240
+
241
+ .header {
242
+
243
+ position: fixed;
244
+
245
+ left: 0;
246
+
247
+ top: 0;
248
+
249
+ width: 100%;
250
+
251
+ height: 52px;
252
+
253
+ background-color: #fff;
254
+
255
+ box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
256
+
257
+ }
258
+
259
+
260
+
261
+ .header_logo{
262
+
263
+ padding:1px 0 1px 0;
264
+
265
+ width: 100px;
266
+
267
+ height: 52px;
268
+
269
+ margin: 0 auto;
270
+
271
+ }
272
+
273
+
274
+
275
+ .header_logo a{
276
+
277
+ display: block;
278
+
279
+ width: 100%;
280
+
281
+ }
282
+
283
+
284
+
285
+ .header_logo img{
286
+
287
+ max-width: 100%;
288
+
289
+
290
+
291
+ }
292
+
293
+
294
+
295
+
296
+
297
+ .global-nav {
298
+
299
+ position: fixed;
300
+
301
+ right: -40vw;
302
+
303
+ /* これで隠れる */
304
+
305
+ top: 0;
306
+
307
+ width: 40vw;
308
+
309
+ /* スマホに収まるくらい */
310
+
311
+ height: 100vh;
312
+
313
+ padding-top: 40px;
314
+
315
+ background-color: #fff;
316
+
317
+ transition: all .6s;
318
+
319
+ z-index: 200;
320
+
321
+ overflow-y: auto;
322
+
323
+ /* メニューが多くなったらスクロールできるように */
324
+
325
+ }
326
+
327
+
328
+
329
+ .hamburger {
330
+
331
+ position: absolute;
332
+
333
+ right: 0;
334
+
335
+ top: 0;
336
+
337
+ width: 52px;
338
+
339
+ /* クリックしやすいようにちゃんと幅を指定する */
340
+
341
+ height: 50px;
342
+
343
+ /* クリックしやすいようにちゃんと高さを指定する */
344
+
345
+ cursor: pointer;
346
+
347
+ z-index: 300;
348
+
349
+ }
350
+
351
+
352
+
353
+ .global-nav__list {
354
+
355
+ margin: 0;
356
+
357
+ padding: 0;
358
+
359
+ list-style: none;
360
+
361
+ }
362
+
363
+
364
+
365
+ .global-nav__item {
366
+
367
+ text-align: center;
368
+
369
+ padding: 0 14px;
370
+
371
+ }
372
+
373
+
374
+
375
+ .global-nav__item a {
376
+
377
+ display: block;
378
+
379
+ padding: 8px 0;
380
+
381
+ border-bottom: 1px solid #eee;
382
+
383
+ text-decoration: none;
384
+
385
+ color: #111;
386
+
387
+ }
388
+
389
+
390
+
391
+ .global-nav__item a:hover {
392
+
393
+ background-color: #eee;
394
+
395
+ }
396
+
397
+
398
+
399
+ .hamburger__line {
400
+
401
+ position: absolute;
402
+
403
+ left: 11px;
404
+
405
+ width: 18px;
406
+
407
+ height: 1px;
408
+
409
+ background-color: #111;
410
+
411
+ transition: all .6s;
412
+
413
+ }
414
+
415
+
416
+
417
+ .hamburger__line--1 {
418
+
419
+ top: 18px;
420
+
421
+ }
422
+
423
+
424
+
425
+ .hamburger__line--2 {
426
+
427
+ top: 26px;
428
+
429
+ }
430
+
431
+
432
+
433
+ .hamburger__line--3 {
434
+
435
+ top: 34px;
436
+
437
+ }
438
+
439
+
440
+
441
+ .black-bg {
442
+
443
+ position: fixed;
444
+
445
+ left: 0;
446
+
447
+ top: 0;
448
+
449
+ width: 100vw;
450
+
451
+ height: 100vh;
452
+
453
+ z-index: 100;
454
+
455
+ background-color: #000;
456
+
457
+ opacity: 0;
458
+
459
+ visibility: hidden;
460
+
461
+ transition: all .6s;
462
+
463
+ cursor: pointer;
464
+
465
+ }
466
+
467
+
468
+
469
+ /* 表示された時用のCSS */
470
+
471
+ .nav-open .global-nav {
472
+
473
+ right: 0;
474
+
475
+ }
476
+
477
+
478
+
479
+ .nav-open .black-bg {
480
+
481
+ opacity: .8;
482
+
483
+ visibility: visible;
484
+
485
+ }
486
+
487
+
488
+
489
+ .nav-open .hamburger__line--1 {
490
+
491
+ transform: rotate(45deg);
492
+
493
+ top: 20px;
494
+
495
+ }
496
+
497
+
498
+
499
+ .nav-open .hamburger__line--2 {
500
+
501
+ width: 0;
502
+
503
+ left: 50%;
504
+
505
+ }
506
+
507
+
508
+
509
+ .nav-open .hamburger__line--3 {
510
+
511
+ transform: rotate(-45deg);
512
+
513
+ top: 20px;
514
+
515
+ }
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+ ```
530
+
531
+ style.css
532
+
533
+ ```css
534
+
535
+ @charset "utf-8";
536
+
537
+
538
+
539
+ * {
540
+
541
+ margin: 0;
542
+
543
+ padding: 0;
544
+
545
+ box-sizing: border-box;
546
+
547
+ }
548
+
549
+
550
+
551
+ p {
552
+
553
+ word-break: break-all;
554
+
555
+ }
556
+
557
+
558
+
559
+ a {
560
+
561
+ text-decoration: none;
562
+
563
+ }
564
+
565
+
566
+
567
+ li {
568
+
569
+ list-style: none;
570
+
571
+ }
572
+
573
+
574
+
575
+ .pc_none{
576
+
577
+ display: none;
578
+
579
+ }
580
+
581
+
582
+
583
+ .clearfix:after {
584
+
585
+ content: "";
586
+
587
+ display: block;
588
+
589
+ clear: both;
590
+
591
+ }
592
+
593
+
594
+
595
+
596
+
597
+ /* ホーム */
598
+
599
+ html,
600
+
601
+ body {
602
+
603
+ height: 100%;
604
+
605
+ font-family: "游明朝体", "Yu Mincho", YuMincho, "Hiragino Mincho Pro", "HGS明朝E", "ヒラギノ明朝 Pro W3", "小塚明朝 Pro EL", "Kozuka Mincho Pro", Century, "Times New Roman", Times, "MS 明朝", serif;
606
+
607
+ }
608
+
609
+
610
+
611
+ .container {
612
+
613
+ min-height: 100vh;
614
+
615
+ height: 100%;
616
+
617
+ width: 80%;
618
+
619
+ margin: 6vh 0 100px 20%;
620
+
621
+ position: relative;
622
+
623
+ }
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+ div.sidenav {
632
+
633
+ height: 100vh;
634
+
635
+ width: 20%;
636
+
637
+ position: fixed;
638
+
639
+ top: 0;
640
+
641
+ background-color: #fff;
642
+
643
+ overflow: hidden;
644
+
645
+ }
646
+
647
+
648
+
649
+ div.sidenav nav {
650
+
651
+ margin-top: 10vh;
652
+
653
+ margin-bottom: 6vh;
654
+
655
+ height: 84vh;
656
+
657
+ padding-right: 10%;
658
+
659
+ }
660
+
661
+
662
+
663
+ div.sidenav ul.sidemenu {
664
+
665
+ width: auto;
666
+
667
+ float: right;
668
+
669
+ overflow: hidden;
670
+
671
+
672
+
673
+ }
674
+
675
+
676
+
677
+ div.sidenav ul.sidemenu li {
678
+
679
+ list-style: none outside none;
680
+
681
+ width: 100%;
682
+
683
+ float: left;
684
+
685
+ overflow: hidden;
686
+
687
+ margin: 0 0 15% 0;
688
+
689
+ text-align: right;
690
+
691
+ }
692
+
693
+
694
+
695
+ div.sidenav nav ul.sidemenu li a {
696
+
697
+ float: right;
698
+
699
+ overflow: hidden;
700
+
701
+ text-align: right;
702
+
703
+ font-size: 18px;
704
+
705
+ font-weight: 400;
706
+
707
+ line-height: 2em;
708
+
709
+ letter-spacing: 1.5px;
710
+
711
+ text-decoration: none;
712
+
713
+ color: #343232;
714
+
715
+ width: 100%;
716
+
717
+ position: relative;
718
+
719
+ line-height: 1;
720
+
721
+ }
722
+
723
+
724
+
725
+ div.sidenav nav ul.sidemenu li a::after {
726
+
727
+ position: absolute;
728
+
729
+ left: 0;
730
+
731
+ bottom: 0;
732
+
733
+ display: block;
734
+
735
+ content: "";
736
+
737
+ width: 0%;
738
+
739
+ height: 1px;
740
+
741
+ background: #404040;
742
+
743
+ transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
744
+
745
+ }
746
+
747
+
748
+
749
+ div.sidenav nav ul.sidemenu li a:hover::after {
750
+
751
+ width: 100%;
752
+
753
+ }
754
+
755
+
756
+
757
+ div.sidenav nav ul.sidemenu li a:hover {
758
+
759
+ color: #746be8;
760
+
761
+ }
762
+
763
+
764
+
765
+ div.sidenav nav ul.sidemenu li a span {
766
+
767
+ font-size: 13px;
768
+
769
+ }
770
+
771
+
772
+
773
+
774
+
775
+ div.sidenav h1 {
776
+
777
+ display: block;
778
+
779
+ width: 150px;
780
+
781
+ float: right;
782
+
783
+ }
784
+
785
+
786
+
787
+ div.sidenav h1 a {
788
+
789
+ display: block;
790
+
791
+ }
792
+
793
+
794
+
795
+ div.sidenav h1 a img {
796
+
797
+ width: 100%;
798
+
799
+ }
800
+
801
+
802
+
803
+
804
+
805
+ ```
806
+
807
+
808
+
809
+ 諸事情によりどこまで載せていいのかわからないので最低限にしています..
810
+
811
+ .sp_none
812
+
813
+ .pc_none
814
+
815
+ が効かないことにまず困っています。