bootswatch.dark.less 9.1 KB

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