overrides.less 11 KB

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