overrides.less 11 KB

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