suite
This commit is contained in:
parent
a126202a1f
commit
6d18dfd710
@ -7,6 +7,11 @@
|
||||
@resize = () ->
|
||||
|
||||
|
||||
$(".with_ratio").each ->
|
||||
ratio = parseFloat($(this).data("ratio"))
|
||||
height = $(this).width()*ratio
|
||||
|
||||
$(this).css("height",height+"px")
|
||||
|
||||
$("#logo").css('margin-top': (($(window).height()-($("#logo").outerHeight()+0))/ 2-10)+'px')
|
||||
|
||||
|
@ -81,21 +81,35 @@
|
||||
|
||||
|
||||
|
||||
%body{:style => "background-image:url('/background.jpg');"}
|
||||
|
||||
%body{:style => "background-image:url('/backgroundold.jpg');"}
|
||||
%div{:style => "background-image:url('/background.jpg');"}
|
||||
:scss
|
||||
body{
|
||||
background:center center no-repeat;
|
||||
|
||||
}
|
||||
|
||||
div{
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background:#888888 center center no-repeat;
|
||||
background-size:100%;
|
||||
background-size:cover;
|
||||
padding:0;
|
||||
margin:0;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
#logo{
|
||||
width:230px;
|
||||
height:197px;
|
||||
width:100%;
|
||||
max-width:230px;
|
||||
|
||||
margin:auto;
|
||||
display:block;
|
||||
opacity:0.8;
|
||||
}
|
||||
|
||||
=image_tag "/coming_logo.png", :id => "logo"
|
||||
=image_tag "/coming_logo.png", :id => "logo", :data => {:ratio => 0.85652174 }
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 680 KiB After Width: | Height: | Size: 586 KiB |
BIN
public/backgroundold.jpg
Normal file
BIN
public/backgroundold.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 541 KiB |
Loading…
x
Reference in New Issue
Block a user