All files / src getReset.js

100% Statements 7/7
0% Branches 0/1
100% Functions 2/2
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161x 1x   1x     3x 3x   3x       3x    
const viewResetStyle = `display:flex;overflow:hidden;align-self:stretch;flex-direction:column;flex-shrink:0;max-width:100%;box-sizing:border-box`
const textResetStyle = `display:inline`
 
const rootResetStyle = `${viewResetStyle};position:fixed;top:0;bottom:0;left:0;right:0`
 
export function baseReset(generateClassName) {
  const viewClassName = generateClassName('view')
  const textClassName = generateClassName('text')
 
  return `.${viewClassName}{${viewResetStyle}}.${textClassName}{${textResetStyle}}`
}
 
export function rootReset(rootNode = 'body') {
  return `${rootNode}{${rootResetStyle}}`
}