File: code.css

package info (click to toggle)
elixir-ex-doc 0.35.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: javascript: 2,848; makefile: 15; xml: 12; sh: 5
file content (101 lines) | stat: -rw-r--r-- 2,283 bytes parent folder | download
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
90
91
92
93
94
95
96
97
98
99
100
101
.content-inner :is(a.no-underline, pre a) {
  color: var(--linksNoUnderline);
  text-shadow: none;
  text-decoration: none;
  background-image: none;
}

.content-inner :is(a.no-underline, pre a):is(:visited, :active, :focus, :hover) {
  color: var(--linksNoUnderlineVisited);
}

.content-inner code {
  background-color: var(--codeBackground);
  vertical-align: baseline;
  border-radius: 2px;
  padding: .1em .2em;
  border: 1px solid var(--codeBorder);
  text-transform: none;
}

.content-inner pre {
  margin: var(--baseLineHeight) 0;
}

.content-inner pre code {
  display: block;
  overflow-x: auto;
  white-space: inherit;
  padding: .5em 1em;
}

.content-inner pre code::-webkit-scrollbar {
  width: .4rem;
  height: .4rem;
}

.content-inner pre code::-webkit-scrollbar-thumb {
  border-radius: .25rem;
  background-color: var(--codeScrollThumb);
}

.content-inner pre code::-webkit-scrollbar-track {
  background-color: var(--codeScrollBackground);
}

.content-inner pre code::-webkit-scrollbar-corner {
  background-color: var(--codeScrollBackground);
}

.content-inner pre code.output {
  margin: 0 12px;
  max-height: 400px;
  overflow: auto;
}

.content-inner pre code.output + .copy-button {
  margin-right: 12px;
}

.content-inner pre code.output:before {
  content: "Output";
  display: block;
  position: absolute;
  top: -16px;
  left: 12px;
  padding: 2px 4px;
  font-size: 12px;
  font-family: var(--monoFontFamily);
  line-height: 1;
  color: var(--textHeaders);
  background-color: var(--codeBackground);
  border: 1px solid var(--codeBorder);
  border-bottom: 0;
  border-radius: 2px;
}

@media screen and (max-width: 768px) {
  /*
    TODO:

    This selector can be more specific once Firefox ships default
    support for the :has() pseudo-class: https://caniuse.com/css-has

    .content-inner > pre:has(code),
    .content-inner section > pre:has(code) {
  */
  .content-inner > pre,
  .content-inner section > pre {
    margin-left: calc(-1 * var(--content-gutter));
    margin-right: calc(-1 * var(--content-gutter));
  }

  .content-inner > pre code,
  .content-inner section > pre code {
    padding-left: var(--content-gutter);
    padding-right: var(--content-gutter);
    border-radius: 0;
    border-left-width: 0;
    border-right-width: 0;
  }
}