File tree Expand file tree Collapse file tree 2 files changed +35
-26
lines changed Expand file tree Collapse file tree 2 files changed +35
-26
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,6 @@ html {
11
11
}
12
12
}
13
13
14
- [data-seo-container ] {
15
- & :focus-within {
16
- outline : 1px solid currentColor ;
17
- outline-offset : .5rem ;
18
- }
19
-
20
- * :focus {
21
- outline : none ;
22
- }
23
- }
24
-
25
14
& :not ([data-whatintent = " keyboard" ]) {
26
15
a ,
27
16
button ,
@@ -33,12 +22,23 @@ html {
33
22
outline : none ;
34
23
}
35
24
}
25
+ }
26
+ }
36
27
37
- [data-seo-container ] {
38
- & :focus-within ,
39
- * :focus {
40
- outline : none ;
41
- }
28
+ %focus-seo-container {
29
+ & :focus-within {
30
+ outline : 2px solid currentColor ;
31
+ outline-offset : .5rem ;
32
+ }
33
+
34
+ * :focus {
35
+ outline : none ;
36
+ }
37
+
38
+ html :not ([data-whatintent = " keyboard" ]) & {
39
+ & :focus-within ,
40
+ * :focus {
41
+ outline : none ;
42
42
}
43
43
}
44
44
}
Original file line number Diff line number Diff line change 1
- [data-seo-container ] {
1
+ %seo-container {
2
+ @extend %focus-seo-container ;
2
3
position : relative ;
3
4
z-index : 1 ;
4
5
cursor : pointer ;
6
+ }
7
+
8
+ %seo-target {
9
+ & ::before {
10
+ position : absolute ;
11
+ top : 0 ;
12
+ right : 0 ;
13
+ bottom : 0 ;
14
+ left : 0 ;
15
+ z-index : 100 ;
16
+ content : " " ;
17
+ }
18
+ }
19
+
20
+ [data-seo-container ] {
21
+ @extend %seo-container ;
5
22
6
23
[data-seo-target ] {
7
- & ::before {
8
- position : absolute ;
9
- top : 0 ;
10
- right : 0 ;
11
- bottom : 0 ;
12
- left : 0 ;
13
- z-index : 100 ;
14
- content : " " ;
15
- }
24
+ @extend %seo-target ;
16
25
}
17
26
}
You can’t perform that action at this time.
0 commit comments