Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.min.less 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. /* */
  2. /* Copyright 2016,2020 JS Foundation and other contributors, https://js.foundation/ */
  3. /* Copyright 2016 IBM Corp. */
  4. /* Copyright 2015 Andrei Tatar */
  5. /* */
  6. /* Licensed under the Apache License, Version 2.0 (the "License"); */
  7. /* you may not use this file except in compliance with the License. */
  8. /* You may obtain a copy of the License at */
  9. /* */
  10. /* http://www.apache.org/licenses/LICENSE-2.0 */
  11. /* */
  12. /* Unless required by applicable law or agreed to in writing, software */
  13. /* distributed under the License is distributed on an "AS IS" BASIS, */
  14. /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
  15. /* See the License for the specific language governing permissions and */
  16. /* limitations under the License. */
  17. /* */
  18. @media(max-width: 959px) {
  19. .md-sidenav-left, md-sidenav {
  20. top: 48px !important;
  21. z-index: 99;
  22. }
  23. }
  24. @media (max-width: 959px) and (min-width: 0) and (orientation: portrait) {
  25. md-toolbar {
  26. min-height: 48px;
  27. height: 48px;
  28. max-height: 48px;
  29. }
  30. }
  31. @media(min-width: 960px) {
  32. .md-sidenav-left, md-sidenav {
  33. top: 64px;
  34. z-index: 99;
  35. }
  36. }
  37. @media(max-width: 660px) {
  38. md-sidenav,
  39. md-sidenav.md-locked-open,
  40. md-sidenav.md-closed.md-locked-open-add-active {
  41. min-width: 64px !important;
  42. width: auto;
  43. max-width: 200px !important;
  44. }
  45. }
  46. @media(min-width: 661px) {
  47. md-sidenav,
  48. md-sidenav.md-locked-open,
  49. md-sidenav.md-closed.md-locked-open-add-active {
  50. min-width: 64px !important;
  51. width: auto;
  52. max-width: 320px !important;
  53. }
  54. }
  55. md-sidenav ng-md-icon {
  56. padding-right: 4px;
  57. }
  58. md-sidenav i {
  59. padding-right: 4px;
  60. }
  61. md-sidenav md-list-item .md-list-item-inner>p {
  62. line-height: 20px;
  63. }
  64. md-card > md-list > md-list-item > div > md-icon > ui-icon > ng-md-icon {
  65. vertical-align:unset !important;
  66. }
  67. md-toast .md-toast-content {
  68. height: auto;
  69. }
  70. md-toast .md-toast-error {
  71. color: rgba(255, 64, 41, 0.84);
  72. font-weight: 500;
  73. font-size: large;
  74. }
  75. md-backdrop.md-sidenav-backdrop {
  76. z-index: 80;
  77. }
  78. md-card {
  79. box-shadow: none;
  80. }
  81. .md-button {
  82. min-width: 64px;
  83. }
  84. .md-tooltip {
  85. background-color: #888 !important;
  86. color: #fff !important;
  87. border-radius: 3px;
  88. opacity: 1 !important;
  89. }
  90. .md-tooltip.md-origin-bottom {
  91. margin-top: -6px;
  92. margin-left: -8px;
  93. }
  94. .node-red-ui--notabs {
  95. color: #888;
  96. font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
  97. display: flex;
  98. height: 100%;
  99. width: 100%;
  100. align-items: center;
  101. justify-content: center;
  102. opacity: 1;
  103. animation-name: fadeInOpacity;
  104. animation-iteration-count: 1;
  105. animation-timing-function: ease-in;
  106. animation-duration: 2.5s;
  107. }
  108. .node-red-ui--loading {
  109. color: #888;
  110. font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
  111. display: flex;
  112. height: 100%;
  113. width: 100%;
  114. align-items: center;
  115. justify-content: center;
  116. }
  117. .node-red-ui--inline-link {
  118. width: 100%;
  119. height: 100%;
  120. position: absolute;
  121. }
  122. .node-red-ui--inline-link iframe {
  123. width: 100%;
  124. height: 100%;
  125. }
  126. .material-icons {
  127. vertical-align: middle;
  128. }
  129. .ie9 img[src$=".svg"] {
  130. width: 100%;
  131. }
  132. @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  133. img[src$=".svg"] {
  134. width: 100%;
  135. }
  136. }
  137. @keyframes fadeInOpacity {
  138. 0% {
  139. opacity: 0;
  140. }
  141. 30% {
  142. opacity: 0;
  143. }
  144. 100% {
  145. opacity: 1;
  146. }
  147. }
  148. .flip-icon {
  149. animation: flip-icon 0.3s linear both;
  150. }
  151. @keyframes flip-icon {
  152. 0% {
  153. transform: rotateY(180deg);
  154. }
  155. 100% {
  156. transform: rotateY(0deg);
  157. }
  158. }
  159. @supports (-ms-overflow-style: none) {
  160. overflow:auto !important;
  161. }
  162. /*
  163. ALL COMPONENTS/CONTENT
  164. */
  165. @baseFont: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
  166. @baseColor: #fff;
  167. @pageBackgroundColor: #eee;
  168. @pageSidebarBackgroundColor: #eee;
  169. @pageTitlebarBackgroundColor: #0094CE;
  170. @groupBackgroundColor: #fff;
  171. @groupTextColor: #00A4DE;
  172. @groupBorderColor: #fff;
  173. @widgetTextColor: #000;
  174. @widgetBackgroundColor: #4FBAE4;
  175. @widgetBorderColor: #fff;
  176. @nrTheme: true;
  177. @nrTemplateTheme: true;
  178. @nrUnitHeight: 24px;
  179. @wtc-light: boolean(luma(@widgetTextColor) > 50%);
  180. @wbc-light: boolean(luma(@widgetBackgroundColor) > 50%);
  181. // define some CSS variables for user usage
  182. :root {
  183. --nr-dashboard-pageBackgroundColor: @pageBackgroundColor;
  184. --nr-dashboard-pageTitlebarBackgroundColor: @pageTitlebarBackgroundColor;
  185. --nr-dashboard-pageSidebarBackgroundColor: @pageSidebarBackgroundColor;
  186. --nr-dashboard-groupTextColor: @groupTextColor;
  187. --nr-dashboard-groupBackgroundColor: @groupBackgroundColor;
  188. --nr-dashboard-groupBorderColor: @groupBorderColor;
  189. --nr-dashboard-widgetTextColor: @widgetTextColor;
  190. --nr-dashboard-widgetBackgroundColor: @widgetBackgroundColor; // deprecated - will be removed at some point
  191. --nr-dashboard-widgetBorderColor: @widgetBorderColor; // deprecated - will be removed at some point
  192. --nr-dashboard-widgetColor: @widgetBackgroundColor;
  193. --nr-dashboard-widgetBgndColor: @widgetBorderColor;
  194. }
  195. .nr-dashboard-disabled {
  196. opacity: 0.4 !important;
  197. pointer-events: none !important;
  198. }
  199. & when (@nrTheme = false) {
  200. .nr-menu-item-active div button {
  201. border-right: 4px solid #888;
  202. }
  203. }
  204. & when (@nrTheme = true) {
  205. body.nr-dashboard-theme {
  206. background-color: @pageBackgroundColor;
  207. font-family: @baseFont;
  208. }
  209. body.nr-dashboard-theme md-content {
  210. background: transparent;
  211. height: 100%;
  212. & when (@nrTemplateTheme = true) {
  213. color: @groupTextColor;
  214. }
  215. }
  216. // body.nr-dashboard-theme md-select-menu md-content {
  217. // max-height: 80%;
  218. // }
  219. body.nr-dashboard-theme md-input-container.md-input-focused:not([md-no-float]) .md-select-placeholder span:first-child {
  220. -webkit-transform: translateY(-28px) scale(.75);
  221. transform: translateY(-28px) scale(.75);
  222. }
  223. body.nr-dashboard-theme md-input-container.md-input-focused:not(.md-input-has-value) md-select .md-select-value.md-select-placeholder {
  224. color: @widgetTextColor;
  225. }
  226. body.nr-dashboard-theme md-content md-card {
  227. background-color: @widgetBorderColor;
  228. color: @widgetTextColor;
  229. }
  230. /* Some colour classes */
  231. body.nr-dashboard-theme .nr-dashboard-color { color: @groupTextColor; }
  232. body.nr-dashboard-theme .nr-dashboard-error { color: #ff2929; }
  233. body.nr-dashboard-theme .nr-dashboard-warning { color: #eaf42f; }
  234. body.nr-dashboard-theme .nr-dashboard-ok { color: #49db3c; }
  235. body.nr-dashboard-theme .nr-dashboard-dim { opacity: 0.5 !important; }
  236. /*
  237. DASHBOARD HEADER
  238. */
  239. body.nr-dashboard-theme md-toolbar {
  240. background-color: @pageTitlebarBackgroundColor;
  241. color: #fff;
  242. }
  243. body.nr-dashboard-theme md-toolbar .md-toolbar-tools {
  244. color: #fff;
  245. filter: invert(if(@wbc-light, 100%, 0%));
  246. }
  247. /*
  248. DASHBOARD SIDEBAR
  249. */
  250. body.nr-dashboard-theme md-sidenav {
  251. color: @groupTextColor;
  252. background-color: @pageSidebarBackgroundColor;
  253. }
  254. body.nr-dashboard-theme md-sidenav md-list-item._md-button-wrap > div.md-button:first-child {
  255. background-color: transparent;
  256. }
  257. body.nr-dashboard-theme md-sidenav div.md-list-item-inner {
  258. color: @groupTextColor;
  259. background-color: transparent;
  260. }
  261. a.md-no-style, button.md-no-style {
  262. background-color: transparent;
  263. }
  264. .nr-menu-item-active div button {
  265. border-right: 4px solid @groupTextColor;
  266. }
  267. /*
  268. GROUP SPECIFIC
  269. */
  270. .nr-dashboard-theme ui-card-panel {
  271. background-color: @groupBackgroundColor;
  272. border: 1px solid @groupBorderColor;
  273. & p.nr-dashboard-cardtitle {
  274. color: @groupTextColor;
  275. }
  276. }
  277. /*
  278. COMPONENT-SPECIFIC
  279. */
  280. .nr-dashboard-theme .nr-dashboard-spacer {
  281. opacity: 0;
  282. }
  283. .md-button.md-default-theme.md-primary, .md-button.md-primary {
  284. background-color: @widgetBackgroundColor !important;
  285. color: white;
  286. }
  287. // .md-button.md-default-theme:not([disabled]):hover, .md-button:not([disabled]):hover {
  288. // filter: grayscale(75%);
  289. // }
  290. // .nr-dashboard-theme .md-button.md-primary {
  291. // color: lighten(@widgetBackgroundColor, 8);
  292. // }
  293. .nr-dashboard-theme .md-button[disabled] {
  294. color: rgba(0,0,0,0.38);
  295. cursor: default;
  296. }
  297. /* Button */
  298. .nr-dashboard-theme .nr-dashboard-button .md-button {
  299. background-color: @widgetBackgroundColor;
  300. color: white;
  301. }
  302. .nr-dashboard-theme .nr-dashboard-button .md-button:hover {
  303. background-color: lighten(@widgetBackgroundColor, 6);
  304. }
  305. .nr-dashboard-theme .nr-dashboard-template .md-button[disabled] {
  306. color: #888;
  307. }
  308. .nr-dashboard-theme .nr-dashboard-button .md-button.md-primary {
  309. color: white;
  310. background-color: lighten(@widgetBackgroundColor, 4);
  311. }
  312. .nr-dashboard-theme .nr-dashboard-button .md-button.md-raised:not([disabled]).md-focused {
  313. background-color: @widgetBackgroundColor;
  314. }
  315. /* Date picker */
  316. .nr-dashboard-theme .nr-dashboard-date-picker md-input-container .md-input {
  317. color: @widgetTextColor;
  318. border-bottom-color: @widgetBackgroundColor;
  319. font-family: inherit;
  320. }
  321. .nr-dashboard-theme .nr-dashboard-date-picker md-input-container .md-input::-webkit-input-placeholder {
  322. color: @widgetTextColor;
  323. }
  324. .nr-dashboard-theme .nr-dashboard-date-picker .md-button.md-icon-button {
  325. /* background-color: @widgetBackgroundColor; */
  326. }
  327. .nr-dashboard-theme .nr-dashboard-date-picker .md-button.md-icon-button md-icon {
  328. color: @widgetBackgroundColor;
  329. }
  330. .nr-dashboard-theme .nr-dashboard-date-picker .md-datepicker-triangle-button .md-datepicker-expand-triangle {
  331. border-top-color: @widgetTextColor;
  332. }
  333. .md-default-theme .md-calendar-day-header, .md-calendar-day-header {
  334. color: contrast(@pageTitlebarBackgroundColor);
  335. background-color: @pageTitlebarBackgroundColor;
  336. }
  337. .md-default-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator, .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator, .md-default-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator, .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator {
  338. background: @widgetBackgroundColor;
  339. color: contrast(@widgetBackgroundColor);
  340. border-color: transparent;
  341. }
  342. .md-default-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator, .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator {
  343. border: 1px solid @widgetBackgroundColor;
  344. }
  345. .md-datepicker-calendar-pane.md-pane-open {
  346. width: 345px;
  347. background-color: @groupBackgroundColor;
  348. }
  349. /* Chart */
  350. .nr-dashboard-theme .nr-dashboard-chart-title {
  351. }
  352. .nr-dashboard-theme .nr-dashboard-chart-titlel {
  353. font-size: larger;
  354. font-weight: 500;
  355. }
  356. /* Colour Picker */
  357. .nr-dashboard-theme .color-picker-panel {
  358. background-color: @groupBackgroundColor;
  359. border-color: @groupBorderColor;
  360. box-shadow: 0 0 1px rgba(255,255,255,.5);
  361. }
  362. .nr-dashboard-theme .color-picker-input-wrapper > input {
  363. color: @widgetTextColor;
  364. background-color: @widgetBorderColor;
  365. font-family: inherit;
  366. }
  367. .nr-dashboard-theme .color-picker-wrapper .color-picker-panel.color-picker-panel-round .color-picker-grid-wrapper .color-picker-row .color-picker-grid .color-picker-grid-inner {
  368. background-color: @widgetBorderColor;
  369. }
  370. /* Dropdown */
  371. .nr-dashboard-theme .nr-dashboard-dropdown md-select .md-select-value,
  372. .nr-dashboard-theme .nr-dashboard-dropdown md-select .md-select-value.md-select-placeholder {
  373. color: @widgetTextColor;
  374. border-color: @widgetTextColor;
  375. border-bottom-width: 1px;
  376. padding: 0px 2px;
  377. }
  378. .nr-dashboard-theme .nr-dashboard-dropdown .md-select-icon {
  379. color: @widgetTextColor;
  380. }
  381. .nr-dashboard-theme .md-select-menu-container {
  382. max-height: 85%;
  383. overflow-y: auto;
  384. border: 1px solid @pageTitlebarBackgroundColor;
  385. }
  386. .nr-dashboard-theme md-select-menu {
  387. margin-left: -2px;
  388. max-height: 85%;
  389. }
  390. .nr-dashboard-theme md-select-menu md-content {
  391. padding: 0px;
  392. max-height: 85%;
  393. }
  394. .nr-dashboard-theme md-select-menu, .nr-dashboard-theme md-select-menu md-option {
  395. background-color: @groupBackgroundColor;
  396. color: @widgetTextColor;
  397. }
  398. .nr-dashboard-theme md-select-menu md-option[selected] {
  399. color: @groupTextColor !important;
  400. background-color: @groupBackgroundColor !important;
  401. }
  402. .nr-dashboard-theme md-select-menu[multiple] md-option.md-checkbox-enabled[selected] .md-icon {
  403. background-color: lighten(@widgetBackgroundColor, 10) !important;
  404. border-color: transparent !important;
  405. }
  406. .nr-dashboard-theme md-select-menu[multiple] md-option.md-checkbox-enabled .md-icon {
  407. border-color: @widgetBackgroundColor !important;
  408. }
  409. .nr-dashboard-theme md-select-menu.md-default-theme md-option:focus:not([disabled]):not([selected]),
  410. md-select-menu md-option:focus:not([disabled]):not([selected]) {
  411. background-color: @groupBackgroundColor;
  412. }
  413. .nr-dashboard-theme md-select-menu md-option:hover {
  414. background-color: lighten(@widgetBackgroundColor, 4) !important;
  415. }
  416. .nr-dashboard-theme md-menu-content {
  417. background-color: @groupBackgroundColor;
  418. color: @widgetTextColor;
  419. }
  420. .nr-dashboard-theme md-menu-content md-menu-item {
  421. background-color: @groupBackgroundColor;
  422. color: @widgetTextColor;
  423. }
  424. /* Gauge */
  425. .nr-dashboard-theme .nr-dashboard-gauge {}
  426. .nr-dashboard-theme .nr-dashboard-gauge text {
  427. fill: @widgetTextColor;
  428. margin: 8px;
  429. }
  430. .nr-dashboard-theme .nr-dashboard-gauge-title {
  431. margin: 6px 0px 20px 0px;
  432. z-index: 1;
  433. }
  434. .nr-dashboard-theme .nr-dashboard-gauge-titlel {
  435. font-size: larger;
  436. font-weight: 500;
  437. z-index: 1;
  438. }
  439. .nr-dashboard-theme .nr-dashboard-gauge-titlem {
  440. font-weight: 500;
  441. margin: 2px 0px 14px 0px;
  442. z-index: 1;
  443. }
  444. .nr-dashboard-theme .nr-dashboard-gauge-titles {
  445. font-size: x-small;
  446. margin-top: 2px;
  447. height: 10px;
  448. padding-bottom: 14px;
  449. z-index: 1;
  450. }
  451. /* Numeric */
  452. .nr-dashboard-theme .nr-dashboard-numeric .value {
  453. background-color: @widgetBorderColor;
  454. color: @widgetTextColor;
  455. }
  456. /* Slider */
  457. .nr-dashboard-theme .nr-dashboard-slider {}
  458. .nr-dashboard-theme .nr-dashboard-slider .md-track {
  459. background-color: rgba(111, 111, 111, 0.5);
  460. }
  461. .nr-dashboard-theme .nr-dashboard-slider .md-track-fill {
  462. background-color: @widgetBackgroundColor;
  463. }
  464. .nr-dashboard-theme .nr-dashboard-slider .md-thumb:after {
  465. background-color: @widgetBackgroundColor;
  466. border-color: @widgetBackgroundColor;
  467. }
  468. .nr-dashboard-theme .nr-dashboard-slider .md-focus-ring {
  469. background-color: @widgetBackgroundColor;
  470. transform: scale(.4);
  471. opacity: 1;
  472. }
  473. .nr-dashboard-theme .nr-dashboard-slider .md-sign {
  474. background-color: @widgetBackgroundColor;
  475. }
  476. .nr-dashboard-theme .nr-dashboard-slider .md-sign:after {
  477. border-top-color: @widgetBackgroundColor !important;
  478. }
  479. .nr-dashboard-theme .nr-dashboard-slider .md-min[md-discrete] .md-sign {
  480. background-color: @widgetBackgroundColor;
  481. }
  482. .nr-dashboard-theme .nr-dashboard-slider md-slider[md-discrete] .md-sign,
  483. .nr-dashboard-theme .nr-dashboard-slider md-slider[md-discrete] .md-sign:after {
  484. opacity: 1;
  485. -webkit-transform: translate3d(0, 0, 0) scale(1);
  486. transform: translate3d(0, 0, 0) scale(1);
  487. }
  488. .nr-dashboard-theme .nr-dashboard-slider .md-sign:after {
  489. border-top-color: @widgetBackgroundColor;
  490. }
  491. .nr-dashboard-theme md-slider.md-default-theme[md-vertical] .md-sign:after, .nr-dashboard-theme md-slider[md-vertical] .md-sign:after {
  492. content: none;;
  493. }
  494. .nr-dashboard-theme .nr-dashboard-slider md-slider.md-default-theme.md-min[md-discrete] .md-thumb:after, md-slider.md-min[md-discrete] .md-thumb:after {
  495. background-color: @widgetBackgroundColor;
  496. border-color: transparent;
  497. }
  498. .nr-dashboard-theme .nr-dashboard-slider md-slider .md-track-ticks {
  499. color: transparent;
  500. }
  501. .nr-dashboard-theme .nr-dashboard-slider md-slider[md-discrete]:not([disabled]) .md-slider-wrapper.md-focused .md-focus-ring {
  502. transform: scale(0.4);
  503. animation: unset;
  504. }
  505. .nr-dashboard-theme .nr-dashboard-slider .md-thumb-text {
  506. color: white;
  507. filter: invert(if(@wbc-light, 100%, 0%));
  508. }
  509. /* Switch */
  510. .nr-dashboard-theme .nr-dashboard-switch {}
  511. .nr-dashboard-theme .nr-dashboard-switch md-switch .md-bar {
  512. background-color: rgba(111, 111, 111, 0.5);
  513. }
  514. .nr-dashboard-theme .nr-dashboard-switch md-switch.md-checked .md-bar {
  515. background-color: rgba(red(@widgetBackgroundColor), green(@widgetBackgroundColor), blue(@widgetBackgroundColor), 0.5);
  516. }
  517. .nr-dashboard-theme .nr-dashboard-switch md-switch .md-thumb {
  518. background-color: rgb(148, 148, 148);
  519. }
  520. .nr-dashboard-theme .nr-dashboard-switch md-switch.md-checked .md-thumb {
  521. background-color: rgba(red(@widgetBackgroundColor), green(@widgetBackgroundColor), blue(@widgetBackgroundColor), 1);
  522. }
  523. /* Template */
  524. & when (@nrTemplateTheme = true) {
  525. md-list {
  526. padding: unset;
  527. }
  528. md-list-item[disabled] {
  529. color: #888;
  530. // text-decoration: line-through;
  531. }
  532. md-list-item {
  533. min-height: @nrUnitHeight * 2;
  534. height: @nrUnitHeight * 2;
  535. }
  536. md-list-item._md-button-wrap>div.md-button:first-child {
  537. background-color: @widgetBorderColor;
  538. height: inherit;
  539. padding: 0 6px;
  540. }
  541. md-list-item.md-2-line {
  542. height: @nrUnitHeight * 2;
  543. min-height: @nrUnitHeight * 2;
  544. }
  545. md-list-item.md-3-line {
  546. height: @nrUnitHeight * 3;
  547. min-height: @nrUnitHeight * 3;
  548. }
  549. md-list-item .md-list-item-inner {
  550. background: @widgetBorderColor;
  551. //color: @widgetTextColor;
  552. padding-left: 8px;
  553. width: 100%;
  554. height: 100%;
  555. }
  556. div > md-list-item.md-2-line, md-list-item.md-2-line>.md-no-style {
  557. height: 48px;
  558. min-height: 48px;
  559. width: 100px;
  560. }
  561. md-progress-linear {
  562. padding-top: 4px !important;
  563. }
  564. md-progress-linear .md-container {
  565. margin-top: @nrUnitHeight / 2;
  566. background-color: @pageBackgroundColor;
  567. }
  568. md-progress-linear .md-container .md-bar {
  569. background-color: lighten(@widgetBackgroundColor, 5);
  570. }
  571. md-checkbox {
  572. min-height: @nrUnitHeight * 2;
  573. margin-left: 6px;
  574. margin-bottom: 0px;
  575. width: 100%;
  576. }
  577. md-checkbox .md-icon {
  578. border-color: @widgetBackgroundColor !important;
  579. }
  580. md-checkbox[disabled] .md-icon {
  581. border-color: #888 !important;
  582. }
  583. md-checkbox.md-checked .md-icon {
  584. background-color: lighten(@widgetBackgroundColor, 5);
  585. border-color: transparent !important;
  586. }
  587. md-checkbox .md-label {
  588. position: absolute;
  589. top: 32%;
  590. }
  591. md-checkbox[disabled] .md-label {
  592. color: #888;
  593. }
  594. md-checkbox:last-of-type {
  595. margin-left: 6px;
  596. }
  597. .nr-dashboard-theme .nr-dashboard-template {
  598. // padding: 0;
  599. background-color: @widgetBorderColor;
  600. }
  601. .nr-dashboard-theme .nr-dashboard-template md-switch .md-thumb {
  602. background-color: rgb(148, 148, 148);
  603. }
  604. .nr-dashboard-theme .nr-dashboard-template md-switch .md-bar {
  605. background-color: rgba(111, 111, 111, 0.5);
  606. }
  607. .nr-dashboard-theme .nr-dashboard-template md-switch.md-checked:not([disabled]) .md-thumb {
  608. background-color: lighten(@widgetBackgroundColor, 5);
  609. }
  610. .nr-dashboard-theme .nr-dashboard-template md-switch.md-checked:not([disabled]) .md-bar {
  611. background-color: rgba(red(@widgetBackgroundColor), green(@widgetBackgroundColor), blue(@widgetBackgroundColor), 0.5);
  612. }
  613. md-radio-button {
  614. min-height: @nrUnitHeight * 2;
  615. margin-left: 6px;
  616. margin-bottom: 0px;
  617. }
  618. md-radio-button .md-off, md-radio-button .md-on {
  619. border-color: @widgetBackgroundColor !important;
  620. }
  621. md-radio-button[disabled] .md-off, md-radio-button[disabled] .md-on {
  622. border-color: #888 !important;
  623. }
  624. md-radio-button.md-checked .md-on {
  625. background-color: @widgetBackgroundColor !important;
  626. }
  627. md-radio-button .md-label {
  628. position: absolute;
  629. top: 32%;
  630. }
  631. md-radio-button[disabled] .md-label {
  632. color: #888;
  633. }
  634. md-divider {
  635. border-color: @widgetBackgroundColor !important;
  636. }
  637. .nr-dashboard-theme .nr-dashboard-template path {
  638. fill: @widgetBackgroundColor;
  639. }
  640. .nr-dashboard-template {
  641. padding: (@nrUnitHeight / 8) 6px;
  642. p, h1, h2, h3, h4 {
  643. color: @widgetTextColor !important;
  644. background-color : @widgetBorderColor !important;
  645. }
  646. }
  647. .nr-dashboard-theme .nr-dashboard-template .md-button .md-no-style {
  648. background: initial !important;
  649. color: initial !important;
  650. }
  651. .nr-dashboard-theme .nr-dashboard-template .md-button[disabled] {
  652. color: #ccc;
  653. }
  654. .nr-dashboard-theme .nr-dashboard-template .md-button.md-primary:not([disabled]) {
  655. color: @widgetTextColor;
  656. background-color: lighten(@widgetBackgroundColor, 5);
  657. }
  658. .nr-dashboard-theme .nr-dashboard-template .md-button .ng-scope {
  659. color: unset;
  660. }
  661. .nr-dashboard-template .md-button {
  662. color: white;
  663. }
  664. .nr-dashboard-theme .nr-dashboard-template .md-button:not(:first-of-type) {
  665. margin-top: @nrUnitHeight * 3 / 4;
  666. }
  667. .nr-dashboard-theme .nr-dashboard-template .md-button {
  668. background-color: @widgetBackgroundColor;
  669. margin: 0;
  670. // padding: 0px 12px;
  671. min-height: @nrUnitHeight * 3 / 2;
  672. min-width: unset;
  673. line-height: unset;
  674. &.md-fab.md-mini {
  675. padding: unset;
  676. }
  677. }
  678. .nr-dashboard-theme .nr-dashboard-template .md-button:not([disabled]):hover {
  679. background-color: lighten(@widgetBackgroundColor, 4);
  680. }
  681. .nr-dashboard-theme .nr-dashboard-template .md-button.md-primary:not([disabled]):hover {
  682. background-color: lighten(@widgetBackgroundColor, 4);
  683. }
  684. .nr-dashboard-theme .nr-dashboard-template .md-button.md-primary.md-raised:not([disabled]) {
  685. background-color: lighten(@widgetBackgroundColor, 2);
  686. }
  687. .nr-dashboard-theme .nr-dashboard-template .md-button.md-primary.md-raised:not([disabled]):hover {
  688. background-color: lighten(@widgetBackgroundColor, 4);
  689. }
  690. // .md-button:disabled {
  691. // background-color: @widgetBackgroundColor;
  692. // }
  693. .nr-dashboard-theme .nr-dashboard-template {
  694. ::-webkit-scrollbar {
  695. height: 12px;
  696. width: 12px;
  697. }
  698. ::-webkit-scrollbar-thumb {
  699. background-color: @baseColor;
  700. -webkit-border-radius: 1ex;
  701. -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
  702. }
  703. ::-webkit-scrollbar-track {
  704. background-color: @pageBackgroundColor;
  705. }
  706. }
  707. }
  708. /* Text-Input */
  709. .nr-dashboard-theme .nr-dashboard-textinput {}
  710. .nr-dashboard-theme .nr-dashboard-textinput label {
  711. color: @widgetTextColor;
  712. }
  713. .nr-dashboard-theme .nr-dashboard-textinput md-input-container.md-input-has-value label {
  714. color: @widgetTextColor;
  715. }
  716. .nr-dashboard-theme .nr-dashboard-textinput md-input-container.md-input-focused label {
  717. color: @groupTextColor;
  718. }
  719. .nr-dashboard-theme .nr-dashboard-textinput md-input-container.md-input-focused input {
  720. border-color: @groupTextColor;
  721. font-family: inherit;
  722. }
  723. .nr-dashboard-theme .nr-dashboard-textinput md-input-container .md-input:invalid {
  724. color: #DA5252;
  725. }
  726. .nr-dashboard-theme .nr-dashboard-textinput input {
  727. border-color: @widgetTextColor;
  728. color: @widgetTextColor;
  729. font-family: inherit;
  730. }
  731. .nr-dashboard-theme input[type="time"]::-webkit-calendar-picker-indicator {
  732. filter: invert(if(@wtc-light, 100%, 0%));
  733. }
  734. .nr-dashboard-theme input[type="date"]::-webkit-calendar-picker-indicator {
  735. filter: invert(if(@wtc-light, 100%, 0%));
  736. }
  737. /* Text */
  738. .nr-dashboard-theme .nr-dashboard-text {}
  739. /* Dialog */
  740. .nr-dashboard-theme md-dialog {
  741. color: @widgetTextColor;
  742. background-color: @groupBackgroundColor;
  743. border: 3px solid @groupBorderColor;
  744. }
  745. .nr-dashboard-theme .md-dialog-content {
  746. padding: 24px;
  747. }
  748. .nr-dashboard-theme md-input-container.md-default-theme .md-input, md-input-container .md-input {
  749. color: @widgetTextColor;
  750. border-color: @pageTitlebarBackgroundColor !important;
  751. }
  752. /* Form */
  753. .nr-dashboard-theme .nr-dashboard-form md-input-container {
  754. display: block;
  755. }
  756. .nr-dashboard-theme .nr-dashboard-form-button {
  757. background-color: @widgetBackgroundColor;
  758. color: white;
  759. }
  760. .nr-dashboard-theme .nr-dashboard-form-button:hover {
  761. background-color: lighten(@widgetBackgroundColor, 10) !important;
  762. }
  763. .nr-dashboard-theme .nr-dashboard-form-button:focus {
  764. background-color: lighten(@widgetBackgroundColor, 10) !important;
  765. }
  766. .nr-dashboard-theme .nr-dashboard-form {
  767. color: @widgetTextColor;
  768. }
  769. .nr-dashboard-theme .nr-dashboard-form form md-input-container input {
  770. border-color: @widgetTextColor;
  771. color: @widgetTextColor;
  772. font-family: inherit;
  773. }
  774. .nr-dashboard-theme .nr-dashboard-form form md-input-container label {
  775. color: @widgetTextColor;;
  776. }
  777. .nr-dashboard-theme .nr-dashboard-form form md-input-container.md-input-has-value:not(.md-input-invalid) label {
  778. color: @widgetTextColor;;
  779. }
  780. .nr-dashboard-theme .nr-dashboard-form form md-input-container:not(.md-input-invalid).md-input-focused input {
  781. border-color: @groupTextColor ;
  782. }
  783. .nr-dashboard-theme .nr-dashboard-form form md-input-container:not(.md-input-invalid).md-input-focused label {
  784. color: @groupTextColor ;
  785. }
  786. .nr-dashboard-theme .nr-dashboard-form form .md-input-invalid input {
  787. border-color: #d00 !important;
  788. }
  789. .nr-dashboard-theme md-content .nr-dashboard-form form .md-input-invalid label {
  790. color: #d00 !important;
  791. }
  792. .nr-dashboard-theme md-content .nr-dashboard-form form md-input-container md-checkbox.md-checked .md-icon {
  793. background-color: lighten(@widgetBackgroundColor, 10);
  794. }
  795. .nr-dashboard-theme md-content .nr-dashboard-form form md-input-container md-checkbox .md-icon {
  796. border-color: @widgetTextColor;
  797. }
  798. .nr-dashboard-theme md-content .nr-dashboard-form form md-input-container md-switch .md-bar {
  799. background-color: rgba(111, 111, 111, 0.5);
  800. }
  801. .nr-dashboard-theme md-content .nr-dashboard-form form md-input-container md-switch .md-thumb {
  802. background-color: rgb(148, 148, 148);
  803. }
  804. .nr-dashboard-theme md-content .nr-dashboard-form form md-input-container md-switch.md-checked .md-bar {
  805. background-color: lighten(@widgetBackgroundColor, 10);
  806. }
  807. .nr-dashboard-theme md-content .nr-dashboard-form form md-input-container md-switch.md-checked .md-thumb {
  808. background-color: @widgetBackgroundColor;
  809. }
  810. .nr-dashboard-theme md-content .nr-dashboard-form form md-datepicker {
  811. background-color: inherit;
  812. }
  813. .nr-dashboard-theme md-content .nr-dashboard-form form .md-datepicker-calendar-icon {
  814. fill: @groupTextColor;
  815. }
  816. .nr-dashboard-theme md-content .nr-dashboard-form form .md-datepicker-open .md-datepicker-calendar-icon {
  817. fill: @widgetBackgroundColor ;
  818. }
  819. .nr-dashboard-theme md-content .nr-dashboard-form form .md-datepicker-input {
  820. color: @widgetTextColor;
  821. }
  822. .nr-dashboard-theme md-content .nr-dashboard-form form .md-datepicker-input-container {
  823. border-color: @widgetTextColor;;
  824. }
  825. .nr-dashboard-theme md-content .nr-dashboard-form form .md-datepicker-expand-triangle{
  826. border-top-color: @widgetBackgroundColor ;
  827. }
  828. .nr-dashboard-theme md-content .nr-dashboard-form form md-input-container .md-input {
  829. color: @widgetTextColor;
  830. }
  831. }