Skip to content

Commit a34ce4a

Browse files
committed
1.0.0-beta
1 parent 050e7f3 commit a34ce4a

File tree

3 files changed

+53
-68
lines changed

3 files changed

+53
-68
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "style.css",
33
"description": "Classless stylesheet for markdown documents.",
4-
"version": "1.0.0-alpha-8",
4+
"version": "1.0.0-beta",
55
"author": "Nate Goldman <[email protected]>",
66
"bugs": {
77
"url": "https://github.com/ungoldman/style.css/issues"

serif.css

+26-33
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/*! style.css v1.0.0-alpha-8 | ISC License | https://github.com/ungoldman/style.css */
1+
/*! style.css v1.0.0-beta | ISC License | https://github.com/ungoldman/style.css */
22
html {
33
color: #303030;
44
background-color: white;
55
box-sizing: border-box;
66
font-family: charter, constantia, "lucida bright", lucidabright, "lucida serif", lucida, "dejavu serif", "bitstream vera serif", "liberation serif", georgia, serif;
7-
font-size: calc(16px + 0.25vw);
7+
font-size: calc(14px + 0.25vw);
88
line-height: 1.55;
99
font-kerning: normal;
1010
text-rendering: optimizeLegibility;
@@ -35,22 +35,6 @@ main {
3535
box-sizing: inherit;
3636
}
3737

38-
main {
39-
max-width: 42em;
40-
margin: 2em auto;
41-
padding: 0 1em;
42-
overflow: hidden;
43-
word-wrap: break-word;
44-
}
45-
46-
main > *:first-child {
47-
margin-top: 0 !important;
48-
}
49-
50-
main > *:last-child {
51-
margin-bottom: 0 !important;
52-
}
53-
5438
p,
5539
blockquote,
5640
ul,
@@ -59,7 +43,7 @@ dl,
5943
table,
6044
pre {
6145
margin-top: 0;
62-
margin-bottom: 1em;
46+
margin-bottom: 1.25em;
6347
}
6448

6549
small {
@@ -74,8 +58,8 @@ h5,
7458
h6 {
7559
line-height: 1.25em;
7660
margin-top: 2rem;
77-
margin-bottom: 1rem;
78-
font-weight: 600;
61+
margin-bottom: 1.25rem;
62+
font-weight: 400;
7963
position: relative;
8064
}
8165

@@ -85,34 +69,43 @@ h3 small,
8569
h4 small,
8670
h5 small,
8771
h6 small {
88-
font-weight: 400;
72+
font-weight: 300;
8973
font-size: 0.7em;
9074
margin-left: 0.5em;
9175
color: #777;
9276
}
9377

78+
h1 code,
79+
h2 code,
80+
h3 code,
81+
h4 code,
82+
h5 code,
83+
h6 code {
84+
font-size: 90%;
85+
}
86+
9487
h1 {
95-
font-size: 2.02729em;
88+
font-size: 3em;
9689
}
9790

9891
h2 {
99-
font-size: 1.80203em;
92+
font-size: 2.25em;
10093
}
10194

10295
h3 {
103-
font-size: 1.60181em;
96+
font-size: 1.75em;
10497
}
10598

10699
h4 {
107-
font-size: 1.42383em;
100+
font-size: 1.5em;
108101
}
109102

110103
h5 {
111-
font-size: 1.26562em;
104+
font-size: 1.25em;
112105
}
113106

114107
h6 {
115-
font-size: 1.125em;
108+
font-size: 1.15em;
116109
color: #575757;
117110
}
118111

@@ -123,7 +116,7 @@ p {
123116
a {
124117
background-color: transparent;
125118
-webkit-text-decoration-skip: objects;
126-
color: steelblue;
119+
color: #0074d9;
127120
text-decoration: none;
128121
}
129122

@@ -213,7 +206,7 @@ pre,
213206
kbd,
214207
samp {
215208
font-family: menlo, inconsolata, consolas, "fira mono", "noto mono", "droid sans mono", "liberation mono", "dejavu sans mono", "ubuntu mono", monaco, "courier new", monospace;
216-
font-size: calc(12px + 0.25vw);
209+
font-size: 0.75em;
217210
}
218211

219212
pre, code {
@@ -242,6 +235,7 @@ pre code::before, pre code::after {
242235

243236
pre > code {
244237
border: 0;
238+
font-size: 1em;
245239
white-space: pre;
246240
word-break: normal;
247241
}
@@ -265,7 +259,6 @@ kbd {
265259
box-shadow: 0 1px 0 #d6d6d6;
266260
color: #303030;
267261
display: inline-block;
268-
font-size: 0.75em;
269262
line-height: 0.95em;
270263
margin: 0 1px;
271264
padding: 5px 5px 1px;
@@ -377,12 +370,12 @@ dl dt {
377370
margin-top: 1em;
378371
font-size: 1em;
379372
font-style: italic;
380-
font-weight: bold;
373+
font-weight: 600;
381374
}
382375

383376
dl dd {
384377
padding: 0 1em;
385-
margin-bottom: 1em;
378+
margin-bottom: 1.25em;
386379
}
387380

388381
audio,

style.css

+26-34
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/*! style.css v1.0.0-alpha-8 | ISC License | https://github.com/ungoldman/style.css */
1+
/*! style.css v1.0.0-beta | ISC License | https://github.com/ungoldman/style.css */
22
html {
33
color: #303030;
44
background-color: white;
55
box-sizing: border-box;
66
font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir, "segoe ui", "fira sans", roboto, noto, "droid sans", "liberation sans", "lucida grande", "helvetica neue", helvetica, "franklin gothic medium", "century gothic", cantarell, oxygen, ubuntu, sans-serif;
7-
font-size: calc(16px + 0.25vw);
7+
font-size: calc(14px + 0.25vw);
88
line-height: 1.55;
99
-webkit-font-kerning: normal;
1010
font-kerning: normal;
@@ -37,22 +37,6 @@ main {
3737
box-sizing: inherit;
3838
}
3939

40-
main {
41-
max-width: 42em;
42-
margin: 2em auto;
43-
padding: 0 1em;
44-
overflow: hidden;
45-
word-wrap: break-word;
46-
}
47-
48-
main > *:first-child {
49-
margin-top: 0 !important;
50-
}
51-
52-
main > *:last-child {
53-
margin-bottom: 0 !important;
54-
}
55-
5640
p,
5741
blockquote,
5842
ul,
@@ -61,7 +45,7 @@ dl,
6145
table,
6246
pre {
6347
margin-top: 0;
64-
margin-bottom: 1em;
48+
margin-bottom: 1.25em;
6549
}
6650

6751
small {
@@ -76,8 +60,8 @@ h5,
7660
h6 {
7761
line-height: 1.25em;
7862
margin-top: 2rem;
79-
margin-bottom: 1rem;
80-
font-weight: 600;
63+
margin-bottom: 1.25rem;
64+
font-weight: 400;
8165
position: relative;
8266
}
8367

@@ -87,34 +71,43 @@ h3 small,
8771
h4 small,
8872
h5 small,
8973
h6 small {
90-
font-weight: 400;
74+
font-weight: 300;
9175
font-size: 0.7em;
9276
margin-left: 0.5em;
9377
color: #777;
9478
}
9579

80+
h1 code,
81+
h2 code,
82+
h3 code,
83+
h4 code,
84+
h5 code,
85+
h6 code {
86+
font-size: 90%;
87+
}
88+
9689
h1 {
97-
font-size: 2.02729em;
90+
font-size: 3em;
9891
}
9992

10093
h2 {
101-
font-size: 1.80203em;
94+
font-size: 2.25em;
10295
}
10396

10497
h3 {
105-
font-size: 1.60181em;
98+
font-size: 1.75em;
10699
}
107100

108101
h4 {
109-
font-size: 1.42383em;
102+
font-size: 1.5em;
110103
}
111104

112105
h5 {
113-
font-size: 1.26562em;
106+
font-size: 1.25em;
114107
}
115108

116109
h6 {
117-
font-size: 1.125em;
110+
font-size: 1.15em;
118111
color: #575757;
119112
}
120113

@@ -125,7 +118,7 @@ p {
125118
a {
126119
background-color: transparent;
127120
-webkit-text-decoration-skip: objects;
128-
color: steelblue;
121+
color: #0074d9;
129122
text-decoration: none;
130123
}
131124

@@ -215,7 +208,7 @@ pre,
215208
kbd,
216209
samp {
217210
font-family: menlo, inconsolata, consolas, "fira mono", "noto mono", "droid sans mono", "liberation mono", "dejavu sans mono", "ubuntu mono", monaco, "courier new", monospace;
218-
font-size: calc(12px + 0.25vw);
211+
font-size: 0.75em;
219212
}
220213

221214
pre, code {
@@ -244,6 +237,7 @@ pre code::before, pre code::after {
244237

245238
pre > code {
246239
border: 0;
240+
font-size: 1em;
247241
white-space: pre;
248242
word-break: normal;
249243
}
@@ -260,15 +254,13 @@ code::before, code::after {
260254

261255
kbd {
262256
background-color: #e6e6e6;
263-
background-image: -webkit-linear-gradient(#fafafa, #e6e6e6);
264257
background-image: linear-gradient(#fafafa, #e6e6e6);
265258
background-repeat: repeat-x;
266259
border: 1px solid #d6d6d6;
267260
border-radius: 2px;
268261
box-shadow: 0 1px 0 #d6d6d6;
269262
color: #303030;
270263
display: inline-block;
271-
font-size: 0.75em;
272264
line-height: 0.95em;
273265
margin: 0 1px;
274266
padding: 5px 5px 1px;
@@ -380,12 +372,12 @@ dl dt {
380372
margin-top: 1em;
381373
font-size: 1em;
382374
font-style: italic;
383-
font-weight: bold;
375+
font-weight: 600;
384376
}
385377

386378
dl dd {
387379
padding: 0 1em;
388-
margin-bottom: 1em;
380+
margin-bottom: 1.25em;
389381
}
390382

391383
audio,

0 commit comments

Comments
 (0)