Releases: master-co/css
Releases Β· master-co/css
v2.0.0-beta.213
v2.0.0-beta.212
v2.0.0-beta.211
v2.0.0-beta.210
v2.0.0-beta.209
v2.0.0-beta.208
New Features
-
Multiplier unit
x
andconfig.baseUnit
#316 51bf4a2 @BenSeageFor example, with the default
baseUnit: 4
, the spacing scale1x, 2x, β¦
will be4, 8, β¦
.<div class="m:4x"></div>
Generated CSS:
.m\:4x { margin: 1rem; }
How is 1rem calculated?
4x = 4(multiplier)*4(base unit) = 16px, 16px / 16(root size) = 1rem
So you don't need to define the spacing scale one by one:
export default { - variables: { - spacing: { - '1x': 4, - '2x': 8, - '3x': 12, - ..., - '40x': 160 - } - } }
v2.0.0-beta.207
v2.0.0-beta.206
Performance Upgrades
Deprecations
- Nested variable definitions to align rules 1ad1e7a @1aron
import { variables } from '@master/css' /** @type {import('@master/css').Config} */ export default { variables: { - font: { - family: { - sans: ['Inter', ...variables.font.family.sans] - } - } + 'font-family': { + sans: ['Inter', ...variables['font-family'].sans] + } } }
Documentation
v2.0.0-beta.205
v2.0.0-beta.204
Additions
Normal CSS
- Eliminate click delays on touch devices 1ed5cf6 @1aron
- Make media elements responsive a8171cf @1aron
Improvements
Normal CSS
Bug Fixes
Server Nitro
Documentation
- Add Remove tap highlight color section 785b145 @1aron
- Improve Global Styles documentation 1c19be1 @1aron