summaryrefslogtreecommitdiff
path: root/addons/website/static/src/css
diff options
context:
space:
mode:
authorYogesh Parekh (OpenERP) <ypa@tinyerp.com>2014-03-31 15:23:10 +0530
committerYogesh Parekh (OpenERP) <ypa@tinyerp.com>2014-03-31 15:23:10 +0530
commit9aadda1e1eca6f903ea2e54e94ef32e9b627198b (patch)
tree097804665c8a0eec369777ee949540183089ae7a /addons/website/static/src/css
parentc4424b597d3d062764574502e9b400ab812d4caf (diff)
parentfd43cecbdadcffee2be2ff078bd32a4521ad9574 (diff)
[MERGE]: Merge with addons branch
bzr revid: ypa@tinyerp.com-20140331095310-wkmxt02x6l85zho0
Diffstat (limited to 'addons/website/static/src/css')
-rw-r--r--addons/website/static/src/css/bootswatch/amelia.fix.css27
-rw-r--r--addons/website/static/src/css/bootswatch/cosmo.fix.css7
-rw-r--r--addons/website/static/src/css/bootswatch/cyborg.fix.css30
-rw-r--r--addons/website/static/src/css/bootswatch/flatly.fix.css3
-rw-r--r--addons/website/static/src/css/bootswatch/journal.fix.css6
-rw-r--r--addons/website/static/src/css/bootswatch/readable.fix.css3
-rw-r--r--addons/website/static/src/css/bootswatch/simplex.fix.css3
-rw-r--r--addons/website/static/src/css/bootswatch/slate.fix.css21
-rw-r--r--addons/website/static/src/css/bootswatch/spacelab.fix.css8
-rw-r--r--addons/website/static/src/css/bootswatch/yeti.fix.css6
-rw-r--r--addons/website/static/src/css/snippets.css29
-rw-r--r--addons/website/static/src/css/snippets.sass24
-rw-r--r--addons/website/static/src/css/website.css25
-rw-r--r--addons/website/static/src/css/website.sass29
14 files changed, 183 insertions, 38 deletions
diff --git a/addons/website/static/src/css/bootswatch/amelia.fix.css b/addons/website/static/src/css/bootswatch/amelia.fix.css
new file mode 100644
index 00000000000..2f16ea5465c
--- /dev/null
+++ b/addons/website/static/src/css/bootswatch/amelia.fix.css
@@ -0,0 +1,27 @@
+#website-top-navbar a.btn-link {
+ color: #ad1d28;
+}
+.oe_product section {
+ background: rgba(16, 138, 147, 0.75) !important;
+}
+.oe_product section .text-info {
+ color: #DFD6F5;
+}
+ul.wizard li {
+ background: #debb27 !important;
+}
+ul.wizard .chevron:before {
+ border-left: 10px solid #debb27 !important;
+}
+ul.wizard .text-primary {
+ color: #ad1d28 !important;
+}
+ul.wizard .text-success {
+ color: #ffffff !important;
+}
+.oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before {
+ color: #79D5DB !important;
+}
+.input-group-addon .fa {
+ color: #444;
+}
diff --git a/addons/website/static/src/css/bootswatch/cosmo.fix.css b/addons/website/static/src/css/bootswatch/cosmo.fix.css
new file mode 100644
index 00000000000..907aa7bf757
--- /dev/null
+++ b/addons/website/static/src/css/bootswatch/cosmo.fix.css
@@ -0,0 +1,7 @@
+#website-top-navbar button.btn-primary {
+ color: #fff;
+ border: 2px solid #0061c2;
+}
+#website-top-navbar a.btn-link {
+ color: #fff;
+} \ No newline at end of file
diff --git a/addons/website/static/src/css/bootswatch/cyborg.fix.css b/addons/website/static/src/css/bootswatch/cyborg.fix.css
new file mode 100644
index 00000000000..e93b2aa8ded
--- /dev/null
+++ b/addons/website/static/src/css/bootswatch/cyborg.fix.css
@@ -0,0 +1,30 @@
+.oe_product section {
+ background: rgba(40, 40, 40, 0.85) !important;
+}
+.oe_product section .text-info {
+ color: #BA66E4;
+}
+ul.wizard li {
+ background: #222 !important;
+}
+ul.wizard .chevron:before {
+ border-left: 10px solid #222 !important;
+}
+.popover, .modal-content {
+ border: 1px solid rgba(200,200,200,0.5);
+}
+.close {
+ color: #fff;
+}
+.popover.bottom .arrow:after {
+ border-bottom-color: #333;
+}
+.popover.top .arrow:after {
+ border-top-color: #333;
+}
+.popover.left .arrow:after {
+ border-left-color: #333;
+}
+.popover.right .arrow:after {
+ border-right-color: #333;
+} \ No newline at end of file
diff --git a/addons/website/static/src/css/bootswatch/flatly.fix.css b/addons/website/static/src/css/bootswatch/flatly.fix.css
new file mode 100644
index 00000000000..c2d9500f5da
--- /dev/null
+++ b/addons/website/static/src/css/bootswatch/flatly.fix.css
@@ -0,0 +1,3 @@
+#website-top-navbar a.btn-link {
+ color: #2c3e50;
+} \ No newline at end of file
diff --git a/addons/website/static/src/css/bootswatch/journal.fix.css b/addons/website/static/src/css/bootswatch/journal.fix.css
new file mode 100644
index 00000000000..e9f41a33e8f
--- /dev/null
+++ b/addons/website/static/src/css/bootswatch/journal.fix.css
@@ -0,0 +1,6 @@
+#website-top-navbar button.btn-primary {
+ border: 2px solid #e4332e;
+}
+#website-top-navbar a.btn-link {
+ color: #fff;
+} \ No newline at end of file
diff --git a/addons/website/static/src/css/bootswatch/readable.fix.css b/addons/website/static/src/css/bootswatch/readable.fix.css
new file mode 100644
index 00000000000..8e22d318615
--- /dev/null
+++ b/addons/website/static/src/css/bootswatch/readable.fix.css
@@ -0,0 +1,3 @@
+.oe_product section .text-info {
+ color: #2A9CBE;
+} \ No newline at end of file
diff --git a/addons/website/static/src/css/bootswatch/simplex.fix.css b/addons/website/static/src/css/bootswatch/simplex.fix.css
new file mode 100644
index 00000000000..56dbb1fdd5f
--- /dev/null
+++ b/addons/website/static/src/css/bootswatch/simplex.fix.css
@@ -0,0 +1,3 @@
+#website-top-navbar a.btn-link {
+ color: #fff;
+} \ No newline at end of file
diff --git a/addons/website/static/src/css/bootswatch/slate.fix.css b/addons/website/static/src/css/bootswatch/slate.fix.css
new file mode 100644
index 00000000000..c2e1a999b03
--- /dev/null
+++ b/addons/website/static/src/css/bootswatch/slate.fix.css
@@ -0,0 +1,21 @@
+.oe_product section {
+ background: rgba(40, 40, 45, 0.80) !important;
+}
+ul.wizard li {
+ background-image: -webkit-linear-gradient(#8a9196,#7a8288 60%,#788084) !important;
+ background-image: linear-gradient(#8a9196,#7a8288 60%,#788084 ) !important;
+ color: #ccc;
+}
+ul.wizard .chevron:before {
+ border-left: 10px solid #7C8386 !important;
+}
+ul.wizard li.text-primary {
+ color: #fff;
+}
+.close {
+ color: #fff;
+}
+.popover {
+ -webkit-box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
+ box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
+}
diff --git a/addons/website/static/src/css/bootswatch/spacelab.fix.css b/addons/website/static/src/css/bootswatch/spacelab.fix.css
new file mode 100644
index 00000000000..6d01e9a2485
--- /dev/null
+++ b/addons/website/static/src/css/bootswatch/spacelab.fix.css
@@ -0,0 +1,8 @@
+.carousel .carousel-caption.content,
+.carousel .carousel-caption.content h1,
+.carousel .carousel-caption.content h2,
+.carousel .carousel-caption.content h3,
+.carousel .carousel-caption.content h4,
+.carousel .carousel-caption.content h5 {
+ color: #ccc;
+} \ No newline at end of file
diff --git a/addons/website/static/src/css/bootswatch/yeti.fix.css b/addons/website/static/src/css/bootswatch/yeti.fix.css
new file mode 100644
index 00000000000..3fd285c826e
--- /dev/null
+++ b/addons/website/static/src/css/bootswatch/yeti.fix.css
@@ -0,0 +1,6 @@
+#website-top-navbar a.btn-link {
+ color: #fff;
+}
+.popover .close {
+ color: #fff;
+} \ No newline at end of file
diff --git a/addons/website/static/src/css/snippets.css b/addons/website/static/src/css/snippets.css
index a19baa33fd6..726855f311b 100644
--- a/addons/website/static/src/css/snippets.css
+++ b/addons/website/static/src/css/snippets.css
@@ -328,14 +328,10 @@
}
.oe_overlay .oe_handle.size .oe_handle_button {
z-index: 3;
- content: "Resize";
- width: 64px;
text-align: center;
margin-left: -32px;
margin-top: -10px;
- cursor: row-resize;
left: 0px;
- top: 9px;
}
.oe_overlay .oe_handle.size .oe_handle_button:hover {
background: rgba(30, 30, 30, 0.8);
@@ -344,6 +340,24 @@
-moz-box-shadow: 0 0 5px 3px rgba(255, 255, 255, 0.7);
box-shadow: 0 0 5px 3px rgba(255, 255, 255, 0.7);
}
+.oe_overlay .oe_handle.size .size {
+ width: 64px;
+ cursor: row-resize;
+ top: 9px;
+}
+.oe_overlay .oe_handle.size .auto_size {
+ width: 20px;
+ padding: 0 5px;
+ top: 1px;
+ margin-left: 36px;
+ cursor: pointer;
+}
+.oe_overlay .oe_handle.readonly {
+ cursor: auto !important;
+}
+.oe_overlay .oe_handle.readonly:before, .oe_overlay .oe_handle.readonly.size {
+ display: none !important;
+}
.oe_overlay .icon.btn {
display: inline-block;
}
@@ -351,7 +365,7 @@
position: absolute;
left: 50% !important;
text-align: center;
- top: -11px;
+ top: -20px;
z-index: 1002;
}
.oe_overlay .oe_overlay_options > .btn-group {
@@ -618,8 +632,3 @@
height: 16px;
display: inline-block;
}
-
-[data-snippet-id] {
- min-height: 10px;
- min-width: 10px;
-}
diff --git a/addons/website/static/src/css/snippets.sass b/addons/website/static/src/css/snippets.sass
index afdb261a2a5..9b12e9df246 100644
--- a/addons/website/static/src/css/snippets.sass
+++ b/addons/website/static/src/css/snippets.sass
@@ -240,18 +240,28 @@
bottom: -6px
.oe_handle_button
z-index: 3
- content: "Resize"
- width: 64px
text-align: center
margin-left: -32px
margin-top: -10px
- cursor: row-resize
left: 0px
- top: 9px
&:hover
background: rgba(30, 30, 30, .8)
color: #fff
+box-shadow(0 0 5px 3px rgba(255,255,255,.7))
+ .size
+ width: 64px
+ cursor: row-resize
+ top: 9px
+ .auto_size
+ width: 20px
+ padding: 0 5px
+ top: 1px
+ margin-left: 36px
+ cursor: pointer
+ &.readonly
+ cursor: auto !important
+ &:before, &.size
+ display: none !important
.icon.btn
display: inline-block
@@ -260,7 +270,7 @@
position: absolute
left: 50% !important
text-align: center
- top: -11px
+ top: -20px
z-index: 1002
> .btn-group
left: -50%
@@ -485,10 +495,6 @@
height: 16px
display: inline-block
-[data-snippet-id]
- min-height: 10px
- min-width: 10px
-
diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css
index 774be6ae09a..354796a053e 100644
--- a/addons/website/static/src/css/website.css
+++ b/addons/website/static/src/css/website.css
@@ -102,6 +102,10 @@ header a.navbar-brand img {
max-height: 50px;
}
+#wrapwrap p:empty:after {
+ content: "\2060";
+}
+
/* ----- Snippets Styles ----- */
.readable {
font-size: 120%;
@@ -116,9 +120,10 @@ header a.navbar-brand img {
}
/* ----- BOOTSTRAP FIX ----- */
-.container .container {
+.container .container, .readable .container {
padding-left: 0;
padding-right: 0;
+ width: auto;
}
/* ----- BOOTSTRAP HACK FOR HEADER NAV BAR ----- */
@@ -216,7 +221,6 @@ footer {
/* -- Hack for removing double scrollbar from mobile preview -- */
div#mobile-preview.modal {
overflow: hidden;
- overflow-y: hidden;
}
ul.nav-stacked > li > a {
@@ -236,7 +240,7 @@ ul.nav-stacked > li > a {
display: none;
}
-[data-publish='off'] {
+[data-publish='off'] > *:not(.css_options) {
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
opacity: 0.5;
}
@@ -280,12 +284,16 @@ ul.nav-stacked > li > a {
background-size: 100%;
}
-[data-snippet-id], .colmd, .hr, .blockquote {
+section, .carousel, .parallax, .row, .hr, .blockquote {
+ min-height: 30px;
+}
+
+.carousel, .parallax, .blockquote {
overflow: hidden;
}
@media (max-width: 400px) {
- [data-snippet-id]:not([data-snippet-id="carousel"]) {
+ section, .parallax, .row, .hr, .blockquote {
height: auto !important;
}
}
@@ -380,10 +388,10 @@ ul.nav-stacked > li > a {
}
/* Parallax Theme */
-div.carousel[data-snippet-id="slider"] .carousel-indicators li {
+div.carousel .carousel-indicators li {
border: 1px solid grey;
}
-div.carousel[data-snippet-id="slider"] .carousel-indicators .active {
+div.carousel .carousel-indicators .active {
background-color: grey;
}
@@ -406,9 +414,6 @@ div.carousel[data-snippet-id="slider"] .carousel-indicators .active {
.oe_dark {
background: #eff8f8;
background: rgba(200, 200, 200, 0.14);
- -webkit-box-shadow: 0px 5px 9px -7px rgba(0, 0, 255, 0.5) inset, 0px -3px 9px -7px rgba(0, 0, 255, 0.5) inset;
- -moz-box-shadow: 0px 5px 9px -7px rgba(0, 0, 255, 0.5) inset, 0px -3px 9px -7px rgba(0, 0, 255, 0.5) inset;
- box-shadow: 0px 5px 9px -7px rgba(0, 0, 255, 0.5) inset, 0px -3px 9px -7px rgba(0, 0, 255, 0.5) inset;
}
.oe_black {
diff --git a/addons/website/static/src/css/website.sass b/addons/website/static/src/css/website.sass
index 4796d88cbb8..77da53c2958 100644
--- a/addons/website/static/src/css/website.sass
+++ b/addons/website/static/src/css/website.sass
@@ -68,6 +68,12 @@ header
img
max-height: 50px
+// add {WORD JOINER} (equivalent to deprecated ZERO WIDTH NO-BREAK SPACE) at
+// the beginning of paragraphs so they don't "disappear" after saving when
+// used solely for spacing.
+#wrapwrap p:empty:after
+ content: '\2060'
+
/* ----- Snippets Styles ----- */
.readable
@@ -78,17 +84,16 @@ header
/* ----- EDITOR ----- */
-
.css_non_editable_mode_hidden
display: none
-
/* ----- BOOTSTRAP FIX ----- */
-.container
+.container, .readable
.container
padding-left: 0
padding-right: 0
+ width: auto
/* ----- BOOTSTRAP HACK FOR HEADER NAV BAR ----- */
@@ -179,7 +184,6 @@ footer
/* -- Hack for removing double scrollbar from mobile preview -- */
div#mobile-preview.modal
overflow: hidden
- overflow-y: hidden
ul.nav-stacked > li > a
padding: 2px 15px
@@ -195,7 +199,7 @@ ul.nav-stacked > li > a
.btn-success, .css_unpublish
display: none
-[data-publish='off']
+[data-publish='off']>*:not(.css_options)
+opacity(0.5)
/* ---- END of PUBLISH ---- */
@@ -230,11 +234,13 @@ ul.nav-stacked > li > a
.oe_img_bg
background-size: 100%
-[data-snippet-id],.colmd,.hr,.blockquote
+section, .carousel, .parallax, .row, .hr, .blockquote
+ min-height: 30px
+.carousel, .parallax, .blockquote
overflow: hidden
@media (max-width: 400px)
- [data-snippet-id]:not([data-snippet-id="carousel"])
+ section, .parallax, .row, .hr, .blockquote
height: auto !important
.carousel-inner
@@ -312,7 +318,7 @@ ul.nav-stacked > li > a
/* Parallax Theme */
-div.carousel[data-snippet-id="slider"]
+div.carousel
.carousel-indicators
li
border: 1px solid grey
@@ -336,7 +342,6 @@ div.carousel[data-snippet-id="slider"]
.oe_dark
background: #eff8f8
background: rgba(200, 200, 200, 0.14)
- +box-shadow(0px 5px 9px -7px rgba(0, 0, 255, 0.5) inset, 0px -3px 9px -7px rgba(0, 0, 255, 0.5) inset)
.oe_black
background-color: rgba(0, 0, 0, 0.9)
@@ -423,3 +428,9 @@ span[data-oe-type="monetary"]
.oe_website_login_container
width: 400px
margin: 40px auto
+
+.oe_website_overflow_ellipsis
+ white-space:nowrap
+ overflow:hidden
+ text-overflow:ellipsis
+