préparation pour iframe youtube

This commit is contained in:
Nicolas Bally 2014-11-06 20:08:15 +01:00
parent fdadb33a65
commit 12c8c65886
3 changed files with 15 additions and 4 deletions

View File

@ -211,6 +211,11 @@ $("document").ready ->
offset= 0
resize = ->
$("iframe").each ->
$(this).css
"height" : Math.round($(this).width()/ 1.77)+"px"
if $(window).width() > 1250
$(".infos .main").css
"position" : "static"

View File

@ -2,6 +2,12 @@
@import "superslides";
@import "fontawesome/font-awesome";
iframe{
margin:auto;
width:100%;
}
.slider{
overflow:hidden;
@ -345,7 +351,7 @@ h4{
line-height:1.7em;
padding: 25px 10px;
padding-bottom:20px;
margin-right:10px;
margin-right:5px;
border-bottom:5px solid transparent;
&:hover, &.active{

View File

@ -1,12 +1,12 @@
.html_content_form
=semantic_form_for( [:portlet, @html_content], :remote => true) do |f|
=f.text_area :content, :style => "width:98%;height:400px;", :class => "inputText", :id => "ace_editor_textarea"
%pre#ace_editor_pre{:style => "margin:0px;"}
=raw "<!---"
<script>
var editor;
@ -30,7 +30,7 @@
</script>
=raw "---->"
%table.form_table
%tr
%td Style :