Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-04-17 19:23:12 +0400
committerkondou <kondou@ts.unde.re>2013-04-18 12:03:14 +0400
commit536117da2ac198db181441944bd0e8b1d1e31055 (patch)
treeacfa0d73aac21ebeda54eb46c728b8ee83b9fc7c
parent29054c27c9a9fd355ea1467b0edf754751fa4af1 (diff)
apply navigation hover effect directly to img and span, cleaner code
-rw-r--r--core/css/styles.css26
1 files changed, 23 insertions, 3 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index 34e732ea543..ff46b694916 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -269,10 +269,30 @@ fieldset.warning a { color:#b94a48 !important; font-weight:bold; }
color:#fff; text-shadow:#000 0 -1px 0;
white-space:nowrap; overflow:hidden; text-overflow:ellipsis; /* ellipsize long app names */
}
+
/* icon opacity and hover effect */
- #navigation a { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; filter:alpha(opacity=50); opacity:.5; } /* 50% opacity when inactive */
- #navigation a:hover, #navigation a:focus { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; filter:alpha(opacity=80); opacity:.8; } /* 80% opacity when hovered or focused */
- #navigation a.active { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; } /* full opacity for the active app */
+ #navigation a img,
+ #navigation a span {
+ /* 50% opacity when inactive */
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
+ filter: alpha(opacity=50);
+ opacity: .5;
+ }
+ #navigation a:hover img, #navigation a:focus img,
+ #navigation a:hover span, #navigation a:focus span {
+ /* 80% opacity when hovered or focused */
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
+ filter: alpha(opacity=80);
+ opacity: .8;
+ }
+ #navigation a.active img,
+ #navigation a.active span {
+ /* full opacity for the active app */
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
+ filter: alpha(opacity=100);
+ opacity: 1;
+ }
+
/* positioning */
#navigation .icon {
display:block;