bootswatch.less 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. // Cupid 3.1.0
  2. // Bootswatch
  3. // -----------------------------------------------------
  4. @import url("//fonts.googleapis.com/css?family=Bitter:400,700");
  5. @import url("//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic");
  6. // Navbar =====================================================================
  7. .navbar {
  8. font-family: @font-family-serif;
  9. &-default {
  10. .dropdown-menu {
  11. background-color: @navbar-default-bg;
  12. > li > a,
  13. > li > a:focus {
  14. color: @navbar-default-color;
  15. }
  16. > li > a:hover,
  17. > .active > a,
  18. > .active > a:hover {
  19. background-color: @navbar-default-link-hover-bg;
  20. }
  21. }
  22. }
  23. &-inverse {
  24. .dropdown-menu {
  25. background-color: @navbar-inverse-bg;
  26. > li > a,
  27. > li > a:focus {
  28. color: @navbar-inverse-color;
  29. }
  30. > li > a:hover,
  31. > .active > a,
  32. > .active > a:hover {
  33. background-color: @navbar-inverse-link-hover-bg;
  34. }
  35. }
  36. }
  37. }
  38. // Buttons ====================================================================
  39. .btn {
  40. font-family: @font-family-serif;
  41. }
  42. .btn-group {
  43. .btn ~ .dropdown-toggle {
  44. padding-left: 16px;
  45. padding-right: 16px;
  46. }
  47. .dropdown-menu {
  48. border-top-width: 0;
  49. }
  50. &.dropup .dropdown-menu {
  51. border-top-width: 1px;
  52. border-bottom-width: 0;
  53. margin-bottom: 0;
  54. }
  55. .dropdown-toggle {
  56. &.btn-default ~ .dropdown-menu {
  57. background-color: @btn-default-bg;
  58. border-color: @btn-default-border;
  59. > li > a {
  60. color: @btn-default-color;
  61. }
  62. > li > a:hover {
  63. background-color: darken(@btn-default-bg, 8%);
  64. }
  65. }
  66. &.btn-primary ~ .dropdown-menu {
  67. background-color: @btn-primary-bg;
  68. border-color: @btn-primary-border;
  69. > li > a {
  70. color: @btn-primary-color;
  71. }
  72. > li > a:hover {
  73. background-color: darken(@btn-primary-bg, 8%);
  74. }
  75. }
  76. &.btn-success ~ .dropdown-menu {
  77. background-color: @btn-success-bg;
  78. border-color: @btn-success-border;
  79. > li > a {
  80. color: @btn-success-color;
  81. }
  82. > li > a:hover {
  83. background-color: darken(@btn-success-bg, 8%);
  84. }
  85. }
  86. &.btn-info ~ .dropdown-menu {
  87. background-color: @btn-info-bg;
  88. border-color: @btn-info-border;
  89. > li > a {
  90. color: @btn-info-color;
  91. }
  92. > li > a:hover {
  93. background-color: darken(@btn-info-bg, 8%);
  94. }
  95. }
  96. &.btn-warning ~ .dropdown-menu {
  97. background-color: @btn-warning-bg;
  98. border-color: @btn-warning-border;
  99. > li > a {
  100. color: @btn-warning-color;
  101. }
  102. > li > a:hover {
  103. background-color: darken(@btn-warning-bg, 8%);
  104. }
  105. }
  106. &.btn-danger ~ .dropdown-menu {
  107. background-color: @btn-danger-bg;
  108. border-color: @btn-danger-border;
  109. > li > a {
  110. color: @btn-danger-color;
  111. }
  112. > li > a:hover {
  113. background-color: darken(@btn-danger-bg, 8%);
  114. }
  115. }
  116. }
  117. }
  118. // Typography =================================================================
  119. h1, h2 {
  120. position: relative;
  121. padding: 0.2em 1.2em;
  122. margin-left: 1em;
  123. margin-right: 50px;
  124. margin-bottom: 0.6em;
  125. background-color: @gray-lighter;
  126. color: #fff;
  127. &:before {
  128. content: "♥";
  129. position: absolute;
  130. left: -0.3em;
  131. top: -0.42em;
  132. color: @brand-primary;
  133. font-family: @font-family-sans-serif;
  134. font-size: 3.6em;
  135. }
  136. &:after {
  137. content:"";
  138. position: absolute;
  139. width: 0;
  140. height: 0;
  141. right: 0;
  142. top: 0;
  143. border-top: 0.75em solid transparent;
  144. border-bottom: 0.75em solid transparent;
  145. border-right: 0.75em solid @body-bg;
  146. }
  147. }
  148. .lead {
  149. font-weight: normal;
  150. }
  151. .text-primary,
  152. .text-primary:hover {
  153. color: @brand-primary;
  154. }
  155. .text-success,
  156. .text-success:hover {
  157. color: @brand-success;
  158. }
  159. .text-danger,
  160. .text-danger:hover {
  161. color: @brand-danger;
  162. }
  163. .text-warning,
  164. .text-warning:hover {
  165. color: @brand-warning;
  166. }
  167. .text-info,
  168. .text-info:hover {
  169. color: @brand-info;
  170. }
  171. // Tables =====================================================================
  172. table,
  173. .table {
  174. > thead > tr > th,
  175. > tbody > tr > th,
  176. > tfoot > tr > th,
  177. > thead > tr > td,
  178. > tbody > tr > td,
  179. > tfoot > tr > td {
  180. border-color: transparent;
  181. }
  182. }
  183. // Forms ======================================================================
  184. legend {
  185. font-family: @font-family-serif;
  186. }
  187. label {
  188. font-weight: normal;
  189. }
  190. .help-block {
  191. color: @text-color;
  192. }
  193. .form-control,
  194. .form-control:focus {
  195. .box-shadow(none);
  196. }
  197. .has-warning {
  198. .help-block,
  199. .control-label {
  200. color: @brand-warning;
  201. }
  202. .form-control,
  203. .form-control:focus {
  204. border: 1px solid @brand-warning;
  205. .box-shadow(none);
  206. }
  207. }
  208. .has-error {
  209. .help-block,
  210. .control-label {
  211. color: @brand-danger;
  212. }
  213. .form-control,
  214. .form-control:focus {
  215. border: 1px solid @brand-danger;
  216. .box-shadow(none);
  217. }
  218. }
  219. .has-success {
  220. .help-block,
  221. .control-label {
  222. color: @brand-success;
  223. }
  224. .form-control,
  225. .form-control:focus {
  226. border: 1px solid @brand-success;
  227. .box-shadow(none);
  228. }
  229. }
  230. // Navs =======================================================================
  231. .dropdown-menu {
  232. margin-top: 0;
  233. border: none;
  234. .box-shadow(none);
  235. }
  236. .nav-tabs,
  237. .nav-pills {
  238. > li > a {
  239. background-color: @gray-lighter;
  240. color: #fff;
  241. }
  242. > li > a:hover,
  243. > li > a:focus {
  244. color: #fff;
  245. }
  246. > li.disabled > a,
  247. > li.disabled > a:hover,
  248. > li.disabled > a:focus {
  249. background-color: @well-bg;
  250. color: @gray-lighter;
  251. }
  252. .open > a,
  253. .open > a:hover,
  254. .open > a:focus {
  255. border-color: transparent;
  256. }
  257. > .dropdown > .dropdown-menu {
  258. background-color: @btn-primary-bg;
  259. border-color: @btn-primary-border;
  260. > li > a {
  261. color: @btn-primary-color;
  262. }
  263. > li > a:hover {
  264. background-color: darken(@btn-primary-bg, 8%);
  265. }
  266. }
  267. }
  268. .nav-pills {
  269. > li + li {
  270. margin-left: 0;
  271. }
  272. }
  273. .nav-stacked {
  274. > li + li {
  275. margin-top: 0;
  276. }
  277. }
  278. .breadcrumb {
  279. a {
  280. color: #fff;
  281. }
  282. }
  283. .pager {
  284. li > a,
  285. li > a:hover,
  286. li > a:focus {
  287. color: #fff;
  288. }
  289. .disabled > a,
  290. .disabled > a:hover,
  291. .disabled > a:focus,
  292. .disabled > span {
  293. background-color: @pagination-disabled-bg;
  294. }
  295. }
  296. // Indicators =================================================================
  297. .alert,
  298. .panel {
  299. h1, h2 {
  300. background-color: transparent;
  301. margin-left: 0;
  302. margin-right: 0;
  303. padding: 0;
  304. color: @headings-color;
  305. &:before,
  306. &:after {
  307. content: none;
  308. }
  309. }
  310. }
  311. // Progress bars ==============================================================
  312. .progress,
  313. .progress-bar {
  314. .box-shadow(none);
  315. }
  316. // Containers =================================================================
  317. .well,
  318. .jumbotron,
  319. .list-group,
  320. .modal {
  321. h1, h2 {
  322. background-color: transparent;
  323. margin-right: 0;
  324. padding: 0;
  325. &:before,
  326. &:after {
  327. content: none;
  328. }
  329. }
  330. }
  331. .well {
  332. .box-shadow(none);
  333. }
  334. a.list-group-item:hover,
  335. a.list-group-item:focus,
  336. a.list-group-item:hover .list-group-item-heading,
  337. a.list-group-item:focus .list-group-item-heading {
  338. color: #fff;
  339. }
  340. .panel {
  341. border: none;
  342. .box-shadow(none);
  343. color: #fff;
  344. &-heading,
  345. &-footer {
  346. position: relative;
  347. text-align: center;
  348. &:before {
  349. z-index: -100;
  350. content: "";
  351. position: absolute;
  352. left: 50%;
  353. top: 0;
  354. margin-left: -2em;
  355. margin-top: -1em;
  356. display: inline-block;
  357. width: 4em;
  358. height: 4em;
  359. border-radius: 2em;
  360. background-color: @gray-lighter;
  361. }
  362. }
  363. &-footer {
  364. &:before {
  365. top: auto;
  366. bottom: 0;
  367. margin-top: 0;
  368. margin-bottom: -1em;
  369. }
  370. }
  371. &-body {
  372. color: @text-color;
  373. }
  374. &-primary .panel-heading:before {
  375. background-color: @brand-primary;
  376. }
  377. &-success .panel-heading:before {
  378. background-color: @brand-success;
  379. }
  380. &-warning .panel-heading:before {
  381. background-color: @brand-warning;
  382. }
  383. &-danger .panel-heading:before {
  384. background-color: @brand-danger;
  385. }
  386. &-info .panel-heading:before {
  387. background-color: @brand-info;
  388. }
  389. > .list-group {
  390. color: @text-color;
  391. }
  392. }
  393. .modal {
  394. &-header {
  395. background-color: @brand-primary;
  396. color: #fff;
  397. h1, h2, h3, h4, h5, h6 {
  398. color: #fff;
  399. }
  400. }
  401. }
  402. .popover {
  403. border: none;
  404. border-radius: 0;
  405. padding: 0;
  406. &-title {
  407. border-radius: 0;
  408. }
  409. h1, h2, h3, h4, h5, h6 {
  410. color: #fff;
  411. }
  412. }