mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-15 11:45:40 +00:00
Improve multicolumn display to avoid super narrow columns
This commit is contained in:
parent
1e70e097e7
commit
36ae2e82be
@ -130,19 +130,25 @@ type: text/vnd.tiddlywiki
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
|
.tc-grid-columns {
|
||||||
|
display: grid;
|
||||||
.tc-flex-columns {
|
grid-template-columns: repeat(auto-fit, minmax(25em, 1fr));
|
||||||
display: flex;
|
gap: 1em;
|
||||||
gap: 1em;
|
width: 100%; /* Ensures container stretches fully */
|
||||||
}
|
|
||||||
|
|
||||||
.tc-flex-columns.tc-flex-columns-2 > div {
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tc-grid-columns.tc-grid-columns-2 > div {
|
||||||
|
border-radius: 1em;
|
||||||
|
padding: 1em;
|
||||||
|
background-color: <<colour alert-background>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tc-grid-columns.tc-grid-columns-2 > div:nth-child(odd) {
|
||||||
|
color: <<colour diff-delete-foreground>>;
|
||||||
|
background-color: <<colour diff-delete-background>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.tc-saving-sidebar-category { margin-bottom:10px; }
|
.tc-saving-sidebar-category { margin-bottom:10px; }
|
||||||
.tc-saving-sidebar-category-title { margin-bottom:5px; font-weight:bold; }
|
.tc-saving-sidebar-category-title { margin-bottom:5px; font-weight:bold; }
|
||||||
.tc-saving-sidebar-category-item { margin-left:10px; white-space:nowrap; }
|
.tc-saving-sidebar-category-item { margin-left:10px; white-space:nowrap; }
|
||||||
|
Loading…
Reference in New Issue
Block a user