This repository has been archived by the owner on Feb 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
style.css
53 lines (48 loc) · 1.39 KB
/
style.css
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
.table-drag-select {
/* Stretch horizontally to fill parent */
width: 100%;
/* Keep columns same width */
table-layout: fixed;
/* Disable text selection */
user-select: none;
/* Center in parent */
margin-left: auto;
margin-right: auto;
/* Remove space between border */
border-collapse: collapse;
}
/* Table cells */
.table-drag-select td {
text-align: center;
/* Cut off long strings of text with ... */
text-overflow: ellipsis;
overflow: hidden;
/* Make transparent gaps between cells. Better than relying on margin
* because clicking an element's margin doesn't trigger events */
border: 0.7rem solid transparent;
background-clip: padding-box;
/* Make cells reasonable size */
line-height: 3rem;
/* Shows more text when text too big to fit into cell */
padding-left: 0rem;
padding-right: 0rem;
}
/* Cells that can be interacted with */
.table-drag-select td.cell-enabled {
background-color: #DDD;
/* Make the cursor a + symbol */
cursor: cell;
}
/* Cells that cannot be interacted with */
.table-drag-select td.cell-disabled {
/* Put yer css here */
}
/* Cells that have been selected */
.table-drag-select td.cell-selected {
background-color: #A9A9A9;
}
/* Cells that are in the process of being selected */
.table-drag-select td.cell-being-selected {
/* This is the blue color you see when you select text with the cursor */
background-color: #3F83D5;
}