code.pablomurad.com

htmlepessoas.com

Brazilian Portuguese translation of the book HTML for People

src/assets/css/print.css raw
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
html,
body {
  font-size: 14px !important;
}

.container {
  max-width: 550px;
}

aside {
  page-break-inside: avoid;
  box-shadow: none;
}

aside::before,
aside::after {
  display: none;
}

pre {
  box-shadow: none !important;
}

img,
p:has(> img) {
  display: block;
  page-break-inside: avoid;
}

h1:not(:first-of-type) {
  page-break-before: always;
}

h1,
h2,
h3 {
  page-break-after: avoid;
}

a:not([href^='#']) {
  &::after {
    content: ' (' attr(href) ')';
  }
}

.site-title a::after {
  content: 'https://htmlforpeople.com';
}

pre,
pre[class*='language-'] {
  max-height: none;
}