|
| 1 | +*, |
| 2 | +*:after, |
| 3 | +*:before { |
| 4 | + box-sizing: inherit; |
| 5 | +} |
| 6 | + |
| 7 | +html { |
| 8 | + box-sizing: border-box; |
| 9 | + font-size: 62.5%; |
| 10 | + scroll-behavior: smooth; |
| 11 | +} |
| 12 | + |
| 13 | +body { |
| 14 | + color: $fg-color; |
| 15 | + background-color: $bg-color; |
| 16 | + font-family: $font-family; |
| 17 | + font-size: 1.8em; |
| 18 | + font-weight: 400; |
| 19 | + line-height: 1.8em; |
| 20 | + text-align: justify; |
| 21 | + |
| 22 | + @media only screen and (max-width: 768px) { |
| 23 | + font-size: 1.6em; |
| 24 | + line-height: 1.6em; |
| 25 | + } |
| 26 | +} |
| 27 | + |
| 28 | +a { |
| 29 | + font-weight: 500; |
| 30 | + color: $link-color; |
| 31 | + text-decoration: none; |
| 32 | + transition: all 0.25s ease-in; |
| 33 | + |
| 34 | + &:focus, |
| 35 | + &:hover { |
| 36 | + text-decoration: underline; |
| 37 | + } |
| 38 | +} |
| 39 | + |
| 40 | +p { |
| 41 | + margin: 1rem 0 1rem 0; |
| 42 | +} |
| 43 | + |
| 44 | +h1, |
| 45 | +h2, |
| 46 | +h3, |
| 47 | +h4, |
| 48 | +h5, |
| 49 | +h6 { |
| 50 | + font-family: $font-family; |
| 51 | + font-weight: 600; |
| 52 | + color: $alt-fg-color; |
| 53 | + margin: 2rem 0 2rem 0; |
| 54 | + |
| 55 | + &:hover .heading-link { |
| 56 | + visibility: visible; |
| 57 | + } |
| 58 | + |
| 59 | + .heading-link { |
| 60 | + color: $link-color; |
| 61 | + font-weight: inherit; |
| 62 | + text-decoration: none; |
| 63 | + font-size: 80%; |
| 64 | + visibility: hidden; |
| 65 | + } |
| 66 | + |
| 67 | + .title-link { |
| 68 | + color: inherit; |
| 69 | + font-weight: inherit; |
| 70 | + text-decoration: none; |
| 71 | + } |
| 72 | +} |
| 73 | + |
| 74 | +h1 { |
| 75 | + font-size: 3.2rem; |
| 76 | + line-height: 3.6rem; |
| 77 | + |
| 78 | + @media only screen and (max-width: 768px) { |
| 79 | + font-size: 3rem; |
| 80 | + line-height: 3.4rem; |
| 81 | + } |
| 82 | +} |
| 83 | + |
| 84 | +h2 { |
| 85 | + font-size: 2.8rem; |
| 86 | + line-height: 3.2rem; |
| 87 | + |
| 88 | + @media only screen and (max-width: 768px) { |
| 89 | + font-size: 2.6rem; |
| 90 | + line-height: 3rem; |
| 91 | + } |
| 92 | +} |
| 93 | + |
| 94 | +h3 { |
| 95 | + font-size: 2.4rem; |
| 96 | + line-height: 2.8rem; |
| 97 | + |
| 98 | + @media only screen and (max-width: 768px) { |
| 99 | + font-size: 2.2rem; |
| 100 | + line-height: 2.6rem; |
| 101 | + } |
| 102 | +} |
| 103 | + |
| 104 | +h4 { |
| 105 | + font-size: 2.2rem; |
| 106 | + line-height: 2.6rem; |
| 107 | + |
| 108 | + @media only screen and (max-width: 768px) { |
| 109 | + font-size: 2rem; |
| 110 | + line-height: 2.4rem; |
| 111 | + } |
| 112 | +} |
| 113 | + |
| 114 | +h5 { |
| 115 | + font-size: 2rem; |
| 116 | + line-height: 2.4rem; |
| 117 | + |
| 118 | + @media only screen and (max-width: 768px) { |
| 119 | + font-size: 1.8rem; |
| 120 | + line-height: 2.2rem; |
| 121 | + } |
| 122 | +} |
| 123 | + |
| 124 | +h6 { |
| 125 | + font-size: 1.8rem; |
| 126 | + line-height: 2.2rem; |
| 127 | + |
| 128 | + @media only screen and (max-width: 768px) { |
| 129 | + font-size: 1.6rem; |
| 130 | + line-height: 2rem; |
| 131 | + } |
| 132 | +} |
| 133 | + |
| 134 | +b, |
| 135 | +strong { |
| 136 | + font-weight: 700; |
| 137 | +} |
| 138 | + |
| 139 | +small { |
| 140 | + font-size: 70%; |
| 141 | +} |
| 142 | + |
| 143 | + |
| 144 | +.highlight>div, |
| 145 | +.highlight>pre { |
| 146 | + margin: 2rem 0 2rem; |
| 147 | + padding: 2rem; |
| 148 | + border-radius: 1rem; |
| 149 | + background-color: $code-bg-color-dark !important; |
| 150 | +} |
| 151 | + |
| 152 | +pre { |
| 153 | + display: block; |
| 154 | + font-family: $code-font-family; |
| 155 | + font-size: 1.6rem; |
| 156 | + font-weight: 400; |
| 157 | + line-height: 2.6rem; |
| 158 | + overflow-x: auto; |
| 159 | + margin: 0; |
| 160 | + position: relative; |
| 161 | + |
| 162 | + code { |
| 163 | + display: inline-block; |
| 164 | + background-color: inherit; |
| 165 | + color: inherit; |
| 166 | + } |
| 167 | + |
| 168 | + .copy-code { |
| 169 | + display: none; |
| 170 | + padding: 1rem; |
| 171 | + position:absolute; |
| 172 | + right:0; |
| 173 | + top: 1rem; |
| 174 | + margin-right: 1rem; |
| 175 | + color: $bg-color; |
| 176 | + background: $code-copy-button; |
| 177 | + user-select: none; |
| 178 | + border: 0; |
| 179 | + border-radius: 0.5rem; |
| 180 | + } |
| 181 | +} |
| 182 | + |
| 183 | +.copy-code:hover, |
| 184 | +.copy-code:focus, |
| 185 | +.copy-code:active { |
| 186 | + background: darken($code-copy-button, 5%); |
| 187 | + cursor: pointer; |
| 188 | +} |
| 189 | + |
| 190 | + |
| 191 | +div.highlight:hover .copy-code, |
| 192 | +pre:hover .copy-code { |
| 193 | + display: block; |
| 194 | +} |
| 195 | + |
| 196 | +code { |
| 197 | + font-family: $code-font-family; |
| 198 | + font-size: 1.5rem; |
| 199 | + font-weight: 400; |
| 200 | + background-color: $font-highlight-bg-color; |
| 201 | + color: $font-highlight-color; |
| 202 | + border-radius: 0.6rem; |
| 203 | + padding: 0.3rem 0.6rem; |
| 204 | +} |
| 205 | + |
| 206 | +blockquote { |
| 207 | + border-left: 3px solid $gray-800 !important; |
| 208 | + padding-left: 2rem; |
| 209 | + font-weight: 400; |
| 210 | + font-size: normal; |
| 211 | + margin-inline-start: 0; |
| 212 | +} |
| 213 | + |
| 214 | +table { |
| 215 | + width: 100%; |
| 216 | + border-collapse: collapse; |
| 217 | + border-spacing: 0; |
| 218 | + overflow-x: auto; |
| 219 | + word-break: keep-all; |
| 220 | + margin: 0 auto 3rem auto; |
| 221 | + display: block; |
| 222 | +} |
| 223 | + |
| 224 | +table th, |
| 225 | +table:not(.highlighttable, .highlight table, .gist .highlight) td { |
| 226 | + padding: 1rem 1rem; |
| 227 | + line-height: 1.5; |
| 228 | + border-bottom: 1px dashed $gray-400; |
| 229 | +} |
| 230 | + |
| 231 | +table th { |
| 232 | + font-size: 1.5rem; |
| 233 | + text-align: start; |
| 234 | + border-bottom: 1px solid $gray-400; |
| 235 | +} |
| 236 | + |
| 237 | +img { |
| 238 | + max-width: 100%; |
| 239 | +} |
0 commit comments