2
schangxiang@126.com
2024-08-16 b47c50a2a514def7374b32d7194b2c599cba5625
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
@table-border-color: #999;
@cell-border-color: #eee;
 
.ng-table {
    th {
        text-align: center;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
 
        &.sortable {
            cursor: pointer;
 
            div {
                padding-right: 18px;
                position: relative;
 
                &:after, &:before {
                    content: "";
                    border-width: 0 4px 4px;
                    border-style: solid;
                    border-color: #000 transparent;
                    visibility: visible;
                    right: 8px;
                    top: 50%;
                    position: absolute;
                    opacity: .3;
                    margin-top: -4px;
                }
                &:before {
                    margin-top: 2px;
                    border-bottom: none;
                    border-left: 4px solid transparent;
                    border-right: 4px solid transparent;
                    border-top: 4px solid #000;
                }
            }
 
            div:hover:after, div:hover:before {
                opacity: 1;
                visibility: visible;
            }
            &.sort-desc, &.sort-asc {
                background-color: rgba(141, 192, 219, 0.25);
                text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
 
                div:after {
                    margin-top: -2px;
                }
                div:before {
                    visibility: hidden;
                }
            }
            &.sort-asc div:after, &.sort-asc div:hover:after {
                visibility: visible;
                filter: alpha(opacity=60);
                -khtml-opacity: 0.6;
                -moz-opacity: 0.6;
                opacity: 0.6;
            }
            &.sort-desc div:after {
                border-bottom: none;
                border-left: 4px solid transparent;
                border-right: 4px solid transparent;
                border-top: 4px solid #000;
                visibility: visible;
                -webkit-box-shadow: none;
                -moz-box-shadow: none;
                box-shadow: none;
                filter: alpha(opacity=60);
                -khtml-opacity: 0.6;
                -moz-opacity: 0.6;
                opacity: 0.6;
            }
        }
        &.filter {
            .input-filter {
                margin: 0;
                display: block;
                width: 100%;
                min-height: 30px;
                -webkit-box-sizing: border-box;
                -moz-box-sizing: border-box;
                box-sizing: border-box;
            }
        }
    }
 
    & + .pagination {
        margin-top: 0;
    }
}
 
@media only screen and (max-width: 800px) {
    .ng-table-responsive {
        border-bottom: 1px solid @table-border-color;
        tr {
            border-top: 1px solid @table-border-color;
            border-left: 1px solid @table-border-color;
            border-right: 1px solid @table-border-color;
        }
        td:before {
            position: absolute;
            padding: 8px;
            left: 0;
            top: 0;
            width: 50%;
            white-space: nowrap;
            text-align: left;
            font-weight: bold;
        }
        thead {
            tr {
                th {
                    text-align: left;
                }
                &.ng-table-filters {
                    th {
                        padding: 0;
 
                        form > div {
                            padding: 8px;
                        }
                    }
                }
            }
        }
        td {
            border: none;
            border-bottom: 1px solid @cell-border-color;
            position: relative;
            padding-left: 50%;
            white-space: normal;
            text-align: left;
 
            &:before {
                content: attr(data-title-text);
            }
        }
        &, thead, tbody, th, td, tr {
            display: block;
        }
    }
 
    .ng-table-pager {}
    .ng-table-pagination {}
    .ng-table-counts {}
}