bootswatch.less 4.9 KB

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