File: print-cheatsheet.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 (141 lines) | stat: -rw-r--r-- 2,750 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
@media print {

  /* Remove background colors and set border colors */
  .page-cheatmd .content-inner * {
    background-color: transparent !important;
    border-color: var(--gray400) !important;
  }

  /* Basic layout and columns */

  .page-cheatmd .content-inner {
    max-width: 100%;
    width: 100%;
    padding: 0;
    font-size: .7em;
  }

  .page-cheatmd .content-inner section:is(.col-2, .col-2-left, .col-3) {
    column-gap: 30px;
  }

  /* column-count and grid display required to be set again within @print media query to take effect when actually printing */
  .page-cheatmd .content-inner section.col-2 {
    column-count: 2;
  }
  .page-cheatmd .content-inner section.col-2-left {
    display: grid;
  }
  .page-cheatmd .content-inner section.col-3 {
    column-count: 3;
  }

  /* h1 */

  .page-cheatmd .content-inner h1 {
    margin-top: 0;
    margin-bottom: .5em;
  }

  /* h2 */

  .page-cheatmd .content-inner h2.section-heading {
    font-weight: bold;
    margin-top: 1em;
    column-span: all;
  }

  .page-cheatmd .content-inner section.h2 {
    break-inside: avoid;
  }

  /* h3 */

  .page-cheatmd .content-inner h3 {
    font-weight: bold;
    color: var(--mainDark);
  }

  .page-cheatmd .content-inner h3::after {
    height: 2px;
    background-color: var(--gray400);
  }

  .page-cheatmd .content-inner section.h3 {
    min-width: 300px;
    break-inside: avoid;
  }

  /* h4 */

  .page-cheatmd .content-inner h4 {
    padding: .5em 0;
    border: none;
    font-weight: bold;
    color: black;
  }

  /* Paragraphs */

  .page-cheatmd .content-inner .h2 p {
    padding-left: 0;
    padding-right: 0;
    border: none !important;
  }

  /* Code blocks */

  .page-cheatmd .content-inner code {
    line-height: 1.5em;
  }

  /* Tables */

  .page-cheatmd .content-inner .h2 table {
    font-variant-numeric: tabular-nums;
    break-inside: avoid;
  }

  .page-cheatmd .content-inner .h2 :is(th, td) {
    vertical-align: top;
    padding-left: 0;
    padding-right: 0;
  }

  .page-cheatmd .content-inner .h2 thead {
    border-style: solid none;
    border-width: 1px;
  }

  .page-cheatmd .content-inner .h2 tr {
    border-bottom: none;
  }

  .page-cheatmd .content-inner .h2 th {
    font-weight: bold;
  }

  /* Lists */

  .page-cheatmd .content-inner .h2 li {
    padding-left: 0;
    padding-right: 0;
    vertical-align: middle;
    border-bottom: none;
  }

  /* Remove copy button from code blocks */
  .page-cheatmd .content-inner pre:hover button.copy-button {
    display: none;
  }

  /* Remove hover tooltip from inline code references */
  .page-cheatmd .content-inner div.tooltip {
    display: none;
  }

  .page-cheatmd .content-inner footer p:not(.built-using) {
    display: none;
  }

}