Mirror of espurna firmware for wireless switches and more
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.

589 lines
11 KiB

6 years ago
6 years ago
webui: remove jquery dependencies and clean-up websocket API Refactor WebUI: - remove jquery dependency from the base custom.js and use vanilla JS - remove jquery + jquery-datatables dependency from the RFM69 module - replace jquery-datatables handlers with pure-css table + some basic cell filtering (may be incomplete, but tbh it is not worth additional 50Kb to the .bin size) - introduce a common way to notify about the app errors, show small text notification at the top of the page instead of relying on user to find out about errors by using the Web Developer Tools - replace <span name=...> with <span data-settings-key=...> - replace <div> templates with <template>, disallowing modification without an explicit DOM clone - run `eslint` on html/custom.js and `html-validate` on html/index.html, and fix issues detected by both tools Streamline settings group handling in custom.js & index.html - drop module-specific button-add-... in favour of button-add-settings-group - only enforce data-settings-max requirement when the property actually exists - re-create label for=... and input id=... when settings group is modified, so checkboxes refer to the correct element - introduce additional data-... properties to generalize settings group additions - introduce Enumerable object to track some common list elements for <select>, allow to re-create <option> list when messages come in different order Minor fixes that also came with this: - fix relay code incorrectly parsing the payload, causing no relay names to be displayed in the SWITCHES panel - fix scheduler code accidentally combining keys b/c of the way C parses string literals on separate lines, without any commas in-between - thermostat should not reference tmpUnit directly in the webui, replace with module-specific thermostatUnit that is handled on the device itself - fix index.html initial setup invalid adminPass ids - fix index.html layout when removing specific schedules
2 years ago
6 years ago
6 years ago
6 years ago
5 years ago
6 years ago
6 years ago
webui: remove jquery dependencies and clean-up websocket API Refactor WebUI: - remove jquery dependency from the base custom.js and use vanilla JS - remove jquery + jquery-datatables dependency from the RFM69 module - replace jquery-datatables handlers with pure-css table + some basic cell filtering (may be incomplete, but tbh it is not worth additional 50Kb to the .bin size) - introduce a common way to notify about the app errors, show small text notification at the top of the page instead of relying on user to find out about errors by using the Web Developer Tools - replace <span name=...> with <span data-settings-key=...> - replace <div> templates with <template>, disallowing modification without an explicit DOM clone - run `eslint` on html/custom.js and `html-validate` on html/index.html, and fix issues detected by both tools Streamline settings group handling in custom.js & index.html - drop module-specific button-add-... in favour of button-add-settings-group - only enforce data-settings-max requirement when the property actually exists - re-create label for=... and input id=... when settings group is modified, so checkboxes refer to the correct element - introduce additional data-... properties to generalize settings group additions - introduce Enumerable object to track some common list elements for <select>, allow to re-create <option> list when messages come in different order Minor fixes that also came with this: - fix relay code incorrectly parsing the payload, causing no relay names to be displayed in the SWITCHES panel - fix scheduler code accidentally combining keys b/c of the way C parses string literals on separate lines, without any commas in-between - thermostat should not reference tmpUnit directly in the webui, replace with module-specific thermostatUnit that is handled on the device itself - fix index.html initial setup invalid adminPass ids - fix index.html layout when removing specific schedules
2 years ago
5 years ago
webui: remove jquery dependencies and clean-up websocket API Refactor WebUI: - remove jquery dependency from the base custom.js and use vanilla JS - remove jquery + jquery-datatables dependency from the RFM69 module - replace jquery-datatables handlers with pure-css table + some basic cell filtering (may be incomplete, but tbh it is not worth additional 50Kb to the .bin size) - introduce a common way to notify about the app errors, show small text notification at the top of the page instead of relying on user to find out about errors by using the Web Developer Tools - replace <span name=...> with <span data-settings-key=...> - replace <div> templates with <template>, disallowing modification without an explicit DOM clone - run `eslint` on html/custom.js and `html-validate` on html/index.html, and fix issues detected by both tools Streamline settings group handling in custom.js & index.html - drop module-specific button-add-... in favour of button-add-settings-group - only enforce data-settings-max requirement when the property actually exists - re-create label for=... and input id=... when settings group is modified, so checkboxes refer to the correct element - introduce additional data-... properties to generalize settings group additions - introduce Enumerable object to track some common list elements for <select>, allow to re-create <option> list when messages come in different order Minor fixes that also came with this: - fix relay code incorrectly parsing the payload, causing no relay names to be displayed in the SWITCHES panel - fix scheduler code accidentally combining keys b/c of the way C parses string literals on separate lines, without any commas in-between - thermostat should not reference tmpUnit directly in the webui, replace with module-specific thermostatUnit that is handled on the device itself - fix index.html initial setup invalid adminPass ids - fix index.html layout when removing specific schedules
2 years ago
webui: remove jquery dependencies and clean-up websocket API Refactor WebUI: - remove jquery dependency from the base custom.js and use vanilla JS - remove jquery + jquery-datatables dependency from the RFM69 module - replace jquery-datatables handlers with pure-css table + some basic cell filtering (may be incomplete, but tbh it is not worth additional 50Kb to the .bin size) - introduce a common way to notify about the app errors, show small text notification at the top of the page instead of relying on user to find out about errors by using the Web Developer Tools - replace <span name=...> with <span data-settings-key=...> - replace <div> templates with <template>, disallowing modification without an explicit DOM clone - run `eslint` on html/custom.js and `html-validate` on html/index.html, and fix issues detected by both tools Streamline settings group handling in custom.js & index.html - drop module-specific button-add-... in favour of button-add-settings-group - only enforce data-settings-max requirement when the property actually exists - re-create label for=... and input id=... when settings group is modified, so checkboxes refer to the correct element - introduce additional data-... properties to generalize settings group additions - introduce Enumerable object to track some common list elements for <select>, allow to re-create <option> list when messages come in different order Minor fixes that also came with this: - fix relay code incorrectly parsing the payload, causing no relay names to be displayed in the SWITCHES panel - fix scheduler code accidentally combining keys b/c of the way C parses string literals on separate lines, without any commas in-between - thermostat should not reference tmpUnit directly in the webui, replace with module-specific thermostatUnit that is handled on the device itself - fix index.html initial setup invalid adminPass ids - fix index.html layout when removing specific schedules
2 years ago
webui: remove jquery dependencies and clean-up websocket API Refactor WebUI: - remove jquery dependency from the base custom.js and use vanilla JS - remove jquery + jquery-datatables dependency from the RFM69 module - replace jquery-datatables handlers with pure-css table + some basic cell filtering (may be incomplete, but tbh it is not worth additional 50Kb to the .bin size) - introduce a common way to notify about the app errors, show small text notification at the top of the page instead of relying on user to find out about errors by using the Web Developer Tools - replace <span name=...> with <span data-settings-key=...> - replace <div> templates with <template>, disallowing modification without an explicit DOM clone - run `eslint` on html/custom.js and `html-validate` on html/index.html, and fix issues detected by both tools Streamline settings group handling in custom.js & index.html - drop module-specific button-add-... in favour of button-add-settings-group - only enforce data-settings-max requirement when the property actually exists - re-create label for=... and input id=... when settings group is modified, so checkboxes refer to the correct element - introduce additional data-... properties to generalize settings group additions - introduce Enumerable object to track some common list elements for <select>, allow to re-create <option> list when messages come in different order Minor fixes that also came with this: - fix relay code incorrectly parsing the payload, causing no relay names to be displayed in the SWITCHES panel - fix scheduler code accidentally combining keys b/c of the way C parses string literals on separate lines, without any commas in-between - thermostat should not reference tmpUnit directly in the webui, replace with module-specific thermostatUnit that is handled on the device itself - fix index.html initial setup invalid adminPass ids - fix index.html layout when removing specific schedules
2 years ago
webui: remove jquery dependencies and clean-up websocket API Refactor WebUI: - remove jquery dependency from the base custom.js and use vanilla JS - remove jquery + jquery-datatables dependency from the RFM69 module - replace jquery-datatables handlers with pure-css table + some basic cell filtering (may be incomplete, but tbh it is not worth additional 50Kb to the .bin size) - introduce a common way to notify about the app errors, show small text notification at the top of the page instead of relying on user to find out about errors by using the Web Developer Tools - replace <span name=...> with <span data-settings-key=...> - replace <div> templates with <template>, disallowing modification without an explicit DOM clone - run `eslint` on html/custom.js and `html-validate` on html/index.html, and fix issues detected by both tools Streamline settings group handling in custom.js & index.html - drop module-specific button-add-... in favour of button-add-settings-group - only enforce data-settings-max requirement when the property actually exists - re-create label for=... and input id=... when settings group is modified, so checkboxes refer to the correct element - introduce additional data-... properties to generalize settings group additions - introduce Enumerable object to track some common list elements for <select>, allow to re-create <option> list when messages come in different order Minor fixes that also came with this: - fix relay code incorrectly parsing the payload, causing no relay names to be displayed in the SWITCHES panel - fix scheduler code accidentally combining keys b/c of the way C parses string literals on separate lines, without any commas in-between - thermostat should not reference tmpUnit directly in the webui, replace with module-specific thermostatUnit that is handled on the device itself - fix index.html initial setup invalid adminPass ids - fix index.html layout when removing specific schedules
2 years ago
webui: remove jquery dependencies and clean-up websocket API Refactor WebUI: - remove jquery dependency from the base custom.js and use vanilla JS - remove jquery + jquery-datatables dependency from the RFM69 module - replace jquery-datatables handlers with pure-css table + some basic cell filtering (may be incomplete, but tbh it is not worth additional 50Kb to the .bin size) - introduce a common way to notify about the app errors, show small text notification at the top of the page instead of relying on user to find out about errors by using the Web Developer Tools - replace <span name=...> with <span data-settings-key=...> - replace <div> templates with <template>, disallowing modification without an explicit DOM clone - run `eslint` on html/custom.js and `html-validate` on html/index.html, and fix issues detected by both tools Streamline settings group handling in custom.js & index.html - drop module-specific button-add-... in favour of button-add-settings-group - only enforce data-settings-max requirement when the property actually exists - re-create label for=... and input id=... when settings group is modified, so checkboxes refer to the correct element - introduce additional data-... properties to generalize settings group additions - introduce Enumerable object to track some common list elements for <select>, allow to re-create <option> list when messages come in different order Minor fixes that also came with this: - fix relay code incorrectly parsing the payload, causing no relay names to be displayed in the SWITCHES panel - fix scheduler code accidentally combining keys b/c of the way C parses string literals on separate lines, without any commas in-between - thermostat should not reference tmpUnit directly in the webui, replace with module-specific thermostatUnit that is handled on the device itself - fix index.html initial setup invalid adminPass ids - fix index.html layout when removing specific schedules
2 years ago
webui: remove jquery dependencies and clean-up websocket API Refactor WebUI: - remove jquery dependency from the base custom.js and use vanilla JS - remove jquery + jquery-datatables dependency from the RFM69 module - replace jquery-datatables handlers with pure-css table + some basic cell filtering (may be incomplete, but tbh it is not worth additional 50Kb to the .bin size) - introduce a common way to notify about the app errors, show small text notification at the top of the page instead of relying on user to find out about errors by using the Web Developer Tools - replace <span name=...> with <span data-settings-key=...> - replace <div> templates with <template>, disallowing modification without an explicit DOM clone - run `eslint` on html/custom.js and `html-validate` on html/index.html, and fix issues detected by both tools Streamline settings group handling in custom.js & index.html - drop module-specific button-add-... in favour of button-add-settings-group - only enforce data-settings-max requirement when the property actually exists - re-create label for=... and input id=... when settings group is modified, so checkboxes refer to the correct element - introduce additional data-... properties to generalize settings group additions - introduce Enumerable object to track some common list elements for <select>, allow to re-create <option> list when messages come in different order Minor fixes that also came with this: - fix relay code incorrectly parsing the payload, causing no relay names to be displayed in the SWITCHES panel - fix scheduler code accidentally combining keys b/c of the way C parses string literals on separate lines, without any commas in-between - thermostat should not reference tmpUnit directly in the webui, replace with module-specific thermostatUnit that is handled on the device itself - fix index.html initial setup invalid adminPass ids - fix index.html layout when removing specific schedules
2 years ago
  1. /* -----------------------------------------------------------------------------
  2. General
  3. -------------------------------------------------------------------------- */
  4. #menu .pure-menu-heading {
  5. font-size: 100%;
  6. padding: .5em .5em;
  7. white-space: normal;
  8. text-transform: initial;
  9. }
  10. .pure-g {
  11. margin-bottom: 0;
  12. }
  13. .pure-form legend {
  14. font-weight: bold;
  15. letter-spacing: 0;
  16. margin: 10px 0 1em 0;
  17. }
  18. .pure-form .pure-g > label {
  19. margin: .4em 0 .2em;
  20. }
  21. .pure-form input {
  22. margin-bottom: 10px;
  23. }
  24. .pure-form input[type=text][disabled] {
  25. color: #777777;
  26. }
  27. @media screen and (max-width: 32em) {
  28. .header > h1 {
  29. line-height: 100%;
  30. font-size: 2em;
  31. }
  32. }
  33. .header strong {
  34. font-weight: bold;
  35. }
  36. h2 {
  37. font-size: 1em;
  38. }
  39. .panel {
  40. display: none;
  41. }
  42. .block {
  43. display: block;
  44. }
  45. .page {
  46. margin-top: 10px;
  47. }
  48. .pure-form-message,
  49. .pure-form-message-inline {
  50. color: #9e9e9e;
  51. font-size: 80%;
  52. }
  53. .pure-form-message a,
  54. .pure-form-message-inline a {
  55. color:inherit;
  56. }
  57. .module {
  58. display: none;
  59. }
  60. input[name=upgrade] {
  61. display: none;
  62. }
  63. select {
  64. margin-bottom: 10px;
  65. width: 100%;
  66. }
  67. input.center {
  68. margin-bottom: 0;
  69. }
  70. div.center {
  71. margin: .5em 0 1em;
  72. }
  73. .webmode {
  74. display: none;
  75. }
  76. #password .content {
  77. margin: 0 auto;
  78. }
  79. #layout .content {
  80. margin: 0;
  81. }
  82. .state {
  83. border-top: 1px solid #eee;
  84. margin-top: 20px;
  85. padding-top: 30px;
  86. font-size: 80%;
  87. line-height: 28px;
  88. }
  89. .state label {
  90. width: 33%;
  91. }
  92. .state span {
  93. font-weight: bold;
  94. display: block;
  95. }
  96. .right {
  97. text-align: right;
  98. }
  99. .terminal {
  100. font-family: 'Courier New', monospace;
  101. font-size: 80%;
  102. background-color: #121212;
  103. margin-top: 10px;
  104. margin-bottom: 10px;
  105. }
  106. #cmd-input,
  107. #cmd-output {
  108. border-style: none;
  109. border-color: #121212;
  110. color: #0f0;
  111. background-color: rgba(0, 0, 0, 0);
  112. line-height: 100%;
  113. }
  114. #cmd-output {
  115. -webkit-box-shadow: none;
  116. box-shadow: none;
  117. }
  118. #cmd-input {
  119. -webkit-box-shadow: inset 0 1px 1px #555;
  120. box-shadow: inset 0 1px 1px #555;
  121. }
  122. /* -----------------------------------------------------------------------------
  123. Sensors
  124. -------------------------------------------------------------------------- */
  125. .pure-form-aligned
  126. .pure-control-group
  127. label {
  128. text-align: left;
  129. }
  130. .emon-expected-pwrP,
  131. .emon-expected-volt,
  132. .emon-expected-curr,
  133. .emon-expected-ene {
  134. display: none;
  135. }
  136. /* -----------------------------------------------------------------------------
  137. Curtains
  138. -------------------------------------------------------------------------- */
  139. /* removeIf(!curtain) */
  140. .curtain-roller {
  141. width: 300px;
  142. height: 200px;
  143. display: inline-block;
  144. }
  145. .curtain-button {
  146. margin-left: 10px;
  147. margin-right: 10px;
  148. text-align: center;
  149. }
  150. .reverse-range {
  151. direction: rtl;
  152. }
  153. /* endRemoveIf(!curtain) */
  154. /* -----------------------------------------------------------------------------
  155. Buttons
  156. -------------------------------------------------------------------------- */
  157. .pure-button {
  158. border-radius: 4px;
  159. color: white;
  160. letter-spacing: 0;
  161. margin-bottom: 10px;
  162. text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  163. padding: 8px 8px;
  164. }
  165. .main-buttons {
  166. margin: 20px auto;
  167. text-align: center;
  168. }
  169. .main-buttons button {
  170. width: 100px;
  171. }
  172. .button-reboot,
  173. .button-reconnect,
  174. .button-ha-del,
  175. .button-rfb-forget,
  176. .button-lightfox-clear,
  177. .button-del-parent,
  178. .button-dbg-clear,
  179. .button-upgrade,
  180. .button-clear-filters,
  181. .button-clear-messages,
  182. .button-clear-counts,
  183. .button-settings-factory {
  184. background: rgb(192, 0, 0); /* redish */
  185. }
  186. .button-update,
  187. .button-setup-password,
  188. .button-add-settings-group,
  189. .button-upgrade-browse,
  190. .button-rfb-learn,
  191. .button-lightfox-learn,
  192. .button-ha-add,
  193. .button-ha-config,
  194. .button-settings-backup,
  195. .button-settings-restore,
  196. .button-garland-set-default,
  197. .button-cmd,
  198. .button-apikey,
  199. .button-emon-expected-calculate {
  200. background: rgb(0, 192, 0); /* green */
  201. }
  202. .button-wifi-scan,
  203. .button-more-parent,
  204. .button-simple-action,
  205. .button-rfb-send {
  206. background: rgb(255, 128, 0); /* orange */
  207. }
  208. .button-curtain-open,
  209. .button-curtain-pause,
  210. .button-curtain-close,
  211. .button-emon-expected,
  212. .button-emon-expected-apply,
  213. .button-generate-password {
  214. background: rgb(66, 184, 221); /* blue */
  215. }
  216. .button-upgrade-browse,
  217. .button-clear-filters,
  218. .button-clear-messages,
  219. .button-clear-counts,
  220. .button-ha-add,
  221. .button-apikey,
  222. .button-upgrade {
  223. margin-left: 5px;
  224. }
  225. .button-thermostat-reset-counters {
  226. background: rgb(204, 139, 41);
  227. }
  228. /* -----------------------------------------------------------------------------
  229. Sliders
  230. -------------------------------------------------------------------------- */
  231. input.slider {
  232. margin-top: 10px;
  233. }
  234. span.slider {
  235. font-size: 70%;
  236. letter-spacing: 0;
  237. margin-left: 10px;
  238. margin-top: 7px;
  239. }
  240. /* -----------------------------------------------------------------------------
  241. Checkboxes
  242. -------------------------------------------------------------------------- */
  243. .pure-form .toggleWrapper {
  244. display: inline-block;
  245. vertical-align: middle;
  246. overflow: hidden;
  247. width: max-content;
  248. height: 30px;
  249. margin: 0px 0px 10px 0px;
  250. padding: 0px;
  251. border-radius: 4px;
  252. box-shadow: inset 1px 1px #CCC;
  253. }
  254. .toggleWrapper input {
  255. position: absolute;
  256. left: -99em;
  257. }
  258. label[for].toggle {
  259. margin: 0px;
  260. padding: 0px;
  261. }
  262. .toggleWrapper label.toggle {
  263. width: 130px;
  264. }
  265. .toggle {
  266. letter-spacing:normal;
  267. cursor: pointer;
  268. display: inline-block;
  269. position: relative;
  270. height: 100%;
  271. background: #e9e9e9;
  272. color: #a9a9a9;
  273. border-radius: 4px;
  274. transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  275. }
  276. .toggle:before,
  277. .toggle:after {
  278. position: absolute;
  279. line-height: 30px;
  280. font-size: .7em;
  281. z-index: 2;
  282. transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  283. }
  284. .toggle:before {
  285. content: "NO";
  286. left: 20px;
  287. }
  288. input[name="relay"] + .toggle:before {
  289. content: "OFF";
  290. }
  291. input[name="thermostatMode"] + .toggle:before {
  292. content: "Heater";
  293. }
  294. .toggle:after{
  295. content: "YES";
  296. right: 20px;
  297. }
  298. input[name="relay"] + .toggle:after {
  299. content: "ON";
  300. }
  301. input[name="thermostatMode"] + .toggle:after {
  302. content: "Cooler";
  303. }
  304. .toggle__handler {
  305. display: inline-block;
  306. position: relative;
  307. z-index: 1;
  308. background: #c00000;
  309. width: 50%;
  310. height: 100%;
  311. border-radius: 4px;
  312. border-top-right-radius: 0px;
  313. border-bottom-right-radius: 0px;
  314. top: 0px;
  315. left: 0px;
  316. transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  317. transform: translateX(0px);
  318. }
  319. input:checked + .toggle:after {
  320. color: #fff;
  321. }
  322. input:checked + .toggle:before {
  323. color: #a9a9a9;
  324. }
  325. input + .toggle:before {
  326. color: #fff;
  327. }
  328. input:checked + .toggle .toggle__handler {
  329. width: 50%;
  330. background: #00c000;
  331. transform: translateX(65px);
  332. border-color: #000;
  333. border-top-left-radius: 0px;
  334. border-bottom-left-radius: 0px;
  335. border-top-right-radius: 4px;
  336. border-bottom-right-radius: 4px;
  337. }
  338. input[name="thermostatMode"]:checked + .toggle .toggle__handler {
  339. background: #00c0c0;
  340. }
  341. input[disabled] + .toggle .toggle__handler {
  342. background: #ccc;
  343. }
  344. /* -----------------------------------------------------------------------------
  345. Loading
  346. -------------------------------------------------------------------------- */
  347. .loading {
  348. display: none;
  349. height: 20px;
  350. margin: 8px 0 0 10px;
  351. width: 20px;
  352. }
  353. /* -----------------------------------------------------------------------------
  354. Menu
  355. -------------------------------------------------------------------------- */
  356. #menu .small {
  357. font-size: 60%;
  358. padding-left: 9px;
  359. }
  360. #menu div.footer {
  361. color: #999;
  362. font-size: 80%;
  363. padding: 10px;
  364. }
  365. #menu div.footer a {
  366. padding: 0;
  367. text-decoration: none;
  368. }
  369. /* -----------------------------------------------------------------------------
  370. Home panel
  371. -------------------------------------------------------------------------- */
  372. #color {
  373. padding-bottom: 1em;
  374. padding-top: 1em;
  375. }
  376. /* -----------------------------------------------------------------------------
  377. RF Bridge panel
  378. -------------------------------------------------------------------------- */
  379. #panel-rfb fieldset {
  380. margin: 10px 2px;
  381. padding: 20px;
  382. }
  383. #panel-rfb input {
  384. margin-right: 5px;
  385. }
  386. #panel-rfb label {
  387. padding-top: 5px;
  388. }
  389. #panel-rfb input {
  390. text-align: center;
  391. }
  392. /* -----------------------------------------------------------------------------
  393. Admin panel
  394. -------------------------------------------------------------------------- */
  395. #upgrade-progress {
  396. display: none;
  397. height: 20px;
  398. margin-top: 10px;
  399. width: 100%;
  400. }
  401. #error-notification,
  402. #uploader,
  403. #downloader {
  404. display: none;
  405. }
  406. /* -----------------------------------------------------------------------------
  407. Wifi panel
  408. -------------------------------------------------------------------------- */
  409. #networks .pure-g,
  410. #schedules .pure-g {
  411. border-bottom: 1px solid #eee;
  412. margin-bottom: 10px;
  413. padding: 10px 0 10px 0;
  414. }
  415. #networks .more {
  416. display: none;
  417. }
  418. #haConfig,
  419. #scanResult {
  420. margin-top: 10px;
  421. display: none;
  422. padding: 10px;
  423. }
  424. /* -----------------------------------------------------------------------------
  425. Table
  426. -------------------------------------------------------------------------- */
  427. #rfm69-messages {
  428. margin-bottom: 1em;
  429. }
  430. summary {
  431. font-weight: bold;
  432. }
  433. .right {
  434. text-align: right;
  435. }
  436. .center {
  437. text-align: center;
  438. }
  439. .filtered {
  440. color: rgb(202, 60, 60);
  441. font-weight: bold;
  442. }
  443. /* -----------------------------------------------------------------------------
  444. Logs
  445. -------------------------------------------------------------------------- */
  446. #cmd-output {
  447. height: 400px;
  448. margin-bottom: 10px;
  449. }
  450. #cmd-input {
  451. display: inline-block;
  452. }
  453. /* -----------------------------------------------------------------------------
  454. Password input controls
  455. -------------------------------------------------------------------------- */
  456. .password-reveal {
  457. font-family: EmojiSymbols,Segoe UI Symbol;
  458. background: rgba(0,0,0,0);
  459. position: absolute;
  460. display: inline-block;
  461. float: right;
  462. z-index: 50;
  463. margin-top: 0.3em;
  464. margin-left: -1.4em;
  465. vertical-align: middle;
  466. font-size: 1.2em;
  467. }
  468. .password-reveal:after {
  469. content: "👁";
  470. }
  471. input[type="password"] + .password-reveal {
  472. color: rgba(205, 205, 205, 0.3);
  473. }
  474. input[type="text"] + .password-reveal {
  475. color: rgba(66, 184, 221, 0.8);
  476. }
  477. .no-select {
  478. -webkit-user-select: none;
  479. -moz-user-select: none;
  480. -ms-user-select: none;
  481. user-select: none;
  482. }
  483. input::-ms-clear,
  484. input::-ms-reveal {
  485. display: none;
  486. }
  487. /* css minifier must not combine these.
  488. * style will not apply otherwise */
  489. input::-ms-input-placeholder {
  490. color: #ccd;
  491. }
  492. input::placeholder {
  493. color: #ccc;
  494. }
  495. #error-notification {
  496. width: 100%;
  497. box-shadow: 0 1px 2px 1px rgb(192 0 0 / 25%)
  498. }