github.com/99designs/gqlgen@v0.17.45/docs/static/main.css (about) 1 :root { 2 --font-text: 'Roboto', sans-serif; 3 --font-heading: 'Work Sans', sans-serif; 4 --font-code: 'Source Code Pro', monospace; 5 6 --main-bg-color: coral; 7 8 --color-link: #336699; 9 --color-text: #556; 10 11 --color-heading-text: #445; 12 --color-heading-background: #e9ebed; 13 14 --color-nav-text: #eee; 15 --color-nav-background: #0A215C; 16 --color-nav-active: #284578; 17 18 --color-anchor-default: #DDD; 19 --color-anchor-hover: #666; 20 21 --color-code-text: #445; 22 --color-code-background: #f5f9fc; 23 24 --color-blockquote-background: #fffaf3; 25 --color-blockquote-highlight: rgba(0, 0, 0, 0.1); 26 27 --margin-default: 15px; 28 } 29 30 html, body, div, span, applet, object, iframe, 31 h1, h2, h3, h4, h5, h6, p, blockquote, pre, 32 a, abbr, acronym, address, big, cite, code, 33 del, dfn, em, img, ins, kbd, q, s, samp, 34 small, strike, strong, sub, sup, tt, var, 35 b, u, i, center, 36 dl, dt, dd, ol, ul, li, 37 fieldset, form, label, legend, 38 table, caption, tbody, tfoot, thead, tr, th, td, 39 article, aside, canvas, details, embed, 40 figure, figcaption, footer, header, hgroup, 41 menu, nav, output, ruby, section, summary, 42 time, mark, audio, video { 43 margin: 0; 44 padding: 0; 45 border: 0; 46 font-size: 100%; 47 font: inherit; 48 vertical-align: baseline; 49 } 50 /* HTML5 display-role reset for older browsers */ 51 article, aside, details, figcaption, figure, 52 footer, header, hgroup, menu, nav, section { 53 display: block; 54 } 55 ol, ul { 56 margin-bottom: var(--margin-default); 57 list-style: disc; 58 margin-left: 1.5em; 59 } 60 blockquote, q { 61 quotes: none; 62 } 63 blockquote:before, blockquote:after, 64 q:before, q:after { 65 content: ''; 66 content: none; 67 } 68 table { 69 border-collapse: collapse; 70 border-spacing: 0; 71 } 72 73 body { 74 font-family: var(--font-text); 75 font-size: 15px; 76 line-height: 1.55em; 77 display: flex; 78 flex-direction: column; 79 min-height: 100vh; 80 } 81 82 a { 83 color: var(--color-link); 84 text-decoration: none; 85 } 86 87 img { 88 max-width: 100%; 89 } 90 91 a:hover { 92 text-decoration: underline; 93 } 94 95 @media (min-width: 768px) { 96 body { 97 display: grid; 98 grid-template: 99 'logo header' 100 'nav content' 101 'nav footer'; 102 grid-template-columns: 200px 1fr; 103 grid-template-rows: min-content auto min-content; 104 } 105 } 106 107 main { 108 flex: 1; 109 padding: 0 20px 20px; 110 color: var(--color-text); 111 } 112 113 .content { 114 position: relative; 115 grid-area: content; 116 max-width: 920px; 117 margin: auto; 118 } 119 120 main .content { 121 margin-top: 40px; 122 } 123 124 header { 125 grid-area: header; 126 background: var(--color-heading-background); 127 padding: 45px 20px; 128 overflow: hidden; 129 } 130 131 footer { 132 padding: 2px; 133 text-align: center; 134 font-size: 0.7em; 135 color: var(--color-heading-text); 136 } 137 138 h1,h2,h3,h4,h5,h6 { 139 font-family: var(--font-heading); 140 color: #445; 141 } 142 143 h1 { 144 font-size: 25px; 145 font-weight: 700; 146 margin: 15px 0 10px 0; 147 position: relative; 148 } 149 150 .description { 151 font-family: 'Work Sans', sans-serif; 152 font-size: 18px; 153 color: var(--color-text); 154 } 155 156 .header-link { 157 position: absolute; 158 top: 0; 159 right: 0; 160 } 161 162 h2 { 163 margin-top: 2em; 164 margin-bottom: var(--margin-default); 165 font-size: 19px; 166 font-weight: 700; 167 } 168 169 h3 { 170 margin-top: 1.5em; 171 margin-bottom: var(--margin-default); 172 font-size: 16px; 173 font-weight: 500; 174 } 175 176 p { 177 margin-bottom: var(--margin-default); 178 } 179 180 nav { 181 grid-area: nav; 182 color: var(--color-nav-text); 183 background-color: var(--color-nav-background); 184 font-family: var(--font-heading); 185 font-weight: 500; 186 } 187 188 .menu { 189 190 } 191 192 .menu a { 193 color: inherit; 194 } 195 196 .menu a:hover { 197 text-decoration: none; 198 } 199 200 .menu-item { 201 display: block; 202 padding: 5px 10px; 203 } 204 205 .submenu .menu-item { 206 padding: 5px 20px; 207 } 208 209 .submenu-heading { 210 margin-top: 15px; 211 } 212 213 ul.menu { 214 margin-left:0; 215 list-style: none; 216 } 217 218 ul.submenu { 219 margin-left: 0; 220 list-style: none; 221 margin-bottom: 0; 222 } 223 224 ul.submenu span { 225 padding: 5px 10px; 226 } 227 228 ul.menu li.active, 229 ul.menu a:hover { 230 background-color: var(--color-nav-active); 231 } 232 233 .layout--logo { 234 grid-area: logo; 235 background-color: var(--color-nav-background); 236 } 237 238 .logo { 239 grid-area: logo; 240 color: #eee; 241 margin: 15px; 242 text-align: center; 243 display: block; 244 } 245 246 .logo svg { 247 fill: currentColor; 248 max-width: 30px; 249 } 250 251 .logo--name { 252 vertical-align: top; 253 height: 100%; 254 font-size: 30px; 255 } 256 257 .logo:hover { 258 text-decoration: none; 259 } 260 261 code { 262 font-family: var(--font-code); 263 font-weight: 500; 264 color: var(--color-code-text); 265 background-color: var(--color-code-background); 266 border-radius: 3px; 267 display: inline-block; 268 padding: 0px 5px; 269 font-size: 13px; 270 line-height: 1.5; 271 } 272 273 pre > code { 274 overflow: auto; 275 display: block; 276 padding: 5px 10px; 277 margin-bottom: var(--margin-default); 278 } 279 280 strong { 281 font-weight: 700; 282 } 283 284 em { 285 font-style: italic; 286 } 287 288 .anchor-link { 289 display: inline-block; 290 } 291 292 .anchor-link:hover { 293 text-decoration: none; 294 } 295 296 .anchor-icon { 297 fill: var(--color-anchor-default); 298 display: inline-block; 299 vertical-align: middle; 300 padding: 0 5px; 301 width: 14px; 302 } 303 304 .anchor-icon:hover { 305 fill: var(--color-anchor-hover); 306 } 307 308 @media (min-width: 768px) { 309 .logo { 310 margin: 20px 50px; 311 312 } 313 .logo svg { 314 max-width: none; 315 margin: 5px; 316 } 317 nav input { 318 display: none; 319 } 320 } 321 322 /* pure css hamburger, adapted from https://codepen.io/erikterwan/pen/EVzeRP */ 323 324 @media (max-width: 767px) { 325 .layout--logo { 326 z-index: 2; 327 } 328 329 nav { 330 -webkit-user-select: none; 331 user-select: none; 332 333 } 334 335 .hamburger { 336 position: absolute; 337 top: 0px; 338 left: 0px; 339 margin: 15px; 340 z-index: 3; 341 } 342 343 nav input { 344 display: block; 345 width: 70px; 346 height: 70px; 347 position: absolute; 348 top: -7px; 349 left: -5px; 350 351 cursor: pointer; 352 353 opacity: 0; /* hide this */ 354 z-index: 4; /* and place it over the hamburger */ 355 356 -webkit-touch-callout: none; 357 } 358 359 .hamburger span { 360 display: block; 361 width: 28px; 362 height: 4px; 363 margin: 5px; 364 position: relative; 365 background: currentColor; 366 border-radius: 3px; 367 z-index: 1; 368 transform-origin: 0 1.5px; 369 370 transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), 371 background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), 372 opacity 0.55s ease; 373 } 374 375 nav input:checked ~ .hamburger span { 376 opacity: 1; 377 transform: rotate(45deg) translate(-2px, -1px); 378 } 379 380 nav input:checked ~ .hamburger span:nth-last-child(2) { 381 opacity: 0; 382 transform: rotate(0deg) scale(0.2, 0.2); 383 } 384 385 nav input:checked ~ .hamburger span:nth-last-child(1) { 386 transform: rotate(-45deg) translate(0, -1px); 387 } 388 389 .menu { 390 z-index: 1; 391 position: absolute; 392 width: 300px; 393 height: 100%; 394 margin: -100px 0 0 -50px; 395 padding: 150px 0; 396 397 color: var(--color-heading-text); 398 background-color: var(--color-heading-background); 399 font-family: var(--font-heading); 400 401 list-style-type: none; 402 -webkit-font-smoothing: antialiased; 403 /* to stop flickering of text in safari */ 404 405 transform-origin: 0% 0%; 406 transform: translate(-100%, 0); 407 408 transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0); 409 } 410 411 ul.menu li.active, 412 ul.menu a:hover { 413 background-color: #d3d5d7; 414 } 415 416 nav input:checked ~ ul { 417 transform: none; 418 } 419 420 } 421 422 423 blockquote { 424 background-color: var(--color-blockquote-background); 425 border-left-color: var(--color-blockquote-highlight); 426 border-left-width: 9px; 427 border-left-style: solid; 428 padding: 1em 20px 1em 11px; 429 margin-bottom: var(--margin-default); 430 margin-left: -20px; 431 margin-right: -20px; 432 } 433 434 blockquote p { 435 margin-bottom: 0; 436 } 437 438 /* Blockquote headings. */ 439 blockquote p:first-of-type { 440 font-weight: bold; 441 } 442 443 blockquote code { 444 background-color: var(--color-blockquote-highlight); 445 } 446 447 table { 448 width: 100%; 449 } 450 451 td, th { 452 padding: 0.2em 1em; 453 } 454 455 tr { 456 border-bottom: 1px solid var(--color-heading-background); 457 } 458 459 tr td:first-child, th { 460 font-weight: bold; 461 } 462 463 .version-switcher { 464 position: absolute; 465 top: 18px; 466 right: 16px; 467 display: inline-block; 468 width: 80px; 469 z-index: 3; 470 color: white; 471 } 472 473 474 .version-switcher-options { 475 display: none; 476 /*opacity: 40%;*/ 477 color: var(--color-text); 478 position: absolute; 479 top: 0; 480 right: 0; 481 background-color: #f9f9f9; 482 width: 80px; 483 box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.2); 484 z-index: 2; 485 } 486 487 @media (min-width: 768px) { 488 .version-switcher { 489 color: var(--color-text); 490 } 491 } 492 493 .version-switcher-options a, .version-switcher span { 494 list-style-type: none; 495 padding: 3px 10px; 496 display: block; 497 cursor: pointer; 498 font-family: var(--font-code); 499 } 500 501 .version-switcher-options a { 502 color: var(--color-text); 503 } 504 505 .version-switcher-options a:hover { 506 background: #bbb; 507 text-decoration: none; 508 } 509 510 .version-switcher-options a:first-child { 511 background: #ccc; 512 } 513 514 .version-switcher:hover .version-switcher-options { 515 display: block; 516 } 517 518 .alert-warning { 519 background-color: rgba(255, 85, 35, 0.84); 520 padding: 10px; 521 color: white; 522 font-weight: bolder; 523 } 524 525 .alert-warning a { 526 color: #ff6; 527 } 528 529 .icon { 530 display: inline-block; 531 line-height: .75em; 532 width: 1em; 533 } 534 535 .icon svg { 536 display: block; 537 } 538 539 .icon svg path { 540 fill: currentColor; 541 } 542 543 ul.submenu span.icon { 544 padding: 0; 545 }