From 770aec399c4e6e29cfc5854318cbda19a605315d Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 27 Jun 2018 17:55:08 +0200 Subject: [REF] *: get rid of vendor prefixes BS4 do not provide vendor prefixes scss mixins anymore as it is meant to be used with the 'autoprefixer' library. As we only support the last version of every major browsers in Odoo, we took the decision to not use the library as it was also complex to integrate in Odoo. We decided to do the library's work by hand if it ever become necessary. --- addons/note/static/src/scss/note.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/note/static/src') diff --git a/addons/note/static/src/scss/note.scss b/addons/note/static/src/scss/note.scss index f1e90d80d57..c487e7bbb85 100644 --- a/addons/note/static/src/scss/note.scss +++ b/addons/note/static/src/scss/note.scss @@ -30,13 +30,13 @@ .o_preview_info { .o_preview_title { .o_preview_name { - @include o-flex(1, 1, 100%); + flex: 1 1 100%; } } .o_note_input_box { - @include o-flex-display; + display: flex; p { - @include o-flex(1, 1, auto); + flex: 1 1 auto; } } .o_note_save { -- cgit v1.2.3 From 7f10b55a5035bd3cab48ba58a519510a25b94f60 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 24 Apr 2018 17:15:00 +0200 Subject: [REF] *: BS4, adapt display classes The system completely changed. I also had to adapt classes to new screen breakpoints. hidden/hide -> d-none show -> d-block hidden-xs -> d-none d-md-(block/inline/...) hidden-sm -> d-md-none d-lg-(block/inline/...) hidden-md -> d-lg-none d-xl-(block/inline/...) hidden-lg -> d-xl-none visible-xs-* -> d-* d-md-none visible-sm-* -> d-none d-md-* d-lg-none visible-md-* -> d-none d-lg-* d-xl-none visible-lg-* -> d-none d-xl-* hidden-print -> d-print-none visible-print-* -> d-none d-print-* ... and all possible combination of those had to be handled too. --- addons/note/static/src/js/systray_activity_menu.js | 6 +++--- addons/note/static/src/xml/systray.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'addons/note/static/src') diff --git a/addons/note/static/src/js/systray_activity_menu.js b/addons/note/static/src/js/systray_activity_menu.js index 8194cc17e6a..f65dfce244f 100644 --- a/addons/note/static/src/js/systray_activity_menu.js +++ b/addons/note/static/src/js/systray_activity_menu.js @@ -48,8 +48,8 @@ ActivityMenu.include({ if (noteDateTime) { params = _.extend(params, {'date_deadline': noteDateTime}); } - this.$('.o_note_show').removeClass('hidden'); - this.$('.o_note').addClass('hidden'); + this.$('.o_note_show').removeClass('d-none'); + this.$('.o_note').addClass('d-none'); this._rpc({ route: '/note/new', params: params, @@ -91,7 +91,7 @@ ActivityMenu.include({ } this.noteDateTimeWidget.appendTo(this.$('.o_note_datetime')); this.noteDateTimeWidget.$input.attr('placeholder', _t("Today")); - this.$('.o_note_show, .o_note').toggleClass('hidden'); + this.$('.o_note_show, .o_note').toggleClass('d-none'); this.$('.o_note_input').val('').focus(); }, /** diff --git a/addons/note/static/src/xml/systray.xml b/addons/note/static/src/xml/systray.xml index d1676c63761..56693a14544 100644 --- a/addons/note/static/src/xml/systray.xml +++ b/addons/note/static/src/xml/systray.xml @@ -5,7 +5,7 @@ -