summaryrefslogtreecommitdiff
path: root/addons/event/static
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/event/static
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/event/static')
-rw-r--r--addons/event/static/src/scss/event.scss8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/event/static/src/scss/event.scss b/addons/event/static/src/scss/event.scss
index 4f4d8c2bb86..df173a9ab70 100644
--- a/addons/event/static/src/scss/event.scss
+++ b/addons/event/static/src/scss/event.scss
@@ -4,13 +4,13 @@
position: relative;
padding: 0;
- .o-flex-display();
+ @include o-flex-display;
.o_event_left {
- .o-flex(1, 1, 25%);
+ @include o-flex(1, 1, 25%);
text-align: center;
color: white;
- background-color: @odoo-brand-optional;
+ background-color: $odoo-brand-optional;
padding: 8px;
.o_day {
@@ -19,7 +19,7 @@
}
.o_event_right {
- .o-flex(1, 1, 75%);
+ @include o-flex(1, 1, 75%);
padding: 8px;
margin-left: 8px;
}