Blame view

datalets/datatable-datalet/js/DataTables-1.10.5/extensions/Responsive/css/dataTables.responsive.scss 1.96 KB
abeb4a17   Luigi Serra   Update components...
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
  

  //

  // Mixins

  //

  @mixin control() {

  	display: block;

  	position: absolute;

  	color: white;

  	border: 2px solid white;

  	border-radius: 16px;

  	text-align: center;

  	line-height: 14px;

  	box-shadow: 0 0 3px #444;

  	box-sizing: content-box;

  }

  

  @mixin control-open() {

  	content: '+';

  	background-color: #31b131;

  }

  

  @mixin control-close() {

  	content: '-';

  	background-color: #d33333;

  }

  

  

  //

  // Table styles

  //

  table.dataTable {

  	// Styling for the `inline` type

  	&.dtr-inline.collapsed tbody {

  		td:first-child,

  		th:first-child {

  			position: relative;

  			padding-left: 30px;

  			cursor: pointer;

  

  			&:before {

  				top: 8px;

  				left: 4px;

  				height: 16px;

  				width: 16px;

  				@include control;

  				@include control-open;

  			}

  

  			&.dataTables_empty:before {

  				display: none;

  			}

  		}

  

  		tr.parent {

  			td:first-child:before,

  			th:first-child:before {

  				@include control-close;

  			}

  		}

  

  		tr.child td:before {

  			display: none;

  		}

  	}

  

  

  	// Styling for the `column` type

  	&.dtr-column tbody {

  		td.control,

  		th.control {

  			position: relative;

  			cursor: pointer;

  

  			&:before {

  				top: 50%;

  				left: 50%;

  				height: 16px;

  				width: 16px;

  				margin-top: -10px;

  				margin-left: -10px;

  				@include control;

  				@include control-open;

  			}

  		}

  

  		tr.parent {

  			td.control:before,

  			th.control:before {

  				@include control-close;

  			}

  		}

  	}

  

  

  	// Child row styling

  	tr.child {

  		padding: 0.5em 1em;

  

  		&:hover {

  			background: transparent !important;

  		}

  

  		ul {

  			display: inline-block;

  			list-style-type: none;

  			margin: 0;

  			padding: 0;

  

  			li {

  				border-bottom: 1px solid #efefef;

  				padding: 0.5em 0;

  				white-space: nowrap;

  

  				&:first-child {

  					padding-top: 0;

  				}

  

  				&:last-child {

  					border-bottom: none;

  				}

  			}

  		}

  

  		span.dtr-title {

  			display: inline-block;

  			min-width: 75px;

  			font-weight: bold;

  		}

  

  		span.dtr-data {}

  	}

  }