Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
123 lines (108 loc) · 2.42 KB
/
Copy pathstyles.css
File metadata and controls
123 lines (108 loc) · 2.42 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
.todo-sweep-info {
margin-top: 1.2em;
line-height: 1.6;
}
.todo-sweep-code {
display: block;
margin-top: 0.6em;
}
/* --- Input bar container --- */
.todo-input-bar {
margin: 1em 0;
padding: 1em;
border: 1px solid var(--text-faint);
border-radius: 8px;
max-width: 100%;
box-sizing: border-box;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
background: var(--background-primary);
}
/* Adjust for dark mode */
.theme-dark .todo-input-bar {
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
/* --- Flex layout --- */
.todo-input-group {
display: flex;
gap: 0.75em;
align-items: stretch;
}
.todo-input-section {
flex: 2;
display: flex;
gap: 0.5em;
align-items: center;
}
.todo-clean-section {
flex: 1;
display: flex;
align-items: center;
}
/* --- Input field --- */
.todo-input {
flex: 1;
padding: 0.5em 0.6em;
border: 1px solid var(--text-faint);
border-radius: 6px;
color: var(--text-normal);
font-size: 0.9em;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease;
}
.todo-input:focus {
outline: none;
border-color: var(--interactive-accent);
box-shadow: 0 0 0 2px var(--interactive-accent-hover);
}
/* --- Add button (primary) --- */
.todo-add-btn {
padding: 0.5em 1em;
border: none;
border-radius: 6px;
background: var(--interactive-accent);
color: white;
cursor: pointer;
font-size: 0.9em;
white-space: nowrap;
transition:
background 0.2s ease,
transform 0.1s ease;
}
.todo-add-btn:hover {
background: var(--interactive-accent-hover);
}
.todo-add-btn:active {
transform: scale(0.97);
}
/* --- Clean button (secondary) --- */
.todo-clean-btn {
width: 100%;
padding: 0.5em 1em;
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
background: var(--background-secondary);
color: var(--text-normal);
cursor: pointer;
font-size: 0.9em;
white-space: nowrap;
transition:
background 0.2s ease,
transform 0.1s ease;
}
.todo-clean-btn:hover {
background: var(--background-modifier-hover);
border-color: var(--background-modifier-border-focus);
}
.todo-clean-btn:active {
transform: scale(0.97);
}
/* --- Mobile responsive layout --- */
@media (max-width: 500px) {
.todo-input-group {
flex-direction: column;
}
.todo-clean-section {
width: 100%;
}
}