Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_asciidoc.scss « sass « src - github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4bbc51e65ec2206657f5795d19b1fdac3d471f20 (plain)
1
2
3
4
5
6
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
.admonitionblock {
  @each $name, $color in $hint-colors {
    &.#{$name} {
      border-left-color: $color;
      background-color: scale-color($color, $lightness: 95%, $saturation: -30%);
      color: $body-font-color;
    }
  }

  margin: $padding-16 0;
  padding: 0;

  border-left: $border-4 solid var(--accent-color);
  border-radius: $border-radius;

  table {
    margin: 0 !important;
    padding: 0 !important;

    tr {
      border: 0 !important;
    }

    td {
      &:first-child {
        background-color: scale-color($gray-600, $alpha: -95%);
        font-weight: bold;

        &.icon {
          .title {
            display: flex;
            align-items: center;
          }

          i.fa::after {
            content: attr(title);
            font-style: normal;
            padding-left: $padding-24;
          }

          i.fa {
            color: $black;
            background-size: auto 90%;
            background-repeat: no-repeat;
            filter: invert(30%);
            margin-left: -5px;
          }

          @each $name, $icon in $hint-icons {
            i.fa.icon-#{$name} {
              background-image: url(img/geekdoc-stack.svg##{$icon});
            }
          }
        }
      }

      display: block;
      padding: $padding-4 $padding-16 !important;
    }
  }
}