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.

500 lines
9.3 KiB

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