bootswatch.light.less 8.1 KB

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