Skip to content

Commit c39d865

Browse files
author
Nuno Alexandre
committed
Tweak line-height and spacing
Also give more width space to the properties column and to the content of larger screens.
1 parent d055104 commit c39d865

File tree

1 file changed

+20
-25
lines changed

1 file changed

+20
-25
lines changed

datafiles/static/hackage.css

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ ul li + li {
3131
margin-top: 0.2rem;
3232
}
3333

34+
ul + p {
35+
margin-top: 0.93em;
36+
}
37+
38+
p + ul {
39+
margin-top: 0.5em;
40+
}
41+
3442
p {
3543
margin-top: 0.7rem;
3644
}
@@ -65,7 +73,7 @@ a[href]:hover { text-decoration:underline; }
6573
*/
6674

6775
body, button {
68-
font: 400 17px/1.37 'PT Sans',
76+
font: 400 17px/1.43 'PT Sans',
6977
/* Fallback Font Stack */
7078
-apple-system,
7179
BlinkMacSystemFont,
@@ -137,25 +145,17 @@ pre, code, kbd, samp, .src {
137145
.caption, h1, h2, h3, h4, h5, h6 {
138146
font-weight: bold;
139147
color: #5E5184;
140-
margin: 1.5em 0 0.87em 0;
148+
margin: 1.33em 0 0.7em 0;
141149
line-height: 1.05em;
142150
}
143151

144152
h1 {
145-
font-size: 2em;
153+
font-size: 2em;
146154
}
147155

148-
149-
#content > h1, * + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
150-
margin-top: 1.68em;
151-
}
152-
153-
p + ul {
154-
margin-top: 0.75em;
155-
}
156-
157-
ul + p {
158-
margin-top: 1.5em;
156+
#content h1:first-of-type {
157+
margin-top: 1.6em;
158+
margin-bottom: 0.75em;
159159
}
160160

161161
ul.links li {
@@ -226,6 +226,7 @@ pre + pre {
226226
table-layout: fixed;
227227
width: 100%;
228228
margin: 7px 0;
229+
line-height: 1.2em;
229230
}
230231

231232
div#properties table.properties thead,
@@ -236,9 +237,8 @@ div#properties table.properties th {
236237
display: block;
237238
}
238239

239-
div#properties table.properties tr + tr {
240-
padding-top: 0.33rem;
241-
clear: both;
240+
div#properties table.properties td {
241+
font-size: 1rem;
242242
}
243243

244244
div#properties table.properties tr {
@@ -290,7 +290,7 @@ table.properties td, table.properties th {
290290

291291
@media only screen and (min-width: 1920px) {
292292
#content {
293-
width: 55vw;
293+
width: 60vw;
294294
}
295295
}
296296

@@ -350,7 +350,7 @@ table.properties td, table.properties th {
350350
div #properties {
351351
float:right;
352352
background: #fefefe;
353-
width: 30%;
353+
width: 40%;
354354
margin-left: 2em;
355355
margin-bottom: 2em;
356356
}
@@ -891,11 +891,6 @@ p.tip {
891891
border: 1px solid #d8d7ad;
892892
padding: 0.5em 1em;
893893
margin: 0.5em 0 1em 1em;
894-
/*
895-
padding: 0.25em;
896-
margin: 0.8em 0;
897-
border-bottom: 0.25em solid white;
898-
*/
899894
}
900895

901896
.embedded-author-content img {
@@ -933,7 +928,7 @@ table.fancy th {
933928

934929
table.fancy td, table.properties td,
935930
table.fancy th, table.properties th {
936-
padding: 0.25em 0.5em;
931+
padding: 0.15em 0.45em;
937932
}
938933

939934
table.dataTable.compact.fancy tbody th,

0 commit comments

Comments
 (0)