From d76ea2761d6e30aa669641bec4f4a53cce2864b9 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 25 Aug 2014 11:21:09 +0000 Subject: [PATCH] Committing some work on the Superfish menu styling --- Site5/Master-v5.master | 6 +++++- Site5/Style/style-v5.css | 7 ------- Site5/Style/superfish.css | 41 ++++++++++++++++++++++++++++----------- 3 files changed, 35 insertions(+), 19 deletions(-) diff --git a/Site5/Master-v5.master b/Site5/Master-v5.master index ef7664cb..81fad962 100644 --- a/Site5/Master-v5.master +++ b/Site5/Master-v5.master @@ -71,7 +71,11 @@ $("a[rel*=leanModal]").leanModal(); - $("#MainMenuContainer").superfish(); + $("#MainMenuContainer").superfish({ + delay: 1000, // one second delay on mouseout + animation: {opacity:'show',height:'show'}, // fade-in and slide-down animation + speed: 'fast', // faster animation speed + }); diff --git a/Site5/Style/style-v5.css b/Site5/Style/style-v5.css index 4937e7b5..abcd37b3 100644 --- a/Site5/Style/style-v5.css +++ b/Site5/Style/style-v5.css @@ -966,13 +966,6 @@ input.ButtonSwarmopsUpload:active { background-position: 2px 2px; } -/* TELERIK STYLE OVERRIDES */ - -div.RadToolTip table.rtWrapper td.rtWrapperContent -{ - font-family: Ubuntu !important; -} - diff --git a/Site5/Style/superfish.css b/Site5/Style/superfish.css index 77302518..582a63fc 100644 --- a/Site5/Style/superfish.css +++ b/Site5/Style/superfish.css @@ -32,29 +32,35 @@ } -/*** DEMO SKIN ***/ +/*** SWARMOPS SKIN - HEAVILY MODIFIED FROM SUPERFISH DISTRO ***/ + .sf-menu { float: left; - margin-bottom: 1em; + margin-left: 14px; } .sf-menu ul { box-shadow: 2px 2px 6px rgba(0,0,0,.2); min-width: 12em; /* allow long menu items to determine submenu width */ *width: 12em; /* no auto sub width for IE7, see white-space comment below */ } + .sf-menu a { - border-left: 1px solid #fff; - border-top: 1px solid #dFeEFF; /* fallback colour must use full shorthand */ - border-top: 1px solid rgba(255,255,255,.5); padding: .75em 1em; text-decoration: none; zoom: 1; /* IE7 */ } .sf-menu a { - color: #13a; + color: white; + font-size: 120%; } + +.sf-menu a:hover, .sf-menu li.sfHover > a +{ + color: #7F5500; +} + .sf-menu li { - background: #BDD2FF; + background: transparent; white-space: nowrap; /* no need for Supersubs plugin */ *white-space: normal; /* ...unless you support IE7 (let it wrap) */ -webkit-transition: background .2s; @@ -66,8 +72,21 @@ .sf-menu ul ul li { background: #9AAEDB; } -.sf-menu li:hover, -.sf-menu li.sfHover { + +.sf-menu li:hover, .sf-menu li.sfHover + { + /* Same as Sidebar.Orange */ + background-color: #FFBC37; + background: -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFC145', endColorstr='#F0AB22'); /* MSIE */ + background: -moz-linear-gradient(top, #FFC145, #F0AB22); /* Mozilla */ + background: -webkit-gradient(linear, left top, left bottom, from(#FFC145), to(#F0AB22)); /* Chrome, Safari */ + -webkit-transition: none; + transition: none; + /* text-shadow: #C78B15 0px 0px 3px, #C78B15 0px 0px 3px; */ + } + +.sf-menu ul li:hover, +.sf-menu ul li.sfHover { background: #CFDEFF; /* only transition out, not in */ -webkit-transition: none; @@ -75,12 +94,12 @@ } /*** arrows (for all except IE7) **/ -.sf-arrows .sf-with-ul { +.sf-menu ul ul.sf-arrows .sf-with-ul { padding-right: 2.5em; *padding-right: 1em; /* no CSS arrows for IE7 (lack pseudo-elements) */ } /* styling for both css and generated arrows */ -.sf-arrows .sf-with-ul:after { +ul.sf-menu ul .sf-arrows .sf-with-ul:after { content: ''; position: absolute; top: 50%;