summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/css
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2015-06-25 10:15:45 +0200
committerDavid Monjoie <dmo@odoo.com>2015-07-20 15:00:24 +0200
commitdf9725df26ed123752313545e2a7ea186ca88817 (patch)
treebdae5e5db253ccfcb346d04807e1a703fe466907 /addons/web_editor/static/src/css
parent61ecac539e98200ce5bd57d604c64064b1ed4299 (diff)
[IMP] web_editor,website: added scalable margins in less
The original commit by fka used to define less variables like this: @px-4: 4px @px-8: 8px The goal was to be able to change the margin values in media queries for smaller screens. However, as the less is only compiled once in css, those variables didn't really help as you couldn't redefine them from inside a media query and have the less magically reassign the margins on the fly. I created less helper functions to be able to easily redefine the margins for smaller screens from inside media queries. The task also required to replace the nbsp in the html by the newly created mr and ml classes. This is also the first phase of the sass -> less transition.
Diffstat (limited to 'addons/web_editor/static/src/css')
-rw-r--r--addons/web_editor/static/src/css/web_editor.css97
-rw-r--r--addons/web_editor/static/src/css/web_editor.sass55
2 files changed, 0 insertions, 152 deletions
diff --git a/addons/web_editor/static/src/css/web_editor.css b/addons/web_editor/static/src/css/web_editor.css
index 09a55ac9846..f83b5628b4e 100644
--- a/addons/web_editor/static/src/css/web_editor.css
+++ b/addons/web_editor/static/src/css/web_editor.css
@@ -25,103 +25,6 @@
min-width: 20px;
}
-/* Vertical Spacing */
-.mt128 {
- margin-top: 128px !important;
-}
-
-.mt92 {
- margin-top: 92px !important;
-}
-
-.mt64 {
- margin-top: 64px !important;
-}
-
-.mt48 {
- margin-top: 48px !important;
-}
-
-.mt32 {
- margin-top: 32px !important;
-}
-
-.mt16 {
- margin-top: 16px !important;
-}
-
-.mt8 {
- margin-top: 8px !important;
-}
-
-.mt4 {
- margin-top: 4px !important;
-}
-
-.mt0 {
- margin-top: 0px !important;
-}
-
-.mb128 {
- margin-bottom: 128px !important;
-}
-
-.mb92 {
- margin-bottom: 92px !important;
-}
-
-.mb64 {
- margin-bottom: 64px !important;
-}
-
-.mb48 {
- margin-bottom: 48px !important;
-}
-
-.mb32 {
- margin-bottom: 32px !important;
-}
-
-.mb16 {
- margin-bottom: 16px !important;
-}
-
-.mb8 {
- margin-bottom: 8px !important;
-}
-
-.mb4 {
- margin-bottom: 4px !important;
-}
-
-.mb0 {
- margin-bottom: 0px !important;
-}
-
-.ml8 {
- margin-left: 8px !important;
-}
-
-.ml4 {
- margin-left: 4px !important;
-}
-
-.ml0 {
- margin-left: 0px !important;
-}
-
-.mr8 {
- margin-right: 8px !important;
-}
-
-.mr4 {
- margin-right: 4px !important;
-}
-
-.mr0 {
- margin-right: 0px !important;
-}
-
/* Media */
img.shadow {
-moz-box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
diff --git a/addons/web_editor/static/src/css/web_editor.sass b/addons/web_editor/static/src/css/web_editor.sass
index c9ea7876c16..2b5b4a8ee2f 100644
--- a/addons/web_editor/static/src/css/web_editor.sass
+++ b/addons/web_editor/static/src/css/web_editor.sass
@@ -27,61 +27,6 @@
td
min-width: 20px
-
-/* Vertical Spacing */
-
-.mt128
- margin-top: 128px !important
-.mt92
- margin-top: 92px !important
-.mt64
- margin-top: 64px !important
-.mt48
- margin-top: 48px !important
-.mt32
- margin-top: 32px !important
-.mt16
- margin-top: 16px !important
-.mt8
- margin-top: 8px !important
-.mt4
- margin-top: 4px !important
-.mt0
- margin-top: 0px !important
-
-.mb128
- margin-bottom: 128px !important
-.mb92
- margin-bottom: 92px !important
-.mb64
- margin-bottom: 64px !important
-.mb48
- margin-bottom: 48px !important
-.mb32
- margin-bottom: 32px !important
-.mb16
- margin-bottom: 16px !important
-.mb8
- margin-bottom: 8px !important
-.mb4
- margin-bottom: 4px !important
-.mb0
- margin-bottom: 0px !important
-
-.ml8
- margin-left: 8px !important
-.ml4
- margin-left: 4px !important
-.ml0
- margin-left: 0px !important
-
-.mr8
- margin-right: 8px !important
-.mr4
- margin-right: 4px !important
-.mr0
- margin-right: 0px !important
-
/* Media */
img.shadow