summaryrefslogtreecommitdiff
path: root/addons/website/static/src/css/snippets.sass
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2014-08-21 18:00:23 +0200
committerChristophe Matthieu <chm@odoo.com>2014-08-21 18:02:14 +0200
commit239b6bc0b5a2a644486737f2b0b71e7e6c0a2edf (patch)
treeb53f6f30cba0149ae9a41d25901ac301c3bbf775 /addons/website/static/src/css/snippets.sass
parentb7beb69e03e14e111d07899c23b82b993ca8a972 (diff)
[IMP] website snippet new option, gallery
website.snippet: The methods described in javascript will be called automatically from the data-method_name = value on li snippets options. The methods are called in the order relative to children of xml (eg: <li data-method1=value1> ... <li data-method2=value2> ... </ li>, the method1 is then called method2). Methods receive two arguments: type (over, click, reset) and value. data-snippet-id-option becomes data-snippet-id. Several xml options can use the same data-snippet-id. add a new gallery snippet convert website_sale to the new option system
Diffstat (limited to 'addons/website/static/src/css/snippets.sass')
-rw-r--r--addons/website/static/src/css/snippets.sass9
1 files changed, 8 insertions, 1 deletions
diff --git a/addons/website/static/src/css/snippets.sass b/addons/website/static/src/css/snippets.sass
index 71613f8dfbe..a94b8665e0c 100644
--- a/addons/website/static/src/css/snippets.sass
+++ b/addons/website/static/src/css/snippets.sass
@@ -43,6 +43,7 @@
display: inline-block
white-space: nowrap
background: black
+ margin-right: 60px
> div
background: rgb(0,0,0)
label
@@ -87,7 +88,11 @@
line-height: 18px
& > :not(.oe_snippet_thumbnail)
display: none !important
-
+ &.disable
+ .oe_snippet_thumbnail
+ background-color: rgba(255, 0, 0, 0.75)
+ .oe_snippet_thumbnail_img
+ opacity: 0.8
#oe_snippets .oe_snippet_thumbnail
@include background(#747474, radial-gradient(rgba(0,0,0,0.25),rgba(0,0,0,0.4)))
@@ -286,6 +291,8 @@
display: inline-block
float: none
margin: 0 -3px
+ > div
+ float: none
.btn, a
cursor: pointer
.dropdown