Fork of the espurna firmware for `mhsw` switches
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.

546 lines
10 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
5 years ago
6 years ago
6 years ago
5 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. h2 {
  34. font-size: 1em;
  35. }
  36. .panel {
  37. display: none;
  38. }
  39. .block {
  40. display: block;
  41. }
  42. .page {
  43. margin-top: 10px;
  44. }
  45. .hint {
  46. color: #ccc;
  47. font-size: 80%;
  48. margin: -10px 0 10px 0;
  49. }
  50. .hint a {
  51. color:inherit;
  52. }
  53. legend.module,
  54. .module {
  55. display: none;
  56. }
  57. .template {
  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. div.state {
  83. border-top: 1px solid #eee;
  84. margin-top: 20px;
  85. padding-top: 30px;
  86. }
  87. .state div {
  88. font-size: 80%;
  89. }
  90. .state span {
  91. font-size: 80%;
  92. font-weight: bold;
  93. }
  94. .right {
  95. text-align: right;
  96. }
  97. .pure-g span.terminal,
  98. .pure-g textarea.terminal {
  99. font-family: 'Courier New', monospace;
  100. font-size: 80%;
  101. line-height: 100%;
  102. background-color: #000;
  103. color: #0F0;
  104. }
  105. /* -----------------------------------------------------------------------------
  106. Curtains
  107. -------------------------------------------------------------------------- */
  108. /* removeIf(!curtain) */
  109. .curtain-div {
  110. text-align: center;
  111. }
  112. .curtain-roller {
  113. width: 300px;
  114. height: 200px;
  115. display: inline-block;
  116. }
  117. .curtain-button{
  118. margin-left: 10px;
  119. margin-right: 10px;
  120. text-align: center;
  121. }
  122. .reverse-range {
  123. direction: rtl;
  124. }
  125. /* endRemoveIf(!curtain) */
  126. /* -----------------------------------------------------------------------------
  127. Buttons
  128. -------------------------------------------------------------------------- */
  129. .pure-button {
  130. border-radius: 4px;
  131. color: white;
  132. letter-spacing: 0;
  133. margin-bottom: 10px;
  134. text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  135. padding: 8px 8px;
  136. }
  137. .main-buttons {
  138. margin: 20px auto;
  139. text-align: center;
  140. }
  141. .main-buttons button {
  142. width: 100px;
  143. }
  144. .button-del-schedule {
  145. margin-top: 15px;
  146. }
  147. .button-reboot,
  148. .button-reconnect,
  149. .button-ha-del,
  150. .button-rfb-forget,
  151. .button-lightfox-clear,
  152. .button-del-network,
  153. .button-del-parent,
  154. .button-del-schedule,
  155. .button-dbg-clear,
  156. .button-upgrade,
  157. .button-clear-filters,
  158. .button-clear-messages,
  159. .button-clear-counts,
  160. .button-settings-factory {
  161. background: rgb(192, 0, 0); /* redish */
  162. }
  163. .button-update,
  164. .button-update-password,
  165. .button-add-network,
  166. .button-add-mapping,
  167. .button-add-rpnrule,
  168. .button-add-rpntopic,
  169. .button-upgrade-browse,
  170. .button-rfb-learn,
  171. .button-lightfox-learn,
  172. .button-ha-add,
  173. .button-ha-config,
  174. .button-settings-backup,
  175. .button-settings-restore,
  176. .button-dbgcmd,
  177. .button-apikey {
  178. background: rgb(0, 192, 0); /* green */
  179. }
  180. .button-add-switch-schedule,
  181. .button-add-light-schedule,
  182. .button-add-curtain-schedule {
  183. background: rgb(0, 192, 0); /* green */
  184. display: none;
  185. }
  186. .button-more-network,
  187. .button-more-schedule,
  188. .button-wifi-scan,
  189. .button-rfb-send {
  190. background: rgb(255, 128, 0); /* orange */
  191. }
  192. .button-curtain-open,
  193. .button-curtain-pause,
  194. .button-curtain-close,
  195. .button-generate-password {
  196. background: rgb(66, 184, 221); /* blue */
  197. }
  198. .button-upgrade-browse,
  199. .button-clear-filters,
  200. .button-clear-messages,
  201. .button-clear-counts,
  202. .button-dbgcmd,
  203. .button-ha-add,
  204. .button-apikey,
  205. .button-upgrade {
  206. margin-left: 5px;
  207. }
  208. .button-thermostat-reset-counters {
  209. background: rgb(204, 139, 41);
  210. }
  211. /* -----------------------------------------------------------------------------
  212. Sliders
  213. -------------------------------------------------------------------------- */
  214. input.slider {
  215. margin-top: 10px;
  216. }
  217. span.slider {
  218. font-size: 70%;
  219. letter-spacing: 0;
  220. margin-left: 10px;
  221. margin-top: 7px;
  222. }
  223. /* -----------------------------------------------------------------------------
  224. Checkboxes
  225. -------------------------------------------------------------------------- */
  226. .toggleWrapper {
  227. overflow: hidden;
  228. width: auto;
  229. height: 30px;
  230. margin: 0px 0px 10px 0px;
  231. padding: 0px;
  232. border-radius: 4px;
  233. box-shadow: inset 1px 1px #CCC;
  234. }
  235. .toggleWrapper input {
  236. position: absolute;
  237. left: -99em;
  238. }
  239. label[for].toggle {
  240. margin: 0px;
  241. padding: 0px;
  242. }
  243. .toggle {
  244. letter-spacing:normal;
  245. cursor: pointer;
  246. display: inline-block;
  247. position: relative;
  248. width: 130px;
  249. height: 100%;
  250. background: #e9e9e9;
  251. color: #a9a9a9;
  252. border-radius: 4px;
  253. -webkit-transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  254. transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  255. }
  256. .toggle:before,
  257. .toggle:after {
  258. position: absolute;
  259. line-height: 30px;
  260. font-size: .7em;
  261. z-index: 2;
  262. -webkit-transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  263. transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  264. }
  265. .toggle:before {
  266. content: "NO";
  267. left: 20px;
  268. }
  269. input[name="relay"] + .toggle:before {
  270. content: "OFF";
  271. }
  272. input[name="thermostatMode"] + .toggle:before {
  273. content: "Heater";
  274. }
  275. .toggle:after{
  276. content: "YES";
  277. right: 20px;
  278. }
  279. input[name="relay"] + .toggle:after {
  280. content: "ON";
  281. }
  282. input[name="thermostatMode"] + .toggle:after {
  283. content: "Cooler";
  284. }
  285. .toggle__handler {
  286. display: inline-block;
  287. position: relative;
  288. z-index: 1;
  289. background: #c00000;
  290. width: 50%;
  291. height: 100%;
  292. border-radius: 4px;
  293. border-top-right-radius: 0px;
  294. border-bottom-right-radius: 0px;
  295. top: 0px;
  296. left: 0px;
  297. -webkit-transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  298. transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  299. -webkit-transform: translateX(0px);
  300. transform: translateX(0px);
  301. }
  302. input:checked + .toggle:after {
  303. color: #fff;
  304. }
  305. input:checked + .toggle:before {
  306. color: #a9a9a9;
  307. }
  308. input + .toggle:before {
  309. color: #fff;
  310. }
  311. input:checked + .toggle .toggle__handler {
  312. width: 50%;
  313. background: #00c000;
  314. -webkit-transform: translateX(65px);
  315. transform: translateX(65px);
  316. border-color: #000;
  317. border-top-left-radius: 0px;
  318. border-bottom-left-radius: 0px;
  319. border-top-right-radius: 4px;
  320. border-bottom-right-radius: 4px;
  321. }
  322. input[name="thermostatMode"]:checked + .toggle .toggle__handler {
  323. background: #00c0c0;
  324. }
  325. input[disabled] + .toggle .toggle__handler {
  326. background: #ccc;
  327. }
  328. /* -----------------------------------------------------------------------------
  329. Loading
  330. -------------------------------------------------------------------------- */
  331. .loading {
  332. background-image: url('images/loading.gif');
  333. display: none;
  334. height: 20px;
  335. margin: 8px 0 0 10px;
  336. width: 20px;
  337. }
  338. /* -----------------------------------------------------------------------------
  339. Menu
  340. -------------------------------------------------------------------------- */
  341. #menu .small {
  342. font-size: 60%;
  343. padding-left: 9px;
  344. }
  345. #menu div.footer {
  346. color: #999;
  347. font-size: 80%;
  348. padding: 10px;
  349. }
  350. #menu div.footer a {
  351. padding: 0;
  352. text-decoration: none;
  353. }
  354. /* -----------------------------------------------------------------------------
  355. RF Bridge panel
  356. -------------------------------------------------------------------------- */
  357. #panel-rfb fieldset {
  358. margin: 10px 2px;
  359. padding: 20px;
  360. }
  361. #panel-rfb input {
  362. margin-right: 5px;
  363. }
  364. #panel-rfb label {
  365. padding-top: 5px;
  366. }
  367. #panel-rfb input {
  368. text-align: center;
  369. }
  370. /* -----------------------------------------------------------------------------
  371. Admin panel
  372. -------------------------------------------------------------------------- */
  373. #upgrade-progress {
  374. display: none;
  375. height: 20px;
  376. margin-top: 10px;
  377. width: 100%;
  378. }
  379. #uploader,
  380. #downloader {
  381. display: none;
  382. }
  383. /* -----------------------------------------------------------------------------
  384. Wifi panel
  385. -------------------------------------------------------------------------- */
  386. #networks .pure-g,
  387. #schedules .pure-g {
  388. border-bottom: 1px solid #eee;
  389. margin-bottom: 10px;
  390. padding: 10px 0 10px 0;
  391. }
  392. #networks .more {
  393. display: none;
  394. }
  395. #haConfig,
  396. #scanResult {
  397. margin-top: 10px;
  398. display: none;
  399. padding: 10px;
  400. }
  401. /* -----------------------------------------------------------------------------
  402. Table
  403. -------------------------------------------------------------------------- */
  404. .right {
  405. text-align: right;
  406. }
  407. table.dataTable.display tbody td {
  408. text-align: center;
  409. }
  410. #packets_filter {
  411. display: none;
  412. }
  413. .filtered {
  414. color: rgb(202, 60, 60);
  415. }
  416. /* -----------------------------------------------------------------------------
  417. Logs
  418. -------------------------------------------------------------------------- */
  419. #weblog {
  420. height: 400px;
  421. margin-bottom: 10px;
  422. }
  423. /* -----------------------------------------------------------------------------
  424. Password input controls
  425. -------------------------------------------------------------------------- */
  426. .password-reveal {
  427. font-family: EmojiSymbols,Segoe UI Symbol;
  428. background: rgba(0,0,0,0);
  429. display: inline-block;
  430. float: right;
  431. z-index: 50;
  432. margin-top: 6px;
  433. margin-left: -30px;
  434. vertical-align: middle;
  435. font-size: 1.2em;
  436. height: 100%;
  437. }
  438. .password-reveal:after {
  439. content: "👁";
  440. }
  441. input[type="password"] + .password-reveal {
  442. color: rgba(205, 205, 205, 0.3);
  443. }
  444. input[type="text"] + .password-reveal {
  445. color: rgba(66, 184, 221, 0.8);
  446. }
  447. .no-select {
  448. -webkit-user-select: none;
  449. -moz-user-select: none;
  450. -ms-user-select: none;
  451. user-select: none;
  452. }
  453. input::-ms-clear,
  454. input::-ms-reveal {
  455. display: none;
  456. }
  457. /* css minifier must not combine these.
  458. * style will not apply otherwise */
  459. input::-ms-input-placeholder {
  460. color: #ccd;
  461. }
  462. input::placeholder {
  463. color: #ccc;
  464. }