src/ztfy/myams/resources/less/tables.less
changeset 156 61176c64158d
parent 141 a4200ce41c25
child 168 42c0629971ff
equal deleted inserted replaced
155:e0fb6fd568eb 156:61176c64158d
    25 .table-dnd {
    25 .table-dnd {
    26 	tbody {
    26 	tbody {
    27 		tr {
    27 		tr {
    28 			&.dragging-row {
    28 			&.dragging-row {
    29 				td {
    29 				td {
    30 					background-color: @activeTabBg!important;
    30 					background-color: @activeTabBg !important;
    31 				}
    31 				}
    32 			}
    32 			}
    33 			td:first-child {
    33 
       
    34 			&:not(.no-drag-handle) td:first-child {
    34 				padding-left: 20px!important;
    35 				padding-left: 20px!important;
    35 			}
    36 			}
       
    37 		}
       
    38 		td.sorter,
       
    39 		td.sorter a {
       
    40 			cursor: move!important;
    36 		}
    41 		}
    37 		td.drag-handle {
    42 		td.drag-handle {
    38 			background: transparent url('../img/vert-drag-handle.png') scroll no-repeat left 50%;
    43 			background: transparent url('../img/vert-drag-handle.png') scroll no-repeat left 50%;
       
    44 		}
       
    45 	}
       
    46 }
       
    47 table:not(.table-dnd) {
       
    48 	td.sorter {
       
    49 		a {
       
    50 			display: none;
    39 		}
    51 		}
    40 	}
    52 	}
    41 }
    53 }
    42 .table-tight {
    54 .table-tight {
    43 	td,
    55 	td,
    44 	th {
    56 	th {
    45 		padding: 4px 8px!important;
    57 		padding: 4px 8px!important;
    46 		line-height: 1.3!important;
    58 		line-height: 1.3!important;
       
    59 
       
    60 		input[type="text"] {
       
    61 			height: 20px;
       
    62 			padding: 3px 8px;
       
    63 		}
       
    64 	}
       
    65 }
       
    66 .table-small {
       
    67 	td,
       
    68 	th {
       
    69 		padding: 2px 8px!important;
       
    70 		line-height: 1.2!important;
       
    71 
       
    72 		input[type="text"] {
       
    73 			height: 18px;
       
    74 			padding: 2px 8px;
       
    75 		}
    47 	}
    76 	}
    48 }
    77 }
    49 .table-mini {
    78 .table-mini {
    50 	td,
    79 	td,
    51 	th {
    80 	th {
    52 		padding: 1px 8px!important;
    81 		padding: 1px 8px!important;
    53 		line-height: 1.1!important;
    82 		line-height: 1.1!important;
       
    83 
       
    84 		input[type="text"] {
       
    85 			height: 16px;
       
    86 			padding: 1px 8px;
       
    87 		}
    54 	}
    88 	}
    55 }
    89 }
    56 
    90 
    57 .table-bordered {
    91 .table-bordered {
    58 	>thead >tr >td,
    92 	>thead >tr >td,
   122 
   156 
   123 .dt-bottom-row {
   157 .dt-bottom-row {
   124 	background: #fafafa;
   158 	background: #fafafa;
   125 	font-size: 11px;
   159 	font-size: 11px;
   126 	overflow: hidden;
   160 	overflow: hidden;
   127 	padding: 5px 10px!important;
   161 	padding: 5px 10px;
   128 	border-top: 1px solid #ccc;
   162 	border-top: 1px solid #ccc;
   129 	-webkit-box-shadow: inset 0 1px #fff;
   163 	-webkit-box-shadow: inset 0 1px #fff;
   130 	-ms-box-shadow: inset 0 1px #fff;
   164 	-ms-box-shadow: inset 0 1px #fff;
   131 	box-shadow: inset 0 1px #fff;
   165 	box-shadow: inset 0 1px #fff;
   132 
   166 
   220 			.sorting {
   254 			.sorting {
   221 				background: url(../img/datatable/sort_both.png) no-repeat center right;
   255 				background: url(../img/datatable/sort_both.png) no-repeat center right;
   222 			}
   256 			}
   223 
   257 
   224 			.sorting_asc {
   258 			.sorting_asc {
   225 				background: url(../img/datatable/sort_asc.png) no-repeat center right;
   259 				background: rgb(224, 248, 255) url(../img/datatable/sort_asc.png) no-repeat center right;
   226 			}
   260 			}
   227 
   261 
   228 			.sorting_desc {
   262 			.sorting_desc {
   229 				background: url(../img/datatable/sort_desc.png) no-repeat center right;
   263 				background: rgb(212, 240, 255) url(../img/datatable/sort_desc.png) no-repeat center right;
   230 			}
   264 			}
   231 
   265 
   232 			.sorting_asc_disabled {
   266 			.sorting_asc_disabled {
   233 				background: url(../img/datatable/sort_asc_disabled.png) no-repeat center right;
   267 				background: url(../img/datatable/sort_asc_disabled.png) no-repeat center right;
   234 			}
   268 			}