navs.less 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. // Misago Navigations
  2. // -------------------------
  3. .header-tabbed {
  4. border-bottom: none;
  5. padding-bottom: 0px;
  6. margin-bottom: 0px;
  7. .nav-tabs li {
  8. a:link, a:active, a:visited {
  9. font-weight: bold;
  10. }
  11. &.active a:link, &.active a:active,
  12. &.active a:visited, &.active a:hover {
  13. background-color: @bodyBackground;
  14. border-bottom: 4px solid @linkColor;
  15. border-width: 0px 0px 4px 0px;
  16. padding-top: (@baseLineHeight / 2) - 1px;
  17. padding-bottom: (@baseLineHeight / 2) - 5px;
  18. }
  19. &.fallback {
  20. float:right;
  21. a:link, a:active,
  22. a:visited, a:hover {
  23. border-bottom: none;
  24. .border-radius(3px);
  25. margin-top: 4px;
  26. padding: 4px 12px;
  27. }
  28. }
  29. }
  30. }
  31. // Tabs on left
  32. .tabs-left {
  33. background-color: darken(@bodyBackground, 2%);
  34. .border-radius(3px 0px 0px 3px);
  35. padding-left: 8px;
  36. ul {
  37. margin-bottom: 0px;
  38. width: 100%;
  39. li {
  40. &.nav-header {
  41. font-size: 100%;
  42. }
  43. a, a:link, a:active, a:visited {
  44. .opacity(80);
  45. font-weight: bold;
  46. }
  47. a:hover {
  48. .opacity(90);
  49. }
  50. &.active {
  51. a, a:link, a:active,
  52. a:visited, a:hover {
  53. background-color: @bodyBackground;
  54. .opacity(100);
  55. color: @black;
  56. i {
  57. background-image: url("@{iconSpritePath}");
  58. }
  59. }
  60. }
  61. }
  62. li:first-child {
  63. padding-top: 12px;
  64. }
  65. }
  66. }
  67. // Tabs content
  68. .sidetabs-content {
  69. padding-top: 0px;
  70. margin-top: -12px;
  71. }
  72. // List nav
  73. .list-nav {
  74. overflow: auto;
  75. margin-bottom: 4px;
  76. .nav-pills {
  77. margin: 0px;
  78. }
  79. &.last {
  80. margin-top: -8px;
  81. }
  82. }
  83. // Pills
  84. .nav-pills {
  85. li {
  86. margin-left: 8px;
  87. &.info, &.danger, &.primary {
  88. a:link, a:visited {
  89. font-weight: bold;
  90. }
  91. }
  92. &.info {
  93. a:link, a:visited {
  94. background-color: @grayLighter;
  95. color: @gray;
  96. i {
  97. .opacity(60);
  98. }
  99. }
  100. a:active, a:hover {
  101. background-color: @gray !important;
  102. color: @white;
  103. i {
  104. background-image: url("@{iconWhiteSpritePath}");
  105. .opacity(100);
  106. }
  107. }
  108. }
  109. &.danger, &.primary {
  110. a:link, a:visited {
  111. color: @white;
  112. i {
  113. background-image: url("@{iconWhiteSpritePath}");
  114. }
  115. }
  116. }
  117. &.danger {
  118. a:link, a:visited {
  119. background-color: lighten(@red, 20%);
  120. }
  121. a:active, a:hover {
  122. background-color: @red !important;
  123. }
  124. }
  125. &.primary {
  126. a:link, a:visited {
  127. background-color: desaturate(lighten(@linkColor, 10%), 10%);
  128. }
  129. a:active, a:hover {
  130. background-color: @linkColor !important;
  131. }
  132. }
  133. }
  134. }
  135. // Pager and nav
  136. .pager {
  137. margin: 0px 0px;
  138. margin-top: 6px;
  139. padding: 0px;
  140. margin-right: 6px;
  141. &>li {
  142. margin-right: 6px;
  143. &>a {
  144. &:link, &:active, &:visited {
  145. background: darken(@bodyBackground, 8%);
  146. border: none;
  147. .border-radius(3px);
  148. padding: 2px 5px;
  149. color: @grayDark;
  150. font-weight: bold;
  151. }
  152. &:hover {
  153. background-color: @linkColor;
  154. color: @white;
  155. i {
  156. background-image: url("@{iconWhiteSpritePath}");
  157. }
  158. }
  159. }
  160. &.unread>a {
  161. &:link, &:active, &:visited {
  162. background: darken(@orange, 10%);
  163. color: @white;
  164. i {
  165. background-image: url("@{iconWhiteSpritePath}");
  166. }
  167. }
  168. &:hover {
  169. background: lighten(@orange, 10%);
  170. }
  171. }
  172. &.moderated>a {
  173. &:link, &:active, &:visited {
  174. background: darken(@purple, 10%);
  175. color: @white;
  176. i {
  177. background-image: url("@{iconWhiteSpritePath}");
  178. }
  179. }
  180. &:hover {
  181. background: lighten(@purple, 10%);
  182. }
  183. }
  184. &.reported>a {
  185. &:link, &:active, &:visited {
  186. background: @red;
  187. color: @white;
  188. i {
  189. background-image: url("@{iconWhiteSpritePath}");
  190. }
  191. }
  192. &:hover {
  193. background: lighten(@red, 10%);
  194. }
  195. }
  196. &.count {
  197. color: lighten(@textColor, 30%);
  198. margin-right: 24px;
  199. }
  200. }
  201. }