Permalink
Browse files

Merge pull request #103 from poole/focus

Keyboard focus styles
  • Loading branch information...
mdo committed Apr 19, 2015
2 parents f3fca33 + f039ccb commit bec9ea9651116ab6b9801b5232b9fb4af47011d5
Showing with 6 additions and 1 deletion.
  1. +6 −1 public/css/lanyon.css
View
@@ -202,7 +202,11 @@ a.sidebar-nav-item:focus {
/* Hide the sidebar checkbox that we toggle with `.sidebar-toggle` */
.sidebar-checkbox {
- display: none;
+ position: absolute;
+ opacity: 0;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
}
/* Style the `label` that we use to target the `.sidebar-checkbox` */
@@ -230,6 +234,7 @@ a.sidebar-nav-item:focus {
}
.sidebar-toggle:active,
+#sidebar-checkbox:focus ~ .sidebar-toggle,
#sidebar-checkbox:checked ~ .sidebar-toggle {
color: #fff;
background-color: #555;

0 comments on commit bec9ea9

Please sign in to comment.