de yapa ya no queremos esto
This commit is contained in:
parent
25160186d8
commit
7ed08f8a0d
3 changed files with 19 additions and 8 deletions
Binary file not shown.
Before Width: | Height: | Size: 92 KiB |
|
@ -55,7 +55,6 @@ ol.breadcrumb {
|
|||
|
||||
|
||||
.background-cover {
|
||||
background: image-url("background.jpg") no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
|
|
|
@ -1,14 +1,26 @@
|
|||
!!!
|
||||
%html
|
||||
%head
|
||||
%meta{content: "text/html; charset=UTF-8", 'http-equiv': "Content-Type"}/
|
||||
%meta{ content: 'text/html; charset=UTF-8',
|
||||
'http-equiv': 'Content-Type' }/
|
||||
%title Sutty
|
||||
|
||||
= csrf_meta_tags
|
||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
|
||||
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
|
||||
= stylesheet_link_tag 'application', media: 'all',
|
||||
'data-turbolinks-track': 'reload'
|
||||
= javascript_include_tag 'application',
|
||||
'data-turbolinks-track': 'reload'
|
||||
|
||||
- if @site.try(:persisted?) && @site.try(:config).try(:dig, 'css')
|
||||
%link{rel: 'stylesheet', type: 'text/css', href: @site.get_url_from_site(@site.config.dig('css'))}
|
||||
- style = "background-image: url(#{@site.try(:cover) || image_url('background.jpg')})"
|
||||
%body{class: @has_cover ? 'background-cover' : '', style: @has_cover ? style : ''}
|
||||
#sutty.container-fluid
|
||||
%link{ rel: 'stylesheet',
|
||||
type: 'text/css',
|
||||
href: @site.get_url_from_site(@site.config.dig('css')) }
|
||||
|
||||
- style = "background-image: url(#{@site.try(:cover)})"
|
||||
-# haml-lint:disable InlineStyles
|
||||
%body{ class: @has_cover ? 'background-cover' : '',
|
||||
style: @has_cover ? style : '' }
|
||||
|
||||
.container-fluid#sutty
|
||||
= yield
|
||||
-# haml-lint:enable InlineStyles
|
||||
|
|
Loading…
Reference in a new issue