forked from webrender/trello-collapse-lists
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
70 lines (63 loc) · 1.61 KB
/
styles.css
File metadata and controls
70 lines (63 loc) · 1.61 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
/* closed list */
.js-list.-closed {
width: 41px;
}
/* hide everything in a closed list... */
.js-list.-closed .list * {
display: none !important;
}
/* ...except for the title and the collapse toggle */
.js-list.-closed .list .list-header, .js-list.-closed .list .collapse-toggle {
display: block !important;
}
/* we need to reduce the width of the title to fit the collapse toggle in */
.js-list .list .list-header-name {
width: calc(100% - 22px);
}
/* collapsed list header - rotated + some css hackery to make it look right */
.js-list.-closed .list .list-header-name {
height: 41px !important;
width: auto;
line-height: 35px;
display: block !important;
transform: rotate(90deg);
transform-origin: top left;
top: 29px;
left: 9px;
position: relative;
background: #E2E4E6;
}
/* collapse toggle button */
.collapse-toggle {
float: left;
cursor: pointer;
background: white;
border: 1px solid #ccc;
border-radius: 50%;
height: 20px;
width: 20px;
text-align: center;
position: relative;
}
/* collapse toggle button - triangle */
.collapse-toggle:after {
display: block;
content: '';
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #000;
position: absolute;
top: 8px;
left: 5px;
}
/* collapse toggle button - triangle - closed state */
.js-list.-closed .collapse-toggle:after {
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid #000;
border-right: none;
left: 8px;
top: 5px;
}