Team:Edinburgh/defaultadvancedcss
From 2009.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<style type="text/css"> | <style type="text/css"> | ||
- | @charset "UTF-8" | + | @charset "UTF-8" |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
@import "https://2009.igem.org/Team:Edinburgh/defaultcss?action=raw"; | @import "https://2009.igem.org/Team:Edinburgh/defaultcss?action=raw"; | ||
- | /*-------------------------------------------------/ | + | |
+ | /*------------------------------------------------------------------------------------------------------/ | ||
* @section Base Style Extension | * @section Base Style Extension | ||
*/ | */ | ||
- | ul.dropdown | + | ul.dropdown a, |
+ | ul.dropdown span { | ||
display: block; | display: block; | ||
- | padding: | + | padding: 5px 30px; |
} | } | ||
- | /*-------------------------------------------------/ | + | |
- | * @section | + | /*------------------------------------------------------------------------------------------------------/ |
+ | * @section Base Style Override | ||
*/ | */ | ||
+ | |||
ul.dropdown li { | ul.dropdown li { | ||
padding: 0; | padding: 0; | ||
} | } | ||
+ | |||
+ | ul.dropdown ul a, | ||
+ | ul.dropdown ul span { /* POI, proposal: override abstract a, span */ | ||
+ | padding: 8px; | ||
+ | } | ||
+ | |||
- | /*-------------------------------------------------/ | + | /*------------------------------------------------------------------------------------------------------/ |
* @section Base Style Reinitiate: post-override activities | * @section Base Style Reinitiate: post-override activities | ||
*/ | */ | ||
- | ul.dropdown | + | |
- | padding: | + | ul.dropdown *.dir { /* POI */ |
+ | padding: 5px 30px; | ||
} | } | ||
- | ul.dropdown ul | + | ul.dropdown ul *.dir { |
- | padding | + | padding: 8px 30px 8px 8px; |
} | } | ||
- | /*-------------------------------------------------/ | + | |
- | * @section | + | /*------------------------------------------------------------------------------------------------------/ |
+ | * @section Custom Styles | ||
*/ | */ | ||
+ | |||
ul.dropdown ul a { | ul.dropdown ul a { | ||
- | width: | + | width: 133px; |
} | } | ||
- | |||
- | |||
ul.dropdown ul a.dir { | ul.dropdown ul a.dir { | ||
- | width: | + | width: 111px; |
} | } | ||
+ | |||
+ | |||
+ | |||
+ | /*------------------------------------------------------------------------------------------------------/ | ||
+ | * @section Support Class `open` Usage | ||
+ | * @source js, artificial | ||
+ | * | ||
+ | */ | ||
+ | |||
+ | |||
+ | ul.dropdown *.open { | ||
+ | background-color: #3d3d3d; | ||
+ | } | ||
+ | ul.dropdown ul *.open { | ||
+ | background-color: #4c4c4c; | ||
+ | background-image: url(images/comnav-arrowover.png); | ||
+ | color: #fff; | ||
+ | } | ||
+ | ul.dropdown ul ul *.open { | ||
+ | background-color: #595959; | ||
+ | background-image: url(images/comnav-arrowover2.png); | ||
+ | color: #fff; | ||
+ | } | ||
+ | /* Override UPPER TWO definitions */ | ||
+ | ul.dropdown a.open:hover { | ||
+ | background-color: #4698ca; | ||
+ | color: #fff; | ||
+ | } | ||
+ | ul.dropdown ul a.open:hover { | ||
+ | background-image: url(images/comnav-arrowon.png); | ||
+ | color: #fff; | ||
+ | } | ||
+ | |||
+ | |||
+ | /* Clone in CSS 2 */ | ||
+ | |||
+ | ul.dropdown li:hover > *.dir { | ||
+ | background-color: #3d3d3d; | ||
+ | } | ||
+ | ul.dropdown ul li:hover > *.dir { | ||
+ | background-color: #4c4c4c; | ||
+ | background-image: url(images/comnav-arrowover.png); | ||
+ | } | ||
+ | ul.dropdown ul ul li:hover > *.dir { | ||
+ | background-color: #595959; | ||
+ | background-image: url(images/comnav-arrowover2.png); | ||
+ | color: #fff; | ||
+ | } | ||
+ | |||
+ | /* Override UPPER TWO definitions */ | ||
+ | ul.dropdown li:hover > a.dir:hover { | ||
+ | background-color: #4698ca; | ||
+ | color: #fff; | ||
+ | } | ||
+ | ul.dropdown ul li:hover > a.dir:hover { | ||
+ | background-image: url(images/comnav-arrowon.png); | ||
+ | color: #fff; | ||
+ | } | ||
+ | |||
</style> | </style> | ||
</html> | </html> |
Revision as of 13:52, 17 August 2009