bootswatch.light.less 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. // Cosmo 2.3.2
  2. // Bootswatch
  3. // -----------------------------------------------------
  4. // TYPOGRAPHY
  5. // -----------------------------------------------------
  6. body {
  7. font-weight: 300;
  8. background: @bodyBackground;
  9. //url('../img/light.png') repeat right top;
  10. }
  11. blockquote {
  12. padding: 10px 15px;
  13. background-color: @grayLighter;
  14. border-left-color: @gray;
  15. &.pull-right {
  16. padding: 10px 15px;
  17. border-right-color: @gray;
  18. }
  19. small {
  20. color: @gray;
  21. }
  22. }
  23. .muted {
  24. color: @gray;
  25. }
  26. .text-warning { color: @orange; }
  27. a.text-warning:hover { color: darken(@orange, 10%); }
  28. .text-error { color: @red; }
  29. a.text-error:hover { color: darken(@red, 10%); }
  30. .text-info { color: @purple; }
  31. a.text-info:hover { color: darken(@purple, 10%); }
  32. .text-success { color: @green; }
  33. a.text-success:hover { color: darken(@green, 10%); }
  34. // SCAFFOLDING
  35. // -----------------------------------------------------
  36. // NAVBAR
  37. // -----------------------------------------------------
  38. .navbar {
  39. .navbar-inner {
  40. background-image: none;
  41. .box-shadow(none);
  42. .border-radius(0);
  43. }
  44. .brand {
  45. &:hover {
  46. color: @navbarLinkColorHover;
  47. }
  48. }
  49. .nav > .active > a,
  50. .nav > .active > a:hover,
  51. .nav > .active > a:focus {
  52. .box-shadow(none);
  53. background-color: @navbarLinkBackgroundHover;
  54. }
  55. .nav li.dropdown.open > .dropdown-toggle,
  56. .nav li.dropdown.active > .dropdown-toggle,
  57. .nav li.dropdown.open.active > .dropdown-toggle {
  58. color: @navbarLinkColorActive;
  59. &:hover {
  60. color: @grayLighter;
  61. }
  62. }
  63. .navbar-search .search-query {
  64. line-height: normal;
  65. }
  66. &-inverse {
  67. .brand,
  68. .nav > li > a {
  69. text-shadow: none;
  70. }
  71. .brand:hover,
  72. .nav > .active > a,
  73. .nav > .active > a:hover,
  74. .nav > .active > a:focus {
  75. background-color: @navbarInverseLinkBackgroundHover;
  76. .box-shadow(none);
  77. color: @white;
  78. }
  79. .navbar-search .search-query {
  80. color: @grayDarker;
  81. }
  82. }
  83. }
  84. div.subnav {
  85. margin: 0 1px;
  86. background: @grayLight none;
  87. .box-shadow(none);
  88. border: none;
  89. .border-radius(0);
  90. .nav {
  91. background-color: transparent;
  92. }
  93. .nav > li > a {
  94. border-color: transparent;
  95. }
  96. .nav > .active > a,
  97. .nav > .active > a:hover {
  98. border-color: transparent;
  99. background-color: @black;
  100. color: @white;
  101. .box-shadow(none);
  102. }
  103. &-fixed {
  104. top: @navbarHeight + 1;
  105. margin: 0;
  106. }
  107. }
  108. // NAV
  109. // -----------------------------------------------------
  110. .nav {
  111. .open .dropdown-toggle,
  112. & > li.dropdown.open.active > a:hover {
  113. color: @blue;
  114. }
  115. }
  116. .nav-tabs {
  117. & > li > a {
  118. .border-radius(0);
  119. }
  120. li > a:hover,
  121. li.active > a,
  122. li.active > a:hover {
  123. border-color: transparent;
  124. background-color: transparent;
  125. border-bottom: 2px solid @blue;
  126. color: @blue
  127. }
  128. li.disabled > a {
  129. color: @textColor;
  130. }
  131. .open .dropdown-toggle {
  132. background-color: #060606;
  133. border-color: transparent;
  134. }
  135. }
  136. .tabs-below,
  137. .tabs-left,
  138. .tabs-right {
  139. & > .nav-tabs > li > a{
  140. .border-radius(0);
  141. border: 0px;
  142. }
  143. }
  144. .nav-pills {
  145. & > li > a {
  146. //background-color: @grayLight;
  147. .border-radius(0);
  148. color: @black;
  149. &:hover {
  150. background-color: @black;
  151. color: @white;
  152. }
  153. }
  154. & > .disabled > a,
  155. & > .disabled > a:hover {
  156. background-color: @grayLighter;
  157. color: @grayDark;
  158. }
  159. }
  160. .nav-list {
  161. & > li > a {
  162. color: @grayDarker;
  163. &:hover {
  164. background-color: @blue;
  165. color: @white;
  166. text-shadow: none;
  167. }
  168. }
  169. .nav-header {
  170. color: @grayDarker;
  171. }
  172. .divider {
  173. background-color: @gray;
  174. border-bottom: none;
  175. }
  176. }
  177. .pagination {
  178. ul {
  179. .box-shadow(none);
  180. & > li > a,
  181. & > li > span {
  182. margin-right: 6px;
  183. color: @grayDarker;
  184. &:hover {
  185. background-color: @grayDarker;
  186. color: @white;
  187. }
  188. }
  189. & > li:last-child > a,
  190. & > li:last-child > span {
  191. margin-right: 0;
  192. }
  193. & > .active > a,
  194. & > .active > span {
  195. color: @white;
  196. }
  197. & > .disabled > span,
  198. & > .disabled > a,
  199. & > .disabled > a:hover {
  200. background-color: @grayLighter;
  201. color: @grayDark;
  202. }
  203. }
  204. }
  205. .pager {
  206. li > a,
  207. li > span {
  208. background-color: @grayLight;
  209. border: none;
  210. .border-radius(0);
  211. color: @grayDarker;
  212. &:hover {
  213. background-color: @grayDarker;
  214. color: @white;
  215. }
  216. }
  217. .disabled > a,
  218. .disabled > a:hover,
  219. .disabled > span {
  220. background-color: @grayLighter;
  221. color: @grayDark;
  222. }
  223. }
  224. .breadcrumb {
  225. background-color: @grayLight;
  226. li {
  227. text-shadow: none;
  228. }
  229. .divider,
  230. .active {
  231. color: @grayDarker;
  232. text-shadow: none;
  233. }
  234. }
  235. // BUTTONS
  236. // -----------------------------------------------------
  237. .btn {
  238. padding: 5px 12px;
  239. background-image: none;
  240. .box-shadow(none);
  241. border: none;
  242. .border-radius(0);
  243. text-shadow: none;
  244. &.disabled {
  245. box-shadow: inset 0 2px 4px rgba(0,0,0,.15),~" "0 1px 2px rgba(0,0,0,.05);
  246. }
  247. }
  248. .btn-large {
  249. padding: 22px 30px;
  250. }
  251. .btn-small {
  252. padding: 2px 10px;
  253. }
  254. .btn-mini {
  255. padding: 2px 6px;
  256. }
  257. .btn-group {
  258. & > .btn:first-child,
  259. & > .btn:last-child,
  260. & > .dropdown-toggle {
  261. .border-radius(0);
  262. }
  263. & > .btn + .dropdown-toggle {
  264. .box-shadow(none);
  265. }
  266. }
  267. legend, label {
  268. color: @textColor;
  269. border-bottom: 0px solid #222;
  270. }
  271. // TABLES
  272. // -----------------------------------------------------
  273. .table {
  274. tbody tr.success td {
  275. color: @white;
  276. }
  277. tbody tr.error td {
  278. color: @white;
  279. }
  280. tbody tr.info td {
  281. color: @white;
  282. }
  283. &-bordered {
  284. .border-radius(0);
  285. thead:first-child tr:first-child th:first-child,
  286. tbody:first-child tr:first-child td:first-child {
  287. .border-radius(0);
  288. }
  289. thead:last-child tr:last-child th:first-child,
  290. tbody:last-child tr:last-child td:first-child,
  291. tfoot:last-child tr:last-child td:first-child {
  292. .border-radius(0);
  293. }
  294. }
  295. }
  296. // FORMS
  297. // -----------------------------------------------------
  298. select, textarea, input[type="text"], input[type="password"], input[type="datetime"],
  299. input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"],
  300. input[type="week"], input[type="number"], input[type="email"], input[type="url"],
  301. input[type="search"], input[type="tel"], input[type="color"] {
  302. color: @grayDarker;
  303. }
  304. .control-group {
  305. &.warning {
  306. .control-label,
  307. .help-block,
  308. .help-inline {
  309. color: @orange;
  310. }
  311. input,
  312. select,
  313. textarea {
  314. border-color: @orange;
  315. color: @grayDarker;
  316. }
  317. }
  318. &.error {
  319. .control-label,
  320. .help-block,
  321. .help-inline {
  322. color: @red;
  323. }
  324. input,
  325. select,
  326. textarea {
  327. border-color: @red;
  328. color: @grayDarker;
  329. }
  330. }
  331. &.success {
  332. .control-label,
  333. .help-block,
  334. .help-inline {
  335. color: @green;
  336. }
  337. input,
  338. select,
  339. textarea {
  340. border-color: @green;
  341. color: @grayDarker;
  342. }
  343. }
  344. }
  345. legend {
  346. border-bottom: none;
  347. color: @grayDarker;
  348. }
  349. .form-actions {
  350. border-top: none;
  351. background-color: @grayLighter;
  352. }
  353. // DROPDOWNS
  354. // -----------------------------------------------------
  355. .dropdown-menu {
  356. .border-radius(0);
  357. }
  358. // ALERTS, LABELS, BADGES
  359. // -----------------------------------------------------
  360. .alert {
  361. .border-radius(0);
  362. text-shadow: none;
  363. &-heading, h1, h2, h3, h4, h5, h6 {
  364. color: @white;
  365. }
  366. }
  367. .label {
  368. &-success {
  369. background-color: @green;
  370. }
  371. &-important {
  372. background-color: @red;
  373. }
  374. &-info {
  375. background-color: @purple;
  376. }
  377. &-inverse {
  378. background-color: @black;
  379. }
  380. }
  381. .badge {
  382. border-radius: 0;
  383. font-weight: 200;
  384. }
  385. // MISC
  386. // -----------------------------------------------------
  387. a:hover {
  388. text-decoration: none;
  389. }
  390. .hero-unit {
  391. border: none;
  392. .border-radius(0);
  393. .box-shadow(none);
  394. }
  395. .well {
  396. border: none;
  397. .border-radius(0);
  398. .box-shadow(none);
  399. }
  400. a.thumbnail {
  401. background-color: @grayLight;
  402. &:hover {
  403. background-color: @gray;
  404. border-color: transparent;
  405. }
  406. }
  407. .progress {
  408. background-color: @grayLighter;
  409. background-image: none;
  410. .border-radius(0);
  411. }
  412. .modal {
  413. .border-radius(0);
  414. background-color: @bodyBackground;
  415. &-header {
  416. border-bottom: none;
  417. }
  418. &-footer {
  419. border-top: none;
  420. background-color: transparent;
  421. }
  422. }
  423. .popover {
  424. .border-radius(0);
  425. &-title {
  426. border-bottom: none;
  427. color: @white;
  428. }
  429. }
  430. // MEDIA QUERIES
  431. // -----------------------------------------------------