-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
188 lines (161 loc) · 4.63 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
:root {
--project-popup-padding: 4px;
}
.obsidian-taskcard {
background-color: var(--background-primary);
color: var(--text-normal);
font-size: var(--font-text-size);
font-family: var(--font-text);
line-height: var(--line-height-normal);
border-radius: var(--radius-m);
border: var(--border-width) solid var(--background-modifier-border);
height: var(--input-height);
margin: 1px 0;
display: inline-flex;
flex-direction: column;
gap: 3px;
white-space: normal;
outline: none;
align-items: flex-start;
text-align: inherit; /* Aligns text as in a regular div */
width: 100%;
height: 100%;
margin-inline-start: calc(-1 * var(--list-indent));
}
.obsidian-taskcard.mode-single-line {
cursor: var(--cursor-link);
padding: 0.25em 0.5em 0.25em 0.48em;
}
.obsidian-taskcard.mode-single-line:hover {
background-color: var(--background-primary-alt);
}
.obsidian-taskcard.mode-single-line:active {
background-color: var(--background-modifier-active-hover);
}
.obsidian-taskcard.mode-multi-line {
padding: 0.25em 0.5em 0.25em 0.48em;
}
.obsidian-taskcard.mode-multi-line.is-flashing {
box-shadow: 0px 0px 10px var(--text-highlight-bg);
background-color: var(--background-primary) !important;
}
.obsidian-taskcard-list-item.is-flashing .obsidian-taskcard.mode-single-line {
box-shadow: 0px 0px 10px var(--text-highlight-bg);
}
.obsidian-taskcard-list-item {
position: relative;
padding: 0;
margin: 0;
font: inherit;
cursor: pointer;
outline: inherit;
background-color: inherit !important;
}
.task-card-single-line {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between; /* Align the two main containers */
width: 100%;
box-shadow: none;
}
.task-card-single-line-left-container {
display: flex;
flex-direction: row;
align-items: center; /* Vertically center the checkbox and content */
flex-grow: 1; /* Take up all available space */
}
.task-card-single-line-right-container {
display: flex;
flex-direction: row;
align-items: center; /* Vertically center the children */
align-self: center;
}
.task-card-checkbox-wrapper {
grid-column: 1;
grid-row: 1;
display: flex;
align-items: center;
/* margin-right: 4px; */
}
.task-card-content-project-line {
position: relative;
grid-column: 2;
grid-row: 1;
display: flex;
flex-wrap: wrap; /* Allows content to wrap to the next line */
justify-content: space-between; /* Aligns content left, project right */
align-items: center; /* Centers items vertically */
}
.task-card-content {
border-radius: var(--radius-s); /* Rounded square */
cursor: pointer; /* Pointer cursor on hover */
flex-grow: 0.98;
padding-left: 0.25em;
padding-right: 0.25em;
font-size: var(--font-text-size);
}
.task-card-menu-button.mode-multi-line {
grid-column: 3;
grid-row: 1;
}
.task-card-attribute-bottom-bar {
display: flex; /* Use Flexbox layout */
align-items: center; /* Center children vertically */
justify-content: space-between; /* Align the first 3 elements to the left and the button to the right */
width: 100%;
flex-direction: row; /* Not necessary, as 'row' is the default value, but can be included for clarity */
}
.task-card-attribute-bottom-bar-left {
display: flex; /* Enables Flexbox for the left-aligned elements */
align-items: center; /* Center children vertically */
overflow: hidden; /* Hide the overflow */
flex-grow: 1; /* Takes up remaining left space */
}
.task-card-attribute-bottom-bar-right {
display: flex;
align-items: center;
margin-left: calc(0.1 * var(--list-indent));
}
.task-card-attribute-separator {
flex-shrink: 0; /* Prevents shrinking */
margin: 0 3px 0 2px;
margin-top: 3px;
border-left: 1px solid var(--interactive-hover);
height: 13px;
align-items: center;
align-self: center;
}
.task-card-icon {
align-self: center;
width: var(--icon-xs);
height: var(--icon-xs);
}
.task-card-button {
display: flex;
align-items: center;
justify-content: center;
box-shadow: none !important;
background: none;
padding: 0;
cursor: pointer;
width: calc(var(--icon-xs) + 10px);
height: calc(var(--icon-xs) + 10px);
overflow: hidden; /* Hide overflow */
min-width: calc(var(--icon-xs) + 10px); /* Set minimum width */
min-height: calc(var(--icon-xs) + 10px); /* Set minimum height */
flex-shrink: 0; /* Prevent shrinking */
}
.task-card-button:hover {
background: var(--background-modifier-hover);
}
.task-card-menu-button:hover svg {
color: var(--icon-color-hover);
}
.task-card-menu-button:active {
background: none !important;
box-shadow: none !important;
}
.task-card-menu-button:active svg {
color: var(--icon-color-active);
}