navs.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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 extra
  32. .tabs-extra {
  33. float: right;
  34. margin: 0px;
  35. }
  36. // Tabs on left
  37. .tabs-left {
  38. background-color: darken(@bodyBackground, 2%);
  39. .border-radius(3px 0px 0px 3px);
  40. padding-left: 8px;
  41. ul {
  42. margin-bottom: 0px;
  43. width: 100%;
  44. li {
  45. &.nav-header {
  46. font-size: 100%;
  47. }
  48. a, a:link, a:active, a:visited {
  49. .opacity(80);
  50. font-weight: bold;
  51. }
  52. a:hover {
  53. .opacity(90);
  54. }
  55. &.active {
  56. a, a:link, a:active,
  57. a:visited, a:hover {
  58. background-color: @bodyBackground;
  59. .opacity(100);
  60. color: @black;
  61. i {
  62. background-image: url("@{iconSpritePath}");
  63. }
  64. }
  65. }
  66. }
  67. li:first-child {
  68. padding-top: 12px;
  69. }
  70. }
  71. }
  72. // Tabs content
  73. .sidetabs-content {
  74. padding-top: 0px;
  75. margin-top: -12px;
  76. }
  77. // List nav
  78. .list-nav {
  79. overflow: auto;
  80. margin-bottom: 4px;
  81. .nav-pills {
  82. margin: 0px;
  83. }
  84. &.last {
  85. margin-top: -8px;
  86. }
  87. button, button:hover, button:active {
  88. border: none;
  89. margin: 0px;
  90. position: relative;
  91. top: 2px;
  92. padding: 6px 12px;
  93. padding-bottom: 5px;
  94. }
  95. }
  96. // Pills
  97. .nav-pills {
  98. li {
  99. margin-left: 8px;
  100. form {
  101. margin: 0px;
  102. padding: 0px;
  103. }
  104. button, button:hover, button:active {
  105. border: none;
  106. }
  107. &.info, &.danger, &.primary, &.success {
  108. a:link, a:visited {
  109. font-weight: bold;
  110. }
  111. }
  112. &.info {
  113. a:link, a:visited, button {
  114. background-color: @grayLighter;
  115. color: @gray;
  116. i {
  117. .opacity(60);
  118. }
  119. }
  120. a:active, a:hover, button:active, button:hover {
  121. background-color: @gray !important;
  122. color: @white;
  123. i {
  124. background-image: url("@{iconWhiteSpritePath}");
  125. .opacity(100);
  126. }
  127. }
  128. }
  129. &.danger, &.primary, &.success {
  130. a:link, a:visited, button {
  131. color: @white;
  132. i {
  133. background-image: url("@{iconWhiteSpritePath}");
  134. }
  135. }
  136. }
  137. &.discourage {
  138. a:link, a:visited, button {
  139. background-color: @grayLighter;
  140. .opacity(40);
  141. color: @grayDark;
  142. }
  143. a:active, a:hover, button:active, button:hover {
  144. .opacity(80);
  145. }
  146. }
  147. &.danger {
  148. a:link, a:visited, button {
  149. background-color: lighten(@red, 20%) !important;
  150. }
  151. a:active, a:hover, button:active, button:hover {
  152. background-color: @red !important;
  153. }
  154. }
  155. &.primary {
  156. a:link, a:visited, button {
  157. background-color: desaturate(lighten(@linkColor, 10%), 10%) !important;
  158. }
  159. a:active, a:hover, button:active, button:hover {
  160. background-color: @linkColor !important;
  161. }
  162. }
  163. &.success {
  164. a:link, a:visited, button {
  165. background-color: lighten(@green, 20%) !important;
  166. }
  167. a:active, a:hover, button:active, button:hover {
  168. background-color: @green !important;
  169. }
  170. }
  171. }
  172. }
  173. // Pager and nav
  174. .pager {
  175. margin: 0px 0px;
  176. margin-top: 6px;
  177. padding: 0px;
  178. margin-right: 6px;
  179. &>li {
  180. margin-right: 6px;
  181. &>a {
  182. &:link, &:active, &:visited {
  183. background: darken(@bodyBackground, 8%);
  184. border: none;
  185. .border-radius(3px);
  186. padding: 2px 5px;
  187. color: @grayDark;
  188. font-weight: bold;
  189. }
  190. &:hover {
  191. background-color: @linkColor;
  192. color: @white;
  193. i {
  194. background-image: url("@{iconWhiteSpritePath}");
  195. }
  196. }
  197. }
  198. &.unread>a {
  199. &:link, &:active, &:visited {
  200. background: darken(@orange, 10%);
  201. color: @white;
  202. i {
  203. background-image: url("@{iconWhiteSpritePath}");
  204. }
  205. }
  206. &:hover {
  207. background: lighten(@orange, 10%);
  208. }
  209. }
  210. &.moderated>a {
  211. &:link, &:active, &:visited {
  212. background: darken(@purple, 10%);
  213. color: @white;
  214. i {
  215. background-image: url("@{iconWhiteSpritePath}");
  216. }
  217. }
  218. &:hover {
  219. background: lighten(@purple, 10%);
  220. }
  221. }
  222. &.reported>a {
  223. &:link, &:active, &:visited {
  224. background: @red;
  225. color: @white;
  226. i {
  227. background-image: url("@{iconWhiteSpritePath}");
  228. }
  229. }
  230. &:hover {
  231. background: lighten(@red, 10%);
  232. }
  233. }
  234. &.count {
  235. color: lighten(@textColor, 30%);
  236. margin-right: 24px;
  237. }
  238. }
  239. }