layout.css
ASCII text
1x-hbox { 2display: flex; 3flex-direction: row; 4gap: var(--gap-box); 5} 6 7x-vbox { 8display: flex; 9flex-direction: column; 10gap: var(--gap-box); 11} 12 13x-hbox.homogenous > *, x-hbox.homogenous > * { 14flex: 1; 15} 16 17x-hbox.wrap, x-vbox.wrap { 18flex-wrap: wrap; 19} 20 21x-rows { 22display: grid; 23grid-template-columns: repeat(auto-fill, minmax(var(--preferred-width), 1fr)); 24gap: var(--gap-box); 25} 26 27x-buttonbox { 28display: flex; 29flex-flow: row wrap; 30gap: var(--gap-buttonbox); 31} 32 33x-buttonbox.buttonbox-right { 34justify-content: flex-end; 35} 36 37x-buttonbox :is(button, .button, input[type="button"], input[type="submit"]) { 38margin: 0; 39} 40 41:is(x-hbox, x-vbox, x-buttonbox, x-rows).nopad { 42gap: 0; 43} 44 45x-frame { 46max-width: var(--width, 100%); 47width: min(var(--width), 100%); 48min-height: var(--height, 100%); 49max-height: var(--height, 100%); 50height: min(var(--height), 100%); 51padding: var(--padding, 0); 52margin: var(--margin, 0 auto); 53display: block; 54} 55