overrides.less 10 KB

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