0

Выделение поисковой формы как компонента

This commit is contained in:
2017-04-22 23:23:51 +03:00
parent 623bfb3236
commit d8177f143a
6 changed files with 30 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
[#ftl]
[#include "header.inc.ftl"]
[#include "search.comp.ftl"]
<hr>
<h3><b>KinoSearch</b> - это онлайн-кинотеатр <i><u>без рекламы</u></i>.</h3>

View File

@@ -1,5 +1,6 @@
[#ftl]
[#include "header.inc.ftl"]
[#include "search.comp.ftl"]
<hr>
<div class="news">

View File

@@ -7,16 +7,4 @@
<link rel="icon" type="image/svg+xml" href="/ks3logo.svg" >
</head>
<body>
<div class="container">
<h1 class="title"><a href="/"><img src="/ks3logo.svg"> KinoSearch</a></h1>
<br>
<form method="get" action="/">
<div class="input-group">
<span class="input-group-addon">Найти:</span>
<input class="form-control" type="text" placeholder="Что ищем?" name="search"/>
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Ищи!</button>
</span>
</div>
</form>
<div class="minimenu"><a href="/blog.html">мини-блог</a> | <a href="/about.html">о сервисе</a></div>
<div class="container">

View File

@@ -1,3 +1,6 @@
[#ftl]
[#include "header.inc.ftl"]
<table class="table ks3search">
<tr><td>[#include "search.comp.ftl"]</td></tr>
</table>
[#include "fother.inc.ftl"]

View File

@@ -0,0 +1,12 @@
<h1 class="title"><a href="/"><img src="/ks3logo.svg"> KinoSearch</a></h1>
<br>
<form method="get" action="/">
<div class="input-group">
<span class="input-group-addon">Найти:</span>
<input class="form-control" type="text" placeholder="Что ищем?" name="search"/>
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Ищи!</button>
</span>
</div>
</form>
<div class="minimenu"><a href="/blog.html">мини-блог</a> | <a href="/about.html">о сервисе</a></div>

View File

@@ -16,6 +16,7 @@ body {
vertical-align: bottom;
height: 1.119em;
display: inline-block;
margin-bottom: .2em;
}
.title a {
@@ -39,4 +40,15 @@ hr {
.news .row {
margin-bottom: 2em;
}
.ks3search.table {
height: 100%;
margin-bottom: 0;
}
.ks3search.table > tr > td,
.ks3search.table > tbody > tr > td {
vertical-align: middle;
padding-bottom: 15vh;
}