Начат фронтенд
This commit is contained in:
24
node_modules/autoprefixer/lib/hacks/grid-template-areas.js
generated
vendored
24
node_modules/autoprefixer/lib/hacks/grid-template-areas.js
generated
vendored
@@ -1,12 +1,12 @@
|
||||
let Declaration = require('../declaration')
|
||||
let {
|
||||
getGridGap,
|
||||
inheritGridGap,
|
||||
parseGridAreas,
|
||||
warnMissedAreas,
|
||||
prefixTrackProp,
|
||||
prefixTrackValue,
|
||||
getGridGap,
|
||||
warnGridGap,
|
||||
warnMissedAreas
|
||||
inheritGridGap
|
||||
} = require('./grid-utils')
|
||||
|
||||
function getGridRows(tpl) {
|
||||
@@ -39,8 +39,8 @@ class GridTemplateAreas extends Declaration {
|
||||
hasRows = true
|
||||
let { prop, value } = trackDecl
|
||||
trackDecl.cloneBefore({
|
||||
prop: prefixTrackProp({ prefix, prop }),
|
||||
value: prefixTrackValue({ gap: gap.row, value })
|
||||
prop: prefixTrackProp({ prop, prefix }),
|
||||
value: prefixTrackValue({ value, gap: gap.row })
|
||||
})
|
||||
} else {
|
||||
hasColumns = true
|
||||
@@ -52,25 +52,25 @@ class GridTemplateAreas extends Declaration {
|
||||
if (hasColumns && !hasRows && gap.row && gridRows.length > 1) {
|
||||
decl.cloneBefore({
|
||||
prop: '-ms-grid-rows',
|
||||
raws: {},
|
||||
value: prefixTrackValue({
|
||||
gap: gap.row,
|
||||
value: `repeat(${gridRows.length}, auto)`
|
||||
})
|
||||
value: `repeat(${gridRows.length}, auto)`,
|
||||
gap: gap.row
|
||||
}),
|
||||
raws: {}
|
||||
})
|
||||
}
|
||||
|
||||
// warnings
|
||||
warnGridGap({
|
||||
decl,
|
||||
gap,
|
||||
hasColumns,
|
||||
decl,
|
||||
result
|
||||
})
|
||||
|
||||
let areas = parseGridAreas({
|
||||
gap,
|
||||
rows: gridRows
|
||||
rows: gridRows,
|
||||
gap
|
||||
})
|
||||
|
||||
warnMissedAreas(areas, decl, result)
|
||||
|
||||
Reference in New Issue
Block a user