|
| 1 | +/* Additionally used in EPUB styles. |
| 2 | + * Use basic selectors for rules that should apply in ebook readers */ |
| 3 | + |
1 | 4 | /* The Consolas font on Windows is too small compared to other ones */ |
2 | 5 | @font-face { |
3 | 6 | font-family: "Consolas"; |
4 | 7 | src: local("Consolas"); |
5 | 8 | size-adjust: 110%; |
6 | 9 | } |
7 | 10 |
|
8 | | -.content-inner.content-inner :is(a:has(code, img), pre a) { |
9 | | - color: var(--link-color); |
10 | | - text-shadow: none; |
11 | | - text-decoration: none; |
12 | | - background-image: none; |
13 | | -} |
| 11 | +.content-inner.content-inner { |
| 12 | + & :is(a:has(code, img), pre a) { |
| 13 | + color: var(--link-color); |
| 14 | + text-shadow: none; |
| 15 | + text-decoration: none; |
| 16 | + background-image: none; |
14 | 17 |
|
15 | | -.content-inner.content-inner :is(a:has(code, img), pre a):is(:visited, :active, :focus, :hover) { |
16 | | - color: var(--link-visited-color); |
| 18 | + :is(:visited, :active, :focus, :hover) { |
| 19 | + color: var(--link-visited-color); |
| 20 | + } |
| 21 | + } |
17 | 22 | } |
18 | 23 |
|
19 | 24 | .content-inner strong > code { |
|
39 | 44 | word-wrap: break-word; |
40 | 45 | } |
41 | 46 |
|
42 | | -.content-inner :is(h1, h2, h3, h4, h5, h6) code { |
| 47 | +.content-inner h1 code, |
| 48 | +.content-inner h2 code, |
| 49 | +.content-inner h3 code, |
| 50 | +.content-inner h4 code, |
| 51 | +.content-inner h5 code, |
| 52 | +.content-inner h6 code { |
43 | 53 | font-size: 0.875em; |
44 | 54 | } |
45 | 55 |
|
|
83 | 93 | } |
84 | 94 |
|
85 | 95 | @media screen and (max-width: 768px) { |
86 | | - .content-inner > pre:has(code), |
87 | | - .content-inner section > pre:has(code) { |
| 96 | + .content-inner > pre, |
| 97 | + .content-inner section > pre { |
88 | 98 | margin-left: calc(-1 * var(--content-gutter)); |
89 | 99 | margin-right: calc(-1 * var(--content-gutter)); |
90 | 100 | } |
|
0 commit comments