Skip to content

Commit a024bc8

Browse files
committed
Use flexbox instead of float
1 parent 6c8689a commit a024bc8

File tree

3 files changed

+212
-208
lines changed

3 files changed

+212
-208
lines changed

datafiles/static/hackage.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,24 @@ table.properties td, table.properties th {
370370
}
371371

372372
div #properties {
373-
float:right;
374373
background: #fefefe;
375374
width: 40%;
376-
margin-left: 2em;
377375
margin-bottom: 2em;
378376
}
377+
378+
#left-pane {
379+
margin-right: 2em;
380+
/* The margin is subtracted. Without this line, a narrow left-pane would
381+
* leave a narrow properties pane with space on the right. So we make the
382+
* left-pane take the space that the properties pane is not allotted.
383+
* That leaves no space on the right. */
384+
min-width: calc(60% - 2em);
385+
}
386+
387+
#flex-container {
388+
display: flex;
389+
flex-wrap: wrap;
390+
}
379391
}
380392

381393
@media only screen and (max-width: 949px) {

0 commit comments

Comments
 (0)