bootswatch.light.less 7.7 KB

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