bootswatch.less 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. // Flatly 3.3.4
  2. // Bootswatch
  3. // -----------------------------------------------------
  4. @import url("//fonts.googleapis.com/css?family=Lato:400,700,400italic");
  5. // Navbar =====================================================================
  6. .navbar {
  7. border-width: 0;
  8. &-default {
  9. .badge {
  10. background-color: #fff;
  11. color: @navbar-default-bg;
  12. }
  13. }
  14. &-inverse {
  15. .badge {
  16. background-color: #fff;
  17. color: @navbar-inverse-bg;
  18. }
  19. }
  20. &-brand {
  21. line-height: 1;
  22. }
  23. }
  24. // Buttons ====================================================================
  25. .btn:active {
  26. .box-shadow(none);
  27. }
  28. .btn-group.open .dropdown-toggle {
  29. .box-shadow(none);
  30. }
  31. // Typography =================================================================
  32. .text-primary,
  33. .text-primary:hover {
  34. color: @brand-primary;
  35. }
  36. .text-success,
  37. .text-success:hover {
  38. color: @brand-success;
  39. }
  40. .text-danger,
  41. .text-danger:hover {
  42. color: @brand-danger;
  43. }
  44. .text-warning,
  45. .text-warning:hover {
  46. color: @brand-warning;
  47. }
  48. .text-info,
  49. .text-info:hover {
  50. color: @brand-info;
  51. }
  52. // Tables =====================================================================
  53. table,
  54. .table {
  55. a:not(.btn) {
  56. text-decoration: underline;
  57. }
  58. .dropdown-menu a {
  59. text-decoration: none;
  60. }
  61. .success,
  62. .warning,
  63. .danger,
  64. .info {
  65. color: #fff;
  66. > th > a,
  67. > td > a,
  68. > a {
  69. color: #fff;
  70. }
  71. }
  72. > thead > tr > th,
  73. > tbody > tr > th,
  74. > tfoot > tr > th,
  75. > thead > tr > td,
  76. > tbody > tr > td,
  77. > tfoot > tr > td {
  78. border: none;
  79. }
  80. &-bordered > thead > tr > th,
  81. &-bordered > tbody > tr > th,
  82. &-bordered > tfoot > tr > th,
  83. &-bordered > thead > tr > td,
  84. &-bordered > tbody > tr > td,
  85. &-bordered > tfoot > tr > td {
  86. border: 1px solid @table-border-color;
  87. }
  88. }
  89. // Forms ======================================================================
  90. .form-control,
  91. input, {
  92. border-width: 2px;
  93. .box-shadow(none);
  94. &:focus {
  95. .box-shadow(none);
  96. }
  97. }
  98. .has-warning {
  99. .help-block,
  100. .control-label,
  101. .radio,
  102. .checkbox,
  103. .radio-inline,
  104. .checkbox-inline,
  105. .form-control-feedback {
  106. color: @brand-warning;
  107. }
  108. .form-control,
  109. .form-control:focus {
  110. border: 2px solid @brand-warning;
  111. }
  112. .input-group-addon {
  113. border-color: @brand-warning;
  114. }
  115. }
  116. .has-error {
  117. .help-block,
  118. .control-label,
  119. .radio,
  120. .checkbox,
  121. .radio-inline,
  122. .checkbox-inline,
  123. .form-control-feedback {
  124. color: @brand-danger;
  125. }
  126. .form-control,
  127. .form-control:focus {
  128. border: 2px solid @brand-danger;
  129. }
  130. .input-group-addon {
  131. border-color: @brand-danger;
  132. }
  133. }
  134. .has-success {
  135. .help-block,
  136. .control-label,
  137. .radio,
  138. .checkbox,
  139. .radio-inline,
  140. .checkbox-inline,
  141. .form-control-feedback {
  142. color: @brand-success;
  143. }
  144. .form-control,
  145. .form-control:focus {
  146. border: 2px solid @brand-success;
  147. }
  148. .input-group-addon {
  149. border-color: @brand-success;
  150. }
  151. }
  152. // Navs =======================================================================
  153. .nav {
  154. .open > a,
  155. .open > a:hover,
  156. .open > a:focus {
  157. border-color: transparent;
  158. }
  159. }
  160. .pager {
  161. a,
  162. a:hover {
  163. color: #fff;
  164. }
  165. .disabled {
  166. &>a,
  167. &>a:hover,
  168. &>a:focus,
  169. &>span {
  170. background-color: @pagination-disabled-bg;
  171. }
  172. }
  173. }
  174. // Indicators =================================================================
  175. .close {
  176. color: #fff;
  177. text-decoration: none;
  178. opacity: 0.4;
  179. &:hover,
  180. &:focus {
  181. color: #fff;
  182. opacity: 1;
  183. }
  184. }
  185. .alert {
  186. .alert-link {
  187. color: #fff;
  188. text-decoration: underline;
  189. }
  190. }
  191. // Progress bars ==============================================================
  192. .progress {
  193. height: 10px;
  194. .box-shadow(none);
  195. .progress-bar {
  196. font-size: 10px;
  197. line-height: 10px;
  198. }
  199. }
  200. // Containers =================================================================
  201. .well {
  202. .box-shadow(none);
  203. }
  204. a.list-group-item {
  205. &.active,
  206. &.active:hover,
  207. &.active:focus {
  208. border-color: @list-group-border;
  209. }
  210. &-success {
  211. &.active {
  212. background-color: @state-success-bg;
  213. }
  214. &.active:hover,
  215. &.active:focus {
  216. background-color: darken(@state-success-bg, 5%);
  217. }
  218. }
  219. &-warning {
  220. &.active {
  221. background-color: @state-warning-bg;
  222. }
  223. &.active:hover,
  224. &.active:focus {
  225. background-color: darken(@state-warning-bg, 5%);
  226. }
  227. }
  228. &-danger {
  229. &.active {
  230. background-color: @state-danger-bg;
  231. }
  232. &.active:hover,
  233. &.active:focus {
  234. background-color: darken(@state-danger-bg, 5%);
  235. }
  236. }
  237. }
  238. .panel {
  239. &-default {
  240. .close {
  241. color: @text-color;
  242. }
  243. }
  244. }
  245. .modal {
  246. .close {
  247. color: @text-color;
  248. }
  249. }
  250. .popover {
  251. color: @text-color;
  252. }