diff options
Diffstat (limited to 'addons/web_editor/static/src/scss/web_editor.variables.scss')
| -rw-r--r-- | addons/web_editor/static/src/scss/web_editor.variables.scss | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/scss/web_editor.variables.scss b/addons/web_editor/static/src/scss/web_editor.variables.scss index fd89f662567..21ce8c9fe8d 100644 --- a/addons/web_editor/static/src/scss/web_editor.variables.scss +++ b/addons/web_editor/static/src/scss/web_editor.variables.scss @@ -440,3 +440,18 @@ $o-color-extras-nesting-selector: '&, .o_colored_level &'; @include o-bg-color(o-color($-related-color), $background: $background, $important: false); } } + +// Print a document property the right way (depending on the type of the printed +// variable). +@mixin print-variable($key, $value) { + @if $value != null { + $-type: type-of($value); + @if $-type == 'string' { + --#{$key}: '#{$value}'; + } @else if $-type == 'list' { + --#{$key}: #{inspect($value)}; + } @else { + --#{$key}: #{$value}; + } + } +} |
