|
1 | 1 | /* Add application styles & imports to this file! */ |
2 | 2 |
|
3 | 3 | body { |
4 | | - margin: 0; |
5 | | - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, Arial, sans-serif; |
| 4 | + margin: 0; |
| 5 | + font-size: 17px; |
| 6 | + line-height: 1.5; |
| 7 | + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, |
| 8 | + Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, Arial, |
| 9 | + sans-serif; |
6 | 10 | } |
7 | 11 |
|
8 | 12 | h2 { |
9 | | - font-weight: 500; |
| 13 | + font-weight: 500; |
10 | 14 | } |
11 | 15 |
|
12 | 16 | p { |
13 | | - line-height: 1.6; |
| 17 | + line-height: 1.6; |
14 | 18 | } |
15 | 19 |
|
16 | 20 | button { |
17 | | - margin-right: 10px; |
18 | | - background-color: transparent; |
19 | | - border: 1px solid gray; |
20 | | - padding: 6px 10px; |
21 | | - cursor: pointer; |
| 21 | + margin-right: 10px; |
| 22 | + background-color: transparent; |
| 23 | + border: 1px solid gray; |
| 24 | + padding: 6px 10px; |
| 25 | + cursor: pointer; |
22 | 26 | } |
23 | 27 |
|
24 | 28 | pre.prettyprint { |
25 | | - border-color: #d1cece !important; |
| 29 | + border-color: #d1cece !important; |
26 | 30 | } |
27 | 31 |
|
28 | 32 | .short-code { |
29 | | - display: inline-block; |
30 | | - background-color: #f9f9f9; |
| 33 | + display: inline-block; |
| 34 | + background-color: #f9f9f9; |
31 | 35 | } |
32 | 36 |
|
33 | 37 | button:hover { |
34 | | - border-color: #01475b; |
| 38 | + border-color: #01475b; |
35 | 39 | } |
36 | 40 |
|
37 | 41 | span.code { |
38 | | - padding: 2px 6px; |
39 | | - color: #1f1f1f; |
40 | | - background-color: #f0f0f0; |
41 | | - border-radius: 6px; |
42 | | - font-size: 1rem; |
| 42 | + padding: 2px 6px; |
| 43 | + color: #1f1f1f; |
| 44 | + background-color: #f0f0f0; |
| 45 | + border-radius: 6px; |
| 46 | + font-size: 1rem; |
43 | 47 | } |
44 | 48 |
|
45 | 49 | /* Bare bones style for the desired effect */ |
46 | 50 | pre.code { |
47 | | - display: table; |
48 | | - table-layout: fixed; |
49 | | - width: 100%; /* anything but auto, otherwise fixed layout not guaranteed */ |
50 | | - white-space: pre-wrap; |
| 51 | + display: table; |
| 52 | + table-layout: fixed; |
| 53 | + width: 100%; /* anything but auto, otherwise fixed layout not guaranteed */ |
| 54 | + white-space: pre-wrap; |
51 | 55 | } |
52 | 56 | pre.code::before { |
53 | | - counter-reset: linenum; |
| 57 | + counter-reset: linenum; |
54 | 58 | } |
55 | 59 | pre.code span.tr { |
56 | | - display: table-row; |
57 | | - counter-increment: linenum; |
| 60 | + display: table-row; |
| 61 | + counter-increment: linenum; |
58 | 62 | } |
59 | | -pre.code span.th { /* used for line numbers */ |
60 | | - display: table-cell; |
61 | | - user-select: none; |
62 | | - -moz-user-select: none; |
63 | | - -webkit-user-select: none; |
| 63 | +pre.code span.th { |
| 64 | + /* used for line numbers */ |
| 65 | + display: table-cell; |
| 66 | + user-select: none; |
| 67 | + -moz-user-select: none; |
| 68 | + -webkit-user-select: none; |
64 | 69 | } |
65 | 70 | pre.code span.th::before { |
66 | | - content: counter(linenum); |
67 | | - text-align: right; |
68 | | - display: block; |
| 71 | + content: counter(linenum); |
| 72 | + text-align: right; |
| 73 | + display: block; |
69 | 74 | } |
70 | 75 | pre.code span.th { |
71 | | - width: 4em; /* or whatever the desired width of the numbers column is */ |
| 76 | + width: 4em; /* or whatever the desired width of the numbers column is */ |
72 | 77 | } |
73 | 78 | pre.code code { |
74 | | - display: table-cell; |
| 79 | + display: table-cell; |
75 | 80 | } |
76 | 81 |
|
77 | 82 | /* Additional styling demo */ |
78 | 83 | pre.code { |
79 | | - border: solid 1px black; |
80 | | - width: auto; |
| 84 | + border: solid 1px black; |
| 85 | + width: auto; |
81 | 86 | } |
82 | 87 | pre.code span.th { |
83 | | - background: #f0f0f0; |
84 | | - padding: 3px; |
85 | | - padding-top: 0px; |
86 | | - border-right: solid 1px silver; |
87 | | - border-top: solid 1px silver; |
| 88 | + background: #f0f0f0; |
| 89 | + padding: 3px; |
| 90 | + padding-top: 0px; |
| 91 | + border-right: solid 1px silver; |
| 92 | + border-top: solid 1px silver; |
88 | 93 | } |
89 | 94 | pre.code span.th::before { |
90 | | - font-size: 90%; |
91 | | - color: #999; |
| 95 | + font-size: 90%; |
| 96 | + color: #999; |
92 | 97 | } |
93 | 98 | pre.code span.tr.first-row span.th { |
94 | | - border-top: none; |
| 99 | + border-top: none; |
95 | 100 | } |
96 | 101 | pre.code code { |
97 | | - padding: 3px; |
| 102 | + padding: 3px; |
98 | 103 | } |
99 | 104 | pre.code span.e code { |
100 | | - background: #f0f8ff; |
| 105 | + background: #f0f8ff; |
101 | 106 | } |
102 | 107 | pre.code span.th::before { |
103 | | - content: counter(linenum) "."; |
| 108 | + content: counter(linenum) "."; |
| 109 | +} |
| 110 | +div.code { |
| 111 | + overflow: auto; |
104 | 112 | } |
0 commit comments