suite
This commit is contained in:
parent
377fba18a7
commit
a54ef35793
@ -43,9 +43,12 @@ $ ->
|
||||
|
||||
$("#home_slider .inner").css("height", ($("#main").width()*(9 / 26))+"px")
|
||||
|
||||
|
||||
|
||||
|
||||
$("#popup_content").css
|
||||
"margin-top":"30px"
|
||||
"height" : ($(window).height()- 60 )+"px"
|
||||
$("body").on "click", ".close_popup", ->
|
||||
$(".popup_overlay").fadeOut();
|
||||
$(".popup_container").fadeOut();
|
||||
|
||||
$(window).on "resize", ->
|
||||
resize()
|
||||
|
@ -23,6 +23,58 @@ $orange: rgba(251,163,58,1);
|
||||
@import "bootstrap/bootstrap";
|
||||
|
||||
$blue :#2dadb1;
|
||||
|
||||
|
||||
|
||||
.popup_overlay{
|
||||
display:none;
|
||||
background:rgba(0,0,0,0.7);
|
||||
position:fixed;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
z-index:3;
|
||||
}
|
||||
.popup_container{
|
||||
display:none;
|
||||
z-index:4;
|
||||
position:fixed;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
.close_popup{
|
||||
position:absolute;
|
||||
top:-20px;
|
||||
right:-20px;
|
||||
cursor:pointer;
|
||||
|
||||
}
|
||||
#popup_content{
|
||||
background:white;
|
||||
|
||||
margin:auto;
|
||||
max-width:900px;
|
||||
|
||||
position:relative;
|
||||
|
||||
.inner{
|
||||
padding:20px;
|
||||
overflow:auto;
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
.row {
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
|
@ -152,4 +152,13 @@
|
||||
.top_link
|
||||
=i(:"arrow-up")
|
||||
|
||||
.popup_overlay
|
||||
.popup_container
|
||||
|
||||
#popup_content
|
||||
.close_popup
|
||||
=image_tag "/bouton-croix.png"
|
||||
.inner
|
||||
|
||||
|
||||
|
@ -57,7 +57,7 @@
|
||||
|
||||
-if link
|
||||
|
||||
=link_to image_tag(url, :alt => input.alt.to_s, :style => styleimg, :class=> css_class, :id=> css_id), link, :title => input.alt.to_s, :target => (input.popup ? "_blank" : "")
|
||||
=link_to image_tag(url, :alt => input.alt.to_s, :style => styleimg, :class=> css_class, :id=> css_id), link, :title => input.alt.to_s, :target => (input.popup ? "_blank" : ""), :data => {:remote => input.remote_link}
|
||||
|
||||
|
||||
-elsif input.expandable
|
||||
|
@ -57,13 +57,3 @@
|
||||
|
||||
|
||||
=yield :corps
|
||||
|
||||
-if @sidebar
|
||||
:coffeescript
|
||||
resize_menu_content_inner = ->
|
||||
$('.menu_content_inner').css
|
||||
"width" : ($("#main").outerWidth() - $(".side_menu").outerWidth())+"px"
|
||||
"float" : "left"
|
||||
resize_menu_content_inner()
|
||||
$(window).bind "resize", ->
|
||||
resize_menu_content_inner()
|
||||
|
4
app/views/public/menu_items/show.js.erb
Normal file
4
app/views/public/menu_items/show.js.erb
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
$("#popup_content .inner").html("<%= escape_javascript(render( :partial => "public/blocks/block", :locals => {:block => @menu_item.menu_content.blocks.find_by_lang_site_id(@lang.id)}) )%>");
|
||||
$(".popup_overlay").fadeIn();
|
||||
$(".popup_container").fadeIn();
|
BIN
public/bouton-croix.png
Executable file
BIN
public/bouton-croix.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Loading…
x
Reference in New Issue
Block a user