Skip to content

Commit c4fefeb

Browse files
authored
fix(css): Fix styling of strong, em, and other inlines (#24)
This fixes a bug that remains in base.css, where it used explicit font family names and classes instead of relying on the browser to associate faces with styles. Fixes #23
1 parent 95c5d70 commit c4fefeb

File tree

2 files changed

+12
-101
lines changed

2 files changed

+12
-101
lines changed

content/introduction.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
## Our API
22

3-
Welcome to coolcorp biz! This is our API documentation.
3+
Welcome to coolcorp biz! This is our API documentation. This documentation
4+
is generated from normal Markdown files using [docbox](https://github.com/tmcw/docbox),
5+
so it can use Markdown syntax, like **bold**, *emphasis*, ~~strikethrough~~,
6+
`code`, and more.

css/base.css

Lines changed: 8 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ time, mark, audio, video {
1717
padding:0;
1818
border:0;
1919
font-size:100%;
20-
font:inherit;
2120
vertical-align:baseline;
2221
}
2322
/* HTML5 display-role reset for older browsers */
@@ -83,7 +82,8 @@ em h3, h3 em,
8382
em h4, h4 em,
8483
em h5, h5 em,
8584
em h6, h6 em {
86-
font-family:'Open Sans Bold Italic', sans-serif;
85+
font-weight: bold;
86+
font-style: italic;
8787
}
8888

8989
h1 {
@@ -129,79 +129,6 @@ small { display:block; }
129129
letter-spacing:0;
130130
}
131131

132-
.strong,
133-
strong {
134-
font-family:'Open Sans Bold', sans-serif;
135-
font-weight:normal;
136-
}
137-
strong em,
138-
em strong { font-family:'Open Sans Bold Italic', sans-serif; }
139-
140-
address,
141-
em {
142-
font-family:'Open Sans Italic', sans-serif;
143-
}
144-
145-
/* Fancy font style */
146-
147-
h1.fancy,
148-
h2.fancy,
149-
h3.fancy {
150-
font-family:'Brandon', sans-serif;
151-
}
152-
153-
h1.fancy {
154-
font-size:60px;
155-
line-height:80px;
156-
letter-spacing:3px;
157-
text-transform: uppercase;
158-
}
159-
h2.fancy {
160-
padding-top: 0;
161-
padding-bottom: 0;
162-
font-size:40px;
163-
letter-spacing:2px;
164-
line-height:50px;
165-
text-transform: uppercase;
166-
}
167-
168-
.prose-big h3.fancy,
169-
h3.fancy {
170-
font-size:28px;
171-
letter-spacing:2px;
172-
line-height:40px;
173-
text-transform: uppercase;
174-
}
175-
176-
/* deprecated */
177-
h1.futura,
178-
h2.futura,
179-
h3.futura {
180-
font-family:'Brandon', sans-serif;
181-
}
182-
183-
h1.futura {
184-
font-size:60px;
185-
line-height:80px;
186-
letter-spacing:3px;
187-
text-transform: uppercase;
188-
}
189-
h2.futura {
190-
padding-top: 0;
191-
padding-bottom: 0;
192-
font-size:40px;
193-
letter-spacing:2px;
194-
line-height:50px;
195-
text-transform: uppercase;
196-
}
197-
198-
.prose-big h3.futura,
199-
h3.futura {
200-
font-size:28px;
201-
letter-spacing:2px;
202-
line-height:40px;
203-
text-transform: uppercase;
204-
}
205132

206133
/* Links */
207134
a,
@@ -255,7 +182,7 @@ a.quiet.dark.active, a.quiet.dark:hover { color:rgba(255,255,255,0.5); }
255182
white-space:nowrap;
256183
text-overflow:ellipsis;
257184
/* Protects button metrics in .prose context */
258-
font-family:'Open Sans Bold', sans-serif;
185+
font-weight: bold;
259186
line-height:20px;
260187
font-size:12px;
261188
-webkit-appearance:none;
@@ -520,7 +447,7 @@ a.quiet.dark.active, a.quiet.dark:hover { color:rgba(255,255,255,0.5); }
520447
border-bottom:1px solid rgba(0,0,0,0.25);
521448
background:transparent;
522449
color:rgba(0,0,0,.5);
523-
font-family:'Open Sans Bold', sans-serif;
450+
font-weight: bold;
524451
font-size:12px;
525452
text-align:center;
526453
display:inline-block;
@@ -959,7 +886,9 @@ form fieldset:last-child {
959886
}
960887

961888
form fieldset label {
962-
font:12px/20px 'Open Sans Bold', sans-serif;
889+
font-size:12px;
890+
line-height:20px;
891+
font-weight: bold;
963892
display:block;
964893
margin:0 0 5px;
965894
}
@@ -1301,7 +1230,7 @@ table {
13011230
border-bottom:1px solid #ddd;
13021231
}
13031232
table th {
1304-
font-family:'Open Sans Bold', sans-serif;
1233+
font-weight: bold;
13051234
}
13061235
table thead th {
13071236
vertical-align:bottom;
@@ -3646,27 +3575,6 @@ img.inline, .inline { display:inline-block; }
36463575
.mobile-cols > .margin11 { margin-left:91.6666%; }
36473576
.mobile-cols > .margin12 { margin-left:100.0000%; }
36483577

3649-
/* Fanct gets too big, revert to defaults */
3650-
h1.fancy { font-size:40px;line-height:60px;}
3651-
h2.fancy {
3652-
font-size:30px;
3653-
line-height:40px;
3654-
}
3655-
h3.fancy {
3656-
font-size:20px;
3657-
line-height:30px;
3658-
}
3659-
3660-
/* Deprecated */
3661-
h1.futura { font-size:40px;line-height:60px;}
3662-
h2.futura {
3663-
font-size:30px;
3664-
line-height:40px;
3665-
}
3666-
h3.futura {
3667-
font-size:20px;
3668-
line-height:30px;
3669-
}
36703578

36713579
/* Anchor icon adds noise to the page on smaller displays */
36723580
.doc h1[id]:before,

0 commit comments

Comments
 (0)