-
Notifications
You must be signed in to change notification settings - Fork 3
/
airtable-com_neat-kanban.user.css
224 lines (178 loc) · 5.93 KB
/
airtable-com_neat-kanban.user.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
/* ==UserStyle==
@name airtable.com neat kanban
@description Modifies the display of Airtable’s Kanban view to make better use of available space and simplify the cards UI.
@author Heracles Papatheodorou <[email protected]> (https://heracl.es)
@namespace https://heracl.es
@homepageURL https://github.com/Arty2/userstyles
@updateURL https://raw.githubusercontent.com/Arty2/userstyles/master/airtable-com_neat-kanban.user.css
@supportURL https://github.com/Arty2/userstyles/issues
@version 0.1.5
@license MIT License
@preprocessor default
@var text airt-text-color "Text color (RGB)" "0, 0, 0"
@var text airt-border-color "Border color (RGB)" "0, 0, 0"
@var text airt-card-color "Card background color (RGB)" "255, 255, 255"
@var text airt-kanban-color "Kanban background color (RGBA)" "0, 0, 0, 0"
@var text airt-asignee "“Assigned to” field title (requires manual edit)" Action of
==/UserStyle== */
@-moz-document domain("airtable.com") {
/* ==========================================================================
Set default background colors and borders
========================================================================== */
/* in kanban board */
#kanbanView {
background: rgba(var(--airt-kanban-color));
}
/* remove background from each column */
.kanbanStackHeightContainer {
background: none !important;
}
/* remove background from card shapes */
.kanbanCardContainer,
.kanbanCardContainer > .baymaxGalleryCard > .rounded-big {
background: none;
}
/* remove column overflow default shade */
.kanbanStackHeightContainer .border-bottom-thick,
.kanbanStackHeightContainer .border-top-thick {
border-color: transparent;
}
/* set background color */
.baymaxGalleryCard {
background: rgba(var(--airt-card-color));
}
/* card outline */
.kanbanCardContainer .button-stroked1 {
box-shadow: 0 0 0 2px rgba(var(--airt-border-color),0.05);
}
/* card outline hovered */
.kanbanCardContainer .button-stroked1:hover {
box-shadow: 0 0 0 2px rgba(var(--airt-border-color),0.2);
}
/* column header */
.kanbanStackHeader {
background: none !important;
border-bottom: 2px solid rgba(var(--airt-border-color),0.2);
}
/* column footer */
.kanbanStackFooter {
background: none !important;
border-top: 2px solid rgba(var(--airt-border-color),0.2);
}
/* stacked column */
.collapsedKanbanStack > div {
background: none;
}
.collapsedKanbanStack:hover > div {
background: rgba(var(--airt-card-color));
}
/* "+ New stack" */
.stacksContainer > div > div:last-child {
background: none;
opacity: 0.2;
}
/* ==========================================================================
Make cards wider
========================================================================== */
.kanbanCardContainer {
margin-left: -16px; /* 18px - 2px for the box-shadow */
width: 98% !important; /* accomodate for scrollbars */
}
.kanbanCardContainer > .baymaxGalleryCard > .rounded-big {
width: 100% !important;
}
/* ==========================================================================
Make card titles span two rows
========================================================================== */
.kanbanCardContainer .galleryCardPrimaryCell {
margin-top: 0.5em;
max-height: 3.4em;
overflow: hidden;
font-size: 0.8em;
white-space: normal;
/* display ellipsis when text overflows */
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
display: -webkit-box;
}
/* ==========================================================================
Column footer
========================================================================== */
/* make new card button less prominent */
#kanbanView .addRowButton.parentComplementaryColoredBackground {
background: none !important;
}
/*.addRowButton svg {
color: rgba(var(--airt-text-color),0.4) !important;
}*/
/* ==========================================================================
Column header
========================================================================== */
/* make menu button less prominent */
.kanbanStackHeader .menuButton {
color: rgba(var(--airt-text-color),0.5) !important;
}
/* restyle header pill */
.kanbanStackHeader .pill {
display: block;
width: 100%;
overflow: visible;
border: 2px solid rgba(var(--airt-border-color));
color: rgba(var(--airt-text-color));
font-weight: bold !important;
}
.kanbanStackHeader .truncate {
overflow: visible;
}
.kanbanStackHeader .pill > .truncate {
margin-left: 1.3em;
margin-top: -1px;
}
/* but fix collaborator columns */
.kanbanStackHeader div[data-columntype="collaborator"] .pill {
background: none !important;
border: none;
}
/* ==========================================================================
Text color
========================================================================== */
#kanbanView {
color: rgba(var(--airt-text-color));
}
#kanbanView .cell,
#kanbanView .galleryCardPrimaryCell {
color: rgba(var(--airt-text-color)) !important;
}
#kanbanView .text-gray,
#kanbanView .text-dark {
color: rgba(var(--airt-text-color),0.3);
}
#kanbanView .kanbanStackFooter,
#kanbanView .kanbanStackFooter svg {
color: rgba(var(--airt-text-color),0.5) !important;
}
}
@-moz-document domain("airtable.com") {
/* ==========================================================================
Style assignee field (optional)
when "Action of" is the field's title
displays best if it's the last field
========================================================================== */
/* #kanbanView {
--airt-asignee: 'Action of';
}*/
#kanbanView div[title="Action of"] {
visibility: hidden;
}
#kanbanView div[title="Action of"] + div {
/* outline: 1px solid red; */
float: right;
}
#kanbanView div[title="Action of"] + div .pill {
display: none;
}
#kanbanView div[data-columntype="collaborator"] .circle {
border: 2px solid rgba(var(--airt-border-color),0.1) !important;
background-clip: padding-box;
}
}