-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathmaterial.less
More file actions
149 lines (122 loc) · 4.45 KB
/
material.less
File metadata and controls
149 lines (122 loc) · 4.45 KB
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
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
// ░░░░░░░░░░▄▀░█▀▄░█▀▀░█▀▀░█░█░█░░░█▀█░█▀▄░░░░░▀█▀░█▀█░█▀▄░█░░░█▀▀░▀▄░░░░░░░░░░
// ░░░░░░░░░▀▄░░█▀▄░█▀▀░█░█░█░█░█░░░█▀█░█▀▄░▀▀▀░░█░░█▀█░█▀▄░█░░░█▀▀░░▄▀░░░░░░░░░
// ░░░░░░░░░░░▀░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀░▀░░░░░░▀░░▀░▀░▀▀░░▀▀▀░▀▀▀░▀░░░░░░░░░░░
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
// ┃ * Copyright (c) 2020, the Regular Table Authors. This file is part * ┃
// ┃ * of the Regular Table library, distributed under the terms of the * ┃
// ┃ * [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). * ┃
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
@import "./sub-cell-scrolling.less";
@row-height: 19px;
regular-table {
padding-top: 12px;
padding-left: 12px;
padding-bottom: 0;
padding-right: 0;
// firefox scrollbar styling
scrollbar-color: transparent transparent;
scrollbar-width: thin;
outline: none;
}
regular-table:hover {
scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}
regular-table {
font-family: "Open Sans";
div[tabindex] {
outline: none;
}
& > div {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
}
th {
text-align: center;
}
// Header groups should overflow and not contribute to auto-sizing.
thead tr:not(.rt-autosize) th {
overflow: hidden;
max-width: 0px;
}
tbody th {
text-align: left;
}
// frozen rows
thead tr:last-child th {
border-bottom: 1px solid #ddd;
}
th {
position: relative;
}
td,
th {
white-space: nowrap;
font-size: 12px;
padding-right: 5px;
padding-left: 5px;
padding-top: 0px;
padding-bottom: 0px;
height: @row-height;
}
tr:hover td {
background: #eee;
opacity: 1;
}
tr:hover {
color: #333;
}
table * {
box-sizing: border-box;
}
table {
position: absolute;
overflow: hidden;
color: #666;
outline: none;
}
.rt-cell-clip {
overflow: hidden;
text-overflow: ellipsis;
}
.rt-column-resize {
height: 100%;
width: 10px;
position: absolute;
top: 0;
right: 0;
cursor: col-resize;
}
// webkit (chrome, safari, etc) scrollbar styling
&::-webkit-scrollbar,
&::-webkit-scrollbar-corner {
background-color: transparent;
height: 12px;
width: 12px;
}
&::-webkit-scrollbar-thumb {
background-clip: content-box;
background-color: rgba(0, 0, 0, 0);
border-radius: 5px;
}
&::-webkit-scrollbar-thumb:horizontal {
border-bottom: 2px solid transparent;
border-top: 2px solid transparent;
}
&::-webkit-scrollbar-thumb:vertical {
border-left: 2px solid transparent;
border-right: 2px solid transparent;
}
&:hover::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.15);
}
&::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.3);
}
}