Files
css/tests/css_layout.css
T
waozi b60763223b Make translate the standard move and rename the part metric
translate: x [y] is a transform property now: it moves the whole box at
paint time after rotate, scale and transform, through Kryon's paint
transform pass, and transition: translate eases it. The widget part
metric it used to set (a NavigationBar panel's width, a Modal panel, a
Segment's label padding) is -kryon-content-offset; the three presets
use it, and there is no alias. The pack format is 118 words a rule.

Tests: the classic pack keeps NavigationBar 340, Modal 420 and the
Segment label padding as content offsets with no visual translate, and
a :hover translate lifts a box by 2px and applies after rotate.
2026-11-23 04:44:46 -03:00

131 lines
2.7 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; }
Column.card {
background: #102030;
border: 1px solid #405060;
border-radius: 8px;
padding: 10px;
}
Column.half { width: 50%; height: 25%; }
Column.limited { max-width: 30%; min-width: 10%; }
Column.half-tall { height: 50%; }
Row.share { min-height: 50%; max-height: 80%; }
Text.quarter { flex: 0 0 25%; }
Column.ruled {
border: 1px solid #101010;
border-bottom: 2px solid #ff0000;
border-left-width: 4px;
border-left-color: #00ff00;
}
Button.ringed:focus-visible {
outline: 3px solid #38bdf8;
outline-offset: 2px;
}
Heading:not(.loud) { color: #050505; }
.panel Text { color: #010101; }
.panel > .direct { color: #020202; }
Text.lead:first-child { color: #030303; }
Text.quiet:not(:hover) { color: #040404; }
Column.sunrise { background: linear-gradient(90deg, #000000, #ffffff); }
Column.bands { background: linear-gradient(#ff0000, #00ff00, #0000ff); }
Column.lifted { background: #111111; transform: translate(4px, -3px); }
Column.grown { background: #222222; transform: scale(2); }
Column.turned { background: #333333; rotate: 90deg; }
Column.hoverlift { background: #444444; }
Column.hoverlift:hover { transform: translateY(-2px); }
Column.eased { background: #555555; transition: transform 100ms linear; }
Column.eased:hover { transform: translateX(10px); }
Column.raised { background: #666666; }
Column.raised:hover { translate: 0 -2px; }
Column.spun { background: #777777; rotate: 90deg; translate: 10px 0; }
Column.side { width: 120px; }
Column.grow { flex: 1; }
Row.push { width: 50px; margin-left: auto; }
@media (min-width: 75rem) {
Column.fluid-pad { padding: clamp(8px, 2vw, 20px); }
}