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.

502 lines
9.4 KiB

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