summaryrefslogtreecommitdiffstats
path: root/docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/css/_code.css
blob: 66a2fc24693254044928b66ce3d37bbb9520c195 (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
84
85
86
87
88
89
.chroma .lntable pre {
  padding: 0;
  margin: 0;
  border: 0;
}

.chroma .lntable pre code  {
  padding: 0;
  margin: 0;
}

code {
    padding: 0.2em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27,31,35,0.05);
    border-radius: 3px;
}

pre code {
  display: block;
  padding: 1.5em 1.5em;
  font-size: .875rem;
  line-height: 2;
  overflow-x: auto;
}

pre {
  background-color: #fff;
  color: #333;
  white-space: pre;
  hyphens: none;
  position: relative;
  border-width: 1px;
  border-color: #ccc;
  border-style: solid;
}

/* The Pygments highlighter comes with its own styles. */
.highlight pre {
  background-color: inherit;
  color: inherit;
  padding: 0.5em;
  font-size: .875rem;
}


/*We are adding the copy button content here so we can change it with javascript. See the "Clipboard scripts"*/
.copy:after {
  content: "Copy"
}
.copied:after {
  content: "Copied"
}

@media (--breakpoint-large) {
  .full-width, pre.expand:hover
  {
  /*width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;*/
  /*width: 60vw;*/
  /*position: relative;
  left: 50%;
  right: 50%;*/
  /*margin-left: -30vw;*/
  margin-right: -30vw;
  max-width: 100vw;
  }
}

.code-block .line-numbers-rows {
    background: #2f3a46;
    border: none;
    bottom: -50px;
    color: #98a4b3;
    left: -178px;
    padding: 50px 0;
    top: -50px;
    width: 138px
}

.code-block .line-numbers-rows>span:before {
    color: inherit;
    padding-right: 30px
}