forummap.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. // Forum Map
  2. // -------------------------
  3. .forum-map-category {
  4. background-color: @categoryBackground;
  5. border: 1px solid @categoryBorder;
  6. border-radius: @borderRadiusSmall;
  7. .box-shadow(0px 0px 0px 3px @categoryShadow);
  8. margin-bottom: @baseLineHeight;
  9. .header {
  10. background-color: @categoryHeader;
  11. border: 1px solid @categoryBorder;
  12. border-radius: @borderRadiusSmall @borderRadiusSmall 0px 0px;
  13. margin: -1px;
  14. margin-bottom: 0px;
  15. padding: (@fontSizeSmall / 3) (@fontSizeSmall - 2px);
  16. h2 {
  17. margin: 0px;
  18. padding: 0px;
  19. color: @grayDark;
  20. font-size: @fontSizeSmall;
  21. font-weight: bold;
  22. line-height: @baseLineHeight;
  23. text-align: left;
  24. small {
  25. margin-left: @baseFontSize / 2;
  26. color: @grayLight;
  27. font-size: @fontSizeSmall;
  28. }
  29. }
  30. }
  31. .forum-map-forum, .forum-map-subforum {
  32. border-bottom: 1px solid @categoryBorder;
  33. overflow: auto;
  34. padding: (@fontSizeSmall / 2) (@fontSizeSmall - 2px);
  35. h3 {
  36. margin: 0px;
  37. padding: 0px;
  38. font-size: @baseFontSize;
  39. line-height: @baseLineHeight;
  40. a:link, a:visited {
  41. color: @gray;
  42. }
  43. a:active, a:hover {
  44. color: @textColor;
  45. }
  46. }
  47. }
  48. .forum-map-subforum {
  49. padding-left: @baseLineHeight * 0.75;
  50. span {
  51. &.tree-t, &.tree-l, &.tree-s, &.tree-i {
  52. display: inline-block;
  53. height: @baseLineHeight;
  54. width: @baseLineHeight * 0.5;
  55. }
  56. &.tree-t {
  57. border-left: 1px solid @grayLight;
  58. margin-right: 2px;
  59. span {
  60. border-top: 1px solid @grayLight;
  61. display: inline-block;
  62. height: 1px;
  63. width: 100%;
  64. margin-bottom: 3px;
  65. }
  66. }
  67. &.tree-l {
  68. margin-right: 4px;
  69. span {
  70. border-left: 1px solid @grayLight;
  71. border-bottom: 1px solid @grayLight;
  72. display: inline-block;
  73. height: @baseLineHeight * 0.5;
  74. width: 100%;
  75. margin-bottom: 3px;
  76. }
  77. }
  78. &.tree-i {
  79. border-left: 1px solid @grayLight;
  80. position: relative;
  81. top: 5px;
  82. margin-top: -5px;
  83. margin-right: 4px;
  84. }
  85. &.tree-s {
  86. height: 1px;
  87. width: (@baseLineHeight * 0.5) + 2px;
  88. margin-right: 4px;
  89. }
  90. }
  91. }
  92. &>div:last-child {
  93. border-bottom: none;
  94. }
  95. &.forum-map-category-important {
  96. .header {
  97. background-color: @red;
  98. border: 1px solid darken(@red, 10%);
  99. h2 {
  100. color: @white;
  101. text-shadow: 0px 1px 0px darken(@red, 25%);
  102. small {
  103. color: darken(@red, 40%);
  104. text-shadow: none;
  105. }
  106. }
  107. }
  108. }
  109. &.forum-map-category-inverse {
  110. .header {
  111. background-color: @grayDark;
  112. border: 1px solid darken(@grayDark, 10%);
  113. h2 {
  114. color: @grayLighter;
  115. text-shadow: 0px 1px 0px darken(@black, 25%);
  116. small {
  117. color: lighten(@grayLight, 10%);
  118. text-shadow: none;
  119. }
  120. }
  121. }
  122. }
  123. &.forum-map-category-info {
  124. .header {
  125. background-color: @bluePale;
  126. border: 1px solid darken(@bluePale, 10%);
  127. h2 {
  128. color: @white;
  129. text-shadow: 0px 1px 0px darken(@bluePale, 25%);
  130. small {
  131. color: darken(@bluePale, 25%);
  132. text-shadow: none;
  133. }
  134. }
  135. }
  136. }
  137. }