mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-05-20 06:59:37 +08:00
294 lines
4.8 KiB
Plaintext
294 lines
4.8 KiB
Plaintext
.enable_plugin_datatables() when(@enable-plugin-datatables = true) {
|
|
|
|
//dataTables
|
|
.dataTables_length {
|
|
//margin-left:8px;
|
|
select {
|
|
width: 70px;
|
|
height: 25px;
|
|
padding: 2px 3px;
|
|
}
|
|
label {
|
|
font-weight:normal;
|
|
}
|
|
}
|
|
.dataTables_filter {
|
|
// margin-right:8px;
|
|
text-align:right;
|
|
input[type=text], input[type=search] {
|
|
width: 125px;
|
|
height: 18px;
|
|
line-height: 18px;
|
|
.box-sizing(content-box);
|
|
padding: 4px 6px;
|
|
}
|
|
label {
|
|
font-weight:normal;
|
|
}
|
|
}
|
|
|
|
.dataTables_info {
|
|
// margin:0 0 0 12px;
|
|
font-size: @base-font-size + 1;
|
|
}
|
|
|
|
.dataTables_paginate {
|
|
text-align: right;
|
|
.pagination {
|
|
margin: 0 12px;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dataTables_wrapper {
|
|
label {
|
|
display: inline-block;
|
|
font-size: @base-font-size;
|
|
}
|
|
input[type=text] , input[type=search], select {
|
|
margin-bottom: 0 !important;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.row {
|
|
margin: 0 !important;//to override .rtl's
|
|
|
|
&:first-child {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
|
|
background-color: #EFF3F8;
|
|
|
|
+ .dataTable {
|
|
border-top: 1px solid @table-border-color;
|
|
border-bottom: 1px solid @table-border-color;
|
|
}
|
|
}
|
|
&:last-child {
|
|
border-bottom: 1px solid lighten(@table-border-color , 1%);
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
|
|
background-color: #EFF3F8;
|
|
}
|
|
}
|
|
|
|
.dataTables_scroll + .row {
|
|
border-top: 1px solid lighten(@table-border-color , 1%);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dataTable {
|
|
margin-bottom:0;
|
|
> thead > tr > th {
|
|
&[class*=sort] {
|
|
cursor:pointer;
|
|
&:after {
|
|
float: right;
|
|
display: inline;
|
|
|
|
content: "\f0dc";
|
|
font-family: FontAwesome;
|
|
font-size: @base-font-size;
|
|
font-weight: normal;
|
|
|
|
color: #555;
|
|
}
|
|
|
|
&:hover {
|
|
color:@table-sort-hover;
|
|
}
|
|
}
|
|
|
|
&[class*=sorting_] {
|
|
color:@table-sort-active;
|
|
}
|
|
|
|
&.sorting_desc , &.sorting_asc {
|
|
#gradient > .vertical(#EFF3F8 , #E3E7ED);
|
|
}
|
|
|
|
&.sorting_desc:after {
|
|
content:"\f0dd";
|
|
top:-6px;
|
|
color:@table-sort-active;
|
|
}
|
|
&.sorting_asc:after {
|
|
content:"\f0de";
|
|
top:4px;
|
|
color:@table-sort-active;
|
|
}
|
|
|
|
&.sorting_disabled {
|
|
cursor:inherit;
|
|
&:after { display:none; }
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//scrollable dataTable
|
|
.dataTables_scrollHead + .dataTables_scrollBody > .dataTable > thead > tr > th:after {
|
|
display: none;
|
|
}
|
|
.dataTables_scrollHeadInner {
|
|
width: auto !important;
|
|
}
|
|
.dataTables_scrollHeadInner > .dataTable > thead > tr > th {
|
|
border-bottom-width: 0 !important;
|
|
}
|
|
|
|
|
|
//some extra border because of scrolling horizontally
|
|
.dataTables_borderWrap {
|
|
.dataTables_scrollBody , .dataTables_scrollHead {
|
|
border: 1px solid @table-border-color !important;
|
|
border-width: 0 1px !important;
|
|
|
|
.table-bordered {
|
|
border-left-width: 0;
|
|
border-right-width: 0;
|
|
|
|
> thead > tr > th:first-child,
|
|
> tbody > tr > td:first-child {
|
|
border-left-width: 0;
|
|
}
|
|
> thead > tr > th:last-child,
|
|
> tbody > tr > td:last-child {
|
|
border-right-width: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//some extra from
|
|
//https://github.com/DataTables/Plugins/tree/master/integration/bootstrap/3
|
|
table.dataTable {
|
|
clear: both;
|
|
max-width: none !important;
|
|
}
|
|
|
|
table.dataTable th:active {
|
|
outline: none;
|
|
}
|
|
|
|
//Scrolling
|
|
div.dataTables_scrollHead table {
|
|
margin-bottom: 0 !important;
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
|
|
div.dataTables_scrollHead table thead tr:last-child th:first-child,
|
|
div.dataTables_scrollHead table thead tr:last-child td:first-child {
|
|
border-bottom-left-radius: 0 !important;
|
|
border-bottom-right-radius: 0 !important;
|
|
}
|
|
|
|
div.dataTables_scrollBody table {
|
|
border-top: none;
|
|
margin-top: 0 !important;
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
div.dataTables_scrollBody tbody tr:first-child th,
|
|
div.dataTables_scrollBody tbody tr:first-child td {
|
|
border-top: none;
|
|
}
|
|
|
|
div.dataTables_scrollFoot table {
|
|
margin-top: 0 !important;
|
|
border-top: none;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
///
|
|
//table Tools extension
|
|
.tableTools-container {
|
|
margin-bottom: 8px;
|
|
position: relative;
|
|
}
|
|
|
|
.gritter-item-wrapper.dt-button-info {
|
|
padding: 12px 11px 8px;
|
|
z-index: 1999;
|
|
> h2 {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.dt-button-collection .dropdown-menu {
|
|
display: block;
|
|
z-index: 1101;
|
|
|
|
> li > a {
|
|
color: #888;
|
|
text-decoration: line-through;
|
|
}
|
|
> li > a.active {
|
|
color : #333;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
|
|
div.dt-button-background {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
background-color: black;
|
|
z-index: 1100;
|
|
opacity: 0.1;
|
|
}
|
|
|
|
|
|
.dataTable>tbody>tr.selected>td {
|
|
background-color:@state-success-bg;
|
|
}
|
|
.dataTable>tbody>tr.selected:hover>td {
|
|
background-color: darken(@state-success-bg, 5%);
|
|
}
|
|
|
|
|
|
|
|
|
|
///
|
|
div.dataTables_processing {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 80%;
|
|
height: 60px;
|
|
margin-left: -40%;
|
|
margin-top: -25px;
|
|
padding-top: 20px;
|
|
padding-bottom: 20px;
|
|
text-align: center;
|
|
font-size: 1.2em;
|
|
background-color: white;
|
|
border: 2px solid #DDD;
|
|
background-color: rgba(255,255,255,0.66);
|
|
}
|
|
|
|
|
|
}
|
|
.enable_plugin_datatables(); |