navigation.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. @import "mediawiki.mixins";
  2. @import "personalMenu";
  3. @import "collapsibleNav";
  4. @import "search";
  5. @import "tabs";
  6. /* Hide, but keep accessible for screen-readers */
  7. #mw-navigation h2 {
  8. position: absolute;
  9. top: -9999px;
  10. }
  11. /* Head */
  12. #mw-page-base {
  13. height: 5em;
  14. background-position: bottom left;
  15. background-repeat: repeat-x;
  16. /* This image is only a fallback (for IE 6-9), so we do not @embed it. */
  17. background-image: url('images/page-fade.png');
  18. .vertical-gradient(@body-background-color, @menu-background-color, 50%, 100%);
  19. background-color: @body-background-color;
  20. }
  21. #mw-head-base {
  22. margin-top: -5em;
  23. margin-left: 10em;
  24. height: 5em;
  25. }
  26. div#mw-head {
  27. position: absolute;
  28. top: 0;
  29. right: 0;
  30. width: 100%;
  31. h3 {
  32. margin: 0;
  33. padding: 0;
  34. }
  35. }
  36. /* Navigation Containers */
  37. #left-navigation {
  38. float: left;
  39. margin-left: 10em;
  40. margin-top: 2.5em;
  41. /* When right nav would overlap left nav, it's placed below it
  42. (normal CSS floats behavior). This rule ensures that no empty space
  43. is shown between them due to right nav's margin-top. Page layout
  44. is still broken, but at least the nav overlaps only the page title
  45. instead of half the content. */
  46. margin-bottom: -2.5em;
  47. /* IE 6 double-margin bug fix */
  48. display: inline;
  49. }
  50. #right-navigation {
  51. float: right;
  52. margin-top: 2.5em;
  53. }
  54. /* Logo */
  55. #p-logo {
  56. position: absolute;
  57. top: -160px;
  58. left: 0;
  59. width: 10em;
  60. height: 160px;
  61. a {
  62. display: block;
  63. width: 10em;
  64. height: 160px;
  65. background-repeat: no-repeat;
  66. background-position: center center;
  67. text-decoration: none;
  68. }
  69. }
  70. /* Panel */
  71. div#mw-panel {
  72. font-size: @menu-main-font-size;
  73. position: absolute;
  74. top: 160px;
  75. padding-top: 1em;
  76. width: 10em;
  77. left: 0;
  78. div.portal {
  79. padding-bottom: 1.5em;
  80. direction: ltr;
  81. h3 {
  82. font-weight: normal;
  83. color: #444;
  84. padding: @menu-main-heading-padding;
  85. cursor: default;
  86. border: none;
  87. font-size: @menu-main-heading-font-size;
  88. }
  89. div.body {
  90. padding-top: 0.5em;
  91. margin: @menu-main-body-margin;
  92. .background-image('images/portal-break.png');
  93. background-repeat: no-repeat;
  94. background-position: top left;
  95. ul {
  96. list-style-type: none;
  97. list-style-image: none;
  98. padding: @menu-main-body-padding;
  99. margin: 0;
  100. li {
  101. line-height: 1.125em;
  102. padding: 0;
  103. padding-bottom: 0.5em;
  104. margin: 0;
  105. font-size: @menu-main-body-font-size;
  106. word-wrap: break-word;
  107. a {
  108. color: @menu-main-body-link-color;
  109. &:visited {
  110. color: @menu-main-body-link-visited-color;
  111. }
  112. }
  113. }
  114. }
  115. }
  116. }
  117. }