overrides.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  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: @codeTagBackground;
  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. height: 31px;
  149. }
  150. .row-close {
  151. padding: 0px;
  152. margin: 0px;
  153. background: @grafanaPanelBackground;
  154. text-align: center;
  155. }
  156. .row-close-buttons {
  157. position: absolute;
  158. left: 0;
  159. }
  160. .row-open {
  161. margin-top: 5px;
  162. left:-34px;
  163. position: absolute;
  164. z-index: 100;
  165. transition: .10s left;
  166. transition-delay: .10s;
  167. -webkit-transition-delay: .10s;
  168. }
  169. .row-open:hover {
  170. left:-12px;
  171. }
  172. .odd {
  173. background-color: @tableBackgroundAccent;
  174. }
  175. .nomargin {
  176. margin: 0px;
  177. }
  178. [ng\:cloak], [ng-cloak], .ng-cloak {
  179. display: none !important;
  180. }
  181. .table tbody + tbody {
  182. border-top: 0px;
  183. }
  184. .ui-draggable-dragging {
  185. display: block;
  186. z-index: 9999;
  187. }
  188. .link {
  189. color: @linkColor;
  190. cursor: pointer;
  191. }
  192. .link:hover {
  193. color: @linkColorHover;
  194. }
  195. .pointer {
  196. cursor: pointer;
  197. }
  198. .popover {
  199. max-width: 480px;
  200. }
  201. .tiny {
  202. font-size: 50%;
  203. }
  204. .smaller {
  205. font-size: 70%;
  206. }
  207. .small {
  208. font-size: 85%;
  209. }
  210. .large {
  211. font-size: 120%;
  212. }
  213. .strong {
  214. font-weight: bold;
  215. }
  216. a {
  217. cursor: pointer;
  218. }
  219. .normal {
  220. font-weight: normal;
  221. }
  222. .light {
  223. font-weight: 200;
  224. }
  225. .input-smaller {
  226. width: 75px;
  227. }
  228. .string {color:lighten(@textColor, 5%)}
  229. .number {color:lighten(@infoText, 5%)}
  230. .boolean {color:lighten(@warningText, 5%)}
  231. .key {color:lighten(@errorText, 5%)}
  232. .btn-active {
  233. background-color: #E6E6E6;
  234. background-image: none;
  235. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
  236. outline: 0 none
  237. }
  238. .remove:hover {
  239. background-color: @btnDangerBackgroundHighlight;
  240. }
  241. .faded {
  242. opacity: 0.2;
  243. }
  244. div.flot-text {
  245. color: @textColor !important;
  246. }
  247. .page-alert-list {
  248. z-index:8000;
  249. min-width: 300px;
  250. max-width: 300px;
  251. position: fixed;
  252. right: 20px;
  253. top: 56px;
  254. }
  255. .alert {
  256. color: @white;
  257. padding-bottom: 13px;
  258. position: relative;
  259. }
  260. .alert-close {
  261. position: absolute;
  262. top: -4px;
  263. right: -2px;
  264. width: 19px;
  265. height: 19px;
  266. padding: 0;
  267. background: @grayLighter;
  268. border-radius: 50%;
  269. border: none;
  270. font-size: 1.1rem;
  271. color: @grayDarker;
  272. }
  273. .alert-title {
  274. font-weight: bold;
  275. padding-bottom: 2px;
  276. }
  277. .alert-warning {
  278. background-color: @warningBackground;
  279. border-color: @warningBorder;
  280. }
  281. /* ===================================================
  282. * popover-extra-placements.css v0.1
  283. * http://twitter.github.com/bootstrap-popover-extra-placements
  284. * ===================================================
  285. * Copyright 2012 Daniel Kleehammer
  286. *
  287. * Licensed under the Apache License, Version 2.0 (the "License");
  288. * you may not use this file except in compliance with the License.
  289. * You may obtain a copy of the License at
  290. *
  291. * http://www.apache.org/licenses/LICENSE-2.0
  292. *
  293. * Unless required by applicable law or agreed to in writing, software
  294. * distributed under the License is distributed on an "AS IS" BASIS,
  295. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  296. * See the License for the specific language governing permissions and
  297. * limitations under the License.
  298. * ========================================================== */
  299. /*************************
  300. * Top Positions
  301. *************************/
  302. /** Top Left **/
  303. .popover.topLeft {
  304. margin-top: -10px;
  305. }
  306. .popover.topLeft .arrow {
  307. bottom: -10px;
  308. left: 25%;
  309. margin-left: -10px;
  310. border-width: 10px 10px 0;
  311. border-top-color: @popoverTitleBackground;
  312. }
  313. .popover.topLeft .arrow:after {
  314. border-width: 11px 11px 0;
  315. border-top-color: rgba(0, 0, 0, 0.25);
  316. bottom: -1px;
  317. left: -11px;
  318. }
  319. /** Top Right **/
  320. .popover.topRight {
  321. margin-top: -10px;
  322. }
  323. .popover.topRight .arrow {
  324. bottom: -10px;
  325. left: 75%;
  326. margin-left: -10px;
  327. border-width: 10px 10px 0;
  328. border-top-color: @popoverTitleBackground;;
  329. }
  330. .popover.topRight .arrow:after {
  331. border-width: 11px 11px 0;
  332. border-top-color: rgba(0, 0, 0, 0.25);
  333. bottom: -1px;
  334. left: -11px;
  335. }
  336. /*************************
  337. * Right Positions
  338. *************************/
  339. .popover {
  340. &.rightTop .arrow {
  341. top: 10%;
  342. left: -@popoverArrowOuterWidth;
  343. margin-top: -@popoverArrowOuterWidth;
  344. border-left-width: 0;
  345. border-right-color: #999; // IE8 fallback
  346. border-right-color: @popoverArrowOuterColor;
  347. &:after {
  348. left: 1px;
  349. bottom: -@popoverArrowWidth;
  350. border-left-width: 0;
  351. border-right-color: @popoverArrowColor;
  352. }
  353. }
  354. &.rightBottom .arrow {
  355. top: 90%;
  356. left: -@popoverArrowOuterWidth;
  357. margin-top: -@popoverArrowOuterWidth;
  358. border-left-width: 0;
  359. border-right-color: #999; // IE8 fallback
  360. border-right-color: @popoverArrowOuterColor;
  361. &:after {
  362. left: 1px;
  363. bottom: -@popoverArrowWidth;
  364. border-left-width: 0;
  365. border-right-color: @popoverArrowColor;
  366. }
  367. }
  368. &.bottomLeft .arrow {
  369. left: 10%;
  370. margin-left: -@popoverArrowOuterWidth;
  371. border-top-width: 0;
  372. border-bottom-color: #999; // IE8 fallback
  373. border-bottom-color: @popoverArrowOuterColor;
  374. top: -@popoverArrowOuterWidth;
  375. &:after {
  376. top: 1px;
  377. margin-left: -@popoverArrowWidth;
  378. border-top-width: 0;
  379. border-bottom-color: @popoverArrowColor;
  380. }
  381. }
  382. &.bottomRight .arrow {
  383. left: 90%;
  384. margin-left: -@popoverArrowOuterWidth;
  385. border-top-width: 0;
  386. border-bottom-color: #999; // IE8 fallback
  387. border-bottom-color: @popoverArrowOuterColor;
  388. top: -@popoverArrowOuterWidth;
  389. &:after {
  390. top: 1px;
  391. margin-left: -@popoverArrowWidth;
  392. border-top-width: 0;
  393. border-bottom-color: @popoverArrowColor;
  394. }
  395. }
  396. &.leftTop .arrow {
  397. top: 10%;
  398. right: -@popoverArrowOuterWidth;
  399. margin-top: -@popoverArrowOuterWidth;
  400. border-right-width: 0;
  401. border-left-color: #999; // IE8 fallback
  402. border-left-color: @popoverArrowOuterColor;
  403. &:after {
  404. right: 1px;
  405. border-right-width: 0;
  406. border-left-color: @popoverArrowColor;
  407. bottom: -@popoverArrowWidth;
  408. }
  409. }
  410. &.leftBottom .arrow {
  411. top: 90%;
  412. right: -@popoverArrowOuterWidth;
  413. margin-top: -@popoverArrowOuterWidth;
  414. border-right-width: 0;
  415. border-left-color: #999; // IE8 fallback
  416. border-left-color: @popoverArrowOuterColor;
  417. &:after {
  418. right: 1px;
  419. border-right-width: 0;
  420. border-left-color: @popoverArrowColor;
  421. bottom: -@popoverArrowWidth;
  422. }
  423. }
  424. &.topLeft .arrow {
  425. left: 10%;
  426. margin-left: -@popoverArrowOuterWidth;
  427. border-bottom-width: 0;
  428. border-top-color: #999; // IE8 fallback
  429. border-top-color: @popoverArrowOuterColor;
  430. bottom: -@popoverArrowOuterWidth;
  431. &:after {
  432. bottom: 1px;
  433. margin-left: -@popoverArrowWidth;
  434. border-bottom-width: 0;
  435. border-top-color: @popoverArrowColor;
  436. }
  437. }
  438. &.topRight .arrow {
  439. left: 90%;
  440. margin-left: -@popoverArrowOuterWidth;
  441. border-bottom-width: 0;
  442. border-top-color: #999; // IE8 fallback
  443. border-top-color: @popoverArrowOuterColor;
  444. bottom: -@popoverArrowOuterWidth;
  445. &:after {
  446. bottom: 1px;
  447. margin-left: -@popoverArrowWidth;
  448. border-bottom-width: 0;
  449. border-top-color: @popoverArrowColor;
  450. }
  451. }
  452. }
  453. // typeahead max height
  454. .typeahead {
  455. max-height: 300px;
  456. overflow-y: auto;
  457. }
  458. // Labels & Badges
  459. .label-tag {
  460. background-color: @purple;
  461. color: darken(@white, 5%);
  462. white-space: nowrap;
  463. border-radius: 3px;
  464. text-shadow: none;
  465. font-size: 13px;
  466. padding: 2px 6px;
  467. border-width: 1px;
  468. border-style: solid;
  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. .label-tag-email {
  480. padding-left: 25px;
  481. background: @black url(/img/envelope.png) 5px 50% no-repeat !important;
  482. border-color: @black !important;
  483. font-size: 12px;
  484. font-weight: normal;
  485. border-radius: 5px;
  486. }
  487. // inspector
  488. .inspector-request-table {
  489. td {
  490. padding: 5px;
  491. }
  492. td:first-child {
  493. white-space: nowrap;
  494. }
  495. }
  496. .modal-body {
  497. padding: 0;
  498. }
  499. // pre
  500. code, pre {
  501. background-color: @codeTagBackground;
  502. color: @textColor;
  503. border: 1px solid darken(@codeTagBackground, 15%);
  504. padding: 2px;
  505. }
  506. .dropdown-menu {
  507. min-width: 140px;
  508. > li > a {
  509. padding: 3px 20px 3px 15px;
  510. i {
  511. padding-right: 5px;
  512. color: @linkColorDisabled;
  513. }
  514. }
  515. }
  516. .dropdown-submenu>.dropdown-menu.dropdown-submenu-left {
  517. left: auto;
  518. right: 100%;
  519. margin-left: 0;
  520. margin-right: -1px;
  521. }