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