@@ -86,7 +86,6 @@ $link-hover-decoration-thickness: unquote("max(3px, .1875rem, .12em)") !default;
86
86
color : var (--pst-color-link-hover );
87
87
}
88
88
}
89
- @include focus-indicator ;
90
89
}
91
90
92
91
// Text link styles
@@ -102,7 +101,6 @@ $link-hover-decoration-thickness: unquote("max(3px, .1875rem, .12em)") !default;
102
101
@include link-decoration ;
103
102
@include link-decoration-hover ;
104
103
}
105
- @include focus-indicator ;
106
104
}
107
105
108
106
// Sidebar and TOC links
@@ -137,10 +135,8 @@ $link-hover-decoration-thickness: unquote("max(3px, .1875rem, .12em)") !default;
137
135
font-weight : 600 ;
138
136
color : var (--pst-color-primary );
139
137
@if $link-hover-decoration-thickness {
140
- box-shadow : inset
141
- $link-hover-decoration-thickness
142
- 0px
143
- 0px
138
+ border-left : $link-hover-decoration-thickness
139
+ solid
144
140
var (--pst-color-primary );
145
141
}
146
142
}
@@ -175,70 +171,3 @@ $link-hover-decoration-thickness: unquote("max(3px, .1875rem, .12em)") !default;
175
171
}
176
172
}
177
173
}
178
-
179
- // Focus indicator
180
- @mixin focus-indicator {
181
- & :focus-visible {
182
- outline : 2px solid var (--pst-color-accent );
183
- }
184
- }
185
-
186
- /*
187
- Mixin for links in the header (and the More dropdown toggle).
188
-
189
- The mixin assumes it will be applied to some element X with a markup structure
190
- like: X > .nav-link, or X > .dropdown-toggle.
191
-
192
- It also assumes X.current is how the app annotates which item in the header nav
193
- corresponds to the section in the docs that the user is currently reading.
194
- */
195
- @mixin header-link {
196
- > .nav-link ,
197
- > .dropdown-toggle {
198
- border-radius : 2px ;
199
- color : var (--pst-color-text-muted );
200
- font-weight : 700 ;
201
-
202
- & :hover {
203
- background-color : var (--pst-color-header-link-hover-bg );
204
- color : var (--pst-color-header-link-hover );
205
- text-decoration : none ; // override the link-style-hover mixin
206
- }
207
-
208
- & :focus {
209
- box-shadow : none ; // override Bootstrap
210
- outline : 3px solid var (--pst-color-accent );
211
- outline-offset : 3px ;
212
-
213
- & :not (:hover ) {
214
- background-color : var (--pst-color-accent-bg );
215
- }
216
- }
217
- }
218
-
219
- & .current {
220
- > .nav-link ,
221
- > .dropdown-toggle {
222
- color : var (--pst-color-primary );
223
- & :hover {
224
- color : var (--pst-color-header-link-hover );
225
- }
226
-
227
- // These styles underline the current navbar item
228
- position : relative ;
229
- & ::after {
230
- content : " " ;
231
- display : block ;
232
- position : absolute ;
233
- top : 0 ;
234
- right : 0 ;
235
- bottom : 0 ;
236
- left : 0 ;
237
- border-bottom : 3px solid var (--pst-color-primary );
238
- }
239
- & :hover ::after {
240
- display : none ;
241
- }
242
- }
243
- }
244
- }
0 commit comments