Basic layout.
This commit is contained in:
parent
b76036573a
commit
0ff0db81a3
|
@ -1,13 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>{% block title %}Welcome!{% endblock %}</title>
|
||||
{% block stylesheets %}{% endblock %}
|
||||
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
|
||||
</head>
|
||||
<body>
|
||||
{% block body %}{% endblock %}
|
||||
{% block javascripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
{% extends '::layout.html.twig' %}
|
||||
|
||||
{% block header_title %}Point-Tools{% endblock %}
|
||||
|
||||
{% block css %}
|
||||
{{ parent() }}
|
||||
<link href="{{ asset('bundles/skobkinpointtools/css/main.css') }}" rel="stylesheet">
|
||||
{% endblock %}
|
||||
|
||||
{% block header_navbar %}
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container">
|
||||
{%- block header_navbar_container -%}
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
|
||||
aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">{{ 'Toggle navigation'|trans }}</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="{{ path('index') }}">Point-Tools</a>
|
||||
</div>
|
||||
<div id="navbar" class="collapse navbar-collapse">
|
||||
{% block header_navbar_menus %}
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="{{ path('index') }}">{{ 'Main'|trans }}</a></li>
|
||||
<li><a href="{{ path('users_top') }}">TOP</a></li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{%- endblock -%}
|
||||
</div>
|
||||
</nav>
|
||||
{% endblock %}
|
||||
|
||||
{% block container %}
|
||||
<div class="row content">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
<div class="row">
|
||||
<div class="copyright col-sm-6 col-xs-12">
|
||||
<p>
|
||||
© 2015{% if 2015 != 'now'|date('Y') %}-{{ 'now'|date('Y') }}{% endif %}
|
||||
<a href="https://skobk.in/" target="_blank">Alexey Skobkin</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
54
app/Resources/views/layout.html.twig
Normal file
54
app/Resources/views/layout.html.twig
Normal file
|
@ -0,0 +1,54 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% block header_meta %}
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{# The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags #}
|
||||
<meta name="description" content="Point.im external tools">
|
||||
<meta name="author" content="Alexey Skobkin">
|
||||
<link rel="icon" href="{{ asset('bundles/skobkinpointtools/images/favicon.ico') }}">
|
||||
{% endblock %}
|
||||
|
||||
<title>{% block header_title %}{% endblock %}</title>
|
||||
|
||||
{% block css %}
|
||||
{# Bootstrap core CSS #}
|
||||
<link href="//yastatic.net/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
|
||||
{% endblock %}
|
||||
|
||||
{% block head_js %}
|
||||
{# HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries #}
|
||||
{# Who uses IE??? #}
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||
<script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% block body %}
|
||||
{# Upper navigation menu #}
|
||||
{% block header_navbar %}{% endblock %}
|
||||
|
||||
{# Main container #}
|
||||
<div class="container">
|
||||
{% block container %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
{% block footer %}{% endblock %}
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{# Footer JavaScripts for faster loading #}
|
||||
{% block footer_js %}
|
||||
<script src="//yastatic.net/jquery/2.1.3/jquery.min.js"></script>
|
||||
<script src="//yastatic.net/bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
||||
{% endblock %}
|
||||
{%- endblock %}
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,90 @@
|
|||
html {
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
/* Margin bottom by footer height */
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
|
||||
a.navbar-brand {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
/* Set the fixed height of the footer here */
|
||||
height: 60px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.footer > .container {
|
||||
padding-right: 15px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
.footer .copyright, .footer .powered-by {
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
body > .container {
|
||||
padding: 60px 15px 0;
|
||||
}
|
||||
|
||||
.user:before {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
display: inline-block;
|
||||
font-family: 'Glyphicons Halflings';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
margin-right: 3px;
|
||||
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
content: "\e008";
|
||||
}
|
||||
|
||||
.user-info p.user-login {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.user-info p.user-name {
|
||||
|
||||
}
|
||||
|
||||
ul.users.mosaic {
|
||||
list-style: none;
|
||||
columns: 140px auto;
|
||||
-webkit-columns: 140px auto;
|
||||
-moz-columns: 140px auto;
|
||||
}
|
||||
|
||||
ul.users.mosaic li {
|
||||
display: inline-block;
|
||||
width: 140px;
|
||||
line-height: 18px;
|
||||
padding-top: 1px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
ul.users.mosaic li:nth-child(odd) {
|
||||
background-color: #EFEFEF;
|
||||
}
|
||||
|
||||
#travel-client-data-form {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
/* Required quick fix */
|
||||
.required:after {
|
||||
content: " *";
|
||||
color: red;
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in a new issue