hlist.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /**
  2. * "Yet Another Multicolumn Layout" - YAML CSS Framework
  3. *
  4. * (en) Horizontal list navigation "hlist"
  5. * (de) Horizontale Navigationsliste "hlist"
  6. *
  7. * @copyright Copyright 2005-2012, Dirk Jesse
  8. * @license CC-BY 2.0 (http://creativecommons.org/licenses/by/2.0/),
  9. * YAML-CDL (http://www.yaml.de/license.html)
  10. * @link http://www.yaml.de
  11. * @package yaml
  12. * @version v4.0.1
  13. * @revision $Revision: 724 $
  14. * @lastmodified $Date: 2012-03-03 11:45:41 +0100 (Sa, 03 Mrz 2012) $
  15. */
  16. @media all {
  17. .ym-hlist {
  18. /* (en) containing floats in IE */
  19. /* (de) Einfassen der Floats im IE */
  20. width:100%;
  21. overflow:hidden;
  22. /* (en|de) Bugfix:IE - collapsing horizontal margins */
  23. position:relative;
  24. line-height:1em;
  25. background: #222;
  26. }
  27. .ym-hlist ul {
  28. margin:0;
  29. padding: 0.5em 1.5em;
  30. /* (en|de) Bugfix:IE - Doubled Float Margin Bug */
  31. display:inline;
  32. float:left; /* LTR */
  33. }
  34. .ym-hlist ul li {
  35. /* (en|de) Bugfix:IE - Doubled Float Margin Bug */
  36. display:inline;
  37. float:left; /* LTR */
  38. font-size:1.0em;
  39. line-height:1em;
  40. list-style-type:none;
  41. margin: 0 .25em 0 0;
  42. padding:0;
  43. }
  44. .ym-hlist ul li a,
  45. .ym-hlist ul li strong {
  46. background:transparent;
  47. color:#aaa;
  48. display:block;
  49. font-size:1em;
  50. line-height: 2em;
  51. padding: 0 0.5em;
  52. font-weight:normal;
  53. text-decoration:none;
  54. text-shadow: 0 1px 1px rgba(0,0,0,.5);
  55. width:auto;
  56. }
  57. .ym-hlist ul li a:focus,
  58. .ym-hlist ul li a:hover,
  59. .ym-hlist ul li a:active {
  60. color: #ccc;
  61. background:#666;
  62. background: rgba(255,255,255,.25);
  63. -webkit-border-radius: 0.2em;
  64. -moz-border-radius: 0.2em;
  65. border-radius: 0.2em;
  66. text-decoration:none;
  67. outline: 0 none;
  68. }
  69. .ym-hlist ul li.active {
  70. background:#666;
  71. background: rgba(255,255,255,.3);
  72. -webkit-border-radius: 0.2em;
  73. -moz-border-radius: 0.2em;
  74. border-radius: 0.2em;
  75. color: #fff;
  76. }
  77. .ym-hlist ul li.active strong,
  78. .ym-hlist ul li.active a:focus,
  79. .ym-hlist ul li.active a:hover,
  80. .ym-hlist ul li.active a:active {
  81. background:transparent;
  82. color:#fff;
  83. text-decoration:none;
  84. }
  85. /* search form -------------------------------------- */
  86. .ym-searchform {
  87. float:right;
  88. display: inline;
  89. line-height: 2em;
  90. padding: 0.5em 1.5em;
  91. }
  92. .ym-searchform .ym-searchfield {
  93. background: #fff;
  94. line-height: 1em;
  95. padding: 0.25em;
  96. width: 12em;
  97. border: solid 1px #888;
  98. border: solid 1px rgba(255,255,255,.1);
  99. outline: none;
  100. -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
  101. -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
  102. box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
  103. }
  104. .ym-searchform .ym-searchbutton {
  105. color: #fff;
  106. cursor: pointer;
  107. display: inline-block;
  108. font-size: 1em;
  109. line-height: 1.3571em;
  110. padding: 0.25em;
  111. border: solid 1px transparent;
  112. text-shadow: 0 1px 1px rgba(0,0,0,.5);
  113. -webkit-border-radius: .2em;
  114. -moz-border-radius: .2em;
  115. border-radius: .2em;
  116. background: #5f5f5f;
  117. background: rgba(255,255,255,.2);
  118. }
  119. }