diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-03-12 16:25:32 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-04-18 15:59:16 +0200 |
| commit | 97aa0a8dec384ad75eb66045f43384b6e54f1d6e (patch) | |
| tree | ff62455c37178caad486a7d1dc90231d91cb6871 /addons/project/static/src | |
| parent | b04dec4025013c60e4857c1e177bb20d811cd41a (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/project/static/src')
| -rw-r--r-- | addons/project/static/src/scss/project_dashboard.scss | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/project/static/src/scss/project_dashboard.scss b/addons/project/static/src/scss/project_dashboard.scss index e0331ad5790..50cbb7b4ac9 100644 --- a/addons/project/static/src/scss/project_dashboard.scss +++ b/addons/project/static/src/scss/project_dashboard.scss @@ -1,7 +1,7 @@ .o_kanban_view.o_kanban_dashboard.o_project_kanban { .o_project_kanban_boxes { - .o-flex-display(); - .o-flex-flow(row, nowrap); + @include o-flex-display; + @include o-flex-flow(row, nowrap); .o_project_kanban_box { position: relative; @@ -32,7 +32,7 @@ font-size: small; font-weight: 400; margin-left: 4px; - .o-hover-opacity(0.5, 1); + @include o-hover-opacity(0.5, 1); &:before { content: "/ "; @@ -66,10 +66,10 @@ outline: 2px solid transparent; box-shadow: 0px 0px 1px 1px #ccc; &.o_selected { - outline-color: @odoo-brand-optional; + outline-color: $odoo-brand-optional; } > img { - .o-position-absolute(@top: 0; @left: 0; @right: 0; @bottom: 0); + @include o-position-absolute($top: 0, $left: 0, $right: 0, $bottom: 0); margin: auto; max-height: 100%; max-width: 100%; |
