jxSizingRules top-level constant
Sizing : w:, h:, mw:, mh:.
Implementation
const List<JxRuleContract> jxSizingRules = [
JxValueRule(
'width',
properties: {
'w': ['width'],
},
themeCategory: JxThemeCategory.spacing,
keywords: {..._sizeKeywords, 'screen': '100vw'},
),
JxValueRule(
'height',
properties: {
'h': ['height'],
},
themeCategory: JxThemeCategory.spacing,
keywords: {..._sizeKeywords, 'screen': '100vh'},
),
JxValueRule(
'max-width',
properties: {
'mw': ['max-width'],
},
themeCategory: JxThemeCategory.spacing,
keywords: {..._sizeKeywords, 'none': 'none', 'screen': '100vw'},
disallowed: {'auto'},
),
JxValueRule(
'max-height',
properties: {
'mh': ['max-height'],
},
themeCategory: JxThemeCategory.spacing,
keywords: {..._sizeKeywords, 'none': 'none', 'screen': '100vh'},
disallowed: {'auto'},
),
// `mnw:0` est indispensable aux enfants de grilles et de flex qui doivent
// pouvoir rétrécir ; `mnh:` fixe la hauteur de départ d'un champ
// `fsz:content`.
JxValueRule(
'min-width',
properties: {
'mnw': ['min-width'],
},
themeCategory: JxThemeCategory.spacing,
keywords: {..._sizeKeywords, 'screen': '100vw'},
disallowed: {'auto'},
),
JxValueRule(
'min-height',
properties: {
'mnh': ['min-height'],
},
themeCategory: JxThemeCategory.spacing,
keywords: {..._sizeKeywords, 'screen': '100vh'},
disallowed: {'auto'},
),
];