bootswatch.dark.less 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  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. height: 100%;
  22. }
  23. body {
  24. 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-inverse {
  291. border: 1px solid #444;
  292. }
  293. .btn-large {
  294. padding: 14px 23px;
  295. }
  296. .btn-small {
  297. padding: 2px 10px;
  298. }
  299. .btn-mini {
  300. padding: 2px 6px;
  301. }
  302. .btn-group {
  303. & > .btn:first-child,
  304. & > .btn:last-child,
  305. & > .dropdown-toggle {
  306. .border-radius(0);
  307. }
  308. & > .btn + .dropdown-toggle {
  309. .box-shadow(none);
  310. }
  311. }
  312. // FORMS
  313. // -----------------------------------------------------
  314. input, textarea, select {
  315. border-width: 2px;
  316. .border-radius(1px);
  317. }
  318. select, textarea,
  319. input[type="text"], input[type="password"], input[type="datetime"],
  320. input[type="datetime-local"], input[type="date"], input[type="month"],
  321. input[type="time"], input[type="week"], input[type="number"],
  322. input[type="email"], input[type="url"], input[type="search"],
  323. input[type="tel"], input[type="color"], .uneditable-input {
  324. color: @grayLight;
  325. }
  326. input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly], .uneditable-input {
  327. border-color: #444;
  328. }
  329. input:focus,
  330. textarea:focus,
  331. input.focused,
  332. textarea.focused {
  333. border-color: rgba(82,168,236,1);
  334. outline: 0;
  335. outline: thin dotted \9; /* IE6-9 */
  336. }
  337. input[type="file"]:focus,
  338. input[type="radio"]:focus,
  339. input[type="checkbox"]:focus,
  340. select:focus {
  341. .box-shadow(none); // override for file inputs
  342. .tab-focus();
  343. }
  344. legend, label {
  345. color: @textColor;
  346. border-bottom: 0px solid #222;
  347. }
  348. .form-actions {
  349. border-top: 1px solid #222;
  350. }
  351. // TABLES
  352. // -----------------------------------------------------
  353. .table {
  354. .border-radius(1px);
  355. tbody tr.success td {
  356. background-color: @green;
  357. color: @white;
  358. }
  359. tbody tr.error td {
  360. background-color: @red;
  361. color: @white;
  362. }
  363. tbody tr.info td {
  364. background-color: @blue;
  365. color: @white;
  366. }
  367. }
  368. // ALERTS, LABELS, BADGES
  369. // -----------------------------------------------------
  370. .alert,
  371. .alert .alert-heading,
  372. .alert-success,
  373. .alert-success .alert-heading,
  374. .alert-danger,
  375. .alert-error,
  376. .alert-danger .alert-heading,
  377. .alert-error .alert-heading,
  378. .alert-info,
  379. .alert-info .alert-heading {
  380. color: @white;
  381. text-shadow: none;
  382. border: none;
  383. }
  384. .label {
  385. color: @white;
  386. }
  387. .badge {
  388. border-radius: 0;
  389. font-weight: 200;
  390. }
  391. .label, .alert { background-color: darken(@gray, 20%); }
  392. .label:hover { background-color: darken(@gray, 30%); }
  393. .label-important,
  394. .alert-danger,
  395. .alert-error { background-color: @red; }
  396. .label-important:hover { background-color: darken(@red, 10%); }
  397. .label-warning { background-color: darken(@orange, 10%); }
  398. .label-warning:hover { background-color: darken(@orange, 20%); }
  399. .label-success, .alert-success { background-color: darken(@green, 3%); }
  400. .label-success:hover { background-color: darken(@green, 13%); }
  401. .label-info, .alert-info { background-color: darken(@blueDark, 10%); }
  402. .label-info:hover { background-color: darken(@blueDark, 20%); }
  403. // MISC
  404. // -----------------------------------------------------
  405. a:hover {
  406. text-decoration: none;
  407. }
  408. .well, .hero-unit {
  409. .border-radius(0px);
  410. }
  411. .well, .hero-unit {
  412. border-top: solid 1px lighten(@grayDark, 5%);
  413. .box-shadow(0 2px 4px rgba(0,0,0,.8));
  414. }
  415. .thumbnail {
  416. border-color: @grayDark;
  417. }
  418. .progress {
  419. background-color: #060606;
  420. background-image: none;
  421. .border-radius(0);
  422. }
  423. .modal {
  424. .border-radius(1px);
  425. border-top: solid 1px lighten(@grayDark, 5%);
  426. background-color: @grafanaPanelBackground;
  427. }
  428. .modal-header {
  429. border-bottom: 1px solid @grafanaPanelBackground;
  430. }
  431. .modal-footer {
  432. background-color: @grafanaPanelBackground;
  433. border-top: 1px solid @grafanaPanelBackground;
  434. .border-radius(0 0 0px 0px);
  435. .box-shadow(none);
  436. }
  437. .popover {
  438. .border-radius(0);
  439. &-title {
  440. border-bottom: none;
  441. color: @white;
  442. }
  443. }
  444. .footer {
  445. border-top: 1px solid @grayDark;
  446. }
  447. // MEDIA QUERIES
  448. // -----------------------------------------------------
  449. .caret {
  450. color: @textColor
  451. }
  452. .dropdown-submenu > a:after {
  453. border-left-color: @textColor;
  454. }