overrides.less 10 KB

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