main.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. /* force the vertical window scrollbar */
  2. html {
  3. overflow-y: hidden;
  4. }
  5. /* prevent body from hiding under the navbar */
  6. body {
  7. padding-top: 50px;
  8. }
  9. .loadOverlay {
  10. position: absolute;
  11. top: 0px;
  12. left: 0px;
  13. width: 100%;
  14. height: 100%;
  15. z-index: 2000;
  16. font-size: 10vh;
  17. font-family: sans-serif;
  18. padding: 40vh 0 40vh 0;
  19. font-weight: bold;
  20. text-align: center;
  21. }
  22. .navbar-highlight {
  23. display: none;
  24. position: fixed;
  25. margin-top: 5px;
  26. height: 26px;
  27. width: 100%;
  28. text-align: center;
  29. overflow: hidden;
  30. z-index: 30;
  31. pointer-events: none !important;
  32. }
  33. .navbar-highlight-content {
  34. position: relative;
  35. display: inline-block;
  36. margin: 0 auto;
  37. height: 26px;
  38. min-width: 500px;
  39. background-color: rgba(0, 0, 0, 0.7);
  40. padding-top: 2px;
  41. padding-bottom: 2px;
  42. padding-left: 15px;
  43. padding-right: 15px;
  44. border-radius: 10px;
  45. color: lightgrey;
  46. pointer-events: auto !important;
  47. }
  48. .navbar-highlight-bar {
  49. cursor: pointer;
  50. }
  51. .navbar-highlight-button-right {
  52. cursor: pointer;
  53. padding-left: 10px;
  54. }
  55. .modal-wide .modal-dialog {
  56. width: 80%;
  57. }
  58. /* fix # anchors scrolling under the navbar
  59. https://github.com/twbs/bootstrap/issues/1768#issuecomment-46519033
  60. */
  61. h1 {
  62. position: relative;
  63. z-index: -1;
  64. }
  65. h2 {
  66. position: relative;
  67. z-index: -2;
  68. }
  69. h1:before, h2:before {
  70. display: block;
  71. content: " ";
  72. margin-top: -70px;
  73. height: 70px;
  74. visibility: hidden;
  75. }
  76. .p {
  77. display: block;
  78. margin-top: 15px;
  79. }
  80. .option-row,
  81. .option-control {
  82. vertical-align: top;
  83. padding: 10px;
  84. padding-top: 30px;
  85. padding-left: 30px;
  86. }
  87. .option-info {
  88. padding: 10px;
  89. }
  90. .dashboard-submenu-info {
  91. display: block;
  92. margin-top: 10px;
  93. }
  94. .dashboard-context-info {
  95. display: block;
  96. margin-top: 10px;
  97. }
  98. #masthead h1 {
  99. /*font-size: 30px;*/
  100. line-height: 1;
  101. padding-top: 30px;
  102. }
  103. #masthead .well {
  104. margin-top: 4%;
  105. }
  106. /* fix the navbar shifting when a modal is open */
  107. /* https://github.com/twbs/bootstrap/issues/14040#issuecomment-159891033 */
  108. body.modal-open {
  109. width: 100% !important;
  110. padding-right: 0 !important;
  111. /* overflow-y: scroll !important; */
  112. /* position: fixed !important;*/
  113. overflow: visible;
  114. }
  115. /* make accordion use the whole header bar for expand/collapse */
  116. .panel-title a {
  117. display: block;
  118. padding: 10px 15px;
  119. margin: -10px -15px;
  120. }
  121. /*
  122. * Side navigation
  123. *
  124. * Scrollspy and affixed enhanced navigation to highlight sections and secondary
  125. * sections of docs content.
  126. */
  127. .affix {
  128. position: static;
  129. top: 70px !important;
  130. /*width: 220px;*/
  131. }
  132. .dashboard-sidebar {
  133. max-height: calc(100% - 70px) !important;
  134. overflow-y: auto;
  135. /*width: 220px !important;*/
  136. }
  137. /* By default it's not affixed in mobile views, so undo that */
  138. .dashboard-sidebar.affix {
  139. position: static;
  140. }
  141. /* First level of nav */
  142. .dashboard-sidenav {
  143. margin-top: 20px;
  144. margin-bottom: 20px;
  145. }
  146. /* All levels of nav */
  147. .dashboard-sidebar .nav > li > a {
  148. display: block;
  149. padding: 4px 20px;
  150. font-size: 13px;
  151. font-weight: 500;
  152. color: #767676;
  153. }
  154. .dashboard-sidebar .nav > li > a > .svg-inline--fa {
  155. width: 20px;
  156. text-align: center;
  157. }
  158. .dashboard-sidebar .nav > li > a:hover,
  159. .dashboard-sidebar .nav > li > a:focus {
  160. padding-left: 19px;
  161. color: #563d7c;
  162. text-decoration: none;
  163. background-color: transparent;
  164. border-left: 1px solid #563d7c;
  165. }
  166. .dashboard-sidebar .nav > .active > a,
  167. .dashboard-sidebar .nav > .active:hover > a,
  168. .dashboard-sidebar .nav > .active:focus > a {
  169. padding-left: 18px;
  170. font-weight: bold;
  171. color: #563d7c;
  172. background-color: transparent;
  173. border-left: 2px solid #563d7c;
  174. }
  175. /* Nav: second level (shown on .active) */
  176. .dashboard-sidebar .nav .nav {
  177. display: none; /* Hide by default, but at >768px, show it */
  178. padding-bottom: 10px;
  179. }
  180. .dashboard-sidebar .nav .nav > li > a {
  181. padding-top: 1px;
  182. padding-bottom: 1px;
  183. padding-left: 30px;
  184. font-size: 12px;
  185. font-weight: normal;
  186. }
  187. .dashboard-sidebar .nav .nav > li > a:hover,
  188. .dashboard-sidebar .nav .nav > li > a:focus {
  189. padding-left: 29px;
  190. }
  191. .dashboard-sidebar .nav .nav > .active > a,
  192. .dashboard-sidebar .nav .nav > .active:hover > a,
  193. .dashboard-sidebar .nav .nav > .active:focus > a {
  194. padding-left: 28px;
  195. font-weight: 500;
  196. }
  197. .dropdown-menu {
  198. min-width: 200px;
  199. }
  200. .dropdown-menu.columns-2 {
  201. margin: 0;
  202. padding: 0;
  203. width: 400px;
  204. }
  205. .dropdown-menu li a {
  206. padding: 5px 15px;
  207. font-weight: 300;
  208. }
  209. .dropdown-menu.multi-column {
  210. overflow-x: hidden;
  211. }
  212. .multi-column-dropdown {
  213. list-style: none;
  214. padding: 0;
  215. }
  216. .multi-column-dropdown li a {
  217. display: inline-block;
  218. clear: both;
  219. line-height: 1.428571429;
  220. white-space: normal;
  221. }
  222. .multi-column-dropdown li a:hover {
  223. text-decoration: none;
  224. color: #f5f5f5;
  225. background-color: #262626;
  226. }
  227. .scrollable-menu {
  228. height: auto;
  229. max-height: 80vh;
  230. overflow-x: hidden;
  231. }
  232. .scrollable-menu-50 {
  233. height: auto;
  234. max-height: 50vh;
  235. overflow-x: hidden;
  236. }
  237. /* Back to top (hidden on mobile) */
  238. .back-to-top,
  239. .dashboard-theme-toggle {
  240. display: none;
  241. padding: 4px 10px;
  242. margin-top: 10px;
  243. margin-left: 10px;
  244. font-size: 12px;
  245. font-weight: 500;
  246. color: #999;
  247. }
  248. .back-to-top:hover,
  249. .dashboard-theme-toggle:hover {
  250. color: #563d7c;
  251. text-decoration: none;
  252. }
  253. .dashboard-theme-toggle {
  254. margin-top: 0;
  255. }
  256. .container {
  257. width: calc(100% - 20px) !important;
  258. }
  259. .charts-body {
  260. display: inline-block;
  261. width: 100%;
  262. }
  263. .sidebar-body {
  264. position: absolute;
  265. display: none;
  266. height: 100vh;
  267. }
  268. .dashboard-section-container {
  269. display: block;
  270. width: 100%;
  271. page-break-before: auto;
  272. page-break-after: auto;
  273. page-break-inside: auto;
  274. }
  275. .dashboard-print-row {
  276. display: block;
  277. width: 100%;
  278. page-break-before: auto;
  279. page-break-after: auto;
  280. page-break-inside: avoid;
  281. }
  282. .netdata-chartblock-container {
  283. display: inline-block;
  284. }
  285. /* https://github.com/seiyria/bootstrap-slider/issues/746 */
  286. .tooltip {
  287. -webkit-user-select: none;
  288. -moz-user-select: none;
  289. -ms-user-select: none;
  290. user-select: none;
  291. }
  292. .action-button {
  293. position: relative;
  294. display: inline-block;
  295. color: gray;
  296. cursor: pointer;
  297. margin: 0 auto;
  298. width: 30px;
  299. height: 30px;
  300. font-size: 25px;
  301. }
  302. .ripple {
  303. position: relative;
  304. /*overflow: hidden;*/
  305. transform: translate3d(0, 0, 0)
  306. }
  307. .ripple:after {
  308. content: "";
  309. display: block;
  310. position: absolute;
  311. width: 100%;
  312. height: 100%;
  313. top: 0;
  314. left: 0;
  315. pointer-events: none;
  316. background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
  317. background-repeat: no-repeat;
  318. background-position: 50%;
  319. transform: scale(18, 18); /* the size of the ripple */
  320. opacity: 0;
  321. transition: transform .5s, opacity 1s
  322. }
  323. .ripple:active:after {
  324. transform: scale(0, 0);
  325. opacity: .2;
  326. transition: 0s
  327. }
  328. /* -------------------------------------------------------------------------- */
  329. #alarms_log_table tbody tr {
  330. cursor: pointer;
  331. }
  332. #my-netdata-dropdown-content {
  333. width: 500px;
  334. }
  335. #my-netdata-dropdown-content a:hover {
  336. color: #fff;
  337. }
  338. #my-netdata-dropdown-content .info-item {
  339. height: 32px;
  340. line-height: 32px;
  341. padding-left: 14px;
  342. }
  343. #my-netdata-dropdown-content .agent-item {
  344. display: flex;
  345. align-items: center;
  346. min-height: 32px;
  347. font-weight: 300;
  348. }
  349. #my-netdata-dropdown-content .agent-item .__title {
  350. cursor: pointer;
  351. }
  352. #my-netdata-dropdown-content .agent-item:hover {
  353. background-color: #262626;
  354. }
  355. #my-netdata-dropdown-content .agent-item a:hover {
  356. text-decoration: none;
  357. }
  358. #my-netdata-dropdown-content .agent-item > :first-child {
  359. width: 40px;
  360. text-align: center;
  361. }
  362. #my-netdata-dropdown-content .agent-item > :last-child {
  363. width: 40px;
  364. text-align: center;
  365. }
  366. #my-netdata-dropdown-content .agent-item :nth-child(2) {
  367. min-width: 420px;
  368. line-height: 32px;
  369. }
  370. .agent-item--separated {
  371. border-top: 1px solid #333;
  372. }
  373. .agent-item--alternate a {
  374. color: #999;
  375. }
  376. #my-netdata-dropdown-content .agent-alternate-urls.collapsed {
  377. display: none;
  378. }
  379. #my-netdata-dropdown-content hr {
  380. display: block;
  381. margin-top: 5px;
  382. margin-bottom: 0;
  383. border-top: 1px solid #333;
  384. height: 4px;
  385. }
  386. /* white theme overrides */
  387. #my-netdata-dropdown-content.theme-white hr {
  388. border-top: 1px solid #ddd;
  389. }
  390. #my-netdata-dropdown-content.theme-white .agent-item:hover {
  391. background-color: #e6e6e6;
  392. }
  393. #my-netdata-dropdown-content.theme-white a {
  394. color: #888;
  395. }
  396. #my-netdata-dropdown-content.theme-white a:hover {
  397. color: #000;
  398. }
  399. #sign-in-iframe {
  400. background-color: #fff;
  401. border: none;
  402. }
  403. #cloud-menu {
  404. }
  405. #cloud-menu.dropdown-menu > li > a {
  406. text-align: left;
  407. }
  408. #my-netdata-menu-filter-input {
  409. color: #fff;
  410. border: none;
  411. background-color: #4b4f55;
  412. width: 472px;
  413. margin: 5px 14px;
  414. margin-right: 0;
  415. padding: 2px 5px;
  416. outline: none;
  417. }
  418. #my-netdata-menu-filter-input::placeholder {
  419. opacity: 0.7;
  420. }
  421. #my-netdata-dropdown-content.theme-white #my-netdata-menu-filter-input {
  422. background-color: #e7e7e7;
  423. color: #555;
  424. }
  425. .filter-control {
  426. position: relative;
  427. }
  428. .filter-control .filter-control__clear {
  429. cursor: pointer;
  430. position: absolute;
  431. top: 7px;
  432. right: 19px;
  433. }
  434. #myNetdataDropdownParent {
  435. float: left;
  436. }
  437. #hostname {
  438. font-size: 18px;
  439. overflow: hidden;
  440. text-overflow: ellipsis;
  441. max-width: 220px;
  442. }
  443. #hostnametext {
  444. white-space: pre;
  445. float: left;
  446. text-overflow: ellipsis;
  447. overflow: hidden;
  448. max-width: 160px;
  449. }
  450. .sign-in-btn {
  451. background-color: #1E2126;
  452. }
  453. .sign-in-btn.theme-white {
  454. background-color: #e6e6e6;
  455. }
  456. .sign-in-btn.theme-white span {
  457. color: #000;
  458. }
  459. #sign-in-banner {
  460. position: fixed;
  461. bottom: 0;
  462. left: 0;
  463. right: 0;
  464. z-index: 9999;
  465. /* margin: 5px 0; */
  466. background-color: #1E2126;
  467. height: 44px;
  468. line-height: 44px;
  469. text-align: center;
  470. }
  471. #sign-in-banner.theme-white {
  472. background-color: #e6e6e6;
  473. }
  474. #sign-in-banner .__link {
  475. color: #17CE8A;
  476. }
  477. #sign-in-banner .__link:hover {
  478. text-decoration: underline;
  479. }
  480. #sign-in-banner .__close {
  481. cursor: pointer;
  482. float: right;
  483. }
  484. #sign-in-banner .__close .fa-times {
  485. margin-left: 5px;
  486. color: #17CE8A;
  487. }
  488. .beta {
  489. color:#FFCC00;
  490. }
  491. @media (min-width: 1400px) {
  492. #hostname {
  493. max-width: 600px !important;
  494. }
  495. #hostnametext {
  496. max-width: 540px !important;
  497. }
  498. }
  499. @media (min-width: 1360px) {
  500. .container {
  501. padding-left: 3% !important;
  502. }
  503. #hostname {
  504. max-width: 280px !important;
  505. }
  506. #hostnametext {
  507. max-width: 220px !important;
  508. }
  509. .charts-body {
  510. width: calc(100% - 263px) !important;
  511. padding-left: 1% !important;
  512. padding-right: 2% !important;
  513. }
  514. .sidebar-body {
  515. display: inline-block !important;
  516. width: 263px !important;
  517. }
  518. /* Widen the fixed sidebar again */
  519. .dashboard-sidebar.affix,
  520. .dashboard-sidebar.affix-top,
  521. .dashboard-sidebar.affix-bottom {
  522. width: 263px !important;
  523. }
  524. }
  525. @media (min-width: 1200px) {
  526. #hostname {
  527. max-width: 100px;
  528. }
  529. #hostnametext {
  530. max-width: 40px;
  531. }
  532. .container {
  533. padding-left: 2% !important;
  534. }
  535. .charts-body {
  536. width: calc(100% - 233px) !important;
  537. padding-left: 1% !important;
  538. padding-right: 1% !important;
  539. }
  540. .sidebar-body {
  541. display: inline-block !important;
  542. width: 233px !important;
  543. }
  544. /* Widen the fixed sidebar again */
  545. .dashboard-sidebar.affix,
  546. .dashboard-sidebar.affix-top,
  547. .dashboard-sidebar.affix-bottom {
  548. width: 233px !important;
  549. }
  550. }
  551. @media (min-width: 992px) {
  552. .container {
  553. padding-left: 0% !important;
  554. }
  555. .charts-body {
  556. width: calc(100% - 213px) !important;
  557. padding-left: 1% !important;
  558. padding-right: 0% !important;
  559. }
  560. .sidebar-body {
  561. display: inline-block !important;
  562. width: 213px !important;
  563. }
  564. .dashboard-sidebar .nav > .active > ul {
  565. display: block;
  566. }
  567. /* Widen the fixed sidebar */
  568. .dashboard-sidebar.affix,
  569. .dashboard-sidebar.affix-top,
  570. .dashboard-sidebar.affix-bottom {
  571. width: 213px !important;
  572. }
  573. .dashboard-sidebar.affix {
  574. position: fixed; /* Undo the static from mobile first approach */
  575. top: 20px;
  576. }
  577. .dashboard-sidebar.affix-bottom {
  578. position: absolute; /* Undo the static from mobile first approach */
  579. }
  580. .dashboard-sidebar.affix-bottom .dashboard-sidenav,
  581. .dashboard-sidebar.affix .dashboard-sidenav {
  582. margin-top: 0;
  583. margin-bottom: 0;
  584. }
  585. }
  586. @media (min-width: 860px) {
  587. .dashboard-sidebar {
  588. padding-left: 20px;
  589. }
  590. }
  591. @media (min-width: 768px) {
  592. .dashboard-sidebar {
  593. padding-left: 20px;
  594. }
  595. .charts-body {
  596. padding-left: 0%;
  597. padding-right: 0%;
  598. }
  599. .back-to-top,
  600. .dashboard-theme-toggle {
  601. display: block;
  602. }
  603. }
  604. @media print {
  605. body {
  606. overflow: visible !important;
  607. -webkit-print-color-adjust: exact;
  608. page-break-inside: auto;
  609. page-break-before: auto;
  610. page-break-after: auto;
  611. }
  612. .dashboard-section {
  613. page-break-inside: auto;
  614. page-break-before: auto;
  615. page-break-after: auto;
  616. }
  617. .dashboard-subsection {
  618. page-break-before: avoid;
  619. page-break-after: auto;
  620. page-break-inside: auto;
  621. }
  622. .charts-body {
  623. padding-left: 0%;
  624. padding-right: 0%;
  625. display: block;
  626. page-break-inside: auto;
  627. page-break-before: auto;
  628. page-break-after: auto;
  629. }
  630. .back-to-top,
  631. .dashboard-theme-toggle {
  632. display: block;
  633. }
  634. }