| 1 | @import url('https://fonts.googleapis.com/css?family=Fira+Sans:400,400i,700,700i&display=swap'); |
| 2 | @import url('https://fonts.googleapis.com/css?family=Fira+Mono&display=swap'); |
| 3 | body { |
| 4 | font-family: 'Fira Sans', sans-serif; |
| 5 | text-rendering: optimizeLegibility; |
| 6 | color: #252525; |
| 7 | padding: 0; |
| 8 | margin: 0; |
| 9 | box-sizing: border-box; |
| 10 | } |
| 11 | a { |
| 12 | color: #0077a4; |
| 13 | } |
| 14 | code { |
| 15 | font-family: 'Fira Mono', monospace; |
| 16 | } |
| 17 | .gist .gist-file { |
| 18 | overflow: auto; |
| 19 | margin: 0; |
| 20 | } |
| 21 | #copyright { |
| 22 | padding: 20px 0; |
| 23 | } |
| 24 |
|
| 25 | hr { |
| 26 | border-color: #eee; |
| 27 | } |
| 28 |
|
| 29 | .blog-page { |
| 30 | width: 100%; |
| 31 | } |
| 32 | .blog-center { |
| 33 | max-width: 700px; |
| 34 | padding: 2em 2.5em; |
| 35 | margin: 0 auto; |
| 36 | font-size: 1em; |
| 37 | line-height: 1.5; |
| 38 | background-color: #fff; |
| 39 | } |
| 40 |
|
| 41 | .blog-center h1 { |
| 42 | margin-top:0; |
| 43 | } |
| 44 | .blog-center h2 { |
| 45 | margin-top:1em; |
| 46 | margin-bottom:0.25em; |
| 47 | } |
| 48 | .blog-center h2 a { |
| 49 | color: #252525; |
| 50 | text-decoration: none; |
| 51 | } |
| 52 | .blog-center h2 a:hover { |
| 53 | text-decoration: underline; |
| 54 | } |
| 55 | .blog-center p, ul { |
| 56 | margin-top:0; |
| 57 | margin-bottom:1em; |
| 58 | } |
| 59 |
|
| 60 | .blog-banner { |
| 61 | width:100%; |
| 62 | height: 40vh; |
| 63 | background-size: cover; |
| 64 | background-position: center; |
| 65 | margin: 0; |
| 66 | user-select: none; |
| 67 | transition: transform 1s linear; |
| 68 | } |
| 69 | .blog-banner.thumb { |
| 70 | height: 250px; |
| 71 | } |
| 72 |
|
| 73 | h1.blog-top-1 { |
| 74 | margin-top:1em; |
| 75 | margin-bottom:0; |
| 76 | } |
| 77 | p.blog-top-2 { |
| 78 | margin-top:0; |
| 79 | } |
| 80 | i.blog-readtime { |
| 81 | margin-left: 10px; |
| 82 | } |
| 83 |
|
| 84 | .block { |
| 85 | width: 760px; |
| 86 | display: block; |
| 87 | margin: 10px -30px 16px -30px; |
| 88 | } |
| 89 | .block img { |
| 90 | max-width: 100%; |
| 91 | max-height: 500px; |
| 92 | margin: 0 auto; |
| 93 | display: block; |
| 94 | } |
| 95 |
|
| 96 | .blog-listing { |
| 97 | box-shadow: 0 4px 8px 0 #b5b5b5; |
| 98 | border-radius: 10px; |
| 99 | margin-bottom: 2em; |
| 100 | transition: box-shadow 100ms; |
| 101 | } |
| 102 | .blog-listing .blog-top-1 { |
| 103 | margin-top: 0; |
| 104 | } |
| 105 | .blog-listing .blog-banner { |
| 106 | border-radius: 10px 10px 0 0; |
| 107 | } |
| 108 | .blog-listing:hover { |
| 109 | box-shadow: 0 4px 8px 0 #959595; |
| 110 | } |
| 111 | .blog-listing-container { |
| 112 | padding:1em; |
| 113 | } |
| 114 |
|
| 115 | @media (max-width: 840px) { |
| 116 | .blog-center { |
| 117 | padding: 1em; |
| 118 | } |
| 119 | .block { |
| 120 | width: 100%; |
| 121 | margin: 10px 0 10px 0; |
| 122 | } |
| 123 | .blog-banner, .blog-banner.thumb { |
| 124 | height: 40vw; |
| 125 | } |
| 126 | .blog-img-right, .blog-img-left { |
| 127 | max-width: 50%; |
| 128 | } |
| 129 | } |
| 130 |
|