質問編集履歴

1

cssを追加しました

2018/08/17 03:45

投稿

Malas
Malas

スコア112

test CHANGED
File without changes
test CHANGED
@@ -38,6 +38,654 @@
38
38
 
39
39
 
40
40
 
41
+ ### posts.scss
42
+
43
+ ```
44
+
45
+ .posts-index-item {
46
+
47
+ padding: 20px 30px;
48
+
49
+ background-color: white;
50
+
51
+ overflow: hidden;
52
+
53
+ box-shadow: 0 2px 6px #c1ced7;
54
+
55
+ width:70%;
56
+
57
+ }
58
+
59
+
60
+
61
+ .post-left img {
62
+
63
+ width: 50px;
64
+
65
+ height: 50px;
66
+
67
+ border-radius: 40%;
68
+
69
+ box-shadow: 0 2px 6px #c1ced7;
70
+
71
+ object-fit: cover;
72
+
73
+ }
74
+
75
+
76
+
77
+ .post-user-name a {
78
+
79
+ font-weight: 600;
80
+
81
+ }
82
+
83
+
84
+
85
+ .post-user-name a:hover {
86
+
87
+ color: #3ecdc6;
88
+
89
+ }
90
+
91
+
92
+
93
+ .post-left {
94
+
95
+ float: left;
96
+
97
+ width: 10%;
98
+
99
+ }
100
+
101
+
102
+
103
+ .post-right {
104
+
105
+ float: left;
106
+
107
+ width: 90%;
108
+
109
+ padding-left: 25px;
110
+
111
+ text-align: left;
112
+
113
+ }
114
+
115
+
116
+
117
+ .posts-show form {
118
+
119
+ display: inline;
120
+
121
+ }
122
+
123
+
124
+
125
+ .posts-show-item {
126
+
127
+ padding: 30px;
128
+
129
+ background-color: white;
130
+
131
+ box-shadow: 0 2px 6px #c1ced7;
132
+
133
+ overflow: hidden;
134
+
135
+ }
136
+
137
+
138
+
139
+ .posts-show-item img {
140
+
141
+ width: 60px;
142
+
143
+ height: 60px;
144
+
145
+ border-radius: 40%;
146
+
147
+ box-shadow: 0 2px 6px #c1ced7;
148
+
149
+ vertical-align: middle;
150
+
151
+ object-fit: cover;
152
+
153
+ }
154
+
155
+
156
+
157
+ .posts-show-item .post-user-name a {
158
+
159
+ vertical-align: middle;
160
+
161
+ font-size: 24px;
162
+
163
+ margin-left: 15px;
164
+
165
+ }
166
+
167
+
168
+
169
+ .posts-show-item p {
170
+
171
+ font-size: 24px;
172
+
173
+ margin: 20px 0;
174
+
175
+ }
176
+
177
+
178
+
179
+ .post-time {
180
+
181
+ color: #8899a6;
182
+
183
+ margin-bottom: 10px;
184
+
185
+ }
186
+
187
+
188
+
189
+ .post-menus {
190
+
191
+ float: right;
192
+
193
+ }
194
+
195
+
196
+
197
+ .post-menus a, .post-menus input {
198
+
199
+ color: #8899a6;
200
+
201
+ text-decoration: underline;
202
+
203
+ font-size: 14px;
204
+
205
+ }
206
+
207
+
208
+
209
+ .posts-new textarea {
210
+
211
+ font-size: 20px;
212
+
213
+ padding: 10px;
214
+
215
+ min-height: 140px;
216
+
217
+ border: 1px solid rgb(216, 218, 223);
218
+
219
+ resize: none;
220
+
221
+ }
222
+
223
+
224
+
225
+ .posts-new textarea::-webkit-input-placeholder {
226
+
227
+ font-size: 24px;
228
+
229
+ opacity: 0.5;
230
+
231
+ }
232
+
233
+ ```
234
+
235
+ ###home.scss
236
+
237
+ ```
238
+
239
+ * {
240
+
241
+ box-sizing: border-box;
242
+
243
+ }
244
+
245
+
246
+
247
+ html {
248
+
249
+ font: 100%/1.5 'Avenir Next', 'Hiragino Sans', sans-serif;
250
+
251
+ line-height: 1.7;
252
+
253
+ letter-spacing: 1px;
254
+
255
+ }
256
+
257
+
258
+
259
+ ul, li {
260
+
261
+ list-style-type: none;
262
+
263
+ padding: 0;
264
+
265
+ margin: 0;
266
+
267
+ }
268
+
269
+
270
+
271
+ a {
272
+
273
+ text-decoration: none;
274
+
275
+ color: #2d3133;
276
+
277
+ font-size: 14px;
278
+
279
+ }
280
+
281
+
282
+
283
+ h1, h2, h3, h4, h5, h6, p {
284
+
285
+ margin: 0;
286
+
287
+ }
288
+
289
+ input {
290
+
291
+ background-color: transparent;
292
+
293
+ outline-width: 0;
294
+
295
+ }
296
+
297
+
298
+
299
+ form input[type="submit"] {
300
+
301
+ border: none;
302
+
303
+ cursor: pointer;
304
+
305
+ }
306
+
307
+
308
+
309
+ body {
310
+
311
+ color: #2d3133;
312
+
313
+ background-color: #3ecdc6;
314
+
315
+ margin: 0;
316
+
317
+ min-height: 1vh;
318
+
319
+ }
320
+
321
+
322
+
323
+ .main {
324
+
325
+ position: absolute;
326
+
327
+ top: 64px;
328
+
329
+ width: 100%;
330
+
331
+ height: auto;
332
+
333
+ min-height: 100%;
334
+
335
+ background-color: #f5f8fa;
336
+
337
+ }
338
+
339
+
340
+
341
+ .container {
342
+
343
+ max-width: 600px;
344
+
345
+ margin: 60px auto;
346
+
347
+ padding-left: 15px;
348
+
349
+ padding-right: 15px;
350
+
351
+ clear: both;
352
+
353
+ }
354
+
355
+
356
+
357
+ header {
358
+
359
+ height: 64px;
360
+
361
+ position: absolute;
362
+
363
+ z-index: 1;
364
+
365
+ width: 100%;
366
+
367
+ }
368
+
369
+
370
+
371
+ .header-logo {
372
+
373
+ float: left;
374
+
375
+ padding-left: 20px;
376
+
377
+ color: white;
378
+
379
+ font-size: 22px;
380
+
381
+ line-height: 64px;
382
+
383
+ }
384
+
385
+
386
+
387
+ .header-logo a{
388
+
389
+ color: white;
390
+
391
+ font-size: 22px;
392
+
393
+ }
394
+
395
+
396
+
397
+ .header-menus {
398
+
399
+ float: right;
400
+
401
+ padding-right: 20px;
402
+
403
+ }
404
+
405
+
406
+
407
+ .header-menus li {
408
+
409
+ float: left;
410
+
411
+ line-height: 64px;
412
+
413
+ font-size: 13px;
414
+
415
+ color: white;
416
+
417
+ padding-left: 15px;
418
+
419
+ }
420
+
421
+
422
+
423
+ .header-menus a {
424
+
425
+ float: left;
426
+
427
+ font-size: 13px;
428
+
429
+ color: white;
430
+
431
+ }
432
+
433
+
434
+
435
+ .header-menus .fa {
436
+
437
+ padding-right: 5px;
438
+
439
+ }
440
+
441
+
442
+
443
+ .header-menus input[type="submit"] {
444
+
445
+ padding: 0 20px;
446
+
447
+ float: left;
448
+
449
+ line-height: 64px;
450
+
451
+ color: white;
452
+
453
+ margin: 0;
454
+
455
+ font-size: 13px;
456
+
457
+ }
458
+
459
+
460
+
461
+ .top-main {
462
+
463
+ padding: 200px 0 100px;
464
+
465
+ text-align: center;
466
+
467
+ position: absolute;
468
+
469
+ top: 0;
470
+
471
+ width: 100%;
472
+
473
+ height: auto;
474
+
475
+ min-height: 100%;
476
+
477
+ color: white;
478
+
479
+ background-color: #3ecdc6;
480
+
481
+ background-repeat: no-repeat;
482
+
483
+ background-position: center 50%;
484
+
485
+ background-size: cover;
486
+
487
+ background-image:url("../top.png");
488
+
489
+ }
490
+
491
+
492
+
493
+ .top-message {
494
+
495
+ position: relative;
496
+
497
+ }
498
+
499
+
500
+
501
+ .top-main h2 {
502
+
503
+ font-size: 70px;
504
+
505
+ font-weight: 500;
506
+
507
+ line-height: 1.3;
508
+
509
+ -webkit-font-smoothing: antialiased;
510
+
511
+ margin-bottom: 20px;
512
+
513
+ color:gold;
514
+
515
+ font-weight:bold;
516
+
517
+ }
518
+
519
+
520
+
521
+ .top-main p {
522
+
523
+ font-size: 24px;
524
+
525
+ color:gold;
526
+
527
+ font-weight:bold;
528
+
529
+ }
530
+
531
+
532
+
533
+ .about-main {
534
+
535
+ padding: 180px 8% 0;
536
+
537
+ color: white;
538
+
539
+ }
540
+
541
+
542
+
543
+ .about-main h2 {
544
+
545
+ font-size: 64px;
546
+
547
+ font-weight: 500;
548
+
549
+ line-height: 1.4;
550
+
551
+ }
552
+
553
+
554
+
555
+ .about-main p {
556
+
557
+ font-weight: 200;
558
+
559
+ font-size: 20px;
560
+
561
+ }
562
+
563
+
564
+
565
+ .about-img {
566
+
567
+ width: 84%;
568
+
569
+ }
570
+
571
+
572
+
573
+ .form {
574
+
575
+ max-width: 600px;
576
+
577
+ margin: 0 auto;
578
+
579
+ background-color: white;
580
+
581
+ box-shadow: 0 2px 6px #c1ced7;
582
+
583
+ }
584
+
585
+
586
+
587
+ .form-heading {
588
+
589
+ font-weight: 300;
590
+
591
+ margin: 60px 0 20px;
592
+
593
+ font-size: 48px;
594
+
595
+ color: #bcc8d4;
596
+
597
+ }
598
+
599
+
600
+
601
+ .form-body {
602
+
603
+ padding: 30px;
604
+
605
+ }
606
+
607
+
608
+
609
+ .form-error {
610
+
611
+ color: #ff4d75;
612
+
613
+ }
614
+
615
+
616
+
617
+ .form input {
618
+
619
+ width: 100%;
620
+
621
+ border: 1px solid #d8dadf;
622
+
623
+ padding: 10px;
624
+
625
+ color: #57575f;
626
+
627
+ font-size: 16px;
628
+
629
+ letter-spacing: 2px;
630
+
631
+ border-radius: 2px;
632
+
633
+ }
634
+
635
+
636
+
637
+ .form textarea {
638
+
639
+ width: 100%;
640
+
641
+ min-height: 110px;
642
+
643
+ font-size: 16px;
644
+
645
+ letter-spacing: 2px;
646
+
647
+ }
648
+
649
+
650
+
651
+ .form input[type="submit"] {
652
+
653
+ background-color: #3ecdc6;
654
+
655
+ color: white;
656
+
657
+ cursor: pointer;
658
+
659
+ font-weight: 300;
660
+
661
+ width: 120px;
662
+
663
+ border-radius: 2px;
664
+
665
+ margin-top: 8px;
666
+
667
+ margin-bottom: 0;
668
+
669
+ float: right;
670
+
671
+ }
672
+
673
+
674
+
675
+ .form-body:after {
676
+
677
+ content: '';
678
+
679
+ display: table;
680
+
681
+ clear: both;
682
+
683
+ }
684
+
685
+ ```
686
+
687
+
688
+
41
689
  ### 試したこと
42
690
 
43
691