From 8008cecb8545d9c7db2114787ab441962651d1d5 Mon Sep 17 00:00:00 2001 From: Alexis Wilke Date: Sat, 15 May 2010 10:40:53 +0000 Subject: [PATCH] Created a template CSS that can be tweaked from the simplemenu administration screen. The other CSS file is still work and used as a backup in case the software cannot create a .css in the sites/name/files/css/... folder. --- simplemenu.css.tpl | 69 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 simplemenu.css.tpl diff --git a/simplemenu.css.tpl b/simplemenu.css.tpl new file mode 100644 index 00000000..4dba1257 --- /dev/null +++ b/simplemenu.css.tpl @@ -0,0 +1,69 @@ +/* $Id$ */ + +/* There is a version of this file commented in great detail for educational purposes here: + * http://users.tpg.com.au/j_birch/plugins/superfish/superfish.commented.css + */ + +/*** ESSENTIAL STYLES ***/ +#simplemenu, #simplemenu * { + margin: 0; + padding: 0; + list-style: none; +} + +#simplemenu { + line-height: 1.0; + @FIX@ + @MENUBAR_ZINDEX@ +} + +#simplemenu ul { + position: absolute; + top: -999em; + width: 14em; + font-size: 1em; + line-height: 1em; +} + +#simplemenu ul li, +#simplemenu a { + width: 100%; +} + +#simplemenu li { + float: left; + position: relative; +} + +#simplemenu a { + display: block; +} + +#simplemenu li ul { + @DROPDOWN_ZINDEX@ +} + +#simplemenu li:hover ul, +ul#simplemenu li.sfHover ul { + left: 0px; + top: 21px; +} + +#simplemenu li:hover li ul, +#simplemenu li.sfHover li ul { + top: -999em; +} + +#simplemenu li li:hover ul, +ul#simplemenu li li.sfHover ul { + left: 14em; + top: -1px; +} + +.superfish li:hover ul, +.superfish li li:hover ul { + top: -999em; +} + +/* vim: ts=2 sw=2 et syntax=css +*/