summaryrefslogtreecommitdiffstats
path: root/docs/assets/main.scss
blob: 24d9dbd3b05b45f929d0edf2fd1d4b42c3ab69bd (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
---

@import "{{ site.theme }}";

#playground-box {
  font-size: x-large;
  border-radius: 25px;
  background: #8d8;
  padding: 20px;
  display: inline-block;
}

#playground-box h4 {
  margin-bottom: 0;
}

#playground-box code {
  padding-left: 20px;
  background: #444;
  border-color: #444;
}

#playground-box code a {
  padding-right: 20px;
  color: white;
}

#playground-box .prompt {
  color: #4f4;
}


pre.highlight {
  padding: 8px 12px;
  position: relative;

  // override skeleton styles
  > code {
    border: 0;
    overflow-x: auto;
    padding-right: 0;
    padding-left: 0;
  }

  &.highlight {
    border-left: 15px solid #35383c;
    color: #c1c2c3;
    overflow: auto;
    white-space: pre;
    word-wrap: normal;

    &,
    code {
      background-color: #222;
      font-size: 14px;
    }
  }

  //   code to clipboard
  .copy {
    color: #4AF626;
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    opacity: 0;

    &:active,
    &:focus,
    &:hover {
      background: rgba(0, 0, 0, 0.7);
      opacity: 1;
    }
  }

  &:active .copy,
  &:focus .copy,
  &:hover .copy {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
  }
}