overrides.less 8.8 KB

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