generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
253 lines (217 loc) · 5.81 KB
/
styles.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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
/* Basic container styling */
.solidtime-view-container {
padding: var(--size-4-3) var(--size-4-4);
display: flex;
flex-direction: column;
gap: var(--size-4-2);
/* --- Height Constraint --- */
/* Adjust height as needed, or use max-height */
height: 130px;
/* --- End Height Constraint --- */
}
/* Description styling */
.solidtime-view-description {
font-size: var(--font-ui-large);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: var(--size-4-1);
cursor: pointer;
/* Indicate clickable */
padding: 2px 4px;
/* Add padding for better click area/look */
border-radius: var(--radius-s);
}
.solidtime-view-description:hover {
background-color: var(--background-modifier-hover);
}
/* Input field for editing description */
.solidtime-view-description-input {
font-size: var(--font-ui-large);
font-weight: 500;
width: 100%;
/* Take available width */
border: 1px solid var(--background-modifier-border);
background-color: var(--background-primary);
padding: 2px 4px;
border-radius: var(--radius-s);
box-sizing: border-box;
/* Include padding/border in width */
}
/* Row for project and icons */
.solidtime-view-details-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--size-4-2);
min-height: 24px;
}
/* Project display */
.solidtime-view-project {
display: flex;
align-items: center;
gap: var(--size-4-1);
font-size: var(--font-ui-small);
overflow: hidden;
cursor: pointer;
/* Indicate clickable */
padding: 2px 4px;
border-radius: var(--radius-s);
}
.solidtime-view-project:hover {
background-color: var(--background-modifier-hover);
}
/* Input field for editing project (if needed, though modal is better) */
/* ... */
.solidtime-view-project-color {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.solidtime-view-project-name {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--text-muted);
}
/* Icons container */
.solidtime-view-icons {
display: flex;
align-items: center;
gap: var(--size-4-2);
flex-shrink: 0;
}
.solidtime-view-icon {
color: var(--text-faint);
cursor: pointer;
/* Indicate clickable */
padding: 2px;
/* Click area */
}
.solidtime-view-icon:hover {
color: var(--text-muted);
}
/* --- Active Icon Colors --- */
.solidtime-view-icon.tag-active,
.solidtime-view-icon.billable-active {
color: #9abdcf;
/* Your specified active color */
}
.solidtime-view-icon.tag-active:hover,
.solidtime-view-icon.billable-active:hover {
color: #b0d4e8;
/* Slightly lighter on hover */
}
/* --- End Active Icon Colors --- */
/* Row for button and duration */
.solidtime-view-controls-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: auto;
padding-top: var(--size-4-2);
}
/* Button styling */
.solidtime-view-button-container {}
.solidtime-view-button {
background-color: transparent;
border: none;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
width: 36px;
height: 36px;
border-radius: 50%;
}
.solidtime-view-button svg {
width: 20px;
height: 20px;
color: white;
}
.solidtime-view-button.start {
background-color: var(--color-green);
}
.solidtime-view-button.stop {
background-color: var(--color-red);
}
.solidtime-view-button:hover {
opacity: 0.9;
}
/* Duration styling */
.solidtime-view-duration {
font-family: var(--font-monospace);
font-size: var(--font-ui-large);
font-weight: 500;
min-width: 70px;
text-align: right;
}
/* Status Bar Styling */
.status-bar-item.solidtime-statusbar {
/* Default styling for the status bar item if needed */
/* Example: margin-right: var(--size-4-2); */
}
.status-bar-item.solidtime-statusbar.solidtime-active {
/* Style WHEN TIMER IS RUNNING */
color: #31d14b;
/* Your desired green color */
font-weight: 500;
/* Example: make it slightly bolder */
}
.solidtime-view-project-color {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
background-color: var(--text-faint); /* Default faint color if no style set */
border: 1px solid transparent; /* Add border for structure if needed */
box-sizing: border-box;
}
/* Style when no project/color is set */
.solidtime-view-project-color.no-project-color {
background-color: transparent;
border-color: var(--text-faint); /* Example: Show a faint border instead */
}
.solidtime-view-project-color {
/* ... existing styles ... */
/* Use the CSS variable if set, otherwise default */
background-color: var(--project-color, var(--text-faint)); /* Default faint color if variable not set */
/* border: 1px solid transparent; // Keep or remove based on preference */
}
.solidtime-view-project-color.no-project-color {
/* This class might become less necessary if using the variable default */
background-color: transparent;
border-color: var(--text-faint);
}
.solidtime-view-icon {
color: var(--text-faint);
/* Default cursor - non-interactive */
cursor: default;
padding: 2px;
}
/* --- FIX: Use class for interactive cursor --- */
.solidtime-view-icon.is-interactive {
cursor: pointer; /* Set cursor only when interactive */
}
/* --- END FIX --- */
.solidtime-view-icon:hover { /* Keep general hover */
color: var(--text-muted);
}
/* Use is-interactive for hover effect only on clickable icons */
.solidtime-view-icon.is-interactive:hover {
/* Optional: Slightly different hover for interactive icons if needed */
color: var(--text-accent-hover);
}
.solidtime-view-icon.tag-active,
.solidtime-view-icon.billable-active {
color: #9abdcf;
}
.solidtime-view-icon.tag-active.is-interactive:hover, /* Apply hover color only if interactive */
.solidtime-view-icon.billable-active.is-interactive:hover {
color: #b0d4e8;
}