forked from primary-theme/obsidian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.scss
142 lines (125 loc) · 4.16 KB
/
input.scss
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
/*────────────────────────────────────
Search Input Component
────────────────────────────────────*/
/*~ Global Search Input */
textarea,
input[type=text],
input[type=search],
input[type=email],
input[type=password],
input[type=number] {
font-family: var(--font-interface-theme);
font-size: var(--font-scale-1);
}
.theme-light textarea,
.theme-light input[type=text],
.theme-light input[type=search],
.theme-light input[type=email],
.theme-light input[type=password],
.theme-light input[type=number] {
background: var(--color-l-gray-10);
border: 1px solid var(--background-modifier-border);
}
.theme-light textarea:focus,
.theme-light input[type=text]:focus,
.theme-light input[type=search]:focus,
.theme-light input[type=email]:focus,
.theme-light input[type=password]:focus,
.theme-light input[type=number]:focus {
background: var(--color-l-white);
border: 1px solid var(--color-l-gray-60);
box-shadow: 0px 0px 0px 3px var(--color-l-gray-40);
}
.theme-dark textarea,
.theme-dark input[type=text],
.theme-dark input[type=search],
.theme-dark input[type=email],
.theme-dark input[type=password],
.theme-dark input[type=number] {
background: var(--color-d-gray-90);
border: 1px solid var(--background-modifier-border);
}
.theme-dark textarea:focus,
.theme-dark input[type=text]:focus,
.theme-dark input[type=search]:focus,
.theme-dark input[type=email]:focus,
.theme-dark input[type=password]:focus,
.theme-dark input[type=number]:focus {
background: var(--color-d-blacker);
border: 1px solid var(--color-d-gray-50);
box-shadow: 0px 0px 0px 3px var(--color-d-gray-60);
}
/*~ Command Palette & Quick Switcher Search Input ~*/
.prompt {
padding: 0;
border: 1px solid var(--background-modifier-border);
}
.prompt-results {
padding: var(--scale-2-6);
border-top: 1px solid var(--background-modifier-border);
}
.prompt input.prompt-input {
font-size: var(--font-scale-2);
background: var(--background-primary);
padding: var(--scale-8-3);
border: none;
}
.prompt input.prompt-input:focus {
background: var(--background-primary);
border: none;
box-shadow: none;
}
/*────────KBD──────────*/
kbd,
.setting-hotkey {
font-family: var(--font-monospace-theme);
}
.markdown-soure-view kbd,
.cm-s-obsidian kbd,
.markdown-preview-view kbd,
.markdown-soure-view .setting-hotkey,
.cm-s-obsidian .setting-hotkey,
.markdown-preview-view .setting-hotkey {
padding: 3px 8px;
}
.theme-light kbd,
.theme-light .setting-hotkey {
font-size: var(--font-scale-0);
color: var(--color-l-red-300);
background: var(--color-l-gray-20);
border: 1px solid rgba(100, 100, 100, 0.1);
box-shadow: 0px -2px 0px 0px rgba(100, 100, 100, 0.1) inset, 0px 2px 4px 0px rgba(100, 100, 100, 0.1);
}
.theme-dark kbd,
.theme-dark .setting-hotkey {
font-size: var(--font-scale-0);
color: var(--color-d-red-500);
background: var(--color-d-gray-90);
border: 1px solid rgba(0, 0, 0, 0.3);
box-shadow: 0px -2px 0px 0px rgba(0, 0, 0, 0.15) inset, 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}
.suggestion-hotkey {
padding: 1px 8px 3px 8px;
margin-top: -3px;
}
.prompt-instruction-command {
font-family: var(--font-monospace);
font-size: var(--font-scale-0);
background: var(--background-secondary);
padding: var(--scale-2-1) var(--scale-2-2) calc(1px + var(--scale-2-1)) var(--scale-2-2);
border: 1px solid var(--background-modifier-border);
border-radius: var(--scale-2-2);
}
.theme-light .prompt-instruction-command {
font-size: var(--font-scale-0);
color: var(--color-l-red-300);
background: var(--color-l-gray-20);
border: 1px solid rgba(100, 100, 100, 0.1);
box-shadow: 0px -2px 0px 0px rgba(100, 100, 100, 0.1) inset, 0px 2px 4px 0px rgba(100, 100, 100, 0.1);
}
.theme-dark .prompt-instruction-command {
color: var(--color-d-red-500);
background: var(--color-d-gray-90);
border: 1px solid rgba(0, 0, 0, 0.3);
box-shadow: 0px -2px 0px 0px rgba(0, 0, 0, 0.15) inset, 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}