margin (with auto), min-width, max-width, max-height, overflow and text-align now compile to Kryon's StyleBoxData instead of passing to the browser. Compiled packs use a single 69-word rule and 22-word condition layout; a pack in an older layout is refused as stale, and the five rule formats and the old condition format are gone. The layout test checks centering, margins, clamps and clipping at 550 and 1200 px. Tests import kryon/Frame. Pins Kryon 28453c71.
78 lines
1.1 KiB
CSS
78 lines
1.1 KiB
CSS
Row.packed, Column.packed {
|
|
width: 5.5rem;
|
|
height: 35px;
|
|
}
|
|
|
|
Row.packed#fluid {
|
|
width: auto;
|
|
}
|
|
|
|
Section.dashboard {
|
|
gap: 10px;
|
|
padding: 16px;
|
|
}
|
|
|
|
Grid.panels {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px 14px;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
Grid.metrics {
|
|
grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
Grid.panels { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
|
|
@media (min-width: 75rem) {
|
|
Grid.panels { row-gap: 20px; }
|
|
}
|
|
|
|
Row.filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 5px 10px;
|
|
padding: 3px 5px;
|
|
}
|
|
|
|
Text.primary-filter {
|
|
flex: 1 0 15rem;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
Text.secondary-filter {
|
|
flex: none;
|
|
}
|
|
|
|
@media (min-width: 75rem) {
|
|
Row.filters {
|
|
flex-direction: row-reverse;
|
|
flex-wrap: nowrap;
|
|
}
|
|
}
|
|
|
|
Column.page {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
Column.inset {
|
|
margin: 4px 6px 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
Row.bounded {
|
|
min-width: 300px;
|
|
max-height: 24px;
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
Column.page { max-width: none; margin-inline: 1rem; }
|
|
}
|
|
|
|
Text.centered { text-align: center; }
|