summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-11-06 16:22:57 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-11-06 16:22:57 +0100
commita41005529155ac34e0382f5d32ed948ce71f76d1 (patch)
treea980ea76ea23e19e760f0fbb8c3c0133f36dd1c2 /core
parentaf743efff0411f96d1f719ccdf1553c4eb881cf5 (diff)
downloadnextcloud-server-a41005529155ac34e0382f5d32ed948ce71f76d1.tar.gz
nextcloud-server-a41005529155ac34e0382f5d32ed948ce71f76d1.zip
add relevant focus styles to the existing hover styles
Diffstat (limited to 'core')
-rw-r--r--core/css/apps.css13
-rw-r--r--core/css/styles.css44
2 files changed, 47 insertions, 10 deletions
diff --git a/core/css/apps.css b/core/css/apps.css
index ce2e15595af..e5cf6201688 100644
--- a/core/css/apps.css
+++ b/core/css/apps.css
@@ -55,6 +55,7 @@
}
#app-navigation li:hover > a,
+#app-navigation li:focus > a,
#app-navigation .selected,
#app-navigation .selected a {
background-color: #ddd;
@@ -96,10 +97,12 @@
outline: none !important;
box-shadow: none;
}
-#app-navigation .collapsible:hover > a {
+#app-navigation .collapsible:hover > a,
+#app-navigation .collapsible:focus > a {
background-image: none;
}
-#app-navigation .collapsible:hover > .collapse {
+#app-navigation .collapsible:hover > .collapse,
+#app-navigation .collapsible:focus > .collapse {
display: block;
}
@@ -139,7 +142,8 @@
background-image: -ms-linear-gradient(top, rgb(238,238,238) 0%, rgb(245,245,245) 100%);
}
-#app-navigation > ul .collapsible.open:hover {
+#app-navigation > ul .collapsible.open:hover,
+#app-navigation > ul .collapsible.open:focus {
box-shadow: inset 0 0 3px #ddd;
}
@@ -179,7 +183,8 @@
opacity: .5;
}
- #app-navigation .app-navigation-entry-deleted-button:hover {
+ #app-navigation .app-navigation-entry-deleted-button:hover,
+ #app-navigation .app-navigation-entry-deleted-button:focus {
opacity: 1;
}
diff --git a/core/css/styles.css b/core/css/styles.css
index 9604cb0fa4a..c45588cece6 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -731,12 +731,44 @@ label.infield {
margin-left: 1em;
}
-tr .action:not(.permanent), .selectedActions a { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter:alpha(opacity=0); opacity:0; }
-tr:hover .action, tr .action.permanent, .selectedActions a { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; filter:alpha(opacity=50); opacity:.5; }
-tr .action { width:16px; height:16px; }
-.header-action { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; filter:alpha(opacity=80); opacity:.8; }
-tr:hover .action:hover, .selectedActions a:hover, .header-action:hover { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; }
-tbody tr:hover, tr:active { background-color:#f8f8f8; }
+tr .action:not(.permanent),
+.selectedActions a {
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
+ filter: alpha(opacity=0);
+ opacity: 0;
+}
+tr:hover .action,
+tr:focus .action,
+tr .action.permanent,
+.selectedActions a {
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
+ filter: alpha(opacity=50);
+ opacity: .5;
+}
+tr .action {
+ width: 16px;
+ height: 16px;
+}
+.header-action {
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
+ filter: alpha(opacity=80);
+ opacity: .8;
+}
+tr:hover .action:hover,
+tr:focus .action:focus,
+.selectedActions a:hover,
+.selectedActions a:focus,
+.header-action:hover,
+.header-action:focus {
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
+ filter: alpha(opacity=100);
+ opacity: 1;
+}
+tbody tr:hover,
+tbody tr:focus,
+tbody tr:active {
+ background-color: #f8f8f8;
+}
code { font-family:"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", monospace; }