UNPKG

@dknight/puff

Version:

Full-featured, lightweight CSS framework that maintained

89 lines (82 loc) 1.01 kB
/** * Links */ a { color: var(--c-pri); /* TODO: wait for relative colors */ background-image: linear-gradient(-90deg, blue, red); background-clip: text; } a:not(.button):hover { color: var(--c-sec); } p { margin: 0 0 calc(var(--s) * 2); } /** * Headings */ h1, h2, h3, h4, h5, h6 { margin-bottom: var(--s); } h1 { font: 300 2.5rem/150% var(--ff); } h2 { font: 300 2.2rem/150% var(--ff); } h3 { font: 300 1.8rem/140% var(--ff); } h4 { font: 300 1.5rem/140% var(--ff); } h5 { font: 300 1.2rem/130% var(--ff); } h6 { font: 300 1rem var(--ff); } /** * Text size */ .xs { font-size: 0.75rem; } .s { font-size: 0.9rem; } .l { font-size: 1.25rem; line-height: 140%; } .xl { font-size: 1.5rem; line-height: 140%; } .xxl { font-size: 2rem; } .xxxl { font-size: 5rem; } /** * Text alignemnt */ .ts { /* deal with polyfills */ /* text-align: start; */ text-align: left; } .te { /* text-align: end; */ text-align: right; } .tc { text-align: center; }