Browse Source

Move wrapper style inside `protectedCss`

pull/600/head
Artur Arseniev 9 years ago
parent
commit
2582eee067
  1. 8
      src/css_composer/index.js
  2. 1
      src/dom_components/config/config.js
  3. 2
      src/editor/config/config.js

8
src/css_composer/index.js

@ -291,7 +291,7 @@ module.exports = () => {
/**
* Add/update a css rule with id selector
* Add/update the CSS rule with id selector
* @param {string} name Id selector name, eg. 'my-id'
* @param {Object} style Style properties and values
* @param {Object} [opts={}] Custom options, like `state` and `mediaText`
@ -315,7 +315,7 @@ module.exports = () => {
/**
* Get css rule by id selector
* Get the CSS rule by id selector
* @param {string} name Id selector name, eg. 'my-id'
* @param {Object} [opts={}] Custom options, like `state` and `mediaText`
* @return {CssRule}
@ -332,7 +332,7 @@ module.exports = () => {
/**
* Add/update a css rule with class selector
* Add/update the CSS rule with class selector
* @param {string} name Class selector name, eg. 'my-class'
* @param {Object} style Style properties and values
* @param {Object} [opts={}] Custom options, like `state` and `mediaText`
@ -356,7 +356,7 @@ module.exports = () => {
/**
* Get css rule by class selector
* Get the CSS rule by class selector
* @param {string} name Class selector name, eg. 'my-class'
* @param {Object} [opts={}] Custom options, like `state` and `mediaText`
* @return {CssRule}

1
src/dom_components/config/config.js

@ -7,7 +7,6 @@ module.exports = {
// Default wrapper configuration
wrapper: {
style: {margin: 0},
removable: false,
copyable: false,
draggable: false,

2
src/editor/config/config.js

@ -31,7 +31,7 @@ module.exports = {
width: '100%',
// CSS that could only be seen (for instance, inside the code viewer)
protectedCss: '* { box-sizing: border-box; }',
protectedCss: '* { box-sizing: border-box; } body {margin: 0;}',
// CSS for the iframe which containing the canvas, useful if you need to custom something inside
// (eg. the style of the selected component)

Loading…
Cancel
Save