質問編集履歴
8
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -178,113 +178,7 @@
|
|
178
178
|
|
179
179
|
|
180
180
|
|
181
|
-
|
181
|
+
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
.Content
|
186
|
-
|
187
|
-
.Content__like
|
188
|
-
|
189
|
-
%h2 オススメ一覧
|
190
|
-
|
191
|
-
.Content__like__end
|
192
|
-
|
193
|
-
フロントエンド編
|
194
|
-
|
195
|
-
//swiperの実装
|
196
|
-
|
197
|
-
.Content__like__end__container.swiper-container
|
198
|
-
|
199
|
-
.Content__like__end__container__wrapper.swiper-wrapper
|
200
|
-
|
201
|
-
.Content__like__end__container__wrapper__slide.swiper-slide
|
202
|
-
|
203
|
-
= link_to "https://amazon.co.jp/dp/4839956758/", class: "categorys-book" do
|
204
|
-
|
205
|
-
= image_tag "recommended/front1.jpg", class: "img"
|
206
|
-
|
207
|
-
.Content__like__end__container__wrapper__slide.swiper-slide
|
208
|
-
|
209
|
-
= link_to "https://amazon.co.jp/dp/4797398892/", class: "categorys-book" do
|
210
|
-
|
211
|
-
= image_tag "recommended/front2.jpg", class: "img"
|
212
|
-
|
213
|
-
.Content__like__end__container__wrapper__slide.swiper-slide
|
214
|
-
|
215
|
-
= link_to "https://amazon.co.jp/dp/4797383585", class: "categorys-book" do
|
216
|
-
|
217
|
-
= image_tag "recommended/front3.jpg", class: "img"
|
218
|
-
|
219
|
-
// pagination,buttonの色を青から白に変更
|
220
|
-
|
221
|
-
.Content__like__end__prev.swiper-button-prev.swiper-button-white
|
222
|
-
|
223
|
-
.Content__like__end__next.swiper-button-next.swiper-button-white
|
224
|
-
|
225
|
-
.Content__like__end__pagination.swiper-pagination.swiper-pagination-white
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
.Content__like__end
|
230
|
-
|
231
|
-
バックエンド編
|
232
|
-
|
233
|
-
//swiperの実装
|
234
|
-
|
235
|
-
.Content__like__end__container.swiper-container
|
236
|
-
|
237
|
-
.Content__like__end__container__wrapper.swiper-wrapper
|
238
|
-
|
239
|
-
.Content__like__end__container__wrapper__slide.swiper-slide
|
240
|
-
|
241
|
-
= link_to "https://amazon.co.jp/dp/4297114623", class: "categorys-book" do
|
242
|
-
|
243
|
-
= image_tag "recommended/back1.jpg", class: "img"
|
244
|
-
|
245
|
-
.Content__like__end__container__wrapper__slide.swiper-slide
|
246
|
-
|
247
|
-
= link_to "https://amazon.co.jp/dp/4295003867", class: "categorys-book" do
|
248
|
-
|
249
|
-
= image_tag "recommended/back2.jpg", class: "img"
|
250
|
-
|
251
|
-
.Content__like__end__container__wrapper__slide.swiper-slide
|
252
|
-
|
253
|
-
= link_to "https://amazon.co.jp/dp/B07Z63J7Z4", class: "categorys-book" do
|
254
|
-
|
255
|
-
= image_tag "recommended/back3.jpg", class: "img"
|
256
|
-
|
257
|
-
// pagination,buttonの色を青から白に変更
|
258
|
-
|
259
|
-
.Content__like__end__prev.swiper-button-prev.swiper-button-white
|
260
|
-
|
261
|
-
.Content__like__end__next.swiper-button-next.swiper-button-white
|
262
|
-
|
263
|
-
.Content__like__end__pagination.swiper-pagination.swiper-pagination-white
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
.Data
|
268
|
-
|
269
|
-
.Data__categorys
|
270
|
-
|
271
|
-
%h2 登録データ一覧
|
272
|
-
|
273
|
-
.Data__categorys__category
|
274
|
-
|
275
|
-
.Data__categorys__category__id
|
276
|
-
|
277
|
-
ID
|
278
|
-
|
279
|
-
.Data__categorys__category__title
|
280
|
-
|
281
|
-
Title
|
282
|
-
|
283
|
-
.Data__categorys__category__language
|
284
|
-
|
285
|
-
Language
|
286
|
-
|
287
|
-
= render partial: "card"
|
288
182
|
|
289
183
|
|
290
184
|
|
@@ -310,235 +204,713 @@
|
|
310
204
|
|
311
205
|
|
312
206
|
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
313
|
-
###
|
211
|
+
### application.scss
|
314
|
-
|
315
|
-
|
316
212
|
|
317
213
|
```
|
318
214
|
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
215
|
+
@import "reset";
|
216
|
+
|
217
|
+
@import "font-awesome-sprockets";
|
218
|
+
|
219
|
+
@import "font-awesome";
|
220
|
+
|
221
|
+
@import "bootstrap/scss/bootstrap";
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
.mw-md {
|
228
|
+
|
229
|
+
max-width: 576px;
|
230
|
+
|
231
|
+
}
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
.alert-notice {
|
240
|
+
|
241
|
+
@extend .alert-info;
|
242
|
+
|
243
|
+
}
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
.alert-alert {
|
248
|
+
|
249
|
+
@extend .alert-danger;
|
250
|
+
|
251
|
+
}
|
252
|
+
|
253
|
+
```
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
### application.html.haml
|
258
|
+
|
259
|
+
```
|
260
|
+
|
261
|
+
%body
|
262
|
+
|
263
|
+
//devise関連のページのみ最大の横幅を576pxとして、それ以外は別の横幅にする
|
264
|
+
|
265
|
+
//条件分岐で付与するクラスを付け替え
|
266
|
+
|
267
|
+
%div{:class => "container-fluid px-0 #{devise_controller? ? 'mw-md' : 'mw-xl'}"}
|
268
|
+
|
269
|
+
= yield
|
270
|
+
|
271
|
+
```
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
### bootstrap4.6.0導入
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
### 画像の追加
|
280
|
+
|
281
|
+
![イメージ説明](ebe5e00399c04e52ae84a1039fa38840.png)
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
### index.scss
|
286
|
+
|
287
|
+
```
|
288
|
+
|
289
|
+
.Main {
|
290
|
+
|
291
|
+
background-image: image-url("book1.jpg");
|
292
|
+
|
293
|
+
background-size: cover;
|
294
|
+
|
295
|
+
position: relative;
|
296
|
+
|
297
|
+
&__devise {
|
298
|
+
|
299
|
+
width: 20%;
|
300
|
+
|
301
|
+
color: #f2f2f2;
|
302
|
+
|
303
|
+
font-size: 20px;
|
304
|
+
|
305
|
+
padding: 20px;
|
306
|
+
|
307
|
+
a {
|
308
|
+
|
309
|
+
color: #fff; //リンクの色の変更
|
310
|
+
|
311
|
+
}
|
312
|
+
|
313
|
+
}
|
314
|
+
|
315
|
+
&__header{
|
316
|
+
|
317
|
+
display: flex;
|
318
|
+
|
319
|
+
justify-content: center;
|
320
|
+
|
321
|
+
align-items: center;
|
322
|
+
|
323
|
+
width: 100%;
|
324
|
+
|
325
|
+
font-weight: bold;
|
326
|
+
|
327
|
+
&__nav h1 {
|
328
|
+
|
329
|
+
text-align: center;
|
330
|
+
|
331
|
+
padding: 1em;
|
332
|
+
|
333
|
+
border: 9px solid rgb(255,255,255);
|
334
|
+
|
335
|
+
border-radius: 3em .7em 2em .7em/.7em 2em .7em 3em; //手書き風の枠の作成
|
336
|
+
|
337
|
+
color: #fff;
|
338
|
+
|
339
|
+
font-size: 30px;
|
340
|
+
|
341
|
+
margin-top: 10px;
|
342
|
+
|
343
|
+
font-weight: bold;
|
344
|
+
|
345
|
+
}
|
346
|
+
|
347
|
+
&__nav ul {
|
348
|
+
|
349
|
+
display: flex;
|
350
|
+
|
351
|
+
align-items: center;
|
352
|
+
|
353
|
+
justify-content: space-between;
|
354
|
+
|
355
|
+
height: 80px;
|
356
|
+
|
357
|
+
font-size: 20px;
|
358
|
+
|
359
|
+
// display: none; // 縮小した時にハンバーガーメニュの表示
|
360
|
+
|
361
|
+
}
|
362
|
+
|
363
|
+
&__nav li {
|
364
|
+
|
365
|
+
margin: 10px;
|
366
|
+
|
367
|
+
}
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
}
|
372
|
+
|
373
|
+
&__body {
|
374
|
+
|
375
|
+
font-size: 40px;
|
376
|
+
|
377
|
+
display: flex;
|
378
|
+
|
379
|
+
justify-content: space-between;
|
380
|
+
|
381
|
+
&__left {
|
382
|
+
|
383
|
+
margin: 40px;
|
384
|
+
|
385
|
+
width: 50%;
|
386
|
+
|
387
|
+
&__top {
|
388
|
+
|
389
|
+
color: #fff;
|
390
|
+
|
391
|
+
}
|
392
|
+
|
393
|
+
&__text {
|
394
|
+
|
395
|
+
color: #fff;
|
396
|
+
|
397
|
+
font-size: 20px;
|
398
|
+
|
399
|
+
line-height: 40px;
|
400
|
+
|
401
|
+
letter-spacing: 5px;
|
402
|
+
|
403
|
+
text-indent: 1em;
|
404
|
+
|
405
|
+
font-weight: bold;
|
406
|
+
|
407
|
+
text-decoration: underline;
|
408
|
+
|
409
|
+
}
|
410
|
+
|
411
|
+
}
|
412
|
+
|
413
|
+
}
|
414
|
+
|
415
|
+
}
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
.search-top { //検索機能
|
420
|
+
|
421
|
+
position: relative;
|
422
|
+
|
423
|
+
left: 20px;
|
424
|
+
|
425
|
+
padding-left: 5px;
|
426
|
+
|
427
|
+
}
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
.Content {
|
432
|
+
|
433
|
+
margin: 2px;
|
434
|
+
|
435
|
+
background: image-url('book2.jpg');
|
436
|
+
|
437
|
+
background-size: cover;
|
438
|
+
|
439
|
+
animation: SlideIn 7.6s;
|
440
|
+
|
441
|
+
@keyframes SlideIn {
|
442
|
+
|
443
|
+
0% {
|
444
|
+
|
445
|
+
opacity: 0;
|
446
|
+
|
447
|
+
}
|
448
|
+
|
449
|
+
100% {
|
450
|
+
|
451
|
+
opacity: 1;
|
452
|
+
|
453
|
+
}
|
454
|
+
|
455
|
+
}
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
&__like {
|
460
|
+
|
461
|
+
color:#fff;
|
462
|
+
|
463
|
+
h2 {
|
464
|
+
|
465
|
+
padding: .5em;
|
466
|
+
|
467
|
+
font-size: 32px;
|
468
|
+
|
469
|
+
&:first-letter {
|
470
|
+
|
471
|
+
margin-right: .1em;
|
472
|
+
|
473
|
+
font-size: 1.5em;
|
474
|
+
|
475
|
+
}
|
476
|
+
|
477
|
+
}
|
478
|
+
|
479
|
+
&__end {
|
480
|
+
|
481
|
+
color:#fff;
|
482
|
+
|
483
|
+
font-size: 24px;
|
484
|
+
|
485
|
+
margin: 50px;
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
.swiper-container {
|
490
|
+
|
491
|
+
width: 40%; //全体の幅の設定
|
492
|
+
|
493
|
+
margin-top: 20px;
|
494
|
+
|
495
|
+
padding: 20px; //画像と矢印の幅の設定
|
496
|
+
|
497
|
+
}
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
.swiper-slide {
|
502
|
+
|
503
|
+
text-align: center;
|
504
|
+
|
505
|
+
}
|
506
|
+
|
507
|
+
}
|
508
|
+
|
509
|
+
}
|
510
|
+
|
511
|
+
}
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
.categorys {
|
518
|
+
|
519
|
+
color: #fff;
|
520
|
+
|
521
|
+
&:hover {
|
522
|
+
|
523
|
+
background:#fff;
|
524
|
+
|
525
|
+
color: #555;
|
526
|
+
|
527
|
+
box-shadow: 0 4px 7px rgba(0,0,0,0.5);
|
528
|
+
|
529
|
+
transform: translateY(-5px);
|
530
|
+
|
531
|
+
cursor: pointer;
|
532
|
+
|
533
|
+
}
|
534
|
+
|
535
|
+
}
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
.img {
|
540
|
+
|
541
|
+
height: 300px;
|
542
|
+
|
543
|
+
transition-duration: 2s;
|
544
|
+
|
545
|
+
&:hover {
|
546
|
+
|
547
|
+
box-shadow: 0 4px 7px 0 rgba(0,0,0,0.5);
|
548
|
+
|
549
|
+
transform: rotate(-10deg);
|
550
|
+
|
551
|
+
cursor: pointer;
|
552
|
+
|
553
|
+
}
|
554
|
+
|
555
|
+
}
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
//データの一覧表示
|
560
|
+
|
561
|
+
.Data {
|
562
|
+
|
563
|
+
margin: 80px;
|
564
|
+
|
565
|
+
&__categorys {
|
566
|
+
|
567
|
+
margin: 20px;
|
568
|
+
|
569
|
+
h2 {
|
570
|
+
|
571
|
+
font-size: 30px;
|
572
|
+
|
573
|
+
text-align: center;
|
574
|
+
|
575
|
+
font-weight: bold;
|
576
|
+
|
577
|
+
}
|
578
|
+
|
579
|
+
&__category {
|
580
|
+
|
581
|
+
display: flex;
|
582
|
+
|
583
|
+
margin: 20px;
|
584
|
+
|
585
|
+
&__id {
|
586
|
+
|
587
|
+
color: blue;
|
588
|
+
|
589
|
+
}
|
590
|
+
|
591
|
+
&__title {
|
592
|
+
|
593
|
+
width: 70%;
|
594
|
+
|
595
|
+
color:red;
|
596
|
+
|
597
|
+
margin: 0 30px 0 30px;
|
598
|
+
|
599
|
+
}
|
600
|
+
|
601
|
+
&__language {
|
602
|
+
|
603
|
+
color: green;
|
604
|
+
|
605
|
+
}
|
606
|
+
|
607
|
+
}
|
608
|
+
|
609
|
+
}
|
610
|
+
|
611
|
+
&__table {
|
612
|
+
|
613
|
+
margin-top: 15px;
|
614
|
+
|
615
|
+
&__list {
|
616
|
+
|
617
|
+
display: flex;
|
618
|
+
|
619
|
+
margin: 40px;
|
620
|
+
|
621
|
+
a {
|
622
|
+
|
623
|
+
text-decoration: none; //下線の消去
|
624
|
+
|
625
|
+
color: #000;
|
626
|
+
|
627
|
+
}
|
628
|
+
|
629
|
+
&__id {
|
630
|
+
|
631
|
+
width: 5%;
|
632
|
+
|
633
|
+
}
|
634
|
+
|
635
|
+
&__title {
|
636
|
+
|
637
|
+
width: 70%;
|
638
|
+
|
639
|
+
margin-right: 30px;
|
640
|
+
|
641
|
+
position: relative;
|
642
|
+
|
643
|
+
display: inline-block;
|
644
|
+
|
645
|
+
color: #1b1b1b;
|
646
|
+
|
647
|
+
text-decoration: none;
|
648
|
+
|
649
|
+
&:hover {
|
650
|
+
|
651
|
+
cursor: pointer;
|
652
|
+
|
653
|
+
text-decoration: none;
|
654
|
+
|
655
|
+
}
|
656
|
+
|
657
|
+
&:after {
|
658
|
+
|
659
|
+
position: absolute;
|
660
|
+
|
661
|
+
bottom: -8px;
|
662
|
+
|
663
|
+
left: 0;
|
664
|
+
|
665
|
+
content: '';
|
666
|
+
|
667
|
+
width: 100%;
|
668
|
+
|
669
|
+
height: 2px;
|
670
|
+
|
671
|
+
background: #333;
|
672
|
+
|
673
|
+
opacity: 0;
|
674
|
+
|
675
|
+
visibility: hidden;
|
676
|
+
|
677
|
+
transition: .3s;
|
678
|
+
|
679
|
+
}
|
680
|
+
|
681
|
+
&:hover::after {
|
682
|
+
|
683
|
+
bottom: -4px;
|
684
|
+
|
685
|
+
opacity: 1;
|
686
|
+
|
687
|
+
visibility: visible;
|
688
|
+
|
689
|
+
}
|
690
|
+
|
691
|
+
}
|
692
|
+
|
693
|
+
&__language {
|
694
|
+
|
695
|
+
width: 10%;
|
696
|
+
|
697
|
+
}
|
698
|
+
|
699
|
+
&__btn {
|
700
|
+
|
701
|
+
margin-right: 30px;
|
702
|
+
|
703
|
+
display: block;
|
704
|
+
|
705
|
+
position: relative;
|
706
|
+
|
707
|
+
text-decoration: none;
|
708
|
+
|
709
|
+
color: #1b1b1b;
|
710
|
+
|
711
|
+
background: #fff;
|
712
|
+
|
713
|
+
border: 1px solid #fff;
|
714
|
+
|
715
|
+
&:hover {
|
716
|
+
|
717
|
+
background: #f2f2f2;
|
718
|
+
|
719
|
+
cursor: pointer;
|
720
|
+
|
721
|
+
text-decoration: none;
|
722
|
+
|
723
|
+
transform: translateY(-0.3em);
|
724
|
+
|
725
|
+
}
|
726
|
+
|
727
|
+
}
|
728
|
+
|
729
|
+
}
|
730
|
+
|
731
|
+
}
|
732
|
+
|
733
|
+
}
|
734
|
+
|
735
|
+
//ページネーションのデザイン
|
736
|
+
|
737
|
+
.Pagenation{
|
738
|
+
|
739
|
+
margin-left: 120px;
|
740
|
+
|
741
|
+
text-align: center;
|
742
|
+
|
743
|
+
font-size: 18px;
|
744
|
+
|
745
|
+
a {
|
746
|
+
|
747
|
+
margin: 20px;
|
748
|
+
|
749
|
+
color: #1b1b1b;
|
750
|
+
|
751
|
+
text-decoration: none;
|
752
|
+
|
753
|
+
}
|
754
|
+
|
755
|
+
}
|
756
|
+
|
757
|
+
// 新しい本の追加
|
758
|
+
|
759
|
+
.New {
|
760
|
+
|
761
|
+
margin-bottom: 30px;
|
762
|
+
|
763
|
+
text-align: center;
|
764
|
+
|
765
|
+
&__book {
|
766
|
+
|
767
|
+
box-shadow: 0 0 3px 0 rgba(0,0,0,0.25);
|
768
|
+
|
769
|
+
color: #fff;
|
770
|
+
|
771
|
+
display: inline-block;
|
772
|
+
|
773
|
+
padding: 0.6em 2em;
|
774
|
+
|
775
|
+
margin: 0 01em;
|
776
|
+
|
777
|
+
cursor: pointer;
|
778
|
+
|
779
|
+
transition: all 0.3s ease 0s;
|
780
|
+
|
781
|
+
a {
|
782
|
+
|
783
|
+
text-decoration: none;
|
784
|
+
|
785
|
+
color: #000;
|
786
|
+
|
787
|
+
}
|
788
|
+
|
789
|
+
&:hover {
|
790
|
+
|
791
|
+
box-shadow: 0 3px 6px 0 rgba(0,0,0,0.25);
|
792
|
+
|
793
|
+
transform: translateY(-0.2em);
|
794
|
+
|
795
|
+
}
|
796
|
+
|
797
|
+
}
|
798
|
+
|
799
|
+
}
|
800
|
+
|
801
|
+
|
802
|
+
|
803
|
+
//プルダウンメニュー
|
804
|
+
|
805
|
+
.menu {
|
806
|
+
|
807
|
+
list-style-type: none;
|
808
|
+
|
809
|
+
margin: 0;
|
810
|
+
|
811
|
+
padding: 0;
|
328
812
|
|
329
813
|
color:#000;
|
330
814
|
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
d
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
h5
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
p
|
378
|
-
|
379
|
-
co
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
in
|
388
|
-
|
389
|
-
textare
|
390
|
-
|
391
|
-
p
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
f
|
414
|
-
|
415
|
-
img
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
cite,
|
432
|
-
|
433
|
-
code,
|
434
|
-
|
435
|
-
dfn,
|
436
|
-
|
437
|
-
em,
|
438
|
-
|
439
|
-
strong,
|
440
|
-
|
441
|
-
th,
|
442
|
-
|
443
|
-
var {
|
444
|
-
|
445
|
-
font-style:normal;
|
446
|
-
|
447
|
-
font-weight:normal;
|
448
|
-
|
449
|
-
}
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
ol,
|
454
|
-
|
455
|
-
ul {
|
456
|
-
|
457
|
-
list-style:none;
|
458
|
-
|
459
|
-
}
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
caption,
|
464
|
-
|
465
|
-
th {
|
466
|
-
|
467
|
-
text-align:left;
|
468
|
-
|
469
|
-
}
|
470
|
-
|
471
|
-
h1,
|
472
|
-
|
473
|
-
h2,
|
474
|
-
|
475
|
-
h3,
|
476
|
-
|
477
|
-
h4,
|
478
|
-
|
479
|
-
h5,
|
480
|
-
|
481
|
-
h6 {
|
482
|
-
|
483
|
-
font-size:100%;
|
484
|
-
|
485
|
-
font-weight:normal;
|
486
|
-
|
487
|
-
}
|
488
|
-
|
489
|
-
q:before,
|
490
|
-
|
491
|
-
q:after {
|
492
|
-
|
493
|
-
content:'';
|
494
|
-
|
495
|
-
}
|
496
|
-
|
497
|
-
abbr,
|
498
|
-
|
499
|
-
acronym {
|
500
|
-
|
501
|
-
border:0;
|
502
|
-
|
503
|
-
font-variant:normal;
|
504
|
-
|
505
|
-
}
|
506
|
-
|
507
|
-
/* to preserve line-height and selector appearance */
|
508
|
-
|
509
|
-
sup {
|
510
|
-
|
511
|
-
vertical-align:text-top;
|
512
|
-
|
513
|
-
}
|
514
|
-
|
515
|
-
sub {
|
516
|
-
|
517
|
-
vertical-align:text-bottom;
|
518
|
-
|
519
|
-
}
|
520
|
-
|
521
|
-
input,
|
522
|
-
|
523
|
-
textarea,
|
524
|
-
|
525
|
-
select {
|
526
|
-
|
527
|
-
font-family:inherit;
|
528
|
-
|
529
|
-
font-size:inherit;
|
530
|
-
|
531
|
-
font-weight:inherit;
|
532
|
-
|
533
|
-
*font-size:100%; /*to enable resizing for IE*/
|
534
|
-
|
535
|
-
}
|
536
|
-
|
537
|
-
/*because legend doesn't inherit in IE */
|
538
|
-
|
539
|
-
legend {
|
540
|
-
|
541
|
-
color:#000;
|
815
|
+
|
816
|
+
|
817
|
+
li {
|
818
|
+
|
819
|
+
float: left;
|
820
|
+
|
821
|
+
position: relative;
|
822
|
+
|
823
|
+
margin: 0 0 0 9px;
|
824
|
+
|
825
|
+
padding: 3px;
|
826
|
+
|
827
|
+
width: 160px;
|
828
|
+
|
829
|
+
background: #fff;
|
830
|
+
|
831
|
+
display: block;
|
832
|
+
|
833
|
+
}
|
834
|
+
|
835
|
+
|
836
|
+
|
837
|
+
.sub {
|
838
|
+
|
839
|
+
display: none;
|
840
|
+
|
841
|
+
position: absolute;
|
842
|
+
|
843
|
+
margin-left: -6px;
|
844
|
+
|
845
|
+
padding: 0;
|
846
|
+
|
847
|
+
font-size: 16px;
|
848
|
+
|
849
|
+
|
850
|
+
|
851
|
+
li a {
|
852
|
+
|
853
|
+
padding: 5px 10px;
|
854
|
+
|
855
|
+
margin-left: -5px;
|
856
|
+
|
857
|
+
margin-right: -5px;
|
858
|
+
|
859
|
+
margin-bottom: -5px;
|
860
|
+
|
861
|
+
display: block;
|
862
|
+
|
863
|
+
color:#000;
|
864
|
+
|
865
|
+
text-decoration: none;
|
866
|
+
|
867
|
+
transition: all 0.2s ease 0s;
|
868
|
+
|
869
|
+
&:hover {
|
870
|
+
|
871
|
+
text-decoration: none;
|
872
|
+
|
873
|
+
text-decoration: underline;
|
874
|
+
|
875
|
+
transform: translateY(-2px);
|
876
|
+
|
877
|
+
}
|
878
|
+
|
879
|
+
}
|
880
|
+
|
881
|
+
}
|
882
|
+
|
883
|
+
}
|
884
|
+
|
885
|
+
|
886
|
+
|
887
|
+
|
888
|
+
|
889
|
+
|
890
|
+
|
891
|
+
|
892
|
+
|
893
|
+
&:nth-child(2), &:nth-child(3) {
|
894
|
+
|
895
|
+
top: 16px;
|
896
|
+
|
897
|
+
background: #fff;
|
898
|
+
|
899
|
+
-webkit-transform: rotate(45deg);
|
900
|
+
|
901
|
+
-moz-transform: rotate(45deg);
|
902
|
+
|
903
|
+
transform: rotate(45deg);
|
904
|
+
|
905
|
+
}
|
906
|
+
|
907
|
+
}
|
908
|
+
|
909
|
+
}
|
910
|
+
|
911
|
+
|
912
|
+
|
913
|
+
|
542
914
|
|
543
915
|
}
|
544
916
|
|
@@ -546,94 +918,6 @@
|
|
546
918
|
|
547
919
|
|
548
920
|
|
549
|
-
### application.scss
|
550
|
-
|
551
|
-
```
|
552
|
-
|
553
|
-
@import "reset";
|
554
|
-
|
555
|
-
@import "font-awesome-sprockets";
|
556
|
-
|
557
|
-
@import "font-awesome";
|
558
|
-
|
559
|
-
@import "bootstrap/scss/bootstrap";
|
560
|
-
|
561
|
-
@import "page/cards/index.scss";
|
562
|
-
|
563
|
-
@import "page/cards/new.scss";
|
564
|
-
|
565
|
-
@import "page/cards/edit.scss";
|
566
|
-
|
567
|
-
@import "page/cards/search.scss";
|
568
|
-
|
569
|
-
@import "page/cards/show.scss";
|
570
|
-
|
571
|
-
@import "page/categories/show.scss";
|
572
|
-
|
573
|
-
@import "page/devise/registrations/new.scss";
|
574
|
-
|
575
|
-
@import "page/devise/sessions/new.scss";
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
.mw-md {
|
580
|
-
|
581
|
-
max-width: 576px;
|
582
|
-
|
583
|
-
}
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
.alert-notice {
|
592
|
-
|
593
|
-
@extend .alert-info;
|
594
|
-
|
595
|
-
}
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
.alert-alert {
|
600
|
-
|
601
|
-
@extend .alert-danger;
|
602
|
-
|
603
|
-
}
|
604
|
-
|
605
|
-
```
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
### application.html.haml
|
610
|
-
|
611
|
-
```
|
612
|
-
|
613
|
-
%body
|
614
|
-
|
615
|
-
//devise関連のページのみ最大の横幅を576pxとして、それ以外は別の横幅にする
|
616
|
-
|
617
|
-
//条件分岐で付与するクラスを付け替え
|
618
|
-
|
619
|
-
%div{:class => "container-fluid px-0 #{devise_controller? ? 'mw-md' : 'mw-xl'}"}
|
620
|
-
|
621
|
-
= yield
|
622
|
-
|
623
|
-
```
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
### bootstrap4.6.0導入
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
### 画像の追加
|
632
|
-
|
633
|
-
![イメージ説明](ebe5e00399c04e52ae84a1039fa38840.png)
|
634
|
-
|
635
|
-
|
636
|
-
|
637
921
|
このようになっています。
|
638
922
|
|
639
923
|
どなたかお願いします。。。
|
7
画像の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -628,6 +628,10 @@
|
|
628
628
|
|
629
629
|
|
630
630
|
|
631
|
+
### 画像の追加
|
632
|
+
|
633
|
+
![イメージ説明](ebe5e00399c04e52ae84a1039fa38840.png)
|
634
|
+
|
631
635
|
|
632
636
|
|
633
637
|
このようになっています。
|
6
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -624,6 +624,10 @@
|
|
624
624
|
|
625
625
|
|
626
626
|
|
627
|
+
### bootstrap4.6.0導入
|
628
|
+
|
629
|
+
|
630
|
+
|
627
631
|
|
628
632
|
|
629
633
|
このようになっています。
|
5
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -546,6 +546,86 @@
|
|
546
546
|
|
547
547
|
|
548
548
|
|
549
|
+
### application.scss
|
550
|
+
|
551
|
+
```
|
552
|
+
|
553
|
+
@import "reset";
|
554
|
+
|
555
|
+
@import "font-awesome-sprockets";
|
556
|
+
|
557
|
+
@import "font-awesome";
|
558
|
+
|
559
|
+
@import "bootstrap/scss/bootstrap";
|
560
|
+
|
561
|
+
@import "page/cards/index.scss";
|
562
|
+
|
563
|
+
@import "page/cards/new.scss";
|
564
|
+
|
565
|
+
@import "page/cards/edit.scss";
|
566
|
+
|
567
|
+
@import "page/cards/search.scss";
|
568
|
+
|
569
|
+
@import "page/cards/show.scss";
|
570
|
+
|
571
|
+
@import "page/categories/show.scss";
|
572
|
+
|
573
|
+
@import "page/devise/registrations/new.scss";
|
574
|
+
|
575
|
+
@import "page/devise/sessions/new.scss";
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
.mw-md {
|
580
|
+
|
581
|
+
max-width: 576px;
|
582
|
+
|
583
|
+
}
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
.alert-notice {
|
592
|
+
|
593
|
+
@extend .alert-info;
|
594
|
+
|
595
|
+
}
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
.alert-alert {
|
600
|
+
|
601
|
+
@extend .alert-danger;
|
602
|
+
|
603
|
+
}
|
604
|
+
|
605
|
+
```
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
### application.html.haml
|
610
|
+
|
611
|
+
```
|
612
|
+
|
613
|
+
%body
|
614
|
+
|
615
|
+
//devise関連のページのみ最大の横幅を576pxとして、それ以外は別の横幅にする
|
616
|
+
|
617
|
+
//条件分岐で付与するクラスを付け替え
|
618
|
+
|
619
|
+
%div{:class => "container-fluid px-0 #{devise_controller? ? 'mw-md' : 'mw-xl'}"}
|
620
|
+
|
621
|
+
= yield
|
622
|
+
|
623
|
+
```
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
|
628
|
+
|
549
629
|
このようになっています。
|
550
630
|
|
551
631
|
どなたかお願いします。。。
|
4
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -58,11 +58,253 @@
|
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
+
### index.html.haml
|
62
|
+
|
63
|
+
|
64
|
+
|
61
65
|
```
|
62
66
|
|
67
|
+
.Main
|
68
|
+
|
69
|
+
.Main__devise
|
70
|
+
|
71
|
+
- if user_signed_in?
|
72
|
+
|
73
|
+
= link_to "ログアウト", destroy_user_session_path, method: :delete
|
74
|
+
|
75
|
+
= link_to "投稿する", new_card_path
|
76
|
+
|
77
|
+
- else
|
78
|
+
|
79
|
+
= icon("fas", "sign-in-alt")
|
80
|
+
|
81
|
+
= link_to "ログイン", new_user_session_path
|
82
|
+
|
83
|
+
= link_to "新規登録", new_user_registration_path
|
84
|
+
|
85
|
+
.Main__header
|
86
|
+
|
87
|
+
.Main__header__nav
|
88
|
+
|
89
|
+
%h1 エンジニアのための本
|
90
|
+
|
91
|
+
.hamburger
|
92
|
+
|
93
|
+
%span
|
94
|
+
|
95
|
+
%span
|
96
|
+
|
97
|
+
%span
|
98
|
+
|
99
|
+
%nav.nav-button
|
100
|
+
|
101
|
+
%ul.menu
|
102
|
+
|
103
|
+
%li
|
104
|
+
|
105
|
+
フロントエンド
|
106
|
+
|
107
|
+
%ul.sub
|
108
|
+
|
109
|
+
%li
|
110
|
+
|
111
|
+
= link_to "①HTML", card_category_path(:card_id ,1)
|
112
|
+
|
113
|
+
%li
|
114
|
+
|
115
|
+
= link_to "②CSS", card_category_path(:card_id, 2)
|
116
|
+
|
117
|
+
%li
|
118
|
+
|
119
|
+
= link_to "③JavaScript", card_category_path(:card_id, 3)
|
120
|
+
|
121
|
+
%li
|
122
|
+
|
123
|
+
バックエンド
|
124
|
+
|
125
|
+
%ul.sub
|
126
|
+
|
127
|
+
%li
|
128
|
+
|
129
|
+
= link_to "④Java", card_category_path(:card_id, 4)
|
130
|
+
|
131
|
+
%li
|
132
|
+
|
133
|
+
= link_to "⑤PHP", card_category_path(:card_id, 5)
|
134
|
+
|
135
|
+
%li
|
136
|
+
|
137
|
+
= link_to "⑥Python", card_category_path(:card_id, 6)
|
138
|
+
|
139
|
+
%li
|
140
|
+
|
141
|
+
= link_to "⑦Ruby", card_category_path(:card_id, 7)
|
142
|
+
|
143
|
+
= form_with(url: search_cards_path, local: true, method: :get, class: "search-top") do |f|
|
144
|
+
|
145
|
+
= f.text_field :keyword, placeholder: "検索", class: "search-top"
|
146
|
+
|
147
|
+
= f.submit "検索", class: "search-top"
|
148
|
+
|
149
|
+
.Main__body
|
150
|
+
|
151
|
+
.Main__body__left
|
152
|
+
|
153
|
+
.Main__body__left__top
|
154
|
+
|
155
|
+
フロントエンド
|
156
|
+
|
157
|
+
.Main__body__left__text
|
158
|
+
|
159
|
+
WebサービスやWebアプリケーションで直接ユーザーの
|
160
|
+
|
161
|
+
%br 目に触れる部分のことです。
|
162
|
+
|
163
|
+
フロントエンドの開発で利用する言語は主に、
|
164
|
+
|
165
|
+
HTMLやCSS,JavaScriptです。
|
166
|
+
|
167
|
+
.Main__body__left
|
168
|
+
|
169
|
+
.Main__body__left__top
|
170
|
+
|
171
|
+
バックエンド
|
172
|
+
|
173
|
+
.Main__body__left__text
|
174
|
+
|
175
|
+
サーバーサイドやデータベースのシステムなど、ユーザーの目に見えない部分のことです。
|
176
|
+
|
177
|
+
%br バックエンドの開発で利用する言語には、JavaやJavaScript、PHP、Python、Rubyといったプログラミング言語があります。
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
//フロントエンド、バックエンドの説明まで
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
.Content
|
186
|
+
|
187
|
+
.Content__like
|
188
|
+
|
189
|
+
%h2 オススメ一覧
|
190
|
+
|
191
|
+
.Content__like__end
|
192
|
+
|
193
|
+
フロントエンド編
|
194
|
+
|
195
|
+
//swiperの実装
|
196
|
+
|
197
|
+
.Content__like__end__container.swiper-container
|
198
|
+
|
199
|
+
.Content__like__end__container__wrapper.swiper-wrapper
|
200
|
+
|
201
|
+
.Content__like__end__container__wrapper__slide.swiper-slide
|
202
|
+
|
203
|
+
= link_to "https://amazon.co.jp/dp/4839956758/", class: "categorys-book" do
|
204
|
+
|
205
|
+
= image_tag "recommended/front1.jpg", class: "img"
|
206
|
+
|
207
|
+
.Content__like__end__container__wrapper__slide.swiper-slide
|
208
|
+
|
209
|
+
= link_to "https://amazon.co.jp/dp/4797398892/", class: "categorys-book" do
|
210
|
+
|
211
|
+
= image_tag "recommended/front2.jpg", class: "img"
|
212
|
+
|
213
|
+
.Content__like__end__container__wrapper__slide.swiper-slide
|
214
|
+
|
215
|
+
= link_to "https://amazon.co.jp/dp/4797383585", class: "categorys-book" do
|
216
|
+
|
217
|
+
= image_tag "recommended/front3.jpg", class: "img"
|
218
|
+
|
219
|
+
// pagination,buttonの色を青から白に変更
|
220
|
+
|
221
|
+
.Content__like__end__prev.swiper-button-prev.swiper-button-white
|
222
|
+
|
223
|
+
.Content__like__end__next.swiper-button-next.swiper-button-white
|
224
|
+
|
225
|
+
.Content__like__end__pagination.swiper-pagination.swiper-pagination-white
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
.Content__like__end
|
230
|
+
|
231
|
+
バックエンド編
|
232
|
+
|
233
|
+
//swiperの実装
|
234
|
+
|
235
|
+
.Content__like__end__container.swiper-container
|
236
|
+
|
237
|
+
.Content__like__end__container__wrapper.swiper-wrapper
|
238
|
+
|
239
|
+
.Content__like__end__container__wrapper__slide.swiper-slide
|
240
|
+
|
241
|
+
= link_to "https://amazon.co.jp/dp/4297114623", class: "categorys-book" do
|
242
|
+
|
243
|
+
= image_tag "recommended/back1.jpg", class: "img"
|
244
|
+
|
245
|
+
.Content__like__end__container__wrapper__slide.swiper-slide
|
246
|
+
|
247
|
+
= link_to "https://amazon.co.jp/dp/4295003867", class: "categorys-book" do
|
248
|
+
|
249
|
+
= image_tag "recommended/back2.jpg", class: "img"
|
250
|
+
|
251
|
+
.Content__like__end__container__wrapper__slide.swiper-slide
|
252
|
+
|
253
|
+
= link_to "https://amazon.co.jp/dp/B07Z63J7Z4", class: "categorys-book" do
|
254
|
+
|
255
|
+
= image_tag "recommended/back3.jpg", class: "img"
|
256
|
+
|
257
|
+
// pagination,buttonの色を青から白に変更
|
258
|
+
|
259
|
+
.Content__like__end__prev.swiper-button-prev.swiper-button-white
|
260
|
+
|
261
|
+
.Content__like__end__next.swiper-button-next.swiper-button-white
|
262
|
+
|
263
|
+
.Content__like__end__pagination.swiper-pagination.swiper-pagination-white
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
.Data
|
268
|
+
|
269
|
+
.Data__categorys
|
270
|
+
|
271
|
+
%h2 登録データ一覧
|
272
|
+
|
273
|
+
.Data__categorys__category
|
274
|
+
|
275
|
+
.Data__categorys__category__id
|
276
|
+
|
277
|
+
ID
|
278
|
+
|
279
|
+
.Data__categorys__category__title
|
280
|
+
|
281
|
+
Title
|
282
|
+
|
283
|
+
.Data__categorys__category__language
|
284
|
+
|
285
|
+
Language
|
286
|
+
|
287
|
+
= render partial: "card"
|
288
|
+
|
289
|
+
|
290
|
+
|
63
291
|
.Pagenation
|
64
292
|
|
293
|
+
.Pagenation__page
|
294
|
+
|
65
|
-
= paginate @cards
|
295
|
+
= paginate @cards
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
.New
|
300
|
+
|
301
|
+
.New__book
|
302
|
+
|
303
|
+
= link_to "新しい本の追加", new_card_path
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
66
308
|
|
67
309
|
```
|
68
310
|
|
3
リセットcssの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,6 +68,242 @@
|
|
68
68
|
|
69
69
|
|
70
70
|
|
71
|
+
### リセットcss
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
/*
|
78
|
+
|
79
|
+
TODO will need to remove settings on HTML since we can't namespace it.
|
80
|
+
|
81
|
+
TODO with the prefix, should I group by selector or property for weight savings?
|
82
|
+
|
83
|
+
*/
|
84
|
+
|
85
|
+
html{
|
86
|
+
|
87
|
+
color:#000;
|
88
|
+
|
89
|
+
background:#FFF;
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
/*
|
94
|
+
|
95
|
+
TODO remove settings on BODY since we can't namespace it.
|
96
|
+
|
97
|
+
*/
|
98
|
+
|
99
|
+
/*
|
100
|
+
|
101
|
+
TODO test putting a class on HEAD.
|
102
|
+
|
103
|
+
- Fails on FF.
|
104
|
+
|
105
|
+
*/
|
106
|
+
|
107
|
+
body,
|
108
|
+
|
109
|
+
div,
|
110
|
+
|
111
|
+
dl,
|
112
|
+
|
113
|
+
dt,
|
114
|
+
|
115
|
+
dd,
|
116
|
+
|
117
|
+
ul,
|
118
|
+
|
119
|
+
ol,
|
120
|
+
|
121
|
+
li,
|
122
|
+
|
123
|
+
h1,
|
124
|
+
|
125
|
+
h2,
|
126
|
+
|
127
|
+
h3,
|
128
|
+
|
129
|
+
h4,
|
130
|
+
|
131
|
+
h5,
|
132
|
+
|
133
|
+
h6,
|
134
|
+
|
135
|
+
pre,
|
136
|
+
|
137
|
+
code,
|
138
|
+
|
139
|
+
form,
|
140
|
+
|
141
|
+
fieldset,
|
142
|
+
|
143
|
+
legend,
|
144
|
+
|
145
|
+
input,
|
146
|
+
|
147
|
+
textarea,
|
148
|
+
|
149
|
+
p,
|
150
|
+
|
151
|
+
blockquote,
|
152
|
+
|
153
|
+
th,
|
154
|
+
|
155
|
+
td {
|
156
|
+
|
157
|
+
margin:0;
|
158
|
+
|
159
|
+
padding:0;
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
table {
|
164
|
+
|
165
|
+
border-collapse:collapse;
|
166
|
+
|
167
|
+
border-spacing:0;
|
168
|
+
|
169
|
+
}
|
170
|
+
|
171
|
+
fieldset,
|
172
|
+
|
173
|
+
img {
|
174
|
+
|
175
|
+
border:0;
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
/*
|
180
|
+
|
181
|
+
TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
|
182
|
+
|
183
|
+
*/
|
184
|
+
|
185
|
+
address,
|
186
|
+
|
187
|
+
caption,
|
188
|
+
|
189
|
+
cite,
|
190
|
+
|
191
|
+
code,
|
192
|
+
|
193
|
+
dfn,
|
194
|
+
|
195
|
+
em,
|
196
|
+
|
197
|
+
strong,
|
198
|
+
|
199
|
+
th,
|
200
|
+
|
201
|
+
var {
|
202
|
+
|
203
|
+
font-style:normal;
|
204
|
+
|
205
|
+
font-weight:normal;
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
ol,
|
212
|
+
|
213
|
+
ul {
|
214
|
+
|
215
|
+
list-style:none;
|
216
|
+
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
caption,
|
222
|
+
|
223
|
+
th {
|
224
|
+
|
225
|
+
text-align:left;
|
226
|
+
|
227
|
+
}
|
228
|
+
|
229
|
+
h1,
|
230
|
+
|
231
|
+
h2,
|
232
|
+
|
233
|
+
h3,
|
234
|
+
|
235
|
+
h4,
|
236
|
+
|
237
|
+
h5,
|
238
|
+
|
239
|
+
h6 {
|
240
|
+
|
241
|
+
font-size:100%;
|
242
|
+
|
243
|
+
font-weight:normal;
|
244
|
+
|
245
|
+
}
|
246
|
+
|
247
|
+
q:before,
|
248
|
+
|
249
|
+
q:after {
|
250
|
+
|
251
|
+
content:'';
|
252
|
+
|
253
|
+
}
|
254
|
+
|
255
|
+
abbr,
|
256
|
+
|
257
|
+
acronym {
|
258
|
+
|
259
|
+
border:0;
|
260
|
+
|
261
|
+
font-variant:normal;
|
262
|
+
|
263
|
+
}
|
264
|
+
|
265
|
+
/* to preserve line-height and selector appearance */
|
266
|
+
|
267
|
+
sup {
|
268
|
+
|
269
|
+
vertical-align:text-top;
|
270
|
+
|
271
|
+
}
|
272
|
+
|
273
|
+
sub {
|
274
|
+
|
275
|
+
vertical-align:text-bottom;
|
276
|
+
|
277
|
+
}
|
278
|
+
|
279
|
+
input,
|
280
|
+
|
281
|
+
textarea,
|
282
|
+
|
283
|
+
select {
|
284
|
+
|
285
|
+
font-family:inherit;
|
286
|
+
|
287
|
+
font-size:inherit;
|
288
|
+
|
289
|
+
font-weight:inherit;
|
290
|
+
|
291
|
+
*font-size:100%; /*to enable resizing for IE*/
|
292
|
+
|
293
|
+
}
|
294
|
+
|
295
|
+
/*because legend doesn't inherit in IE */
|
296
|
+
|
297
|
+
legend {
|
298
|
+
|
299
|
+
color:#000;
|
300
|
+
|
301
|
+
}
|
302
|
+
|
303
|
+
```
|
304
|
+
|
305
|
+
|
306
|
+
|
71
307
|
このようになっています。
|
72
308
|
|
73
309
|
どなたかお願いします。。。
|
2
文法の変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
display: flexが適用されてしまう
|
1
|
+
検証を見てみるとコードにないdisplay: flexが適用されてしまう
|
test
CHANGED
File without changes
|
1
エラーの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,18 @@
|
|
1
|
-
![イメージ説明](a4e10e9c46ebc2e054aed4d159d031e3.png)
|
1
|
+
![イメージ説明](a4e10e9c46ebc2e054aed4d159d031e3.png)
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
## 解決したいこと
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
ページネーションを中央に当てたい
|
10
|
+
|
11
|
+
text-align: centerを書いたが適用されずでした。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
### 現状
|
2
16
|
|
3
17
|
|
4
18
|
|