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/note | |
| 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/note')
| -rw-r--r-- | addons/note/static/src/scss/note.scss | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/note/static/src/scss/note.scss b/addons/note/static/src/scss/note.scss index 926e7ddb913..428c58ec28e 100644 --- a/addons/note/static/src/scss/note.scss +++ b/addons/note/static/src/scss/note.scss @@ -8,7 +8,7 @@ margin-bottom: 0; } .oe_form_field.oe_memo { - margin: 0 (@padding-large-horizontal * -1); + margin: 0 ($padding-large-horizontal * -1); padding: 0; min-height: 200px; @@ -18,8 +18,8 @@ } &.o_form_readonly { .oe_memo { - padding: @padding-large-horizontal; - border-bottom: 1px solid @legend-border-color; + padding: $padding-large-horizontal; + border-bottom: 1px solid $legend-border-color; } } } @@ -30,13 +30,13 @@ .o_channel_info { .o_channel_title { .o_channel_name { - .o-flex(1, 1, 100%); + @include o-flex(1, 1, 100%); } } .o_note_input_box { - .o-flex-display(); + @include o-flex-display; p { - .o-flex(1, 1, auto); + @include o-flex(1, 1, auto); } } .o_note_save { @@ -60,4 +60,4 @@ } } } -}
\ No newline at end of file +} |
