jxMediaRules top-level constant
Médias et fonds : ar:, obf:, obp:, bgp:, bgr:, mix:, bs:.
Implementation
const List<JxRuleContract> jxMediaRules = [
JxValueRule(
'aspect-ratio',
properties: {
'ar': ['aspect-ratio'],
},
keywords: {
'auto': 'auto',
'square': '1 / 1',
'video': '16 / 9',
'photo': '4 / 3',
'portrait': '3 / 4',
},
fallback: _aspect,
),
JxValueRule(
'object-fit',
properties: {
'obf': ['object-fit'],
},
keywords: {
'contain': 'contain',
'cover': 'cover',
'fill': 'fill',
'none': 'none',
'scale-down': 'scale-down',
},
allowArbitrary: false,
),
JxValueRule(
'object-position',
properties: {
'obp': ['object-position'],
},
keywords: _positions,
),
JxValueRule(
'background-position',
properties: {
'bgp': ['background-position'],
},
keywords: _positions,
),
JxValueRule(
'background-repeat',
properties: {
'bgr': ['background-repeat'],
},
keywords: {
'repeat': 'repeat',
'none': 'no-repeat',
'x': 'repeat-x',
'y': 'repeat-y',
'round': 'round',
'space': 'space',
},
allowArbitrary: false,
),
JxValueRule(
'mix-blend-mode',
properties: {
'mix': ['mix-blend-mode'],
},
keywords: {
'normal': 'normal',
'multiply': 'multiply',
'screen': 'screen',
'overlay': 'overlay',
'darken': 'darken',
'lighten': 'lighten',
'difference': 'difference',
'luminosity': 'luminosity',
},
allowArbitrary: false,
),
JxValueRule(
'border-style',
properties: {
'bs': ['border-style'],
},
keywords: {
'solid': 'solid',
'dashed': 'dashed',
'dotted': 'dotted',
'double': 'double',
'none': 'none',
'hidden': 'hidden',
},
allowArbitrary: false,
),
];