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.

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