[#427] Fixed styles in paginator.
This commit is contained in:
@@ -27,11 +27,10 @@
|
|||||||
float: right;
|
float: right;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
border-left: solid 2px #ddd;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .recline-results-info {
|
.recline-results-info {
|
||||||
line-height: 28px;
|
line-height: 35px;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
@@ -40,9 +39,12 @@
|
|||||||
* Query Editor
|
* Query Editor
|
||||||
*********************************************************/
|
*********************************************************/
|
||||||
|
|
||||||
.header .recline-query-editor {
|
.recline-query-editor {
|
||||||
float: right;
|
float: right;
|
||||||
height: 30px;
|
height: 35px;
|
||||||
|
padding-right: 5px;
|
||||||
|
margin-right: 5px;
|
||||||
|
border-right: solid 2px #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .input-prepend {
|
.header .input-prepend {
|
||||||
@@ -63,11 +65,11 @@
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .recline-query-editor form button {
|
.recline-query-editor form button {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .recline-query-editor label {
|
.recline-query-editor label {
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,28 +77,78 @@
|
|||||||
* Pager
|
* Pager
|
||||||
*********************************************************/
|
*********************************************************/
|
||||||
|
|
||||||
.header .recline-pager {
|
.recline-pager {
|
||||||
float: left;
|
float: left;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
display: block;
|
display: block;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .recline-pager .pagination label {
|
.recline-pager .pagination li {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recline-pager .pagination label {
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .recline-pager .pagination input {
|
.recline-pager .pagination input {
|
||||||
width: 30px;
|
width: 40px;
|
||||||
height: 18px;
|
height: 25px;
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-top: -4px;
|
margin-top: -2px;
|
||||||
|
|
||||||
|
border: 1px solid #cccccc;
|
||||||
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
||||||
|
transition: border linear 0.2s, box-shadow linear 0.2s;
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
||||||
|
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
|
||||||
|
-webkit-border-radius: 4px;
|
||||||
|
|
||||||
|
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
||||||
|
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
|
||||||
|
-moz-border-radius: 4px;
|
||||||
|
|
||||||
|
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .recline-pager .pagination a {
|
.recline-pager .pagination a {
|
||||||
line-height: 26px;
|
float: none;
|
||||||
padding: 0 6px;
|
margin-left: -5px;
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recline-pager .pagination .page-range {
|
||||||
|
height: 34px;
|
||||||
|
padding: 5px 8px;
|
||||||
|
margin-left: -5px;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recline-pager .pagination .page-range a {
|
||||||
|
padding: 0px 12px;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recline-pager .pagination .page-range a:hover {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recline-pager .pagination > li:first-child > a {
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
border-bottom-right-radius: 0px;
|
||||||
|
border-top-right-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recline-pager .pagination > li:last-child > a {
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
border-bottom-left-radius: 0px;
|
||||||
|
border-top-left-radius: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************
|
/**********************************************************
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ my.Pager = Backbone.View.extend({
|
|||||||
template: ' \
|
template: ' \
|
||||||
<div class="pagination"> \
|
<div class="pagination"> \
|
||||||
<ul class="pagination"> \
|
<ul class="pagination"> \
|
||||||
<li class="prev action-pagination-update"><a href="">«</a></li> \
|
<li class="prev action-pagination-update"><a href="" class="btn btn-default">«</a></li> \
|
||||||
<li class="active"><label for="from">From</label><a><input name="from" type="text" value="{{from}}" /> – <label for="to">To</label><input name="to" type="text" value="{{to}}" /> </a></li> \
|
<li class="page-range"><a><label for="from">From</label><input name="from" type="text" value="{{from}}" /> – <label for="to">To</label><input name="to" type="text" value="{{to}}" /> </a></li> \
|
||||||
<li class="next action-pagination-update"><a href="">»</a></li> \
|
<li class="next action-pagination-update"><a href="" class="btn btn-default">»</a></li> \
|
||||||
</ul> \
|
</ul> \
|
||||||
</div> \
|
</div> \
|
||||||
',
|
',
|
||||||
|
|||||||
@@ -9,10 +9,15 @@ this.recline.View = this.recline.View || {};
|
|||||||
my.QueryEditor = Backbone.View.extend({
|
my.QueryEditor = Backbone.View.extend({
|
||||||
className: 'recline-query-editor',
|
className: 'recline-query-editor',
|
||||||
template: ' \
|
template: ' \
|
||||||
<form action="" method="GET" class="form-inline"> \
|
<form action="" method="GET" class="form-inline" role="form"> \
|
||||||
<div class="input-prepend text-query"> \
|
<div class="form-group"> \
|
||||||
<span class="add-on"><i class="icon-search"></i></span> \
|
<div class="input-group text-query"> \
|
||||||
<label>Search</label><input type="text" name="q" value="{{q}}" class="span2" placeholder="Search data ..." class="search-query" /> \
|
<div class="input-group-addon"> \
|
||||||
|
<i class="glyphicon glyphicon-search"></i> \
|
||||||
|
</div> \
|
||||||
|
<label>Search</label> \
|
||||||
|
<input class="form-control search-query" type="text" name="q" value="{{q}}" placeholder="Search data ..."> \
|
||||||
|
</div> \
|
||||||
</div> \
|
</div> \
|
||||||
<button type="submit" class="btn btn-default">Go »</button> \
|
<button type="submit" class="btn btn-default">Go »</button> \
|
||||||
</form> \
|
</form> \
|
||||||
|
|||||||
Reference in New Issue
Block a user