summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/css/web_editor.sass
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src/css/web_editor.sass')
-rw-r--r--addons/web_editor/static/src/css/web_editor.sass195
1 files changed, 195 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/css/web_editor.sass b/addons/web_editor/static/src/css/web_editor.sass
new file mode 100644
index 00000000000..75b4ad6c781
--- /dev/null
+++ b/addons/web_editor/static/src/css/web_editor.sass
@@ -0,0 +1,195 @@
+@charset "utf-8"
+@import "common"
+
+/* ----- EDITOR ----- */
+
+.css_non_editable_mode_hidden
+ display: none !important
+
+/* ----- Editor (for public user, like forum) ----- */
+
+.note-toolbar
+ margin-left: 0 !important
+
+.note-popover .popover > .arrow
+ display: none
+
+/* ----- GENERIC LAYOUTING HELPERS ---- */
+
+.hidden
+ display: none !important
+
+/* table */
+
+table.table
+ table-layout: fixed
+
+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
+ +box-shadow(0px 3px 8px rgba(0, 0, 0, 0.2))
+
+img, .img, span.fa, iframe
+ &.padding-small
+ padding: 4px
+ &.padding-medium
+ padding: 8px
+ &.padding-large
+ padding: 16px
+ &.padding-xl
+ padding: 32px
+div.media_iframe_video
+ &.padding-small iframe
+ padding: 4px
+ &.padding-medium iframe
+ padding: 8px
+ &.padding-large iframe
+ padding: 16px
+ &.padding-xl iframe
+ padding: 32px
+
+/* font awsome */
+
+.fa-6x
+ font-size: 6em
+.fa-7x
+ font-size: 7em
+.fa-8x
+ font-size: 8em
+.fa-9x
+ font-size: 9em
+.fa-10x
+ font-size: 10em
+.fa.center-block
+ text-align: center
+
+/* video */
+
+div.media_iframe_video
+ margin: 0 auto
+ text-align: center
+ position: relative
+ overflow: hidden
+ iframe
+ width: 100%
+ height: 100%
+ top: 0
+ position: absolute
+ margin: 0 auto
+ margin-left: -50%
+ .media_iframe_video_size
+ padding-bottom: 66.5%
+ position: relative
+ width: 100%
+ height: 0
+ .css_editable_mode_display
+ position: absolute
+ width: 100%
+ height: 100%
+ display: none
+ z-index: 2
+
+html[data-browser^="msie"] div.media_iframe_video iframe
+ margin-left: 0
+
+/* Mobile view */
+
+@media (max-width: 768px)
+ img:not(.cke_iframe), .media_iframe_video, span.fa, i.fa
+ -webkit-transform: none !important
+ -moz-transform: none !important
+ -ms-transform: none !important
+ -o-transform: none !important
+ transform: none !important
+
+/* ---- fields --- */
+
+address
+ .fa.fa-mobile-phone
+ margin: 0 3px 0 2px
+ .fa.fa-file-text-o
+ margin-right: 1px
+
+span[data-oe-type="monetary"]
+ white-space: nowrap
+
+/* ---- MENU ---- {{{ */
+
+div.oe_menu_buttons
+ top: -8px
+ right: -8px
+
+ul.oe_menu_editor
+ .fa-home
+ display: none
+ > li:first-child > div > span > .fa-home
+ display: block
+ .oe_menu_placeholder
+ outline: 1px dashed #4183C4
+ ul
+ list-style: none
+ li div
+ cursor: move
+ .disclose
+ cursor: pointer
+ width: 10px
+ display: none
+
+// }}}