-
Notifications
You must be signed in to change notification settings - Fork 0
/
treetable.css
153 lines (127 loc) · 3.75 KB
/
treetable.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
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
152
153
:root {
--mb: #eee; /* main background */
--mc: #333; /* main color */
--hb: #0075c4; /* header background or linear-gradient(90deg, rgba(0,117,196,1) 0%, rgba(0,67,112,1) 100%); */
--hc: #fff; /* header color */
--tb: #fff; /* title background */
--ab: #fff; /* aside background */
--amb: #fafafa; /* aside menu background */
--ambh: #eee; /* aside menu background hover */
--amch: #333; /* aside menu hover */
--ac: #666; /* aside color */
--fgbb:#fff; /* form group body background */
--fgbc:#333; /* form group body color */
--fgtb:#3DA11C; /* form group title background */
--fgtc:#fff; /* form group title color */
--thb:#3DA11C; /* table header background */
--thc:#ffffff; /* table header color */
--tbc:#ddd; /* table border */
--tch:#f4f3ee; /* table cell hover */
--bn:#999999; /* basecolor neutral */
--bi:#42A4E9; /* basecolor info */
--bs:#3DA11C; /* basecolor success */
--bw:#FBC340; /* basecolor warning */
--be:#EA6949; /* basecolor error */
}
*, *:after, *:before {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,body {
height: 100%;
font-size: 100%;
scroll-behavior: smooth;
}
body {
background: var(--mb);
color: var(--mc);
font:normal 14px/20px 'Roboto', sans-serif;
}
header {
width:100%;
height:60px;
padding:10px;
background: var(--hb);
box-shadow: 1px 0 5px rgba(0,0,0,.1);
}
table {
width:calc(100% - 20px);
margin:10px;
border-collapse:collapse;
}
td, th{
border:1px solid var(--tbc);
line-height:20px;
padding:2px 5px;
}
tr:hover{
background:var(--tch);
}
th{
font-weight:bold;
background-color:var(--thb);
color:var(--thc);
padding:5px 0;
}
td a {
color:var(--mc);
text-decoration:none;
vertical-align:middle;
}
tbody .treetoggle {
display:inline-block;
position:relative;
}
tbody .treetoggle::before {
content: "";
position:absolute;
left:-16px;
top:-10px;
width:12px;
height:12px;
stroke:#ddd;
fill:#ddd;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999999' viewBox='0 0 16 16'%3e%3cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z'/%3e%3cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3e%3c/svg%3e");
}
tbody .expanded .treetoggle::before {
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999999' class='bi bi-dash-square' viewBox='0 0 16 16'%3e%3cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z'/%3e%3cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e");
}
.level-1{
padding-left:20px;
}
.level-2{
padding-left:50px;
}
.level-3{
padding-left:80px;
}
.level-4{
padding-left:110px;
}
.badge {
display: inline-block;
padding: 0.35em 0.65em;
font-size: 0.75em;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: 0.25rem;
}
.badge-draft {
background-color: var(--bi);
}
.badge-pending {
background-color: var(--bw);
}
.badge-published {
background-color: var(--bs);
}
.badge-unpublished {
background-color: var(--bn);
}
.badge-deleted {
background-color: var(--be);
}