bootswatch.light.less 7.9 KB

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