@@ -122,7 +122,7 @@ nav {
122
122
padding : 0 1em ;
123
123
transition : color 0.1s ease-out ;
124
124
125
- & :hover , & .active {
125
+ & :hover , & :focus , & .active {
126
126
color : @text-color ;
127
127
text-decoration : none ;
128
128
}
@@ -164,7 +164,7 @@ body.index {
164
164
background : none ;
165
165
box-shadow : none ;
166
166
167
- nav a :hover {
167
+ nav a :hover , nav a :focus {
168
168
color : white ;
169
169
}
170
170
}
@@ -233,20 +233,16 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
233
233
.buttons-unit {
234
234
margin-top : 60px ;
235
235
text-align : center ;
236
- }
237
-
238
- .buttons-unit a {
239
- color : #FA6900 ;
240
- }
241
236
242
- .buttons-unit .button {
243
- font-size : 24px ;
244
- background : @rhodamine-color ;
245
- color : #fafafa ;
246
- }
237
+ .button {
238
+ .body-font (@color : white );
239
+ background : @rhodamine-color ;
240
+ transition : background 0.1s ease-out ;
247
241
248
- .buttons-unit .button :active {
249
- background : #E97CC5 ;
242
+ & :hover , & :focus , & .active {
243
+ background : lighten (@rhodamine-color , 10% );
244
+ }
245
+ }
250
246
}
251
247
252
248
.nav-docs {
@@ -279,15 +275,11 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
279
275
display : block ;
280
276
}
281
277
282
- .nav-docs a :hover {
278
+ .nav-docs a :hover , .nav-docs a :focus , .nav-docs a .active {
283
279
text-decoration : none ;
284
280
color : @rhodamine-color ;
285
281
}
286
282
287
- .nav-docs a .active {
288
- color : @rhodamine-color ;
289
- }
290
-
291
283
.nav-docs .nav-docs-section {
292
284
border-bottom : 1px solid #ccc ;
293
285
border-top : 1px solid #eee ;
@@ -476,7 +468,7 @@ section.black content {
476
468
text-decoration : none ;
477
469
}
478
470
479
- .button :hover {
471
+ .button :hover , .button :focus {
480
472
text-decoration : none ;
481
473
}
482
474
0 commit comments