File tree Expand file tree Collapse file tree 1 file changed +18
-11
lines changed Expand file tree Collapse file tree 1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ table.properties td, table.properties th {
312
312
313
313
@media only screen and (min-width : 1920px ) {
314
314
# content {
315
+ /* keep this in sync with #left-pane children */
315
316
width : 60vw ;
316
317
}
317
318
}
@@ -375,18 +376,28 @@ table.properties td, table.properties th {
375
376
margin-bottom : 2em ;
376
377
}
377
378
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
- width : calc (60% - 2em );
379
+ # left-pane > * {
380
+ /* (100% - (width of properties)) * (width of #content) - gap
381
+ * = (100% - 40% ) * 60vw - 2em
382
+ * = 60% * 60vw - 2em
383
+ * = 36vw - 2em
384
+ */
385
+ width : calc (36vw - 2em );
386
+ }
387
+
388
+ # left-pane > # modules {
389
+ /* This overrides the width in the previous block. We want a long module
390
+ * name to make the left-pane wide, so that it will push down
391
+ * #properties.
392
+ */
393
+ width : fit-content;
385
394
}
386
395
387
396
# flex-container {
388
397
display : flex;
389
398
flex-wrap : wrap;
399
+ justify-content : space-between;
400
+ gap : 2em ; /* keep this in sync with calculation above */
390
401
}
391
402
}
392
403
@@ -845,10 +856,6 @@ ul.links li form button {
845
856
padding-left : 1em ;
846
857
}
847
858
848
- # module-list {
849
- overflow-x : auto;
850
- }
851
-
852
859
# module-list ul {
853
860
list-style : none;
854
861
margin : 0 0 0 20px ;
You can’t perform that action at this time.
0 commit comments