metro4
Version:
The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style
150 lines (128 loc) • 2.58 kB
text/less
@import (once) "../include/vars";
@import (once) "../include/mixins";
.sorting, .sorting_asc, .sorting_desc {
position: relative;
cursor: pointer;
&:after {
position: absolute;
content: "";
width: 1rem;
height: 1rem;
left: 100%;
margin-left: -1.25rem;
top: 50%;
margin-top: -.5rem;
font-size: 1rem;
line-height: 1;
color: @dark;
}
}
.sorting_asc {
background-color: darken(@light, 5%);
&:after {
content: "\2191";
}
}
.sorting_desc {
background-color: darken(@light, 5%);
&:after {
content: "\2193";
}
}
.dataTables_length label {
display: flex;
flex-flow: row nowrap;
align-items: center;
}
.dataTables_length label select {
margin: 0 10px;
width: 100px;
}
.dataTables_filter label {
display: flex;
flex-flow: row nowrap;
align-items: center;
}
.dataTables_filter label input {
width: 200px;
margin-left: 10px;
}
.dataTables_paginate {
display: flex;
flex-wrap: wrap;
list-style: none inside;
padding: 0;
user-select: none;
justify-content: center;
.previous, .next, span a {
cursor: pointer;
display: block;
position: relative;
padding: .5rem .75rem;
line-height: 1;
font-size: 1rem;
text-decoration: none;
background-color: @white;
color: @dark;
border: 1px solid darken(@light, 10%);
margin: .25rem;
&:hover {
background-color: @hoverBackground;
}
}
span {
display: flex;
flex-flow: row wrap;
}
.current {
background-color: @lightGray;
}
}
.dataTables_wrapper {
margin-top: 10px;
display: flex;
flex-flow: row wrap;
justify-content: space-between;
align-content: center;
}
.dataTables_length,
.dataTables_filter
{
flex: 1;
}
.dataTables_paginate,
.dataTables_info,
.dataTable {
width: 100%;
}
.dataTables_length {
}
.dataTables_filter {
}
.dataTables_info {
line-height: 42px;
text-align: center;
}
.dataTables_paginate {
}
@media all and (min-width: @sm){
.dataTables_filter label {
justify-content: flex-end;
}
.dataTables_length label {
justify-content: flex-start;
}
}
@media all and (min-width: @lg) {
.dataTables_paginate,
.dataTables_info
{
width: auto;
}
.dataTables_info {
text-align: left;
}
.dataTables_paginate {
justify-content: flex-end;
}
}