File tree Expand file tree Collapse file tree 7 files changed +40
-27
lines changed Expand file tree Collapse file tree 7 files changed +40
-27
lines changed Original file line number Diff line number Diff line change 15
15
@import 'icons.css' ;
16
16
@import 'layout.css' ;
17
17
@import 'sidebar.css' ;
18
+ @import 'focus.css' ;
18
19
@import 'content/general.css' ;
19
20
@import 'content/admonition.css' ;
20
21
@import 'content/summary.css' ;
Original file line number Diff line number Diff line change 19
19
border : 0 ;
20
20
cursor : pointer;
21
21
font-style : italic;
22
- outline : none;
23
22
padding : 0 4px ;
24
23
}
25
24
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pre:hover .copy-button {
22
22
color : currentColor;
23
23
}
24
24
25
- pre .copy-button : hover , .copy-button : focus-visible {
25
+ pre .copy-button : hover , pre .copy-button : focus-visible {
26
26
opacity : 1 ;
27
27
}
28
28
Original file line number Diff line number Diff line change
1
+ /* extra button selectors necessary to overwrite normalize.css */
2
+ * : focus ,
3
+ button : focus ,
4
+ [type = "button" ]: focus ,
5
+ [type = "reset" ]: focus ,
6
+ [type = "submit" ]: focus {
7
+ outline : 2px solid var (--main );
8
+ /* negative offset to make outline visible when overflow hidden */
9
+ outline-offset : -2px ;
10
+ }
11
+
12
+ * : focus : not (: focus-visible ),
13
+ button : focus : not (: focus-visible ),
14
+ [type = "button" ]: focus : not (: focus-visible ),
15
+ [type = "reset" ]: focus : not (: focus-visible ),
16
+ [type = "submit" ]: focus : not (: focus-visible ) {
17
+ outline : 0 ;
18
+ }
19
+
20
+ /* inputs you can type into don't need an extra focus style
21
+ because they have a visible cursor */
22
+ input [type = "text" ],
23
+ input [type = "number" ],
24
+ input [type = "date" ],
25
+ input [type = "datetime" ],
26
+ input [type = "datetime-local" ],
27
+ input [type = "email" ],
28
+ input [type = "month" ],
29
+ input [type = "number" ],
30
+ input [type = "password" ],
31
+ input [type = "search" ],
32
+ input [type = "tel" ],
33
+ input [type = "time" ],
34
+ input [type = "url" ],
35
+ input [type = "week" ],
36
+ textarea {
37
+ outline : 0 ;
38
+ }
Original file line number Diff line number Diff line change 23
23
transition : all .12s ease-out;
24
24
}
25
25
26
- # quick-switch-modal-body # quick-switch-input : focus {
27
- outline : none;
28
- }
29
-
30
26
# quick-switch-modal-body # quick-switch-results {
31
27
margin : 0 ;
32
28
}
Original file line number Diff line number Diff line change 18
18
transition : border-color 150ms ;
19
19
}
20
20
# settings-modal-content .input : focus {
21
- outline : none;
22
21
border-color : var (--main );
23
22
}
24
23
# settings-modal-content .input ::placeholder {
104
103
# settings-modal-content .settings-select option {
105
104
color : initial;
106
105
}
107
-
108
- # settings-modal-content .settings-select : focus {
109
- outline : none;
110
- }
Original file line number Diff line number Diff line change 92
92
color : initial;
93
93
}
94
94
95
- .sidebar .sidebar-projectVersionsDropdown : focus {
96
- outline : none;
97
- }
98
-
99
95
.sidebar .sidebar-projectVersion form ::after {
100
96
position : absolute;
101
97
left : 0 ;
193
189
opacity : .7 ;
194
190
}
195
191
196
- .sidebar .sidebar-search .search-close-button : is (: focus , : hover ) {
197
- outline : none;
198
- }
199
-
200
192
.sidebar .sidebar-search .search-input {
201
193
background-color : var (--sidebarSearch );
202
194
border : none;
212
204
opacity : 0.3 ;
213
205
}
214
206
215
- .sidebar .sidebar-search .search-input : is (: focus , : hover ) {
216
- outline : none;
217
- }
218
-
219
207
.sidebar .sidebar-search .ri-search-2-line {
220
208
font-weight : bold;
221
209
}
444
432
color : var (--sidebarHover );
445
433
}
446
434
447
- .sidebar-button : is (: active , : hover , : focus ) {
448
- outline : none;
449
- }
450
-
451
435
.sidebar-button {
452
436
color : var (--sidebarAccentMain );
453
437
}
You can’t perform that action at this time.
0 commit comments