|
| 1 | +:root { |
| 2 | + --baseFontSize: 18px; |
| 3 | + --mediumFontSize: 16px; |
| 4 | + --smallFontSize: 12px; |
| 5 | + --fontFamilySans: Roboto, sans-serif, |
| 6 | + "Segoe UI Emoji", "Segoe UI Symbol"; |
| 7 | + --fontFamilyMono: "Roboto Mono", monospace; |
| 8 | + --textColor: rgba(14, 30, 37, 0.87); |
| 9 | + --borderColor: #e9ebeb; |
| 10 | + --accentColor: #00ad9f; |
| 11 | +} |
| 12 | + |
| 13 | +body { |
| 14 | + font-family: var(--fontFamilySans); |
| 15 | + font-size: var(--baseFontSize); |
| 16 | + line-height: 1.5; |
| 17 | + max-width: 40em; |
| 18 | + padding: 1em; |
| 19 | + margin: auto; |
| 20 | + background: white; |
| 21 | + color: var(--textColor); |
| 22 | + counter-reset: example; |
| 23 | + -moz-osx-font-smoothing: grayscale; |
| 24 | + -webkit-font-smoothing: antialiased; |
| 25 | +} |
| 26 | + |
| 27 | +.footer { |
| 28 | + position: fixed; |
| 29 | + left: 0; |
| 30 | + bottom: 0; |
| 31 | + width: 100%; |
| 32 | + background-color: #9ab; |
| 33 | + color: white; |
| 34 | + text-align: center; |
| 35 | + font-weight: 300; |
| 36 | +} |
| 37 | + |
| 38 | +h1, |
| 39 | +h2, |
| 40 | +h3 { |
| 41 | + line-height: 1.2; |
| 42 | + margin-top: 1.5em; |
| 43 | + margin-bottom: 0; |
| 44 | + font-weight: 500; |
| 45 | +} |
| 46 | + |
| 47 | +h1 { |
| 48 | + font-size: 2em; |
| 49 | +} |
| 50 | + |
| 51 | +h2 { |
| 52 | + font-size: 1.375em; |
| 53 | + margin-top: 3em; |
| 54 | +} |
| 55 | + |
| 56 | +h3 { |
| 57 | + font-size: 1.125em; |
| 58 | +} |
| 59 | + |
| 60 | +p { |
| 61 | + margin: 1em 0 1.5em; |
| 62 | +} |
| 63 | + |
| 64 | +a { |
| 65 | + color: inherit; |
| 66 | + text-decoration: underline; |
| 67 | +} |
| 68 | + |
| 69 | +article { |
| 70 | + counter-increment: example; |
| 71 | +} |
| 72 | + |
| 73 | +article h2::before { |
| 74 | + content: counter(example) ". "; |
| 75 | +} |
| 76 | + |
| 77 | +ul { |
| 78 | + padding-left: 1.25em; |
| 79 | + list-style: disc outside; |
| 80 | +} |
| 81 | + |
| 82 | +ol { |
| 83 | + list-style: none; |
| 84 | + padding-left: 0; |
| 85 | + counter-reset: step; |
| 86 | +} |
| 87 | + |
| 88 | +ol li::before { |
| 89 | + counter-increment: step; |
| 90 | + content: counter(step) ". "; |
| 91 | + float: left; |
| 92 | + margin-right: 0.3em; |
| 93 | +} |
| 94 | + |
| 95 | +input { |
| 96 | + box-sizing: border-box; |
| 97 | + width: 100%; |
| 98 | + margin-top: 0.5em; |
| 99 | + padding: 0 0.5em; |
| 100 | + height: 2.5em; |
| 101 | + line-height: 2.5; |
| 102 | + border: 2px solid var(--borderColor); |
| 103 | + border-radius: 4px; |
| 104 | + font-weight: bold; |
| 105 | +} |
| 106 | + |
| 107 | +button, |
| 108 | +.button { |
| 109 | + box-sizing: border-box; |
| 110 | + display: inline-block; |
| 111 | + box-shadow: 0 4px 6px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.08); |
| 112 | + border: 0; |
| 113 | + background: var(--accentColor); |
| 114 | + color: white; |
| 115 | + border-radius: 4px; |
| 116 | + font-size: 1em; |
| 117 | + font-weight: 500; |
| 118 | + height: 2.5em; |
| 119 | + line-height: 2.5; |
| 120 | + padding: 0 1em; |
| 121 | + min-width: 10em; |
| 122 | + text-align: center; |
| 123 | + cursor: pointer; |
| 124 | + outline: none; |
| 125 | + text-decoration: none; |
| 126 | + transform: translateY(0); |
| 127 | + transition: all .15s ease; |
| 128 | +} |
| 129 | +.smallbutton { |
| 130 | + font-size: .75em; |
| 131 | + font-weight: 400; |
| 132 | + height: 2em; |
| 133 | + line-height: 2; |
| 134 | +} |
| 135 | + |
| 136 | +button:focus, |
| 137 | +button:hover { |
| 138 | + box-shadow: 0 7px 14px rgba(0,0,0,.1), 0 3px 6px rgba(0,0,0,.08); |
| 139 | + transform: translateY(-1px); |
| 140 | +} |
| 141 | + |
| 142 | +form { |
| 143 | + max-width: 20em; |
| 144 | +} |
| 145 | + |
| 146 | +pre, |
| 147 | +code { |
| 148 | +/* font-family: var(--fontFamilyMono); */ |
| 149 | + font-size: 14px; |
| 150 | + background-color: #fafafa; |
| 151 | + border-radius: 4px; |
| 152 | +} |
| 153 | + |
| 154 | +code { |
| 155 | + padding: 0.2em 0.4em; |
| 156 | +} |
| 157 | + |
| 158 | +pre { |
| 159 | + padding: 1em; |
| 160 | + overflow: auto; |
| 161 | +} |
| 162 | + |
| 163 | +pre code { |
| 164 | + font-size: 100%; |
| 165 | + background: transparent; |
| 166 | + padding: 0; |
| 167 | + border: 0; |
| 168 | +} |
| 169 | + |
| 170 | +code .token { |
| 171 | + padding: 0; |
| 172 | + margin: 0; |
| 173 | +} |
| 174 | + |
| 175 | +.language-php .token.operator, |
| 176 | +code .token.atrule, |
| 177 | +code .token.keyword { |
| 178 | + color: #6772e5; |
| 179 | +} |
| 180 | + |
| 181 | +code.language-markup .token.namespace, |
| 182 | +code .token.attr-name, |
| 183 | +code .token.selector, |
| 184 | +code .token.tag, |
| 185 | +code .token.tag * { |
| 186 | + color: #0075d6; |
| 187 | +} |
| 188 | + |
| 189 | +code .token.attr-name { |
| 190 | + font-style: italic; |
| 191 | +} |
| 192 | + |
| 193 | +code .token.comment { |
| 194 | + color: #91a2b0; |
| 195 | +} |
| 196 | + |
| 197 | +code.language-url, |
| 198 | +code .token.function, |
| 199 | +code .token.url { |
| 200 | + color: #3297d3; |
| 201 | +} |
| 202 | + |
| 203 | +.language-ruby .token.constant + .token.punctuation, |
| 204 | +.language-ruby .token.constant + .token.punctuation + .token.symbol, |
| 205 | +code .token.boolean, |
| 206 | +code .token.builtin, |
| 207 | +code .token.class-name, |
| 208 | +code .token.constant, |
| 209 | +code .token.namespace { |
| 210 | + color: #2191ef; |
| 211 | +} |
| 212 | + |
| 213 | +code .token.number { |
| 214 | + color: #fa755a; |
| 215 | +} |
| 216 | + |
| 217 | +.language-bash .token.function, |
| 218 | +code .token.curl, |
| 219 | +code .token.option, |
| 220 | +code .token.variable { |
| 221 | + color: teal; |
| 222 | +} |
| 223 | + |
| 224 | +.language-bash .token.option, |
| 225 | +code.language-css .property, |
| 226 | +code .token.parameter, |
| 227 | +code .token.symbol { |
| 228 | + color: #d14; |
| 229 | +} |
| 230 | + |
| 231 | +code.language-html .token.attr-value > .punctuation:not(:first-child), |
| 232 | +code.language-markup .token.attr-value > .punctuation:not(:first-child), |
| 233 | +code .token.attr-value, |
| 234 | +code .token.macro, |
| 235 | +code .token.string, |
| 236 | +code .token.value { |
| 237 | + color: #159570; |
| 238 | +} |
| 239 | + |
| 240 | +code .token.macro .keyword { |
| 241 | + color: #064508; |
| 242 | +} |
| 243 | + |
| 244 | +#snackbar { |
| 245 | + visibility: hidden; |
| 246 | + min-width: 250px; |
| 247 | + margin-left: -125px; |
| 248 | + background-color: #285; |
| 249 | + color: #fff; |
| 250 | + text-align: center; |
| 251 | + border-radius: 2px; |
| 252 | + padding: 16px; |
| 253 | + position: fixed; |
| 254 | + z-index: 1; |
| 255 | + left: 50%; |
| 256 | + bottom: 30px; |
| 257 | + font-size: 19px; |
| 258 | +} |
| 259 | + |
| 260 | +#snackbar.show { |
| 261 | + visibility: visible; |
| 262 | + -webkit-animation: fadein 0.5s, fadeout 0.5s 3.5s; |
| 263 | + animation: fadein 0.5s, fadeout 0.5s 3.5s; |
| 264 | +} |
| 265 | + |
| 266 | +#slackthing { |
| 267 | + visibility: hidden; |
| 268 | + min-width: 70px; |
| 269 | + margin-left: -50px; |
| 270 | + background-color: #fff; |
| 271 | + color: #fff; |
| 272 | + padding: 6px; |
| 273 | + position: fixed; |
| 274 | + z-index: 1; |
| 275 | + left: 10%; |
| 276 | + bottom: 30px; |
| 277 | +} |
| 278 | + |
| 279 | +#slackthing.show { |
| 280 | + visibility: visible; |
| 281 | + -webkit-animation: fadein 0.5s, fadeout 0.5s 2.0s; |
| 282 | + animation: fadein 0.5s, fadeout 0.5s 2.0s; |
| 283 | +} |
| 284 | + |
| 285 | +@-webkit-keyframes fadein { |
| 286 | + from {bottom: 0; opacity: 0;} |
| 287 | + to {bottom: 30px; opacity: 1;} |
| 288 | +} |
| 289 | + |
| 290 | +@keyframes fadein { |
| 291 | + from {bottom: 0; opacity: 0;} |
| 292 | + to {bottom: 30px; opacity: 1;} |
| 293 | +} |
| 294 | + |
| 295 | +@-webkit-keyframes fadeout { |
| 296 | + from {bottom: 30px; opacity: 1;} |
| 297 | + to {bottom: 0; opacity: 0;} |
| 298 | +} |
| 299 | + |
| 300 | +@keyframes fadeout { |
| 301 | + from {bottom: 30px; opacity: 1;} |
| 302 | + to {bottom: 0; opacity: 0;} |
| 303 | +} |
| 304 | + |
| 305 | +.rotate-center { |
| 306 | + -webkit-animation: rotate-center 0.6s ease-in-out both; |
| 307 | + animation: rotate-center 0.6s ease-in-out both; |
| 308 | +} |
| 309 | + |
| 310 | +/* ---------------------------------------------- |
| 311 | + * Generated by Animista on 2019-4-30 7:30:7 |
| 312 | + * w: http://animista.net, t: @cssanimista |
| 313 | + * ---------------------------------------------- */ |
| 314 | + |
| 315 | +/** |
| 316 | + * ---------------------------------------- |
| 317 | + * animation rotate-center |
| 318 | + * ---------------------------------------- |
| 319 | + */ |
| 320 | +@-webkit-keyframes rotate-center { |
| 321 | + 0% { |
| 322 | + -webkit-transform: rotate(0); |
| 323 | + transform: rotate(0); |
| 324 | + } |
| 325 | + 100% { |
| 326 | + -webkit-transform: rotate(360deg); |
| 327 | + transform: rotate(360deg); |
| 328 | + } |
| 329 | +} |
| 330 | +@keyframes rotate-center { |
| 331 | + 0% { |
| 332 | + -webkit-transform: rotate(0); |
| 333 | + transform: rotate(0); |
| 334 | + } |
| 335 | + 100% { |
| 336 | + -webkit-transform: rotate(360deg); |
| 337 | + transform: rotate(360deg); |
| 338 | + } |
| 339 | +} |
0 commit comments