1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* ------------------------------------------------------------------------------
*
* # Select extension
*
* Spreadsheets such as Excel and Google Docs have a very handy data duplication
* option of an auto fill tool
*
* Version: 1.1
* Latest update: Dec 9, 2015
*
* ---------------------------------------------------------------------------- */
// Core
// ------------------------------
// Highlight selected row
.dataTable {
tbody > tr {
&.selected,
> .selected {
background-color: @color-success-50;
}
}
}
// Item select
.dataTables_wrapper {
.select-info,
.select-item {
margin-left: @content-padding-small;
// On mobile
@media (max-width: @screen-xs-max) {
margin-left: 0;
display: block;
}
}
}
// Checkbox
// ------------------------------
.dataTable tbody {
// Chackbox base
.select-checkbox {
position: relative;
// Checkbox icon base
&:before,
&:after {
display: inline-block;
color: @color-slate-700;
position: absolute;
top: 50%;
left: 50%;
cursor: pointer;
}
// Box
&:before {
content: '';
background-color: #fff;
width: @checkbox-size;
height: @checkbox-size;
margin-top: -(@checkbox-size / 2);
margin-left: -(@checkbox-size / 2);
border: @checkbox-border-width solid @color-slate-500;
border-radius: @border-radius-small;
}
}
// Checkmark icon
.selected .select-checkbox {
&:after {
content: "\e600";
font-family: 'icomoon';
font-size: @icon-font-size;
line-height: 1;
margin-top: -((@checkbox-size - @checkbox-border-width) / 2);
margin-left: -((@checkbox-size - @checkbox-border-width) / 2);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
}