demo.css 3.1 KB
Newer Older
C
codecalm 已提交
1 2 3 4 5 6
/*!
 * Tabler (v1.0.0-alpha.4)
 * Copyright 2018-2020 The Tabler Authors
 * Copyright 2018-2020 codecalm
 * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
 */
C
codecalm 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
/**
Dark mode
 */
pre.highlight,
.highlight pre {
  max-height: 30rem;
  margin: 1.5rem 0;
  overflow: auto;
  font-size: 0.7333333em;
  background: #354052;
  border-radius: 3px;
  color: #ffffff; }
  pre.highlight::-webkit-scrollbar,
  .highlight pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    -webkit-transition: .3s background;
    transition: .3s background; }
  pre.highlight::-webkit-scrollbar-thumb,
  .highlight pre::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: transparent; }
  pre.highlight::-webkit-scrollbar-corner,
  .highlight pre::-webkit-scrollbar-corner {
    background: transparent; }
  pre.highlight:hover::-webkit-scrollbar-thumb,
  .highlight pre:hover::-webkit-scrollbar-thumb {
    background: #cbcfd6;
    background: #5d6675; }

.highlight .c, .highlight .c1 {
  color: #a0aec0; }

.highlight .na, .highlight .nx, .highlight .nl, .language-css .highlight .na, .language-scss .highlight .na {
  color: #ffe484; }

.highlight .s, .highlight .dl, .highlight .s1, .highlight .s2, .highlight .mh {
  color: #b5f4a5; }

.highlight .mi, .highlight .language-js .nb, .highlight .nc, .highlight .nd, .highlight .nt {
  color: #93ddfd; }

.highlight .language-html .nt, .highlight .nb {
  color: #ff8383; }

.highlight .k, .highlight .kd, .highlight .nv, .highlight .n {
  color: #d9a9ff; }

.example {
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(134, 140, 151, 0.24);
  border-radius: 3px 3px 0 0;
  position: relative;
  min-height: 12rem;
  display: flex;
  align-items: center;
  overflow-x: auto; }

.example-centered {
  justify-content: center; }
  .example-centered .example-content {
    flex: 0 auto; }

.example-content {
  font-size: 0.9375rem;
  flex: 1;
  max-width: 100%; }

.example-bg {
  background: #f5f7fb; }

.example-code {
  margin: 2rem 0;
  border-top: none; }
  .example-code pre {
    margin: 0;
    border-radius: 0 0 3px 3px; }
  .example + .example-code {
    margin-top: -2rem; }

.example-column {
  margin: 0 auto; }
  .example-column > .card:last-of-type {
    margin-bottom: 0; }

.example-column-1 {
  max-width: 20rem; }

.example-column-2 {
  max-width: 40rem; }

.example-modal-backdrop {
  background: #354052;
  opacity: 0.24;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 2px 2px 0 0; }

@media not print {
  .theme-dark .example-code {
    border: 1px solid rgba(134, 140, 151, 0.24);
    border-top: none; } }

@media not print and (prefers-color-scheme: dark) {
  .theme-dark-auto .example-code {
    border: 1px solid rgba(134, 140, 151, 0.24);
    border-top: none; } }

.card-sponsor {
  background: #dbe7f6 no-repeat center/100% 100%;
  border-color: #548ed2;
  min-height: 316px; }

body.no-transitions * {
  transition: none !important; }

.toc-entry:before {
  content: '- '; }

.toc-entry ul {
  list-style: none;
  padding-left: 1rem; }

.toc-entry a {
  color: #868c97; }
/*# sourceMappingURL=demo.css.map */