PageRenderTime 28ms CodeModel.GetById 11ms app.highlight 11ms RepoModel.GetById 2ms app.codeStats 0ms

/pigeoncms/Modules/PigeonCms.TopMenu/views/fsmenu/listmenu_v.css

http://pigeoncms.googlecode.com/
CSS | 114 lines | 49 code | 14 blank | 51 comment | 0 complexity | 4bc3578743245411cd39db26fbdc35bb MD5 | raw file
  1/*
  2
  3Here's a demo stylesheet used to format a menu and its content.
  4Feel free to alter the menu layout however you want!
  5All you have to do is ensure the script has the correct CSS property name
  6(like 'visibility' or 'display') that changes to show/hide menus.
  7
  8If you want to extend this layout, one good resource for UL/LI formatting is:
  9    http://www.alistapart.com/articles/taminglists/
 10Alternatively, you can use any other CSS dropdown layout instead. More here:
 11    http://www.alvit.de/css-showcase/
 12Consult your favourite CSS reference for customising fonts/borders/etc.
 13
 14Otherwise, you can just change the #RGB border/background colours where
 15suitable to customise for your site -- easy :).
 16
 17*/
 18
 19
 20
 21/* VERTICAL FREESTYLE MENU LAYOUT */
 22
 23
 24/* All <ul> tags in the menu including the first level */
 25.menulist, .menulist ul {
 26 margin: 0;
 27 padding: 0;
 28 width: 150px;
 29 list-style: none;
 30}
 31
 32/*
 33 Submenus (<ul> tags) are hidden and absolutely positioned across from their parent.
 34 They don't *have* to touch their parent menus, but is' a good idea as CSS-only fallback
 35 mode requires menus to touch/overlap (when JS is disabled in the browser).
 36*/
 37.menulist ul {
 38 display: none;
 39 position: absolute;
 40 top: -1px;
 41 left: 148px;
 42}
 43
 44/*
 45 All menu items (<li> tags) are relatively positioned to correctly offset their submenus.
 46 They have borders that are slightly overlaid on one another to avoid doubling up.
 47*/
 48.menulist li {
 49 position: relative;
 50 border: 1px solid #330;
 51 background: #FED;
 52 margin-bottom: -1px;
 53}
 54.menulist ul>li:last-child {
 55 margin-bottom: 1px; /* Mozilla fix */
 56}
 57
 58/* Links inside the menu */
 59.menulist a {
 60 display: block;
 61 padding: 3px;
 62 color: #000;
 63 text-decoration: none;
 64}
 65
 66/*
 67 Lit items: 'hover' is mouseover, 'highlighted' are parent items to visible menus.
 68*/
 69.menulist a:hover, .menulist a.highlighted:hover, .menulist a:focus {
 70 color: #FFF;
 71 background-color: #A64;
 72}
 73.menulist a.highlighted {
 74 color: #FFF;
 75 background-color: #C86;
 76}
 77
 78/*
 79 If you want per-item background images in your menu items, here's how to do it.
 80 1) Assign a unique ID tag to each link in your menu, like so: <a id="xyz" href="#">
 81 2) Copy and paste these next lines for each link you want to have an image:
 82    .menulist a#xyz {
 83      background-image: url(out.gif);
 84    }
 85    .menulist a#xyz:hover, .menulist a.highlighted#xyz, .menulist a:focus {
 86     background-image: url(over.gif);
 87    }
 88*/
 89
 90
 91/* 'subind' submenu indicators, which are automatically prepended to 'A' tag contents. */
 92.menulist a .subind {
 93 float: right;
 94}
 95
 96/*
 97 HACKS: IE/Win:
 98 A small height on <li> and <a> tags and floating prevents gaps in menu.
 99 * html affects <=IE6 and *:first-child+html affects IE7.
100 You may want to move these to browser-specific style sheets.
101*/
102*:first-child+html .menulist li {
103 float: left;
104 width: 100%;
105}
106
107* html .menulist li {
108 float: left;
109 height: 1%;
110}
111* html .menulist a {
112 height: 1%;
113}
114/* End Hacks */