Frio: fix home page
Add home.tpl, fix style with custom home.html, fix style with custom page content from addon
This commit is contained in:
parent
0aafdab810
commit
9862194914
2 changed files with 56 additions and 13 deletions
|
@ -3024,25 +3024,42 @@ section .profile-match-wrapper {
|
||||||
box-shadow: unset;
|
box-shadow: unset;
|
||||||
border: 0
|
border: 0
|
||||||
}
|
}
|
||||||
.mod-home.is-not-singleuser #content > h1,
|
.mod-home.is-not-singleuser .login-content,
|
||||||
.mod-login #content > h1 {
|
.mod-login .login-content {
|
||||||
|
color: #eee;
|
||||||
|
margin-top: 2.5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mod-home.is-not-singleuser .login-form > #login-form,
|
||||||
|
.mod-login .login-form > #login-form {
|
||||||
color: #eee;
|
color: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 700px) {
|
.mod-home.is-not-singleuser .login-panel-content,
|
||||||
.mod-home.is-not-singleuser #content > #login-form,
|
.mod-login .login-panel-content {
|
||||||
.mod-login #content > #login-form {
|
background-color: rgba(255,255,255,.85);
|
||||||
width: 50%;
|
}
|
||||||
|
|
||||||
|
/* Medium devices (desktops, 992px and up) */
|
||||||
|
@media (min-width: 992px) {
|
||||||
|
.mod-home.is-not-singleuser #content,
|
||||||
|
.mod-login #content {
|
||||||
|
margin-top: 100px!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.mod-home.is-not-singleuser .login-form > #login-form,
|
||||||
|
.mod-login .login-form > #login-form {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #444;
|
color: #444;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
float: right;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: 4em;
|
margin-top: 4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mod-home.is-not-singleuser #content > #login-form:before,
|
.mod-home.is-not-singleuser .login-form > #login-form:before,
|
||||||
.mod-login #content > #login-form:before {
|
.mod-login .login-form > #login-form:before {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: " ";
|
content: " ";
|
||||||
|
@ -3054,8 +3071,8 @@ section .profile-match-wrapper {
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mod-home.is-not-singleuser #content > #login-form:after,
|
.mod-home.is-not-singleuser .login-form > #login-form:after,
|
||||||
.mod-login #content > #login-form:after {
|
.mod-login .login-form > #login-form:after {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: " ";
|
content: " ";
|
||||||
|
@ -3066,6 +3083,7 @@ section .profile-match-wrapper {
|
||||||
left: 10%;
|
left: 10%;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
25
view/theme/frio/templates/home.tpl
Normal file
25
view/theme/frio/templates/home.tpl
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
{{* custom content from hook will replace everything. *}}
|
||||||
|
<div class="row">
|
||||||
|
{{if $content != '' }}
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<div class="panel panel-default login-panel-content">
|
||||||
|
<div class="panel-body">
|
||||||
|
{{$content}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
<div class="col-md-7 col-sm-12 login-content">
|
||||||
|
{{if $customhome != false }}
|
||||||
|
{{include file="$customhome"}}
|
||||||
|
{{else}}
|
||||||
|
{{$defaultheader}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
<div class="col-md-5 col-sm-12 login-form">
|
||||||
|
{{$login}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
Loading…
Reference in a new issue