Skip to content

Commit 9887d25

Browse files
committed
a few more header tweaks
1 parent 7c94de4 commit 9887d25

File tree

2 files changed

+32
-28
lines changed

2 files changed

+32
-28
lines changed

datafiles/static/hackage.css

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pre, code, kbd, samp, .src {
135135

136136
h1:first-of-type {
137137
font-size: 2em;
138-
line-height: 1.75rem;
138+
line-height: 1em;
139139
}
140140

141141

@@ -261,21 +261,6 @@ table.properties td, table.properties th {
261261
/* @group responsive */
262262

263263
@media only screen and (min-width: 1280px) {
264-
#page-header {
265-
text-align: left;
266-
overflow: visible;
267-
white-space: nowrap;
268-
display: inline-table;
269-
width: 100%;
270-
}
271-
272-
#page-header ul.links {
273-
list-style: none;
274-
text-align: left;
275-
float: right;
276-
display: inline-table;
277-
margin: 2px 2em 0 2em;
278-
}
279264

280265
#table-of-contents {
281266
position: fixed;
@@ -291,31 +276,51 @@ table.properties td, table.properties th {
291276
}
292277

293278
@media only screen and (max-width: 1280px) {
294-
#page-header {
295-
text-align: center;
296-
}
297279

298280
div #description img {
299281
max-width:45%;
300282
}
301283

302-
#page-header ul.links {
303-
float: none;
304-
display: block;
305-
text-align: center;
306-
margin: 14px 0 0px 0;
307-
}
308-
309284
#content {
310285
width: 75vw;
311286
}
312287
}
313288

289+
@media only screen and (min-width: 950px) {
290+
#page-header {
291+
text-align: left;
292+
overflow: visible;
293+
white-space: nowrap;
294+
display: inline-table;
295+
width: 100%;
296+
}
297+
298+
#page-header ul.links {
299+
list-style: none;
300+
text-align: left;
301+
float: right;
302+
display: inline-table;
303+
margin: 2px 1em 0 2em;
304+
}
305+
}
306+
314307
@media only screen and (max-width: 950px) {
315308
#content {
316309
width: 88vw;
317310
}
318311

312+
#page-header {
313+
text-align: center;
314+
}
315+
316+
#page-header ul.links {
317+
float: none;
318+
display: block;
319+
text-align: center;
320+
margin: 14px 0 0px 0;
321+
}
322+
323+
319324
div #properties {
320325
float:none;
321326
width:75vw;
@@ -353,7 +358,7 @@ table.properties td, table.properties th {
353358
#page-header .caption {
354359
background: url(https://hackage.haskell.org/static/icons/ic_haskell_grayscale_32.svg) no-repeat 0em;
355360
color: white;
356-
margin: 0 2em;
361+
margin: 0 1em 0 2em;
357362
font-weight: bold;
358363
font-style: normal;
359364
padding-left: 2.2em;

datafiles/templates/Html/package-page.html.st

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535

3636
<div id="properties">
37-
<!-- <h2>Properties</h2> -->
3837
<table class="properties">
3938
<tbody>
4039

0 commit comments

Comments
 (0)