summaryrefslogtreecommitdiff
path: root/addons/website/static/src/css
diff options
context:
space:
mode:
authorchm@openerp.com <>2014-03-28 11:44:53 +0100
committerchm@openerp.com <>2014-03-28 11:44:53 +0100
commitb0625b1191eaf24a191b8937327809bc0ca0e7d4 (patch)
treee743702b72c73235718732b7ab3a99cf90088556 /addons/website/static/src/css
parente289e23298fc91e675f0a7686d3a769ff53663fb (diff)
[IMP] website: add video media editor
bzr revid: chm@openerp.com-20140328104453-2faynhhc1wi5598l
Diffstat (limited to 'addons/website/static/src/css')
-rw-r--r--addons/website/static/src/css/website.css16
-rw-r--r--addons/website/static/src/css/website.sass10
2 files changed, 22 insertions, 4 deletions
diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css
index e734525ee08..29d4e06eaff 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
@@ -531,8 +532,15 @@ span[data-oe-type="monetary"] {
margin: 40px auto;
}
-.oe_website_overflow_ellipsis{
- white-space:nowrap;
- overflow:hidden;
- text-overflow:ellipsis;
+div.media_iframe_video {
+ height: 0;
+ margin: 0 auto;
+ text-align: center;
+ position: relative;
+ overflow: hidden;
+ padding-bottom: 66.5%;
+}
+div.media_iframe_video iframe {
+ width: 100%;
+ height: 100%;
}
diff --git a/addons/website/static/src/css/website.sass b/addons/website/static/src/css/website.sass
index 3bdda2cb720..0d545e4362d 100644
--- a/addons/website/static/src/css/website.sass
+++ b/addons/website/static/src/css/website.sass
@@ -435,3 +435,13 @@ span[data-oe-type="monetary"]
overflow:hidden
text-overflow:ellipsis
+div.media_iframe_video
+ height: 0
+ margin: 0 auto
+ text-align: center
+ position: relative
+ overflow: hidden
+ padding-bottom: 66.5%
+ iframe
+ width: 100%
+ height: 100% \ No newline at end of file