overrides.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. // Media queries
  2. // ---------------------
  3. @media (max-width: 767px) {
  4. div.panel {
  5. width: 100% !important;
  6. padding: 0px !important;
  7. }
  8. }
  9. // Containers
  10. // ---------------------
  11. .container-fluid {
  12. padding-left: 0px;
  13. padding-right: 0px;
  14. }
  15. // Backgrounds
  16. // ---------------------
  17. .bgNav {
  18. background: @navbarBackground;
  19. }
  20. .bgPrimary {
  21. background: @btnPrimaryBackground;
  22. color: rgba(255,255,255,.90);
  23. }
  24. .bgInfo {
  25. background: @btnInfoBackground;
  26. color: rgba(255,255,255,.90);
  27. }
  28. .bgSuccess {
  29. background: @btnSuccessBackground;
  30. color: rgba(255,255,255,.90);
  31. }
  32. .bgWarning {
  33. background: @btnWarningBackground;
  34. color: rgba(255,255,255,.90);
  35. }
  36. .bgDanger {
  37. background: @btnDangerBackground;
  38. color: rgba(255,255,255,.90);
  39. }
  40. .bgInverse {
  41. background: @btnInverseBackground;
  42. color: rgba(255,255,255,.90);
  43. }
  44. code, pre {
  45. background-color: @codeTagBackground;
  46. }
  47. div.editor-row {
  48. vertical-align: top;
  49. }
  50. div.editor-row div.section {
  51. margin-right: 20px;
  52. vertical-align: top;
  53. display: inline-block;
  54. }
  55. div.editor-option {
  56. vertical-align: top;
  57. display: inline-block;
  58. margin-right: 10px;
  59. }
  60. div.editor-option label {
  61. display: block;
  62. }
  63. #events {
  64. font-size: 12px;
  65. }
  66. .version {
  67. font-size: 85%;
  68. }
  69. .legend {
  70. color: @black;
  71. }
  72. div.fake-input {
  73. background-color: @inputBackground;
  74. border: 1px solid @inputBorder;
  75. .border-radius(@inputBorderRadius @inputBorderRadius @inputBorderRadius @inputBorderRadius);
  76. }
  77. hr.small {
  78. margin: 5px 0px;
  79. }
  80. form input.ng-invalid {
  81. color: @errorText;
  82. }
  83. .editor-title {
  84. margin-right: 10px;
  85. font-size: 1.7em;
  86. font-weight: bold;
  87. text-transform:capitalize;
  88. }
  89. .editor-title small {
  90. opacity: 0.5;
  91. font-size: 0.7em;
  92. font-weight: normal;
  93. }
  94. .bordered {
  95. border: 1px solid @tableBorder;
  96. }
  97. .table-unpadded {
  98. th,
  99. td {
  100. padding: 0px 2px;
  101. }
  102. }
  103. .spy {
  104. position:absolute;
  105. right:0px;
  106. top:0px;
  107. }
  108. .navbar-inner {
  109. border-width: 0 0 0px;
  110. }
  111. .grafana-row {
  112. margin-bottom: 5px;
  113. }
  114. .row-tab {
  115. .dropdown-menu-right {
  116. top: 0;
  117. left: 33px;
  118. }
  119. }
  120. .row-tab-button {
  121. padding: 0px;
  122. cursor: pointer;
  123. vertical-align: middle;
  124. width: 30px;
  125. height: 30px;
  126. text-align: center;
  127. display: inline-block;
  128. line-height: 30px;
  129. }
  130. .row-button {
  131. width: 30px;
  132. float: left;
  133. cursor: pointer;
  134. line-height: 31px;
  135. }
  136. .row-text {
  137. white-space: nowrap;
  138. text-transform: uppercase;
  139. font-weight: bold;
  140. font-size: 0.9em;
  141. text-align: center;
  142. line-height: 31px;
  143. height: 31px;
  144. }
  145. .row-close {
  146. padding: 0px;
  147. margin: 0px;
  148. background: @grafanaPanelBackground;
  149. text-align: center;
  150. }
  151. .row-close-buttons {
  152. position: absolute;
  153. left: 0;
  154. }
  155. .row-open {
  156. margin-top: 5px;
  157. left:-34px;
  158. position: absolute;
  159. z-index: 100;
  160. transition: .10s left;
  161. transition-delay: .10s;
  162. -webkit-transition-delay: .10s;
  163. }
  164. .row-open:hover {
  165. left:-12px;
  166. }
  167. .odd {
  168. background-color: @tableBackgroundAccent;
  169. }
  170. .nomargin {
  171. margin: 0px;
  172. }
  173. [ng\:cloak], [ng-cloak], .ng-cloak {
  174. display: none !important;
  175. }
  176. .table tbody + tbody {
  177. border-top: 0px;
  178. }
  179. .ui-draggable-dragging {
  180. display: block;
  181. z-index: 9999;
  182. }
  183. .link {
  184. color: @linkColor;
  185. cursor: pointer;
  186. }
  187. .link:hover {
  188. color: @linkColorHover;
  189. }
  190. .pointer {
  191. cursor: pointer;
  192. }
  193. .popover {
  194. max-width: 480px;
  195. }
  196. .tiny {
  197. font-size: 50%;
  198. }
  199. .smaller {
  200. font-size: 70%;
  201. }
  202. .small {
  203. font-size: 85%;
  204. }
  205. .large {
  206. font-size: 120%;
  207. }
  208. .strong {
  209. font-weight: bold;
  210. }
  211. a {
  212. cursor: pointer;
  213. }
  214. .normal {
  215. font-weight: normal;
  216. }
  217. .light {
  218. font-weight: 200;
  219. }
  220. .input-smaller {
  221. width: 75px;
  222. }
  223. .string {color:lighten(@textColor, 5%)}
  224. .number {color:lighten(@infoText, 5%)}
  225. .boolean {color:lighten(@warningText, 5%)}
  226. .key {color:lighten(@errorText, 5%)}
  227. .btn-active {
  228. background-color: #E6E6E6;
  229. background-image: none;
  230. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
  231. outline: 0 none
  232. }
  233. .remove:hover {
  234. background-color: @btnDangerBackgroundHighlight;
  235. }
  236. .faded {
  237. opacity: 0.2;
  238. }
  239. div.flot-text {
  240. color: @textColor !important;
  241. }
  242. .page-alert-list {
  243. z-index:8000;
  244. min-width: 300px;
  245. max-width: 300px;
  246. position: fixed;
  247. right: 20px;
  248. top: 56px;
  249. }
  250. .alert {
  251. color: @white;
  252. padding-bottom: 13px;
  253. position: relative;
  254. }
  255. .alert-close {
  256. position: absolute;
  257. top: -4px;
  258. right: -2px;
  259. width: 19px;
  260. height: 19px;
  261. padding: 0;
  262. background: @grayLighter;
  263. border-radius: 50%;
  264. border: none;
  265. font-size: 1.1rem;
  266. color: @grayDarker;
  267. }
  268. .alert-title {
  269. font-weight: bold;
  270. padding-bottom: 2px;
  271. }
  272. .alert-warning {
  273. background-color: @warningBackground;
  274. border-color: @warningBorder;
  275. }
  276. /* ===================================================
  277. * popover-extra-placements.css v0.1
  278. * http://twitter.github.com/bootstrap-popover-extra-placements
  279. * ===================================================
  280. * Copyright 2012 Daniel Kleehammer
  281. *
  282. * Licensed under the Apache License, Version 2.0 (the "License");
  283. * you may not use this file except in compliance with the License.
  284. * You may obtain a copy of the License at
  285. *
  286. * http://www.apache.org/licenses/LICENSE-2.0
  287. *
  288. * Unless required by applicable law or agreed to in writing, software
  289. * distributed under the License is distributed on an "AS IS" BASIS,
  290. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  291. * See the License for the specific language governing permissions and
  292. * limitations under the License.
  293. * ========================================================== */
  294. /*************************
  295. * Top Positions
  296. *************************/
  297. /** Top Left **/
  298. .popover.topLeft {
  299. margin-top: -10px;
  300. }
  301. .popover.topLeft .arrow {
  302. bottom: -10px;
  303. left: 25%;
  304. margin-left: -10px;
  305. border-width: 10px 10px 0;
  306. border-top-color: @popoverTitleBackground;
  307. }
  308. .popover.topLeft .arrow:after {
  309. border-width: 11px 11px 0;
  310. border-top-color: rgba(0, 0, 0, 0.25);
  311. bottom: -1px;
  312. left: -11px;
  313. }
  314. /** Top Right **/
  315. .popover.topRight {
  316. margin-top: -10px;
  317. }
  318. .popover.topRight .arrow {
  319. bottom: -10px;
  320. left: 75%;
  321. margin-left: -10px;
  322. border-width: 10px 10px 0;
  323. border-top-color: @popoverTitleBackground;;
  324. }
  325. .popover.topRight .arrow:after {
  326. border-width: 11px 11px 0;
  327. border-top-color: rgba(0, 0, 0, 0.25);
  328. bottom: -1px;
  329. left: -11px;
  330. }
  331. /*************************
  332. * Right Positions
  333. *************************/
  334. .popover {
  335. &.rightTop .arrow {
  336. top: 10%;
  337. left: -@popoverArrowOuterWidth;
  338. margin-top: -@popoverArrowOuterWidth;
  339. border-left-width: 0;
  340. border-right-color: #999; // IE8 fallback
  341. border-right-color: @popoverArrowOuterColor;
  342. &:after {
  343. left: 1px;
  344. bottom: -@popoverArrowWidth;
  345. border-left-width: 0;
  346. border-right-color: @popoverArrowColor;
  347. }
  348. }
  349. &.rightBottom .arrow {
  350. top: 90%;
  351. left: -@popoverArrowOuterWidth;
  352. margin-top: -@popoverArrowOuterWidth;
  353. border-left-width: 0;
  354. border-right-color: #999; // IE8 fallback
  355. border-right-color: @popoverArrowOuterColor;
  356. &:after {
  357. left: 1px;
  358. bottom: -@popoverArrowWidth;
  359. border-left-width: 0;
  360. border-right-color: @popoverArrowColor;
  361. }
  362. }
  363. &.bottomLeft .arrow {
  364. left: 10%;
  365. margin-left: -@popoverArrowOuterWidth;
  366. border-top-width: 0;
  367. border-bottom-color: #999; // IE8 fallback
  368. border-bottom-color: @popoverArrowOuterColor;
  369. top: -@popoverArrowOuterWidth;
  370. &:after {
  371. top: 1px;
  372. margin-left: -@popoverArrowWidth;
  373. border-top-width: 0;
  374. border-bottom-color: @popoverArrowColor;
  375. }
  376. }
  377. &.bottomRight .arrow {
  378. left: 90%;
  379. margin-left: -@popoverArrowOuterWidth;
  380. border-top-width: 0;
  381. border-bottom-color: #999; // IE8 fallback
  382. border-bottom-color: @popoverArrowOuterColor;
  383. top: -@popoverArrowOuterWidth;
  384. &:after {
  385. top: 1px;
  386. margin-left: -@popoverArrowWidth;
  387. border-top-width: 0;
  388. border-bottom-color: @popoverArrowColor;
  389. }
  390. }
  391. &.leftTop .arrow {
  392. top: 10%;
  393. right: -@popoverArrowOuterWidth;
  394. margin-top: -@popoverArrowOuterWidth;
  395. border-right-width: 0;
  396. border-left-color: #999; // IE8 fallback
  397. border-left-color: @popoverArrowOuterColor;
  398. &:after {
  399. right: 1px;
  400. border-right-width: 0;
  401. border-left-color: @popoverArrowColor;
  402. bottom: -@popoverArrowWidth;
  403. }
  404. }
  405. &.leftBottom .arrow {
  406. top: 90%;
  407. right: -@popoverArrowOuterWidth;
  408. margin-top: -@popoverArrowOuterWidth;
  409. border-right-width: 0;
  410. border-left-color: #999; // IE8 fallback
  411. border-left-color: @popoverArrowOuterColor;
  412. &:after {
  413. right: 1px;
  414. border-right-width: 0;
  415. border-left-color: @popoverArrowColor;
  416. bottom: -@popoverArrowWidth;
  417. }
  418. }
  419. &.topLeft .arrow {
  420. left: 10%;
  421. margin-left: -@popoverArrowOuterWidth;
  422. border-bottom-width: 0;
  423. border-top-color: #999; // IE8 fallback
  424. border-top-color: @popoverArrowOuterColor;
  425. bottom: -@popoverArrowOuterWidth;
  426. &:after {
  427. bottom: 1px;
  428. margin-left: -@popoverArrowWidth;
  429. border-bottom-width: 0;
  430. border-top-color: @popoverArrowColor;
  431. }
  432. }
  433. &.topRight .arrow {
  434. left: 90%;
  435. margin-left: -@popoverArrowOuterWidth;
  436. border-bottom-width: 0;
  437. border-top-color: #999; // IE8 fallback
  438. border-top-color: @popoverArrowOuterColor;
  439. bottom: -@popoverArrowOuterWidth;
  440. &:after {
  441. bottom: 1px;
  442. margin-left: -@popoverArrowWidth;
  443. border-bottom-width: 0;
  444. border-top-color: @popoverArrowColor;
  445. }
  446. }
  447. }
  448. // typeahead max height
  449. .typeahead {
  450. max-height: 300px;
  451. overflow-y: auto;
  452. }
  453. // Labels & Badges
  454. .label-tag {
  455. background-color: @purple;
  456. color: darken(@white, 5%);
  457. white-space: nowrap;
  458. border-radius: 3px;
  459. text-shadow: none;
  460. font-size: 13px;
  461. padding: 2px 6px;
  462. border-width: 1px;
  463. border-style: solid;
  464. .icon-tag {
  465. position: relative;
  466. top: 1px;
  467. padding-right: 4px;
  468. }
  469. }
  470. .label-tag:hover {
  471. opacity: 0.85;
  472. background-color: darken(@purple, 10%);
  473. }
  474. .label-tag-email {
  475. padding-left: 25px;
  476. background: @black url(/img/envelope.png) 5px 50% no-repeat !important;
  477. border-color: @black !important;
  478. font-size: 12px;
  479. font-weight: normal;
  480. border-radius: 5px;
  481. }
  482. // inspector
  483. .inspector-request-table {
  484. td {
  485. padding: 5px;
  486. }
  487. td:first-child {
  488. white-space: nowrap;
  489. }
  490. }
  491. .modal-body {
  492. padding: 0;
  493. }
  494. // pre
  495. code, pre {
  496. background-color: @codeTagBackground;
  497. color: @textColor;
  498. border: 1px solid darken(@codeTagBackground, 15%);
  499. padding: 2px;
  500. }
  501. .dropdown-menu {
  502. min-width: 140px;
  503. > li > a {
  504. padding: 3px 20px 3px 15px;
  505. i {
  506. padding-right: 5px;
  507. color: @linkColorDisabled;
  508. }
  509. }
  510. }
  511. .dropdown-submenu>.dropdown-menu.dropdown-submenu-left {
  512. left: auto;
  513. right: 100%;
  514. margin-left: 0;
  515. margin-right: -1px;
  516. }