-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTodoEditor.css
More file actions
184 lines (155 loc) · 3.8 KB
/
Copy pathTodoEditor.css
File metadata and controls
184 lines (155 loc) · 3.8 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
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
/*
* Styles for the rich HTML-based Todo editor.
*
* Following the editor's theming conventions:
* - Layout rules are theme-agnostic (no theme class prefix).
* - Color rules are scoped per theme class. Dark-like themes (dark,
* phaserstudio) and light-like themes (light, lightBlue, lightGray) are
* grouped to avoid repetition.
*/
/* ---- layout (theme-agnostic) ---- */
.TodoEditorArea {
width: 100%;
height: 100%;
overflow: auto;
padding: 10px;
box-sizing: border-box;
}
.TodoTaskCard {
display: flex;
flex-direction: column;
gap: 6px;
padding: 10px 12px;
margin-bottom: 8px;
border-radius: 6px;
border: 1px solid transparent;
cursor: pointer;
}
.TodoTaskCardHeader {
display: flex;
align-items: center;
gap: 8px;
}
.TodoTaskName {
font-weight: bold;
flex: 1 1 auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.TodoTaskState {
flex: 0 0 auto;
font-size: 11px;
padding: 2px 8px;
border-radius: 10px;
white-space: nowrap;
}
.TodoTaskDesc {
font-size: 12px;
white-space: pre-wrap;
word-break: break-word;
}
.TodoTaskDesc.empty {
font-style: italic;
opacity: 0.6;
}
.TodoEditorEmpty {
padding: 20px;
text-align: center;
opacity: 0.7;
}
/* ---- colors: dark-like themes ---- */
.dark .TodoTaskCard,
.phaserstudio .TodoTaskCard {
border-color: #3c3c3c;
color: #e0e0e0;
}
/* card background tinted with the state color */
.dark .TodoTaskCard.state-todo,
.phaserstudio .TodoTaskCard.state-todo {
background: rgba(255, 255, 255, 0.06);
}
.dark .TodoTaskCard.state-doing,
.phaserstudio .TodoTaskCard.state-doing {
background: rgba(226, 192, 141, 0.14);
}
.dark .TodoTaskCard.state-done,
.phaserstudio .TodoTaskCard.state-done {
background: rgba(115, 201, 145, 0.14);
}
.dark .TodoTaskCard:hover,
.phaserstudio .TodoTaskCard:hover {
border-color: #5a5a5a;
}
.dark .TodoTaskCard.selected,
.phaserstudio .TodoTaskCard.selected {
border-color: #569cd6;
background: #094771;
}
.dark .TodoTaskState.state-todo,
.phaserstudio .TodoTaskState.state-todo {
background: #4d4d4d;
color: #e0e0e0;
}
.dark .TodoTaskState.state-doing,
.phaserstudio .TodoTaskState.state-doing {
background: #5a4b2a;
color: #e2c08d;
}
.dark .TodoTaskState.state-done,
.phaserstudio .TodoTaskState.state-done {
background: #2d4a35;
color: #73c991;
}
/* ---- colors: light-like themes ---- */
.light .TodoTaskCard,
.lightBlue .TodoTaskCard,
.lightGray .TodoTaskCard {
border-color: #d0d0d0;
color: #1e1e1e;
}
/* card background tinted with the state color */
.light .TodoTaskCard.state-todo,
.lightBlue .TodoTaskCard.state-todo,
.lightGray .TodoTaskCard.state-todo {
background: rgba(0, 0, 0, 0.04);
}
.light .TodoTaskCard.state-doing,
.lightBlue .TodoTaskCard.state-doing,
.lightGray .TodoTaskCard.state-doing {
background: rgba(184, 134, 11, 0.14);
}
.light .TodoTaskCard.state-done,
.lightBlue .TodoTaskCard.state-done,
.lightGray .TodoTaskCard.state-done {
background: rgba(46, 125, 70, 0.14);
}
.light .TodoTaskCard:hover,
.lightBlue .TodoTaskCard:hover,
.lightGray .TodoTaskCard:hover {
border-color: #aaaaaa;
}
.light .TodoTaskCard.selected,
.lightBlue .TodoTaskCard.selected,
.lightGray .TodoTaskCard.selected {
border-color: #0078d4;
background: #cce4f7;
}
.light .TodoTaskState.state-todo,
.lightBlue .TodoTaskState.state-todo,
.lightGray .TodoTaskState.state-todo {
background: #e3e3e3;
color: #555555;
}
.light .TodoTaskState.state-doing,
.lightBlue .TodoTaskState.state-doing,
.lightGray .TodoTaskState.state-doing {
background: #fbe6c5;
color: #8a6d1a;
}
.light .TodoTaskState.state-done,
.lightBlue .TodoTaskState.state-done,
.lightGray .TodoTaskState.state-done {
background: #d6f0dd;
color: #2e7d46;
}