Vulcan/client/views/common/layout.html
2014-07-05 11:42:28 +09:00

40 lines
No EOL
1.2 KiB
HTML

<template name="layout">
<style>
{{#if backgroundColor}}
body{
background-color: {{backgroundColor}};
}
{{/if}}
{{#if buttonColor}}
input[type="submit"], button, .button, .auth-buttons #login-buttons #login-buttons-password, .btn, .error{
background-color: {{buttonColor}};
}
a:hover, .post-content .post-heading .post-title:hover, .post-content .post-upvote .upvote-link i, .comment-actions a i, .comment-actions.upvoted .upvote i, .comment-actions.downvoted .downvote i{
color: {{buttonColor}};
}
{{/if}}
{{#if secondaryColor}}
.post-content .post-upvote .upvote-link.voted i.icon-check{
color: {{secondaryColor}};
}
{{/if}}
{{#if headerColor}}
.header{
background-color: {{headerColor}};
}
{{/if}}
</style>
<div class="outer-wrapper {{currentPage}}">
{{> UI.dynamic template=mobile_nav}}
<div class="content-wrapper template-{{pageName}}">
{{> UI.dynamic template=nav}}
{{> UI.dynamic template=error}}
{{> yield}}
{{> UI.dynamic template=notifications}}
{{> UI.dynamic template=footer}}
<div class="overlay hidden"></div>
</div>
{{{extraCode}}}
</div>
</template>