Skip to content

Commit 64c23e9

Browse files
committed
Update styles
- fix font inheriting for elements inside a `code` element - use endash (–) instead of asterisk (*) for list items - match left padding for description and code snippets, also improves wrapping - use same font size for small and large screens. before, fonts were larger for small screens - add fallback generic fonts
1 parent ee201b4 commit 64c23e9

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

static/style.css

+10-12
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
* {
2-
font-family: Helvetica Neue, Helvetica;
3-
font-size: 1em; }
4-
51
body {
2+
font-family: Helvetica Neue, Helvetica, sans-serif;
3+
font-size: 16px;
64
margin: 0;
75
background: #FEFEFE;
86
color: #151515; }
@@ -12,8 +10,7 @@ code em {
1210
font-style: normal; }
1311

1412
#tldr #page {
15-
margin-bottom: 4em;
16-
font-size: 1.25em;}
13+
margin-bottom: 4em; }
1714
#tldr #page p {
1815
margin: 0; }
1916
#tldr #page h1 {
@@ -22,15 +19,15 @@ code em {
2219
#tldr #page blockquote {
2320
margin: 0 0.55em; }
2421
#tldr #page code {
25-
font-family: "Source Code Pro", courier new, courier;
22+
font-family: "Source Code Pro", courier new, courier, monospace;
2623
background-color: #f2f2f2;
2724
color: #212121;
2825
display: inline-block;
2926
padding: 0.25em 0.5em;
3027
margin: 0; }
3128
#tldr #page > p code {
3229
display: block;
33-
padding: 0.55em 1.25em; }
30+
padding: 0.55em; }
3431
#tldr #page ul {
3532
list-style: none;
3633
padding: 0 !important;
@@ -39,10 +36,11 @@ code em {
3936
padding: 0.5em 0.55em;
4037
line-height: 1.1; }
4138
@media only screen and (min-device-width: 1024px) {
42-
#tldr #page {
43-
font-size: 1em; }
4439
#tldr #page > p code {
4540
padding-left: 3em; }
41+
#tldr #page ul li {
42+
padding-left: 3em; }
4643
#tldr #page ul li:before {
47-
content: "*";
48-
padding: 0 12px; } }
44+
content: "–";
45+
position: absolute;
46+
margin-left: -1.5em; } }

0 commit comments

Comments
 (0)