summaryrefslogtreecommitdiff
path: root/addons/website/static/src/css
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2014-01-14 18:17:38 +0100
committerThibault Delavallée <tde@openerp.com>2014-01-14 18:17:38 +0100
commit5be1dfda6efab3be1abe040be6a73e8a9c55d7a6 (patch)
treed8f0579b94f6315a0a7d71da8311b96559cad8e4 /addons/website/static/src/css
parent0aa495f5cbff9c77757c9f870b36c8888b5edd19 (diff)
parent45feba1f864565f01919f37c9411ac71b7c178ae (diff)
[MERGE] Sync with website-al
bzr revid: tde@openerp.com-20140114171738-zz4apq7nk5dcov0i
Diffstat (limited to 'addons/website/static/src/css')
-rw-r--r--addons/website/static/src/css/editor.css15
-rw-r--r--addons/website/static/src/css/editor.sass9
-rw-r--r--addons/website/static/src/css/website.css19
-rw-r--r--addons/website/static/src/css/website.sass11
4 files changed, 47 insertions, 7 deletions
diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css
index 79fcdb68ce0..d786830c8f5 100644
--- a/addons/website/static/src/css/editor.css
+++ b/addons/website/static/src/css/editor.css
@@ -81,6 +81,10 @@
outline: none !important;
}
+.css_editable_display {
+ display: block !important;
+}
+
.css_non_editable_mode_hidden {
display: none;
}
@@ -103,6 +107,14 @@
top: 2px;
}
+.oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child {
+ background-image: url("/website/static/src/img/edit_here.png") !important;
+}
+
+.oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before {
+ content: "Press The Top-Left Edit Button" !important;
+}
+
/* ---- EDITOR BAR ---- {{{ */
table.editorbar-panel {
cursor: pointer;
@@ -433,8 +445,9 @@ ul.oe_menu_editor .disclose {
/* ---- SNIPPET MANIPULATOR ---- {{{ */
.resize_editor_busy {
- background-color: rgba(0,0,0,0.1);
+ background-color: rgba(0, 0, 0, 0.3);
}
+
.oe_overlay {
display: none;
position: absolute;
diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass
index 78af810448f..66665252379 100644
--- a/addons/website/static/src/css/editor.sass
+++ b/addons/website/static/src/css/editor.sass
@@ -67,6 +67,9 @@
.oe_editable:focus
outline: none !important
+.css_editable_display
+ display: block !important
+
.css_non_editable_mode_hidden
display: none
@@ -85,6 +88,12 @@
position: relative !important
top: +2px
+.oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child
+ background-image: url('/website/static/src/img/edit_here.png') !important
+
+.oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before
+ content: 'Press The Top-Left Edit Button' !important
+
// }}}
/* ---- EDITOR BAR ---- {{{ */
diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css
index ca59f4c5697..a047753ebfc 100644
--- a/addons/website/static/src/css/website.css
+++ b/addons/website/static/src/css/website.css
@@ -1,3 +1,4 @@
+@charset "utf-8";
/* THIS CSS FILE IS FOR WEBSITE THEMING CUSTOMIZATION ONLY
*
* css for editor buttons, openerp widget included in the website and other
@@ -233,7 +234,7 @@ footer {
}
.oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child {
- background-image: url("/website/static/src/img/edit_here.png");
+ background-image: url("/website/static/src/img/under_construction.png");
background-repeat: no-repeat;
background-position: center;
height: 220px !important;
@@ -244,7 +245,7 @@ footer {
}
.oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before {
- content: "Press The Top-Left Edit Button";
+ content: "This page is under construction";
text-align: center;
display: block;
padding-top: 160px;
@@ -257,6 +258,10 @@ footer {
content: "Drag Building Blocks Here";
}
+.css_editable_display {
+ display: none;
+}
+
/* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
.navbar .nav > li > p {
margin-bottom: 0px;
@@ -334,10 +339,15 @@ ul.nav-stacked > li > a {
}
/* ---- SNIPPETS --- */
-[data-snippet-id],.colmd,.hr,.blockquote {
- overflow: hidden;
+[data-snippet-id], .colmd, .hr, .blockquote {
+ overflow: hidden;
}
+@media (max-width: 400px) {
+ [data-snippet-id] {
+ height: auto !important;
+ }
+}
.carousel-inner {
height: 100%;
}
@@ -345,6 +355,7 @@ ul.nav-stacked > li > a {
height: 100%;
background-size: 100%;
}
+
.carousel .carousel-caption {
left: auto;
right: auto;
diff --git a/addons/website/static/src/css/website.sass b/addons/website/static/src/css/website.sass
index ab13d795465..c509bebce55 100644
--- a/addons/website/static/src/css/website.sass
+++ b/addons/website/static/src/css/website.sass
@@ -154,7 +154,7 @@ footer
background-image: url('/website/static/src/img/drag_here.png')
.oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child
- background-image: url('/website/static/src/img/edit_here.png')
+ background-image: url('/website/static/src/img/under_construction.png')
background-repeat: no-repeat
background-position: center
height: 220px !important
@@ -163,7 +163,7 @@ footer
position: static
.oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before
- content: 'Press The Top-Left Edit Button'
+ content: 'This page is under construction'
text-align: center
display: block
padding-top: 160px
@@ -174,6 +174,9 @@ footer
.oe_structure.oe_editable.oe_empty:empty:before, .oe_editable[data-oe-type=html]:empty:before, .oe_structure.oe_editable.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before
content: 'Drag Building Blocks Here'
+.css_editable_display
+ display: none
+
/* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
.navbar .nav > li > p
@@ -245,6 +248,10 @@ ul.nav-stacked > li > a
[data-snippet-id],.colmd,.hr,.blockquote
overflow: hidden
+@media (max-width: 400px)
+ [data-snippet-id]
+ height: auto !important
+
.carousel-inner
height: 100%
.item