aboutsummaryrefslogtreecommitdiff
path: root/docs/_book/gitbook/gitbook-plugin-code/plugin.css
blob: a68fcdc00d14885f3f31a2d6df8d68591cf03ea5 (plain) (blame)
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
#code-textarea {
  height: 0;
  position: fixed;
  top: -1000px;
  width: 0;
}

.code-wrapper {
  position: relative;
}

.code-wrapper i {
  color: #c1c7cd;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  right: 1em;
  top: 1em;
}

.code-wrapper pre {
  background: #f7f8f9;
  border-radius: 3px;
  counter-reset: line;
  font-size: 15px;
}

.code-wrapper pre > code > span.code-line:before {
  counter-increment: line;
  color: #c1c7cd;
  content: counter(line);
  display: inline-block;
  font-size: 12px;
  margin-right: 1.5em;
  width: 1em;
}