summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/animation.scss
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-03-12 16:25:32 +0100
committerqsm-odoo <qsm@odoo.com>2018-04-18 15:59:16 +0200
commit97aa0a8dec384ad75eb66045f43384b6e54f1d6e (patch)
treeff62455c37178caad486a7d1dc90231d91cb6871 /addons/web/static/src/scss/animation.scss
parentb04dec4025013c60e4857c1e177bb20d811cd41a (diff)
[REF] *: convert less content to scss content
Convert content so that the assets compile on app installation. The style is still broken after this as the variables/mixins/... are not defined in the right order (as it did not matter in LESS but does in SCSS). This commit basically changes: - Variables: @​var_hello -> $var-hello - Mixins: .mixin_world() {} -> @​mixin mixin-world {} - Classes used as mixin: .my_class() -> @​extend .my_class - Here there were no other solution than to convert the use of a mixin call by the use of an extend as a first approximation - LESS functions -> SCSS functions (e.g. fade -> rgba) - Move first variable definition before the variable is used - Still need to make sure last variable definition is at the right place
Diffstat (limited to 'addons/web/static/src/scss/animation.scss')
-rw-r--r--addons/web/static/src/scss/animation.scss14
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/web/static/src/scss/animation.scss b/addons/web/static/src/scss/animation.scss
index 6da0a1f9d64..92097a23298 100644
--- a/addons/web/static/src/scss/animation.scss
+++ b/addons/web/static/src/scss/animation.scss
@@ -146,16 +146,16 @@
}
/************** MIXINS for ANIMATIONS **************/
-.o-display-marked(@content, @top, @left, @color) {
- .o-position-absolute(@top: @top, @left: @left);
+@mixin o-display-marked($content, $top, $left, $color) {
+ @include o-position-absolute($top: $top, $left: $left);
font-size: 300px;
font-family: "FontAwesome";
- content: @content;
- color: @color;
- .o-transform-origin();
- .o-animation(markAnim, 1s, ease-in-out, 0s, 1, normal, forwards);
+ content: $content;
+ color: $color;
+ @include o-transform-origin;
+ @include o-animation(markAnim, 1s, ease-in-out, 0s, 1, normal, forwards);
- @media (max-width: @screen-sm-max) {
+ @media (max-width: $screen-sm-max) {
left: 40%;
font-size: 30vw;
}