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.

450 lines
8.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. .content {
  43. margin: 0;
  44. }
  45. .page {
  46. margin-top: 10px;
  47. }
  48. .hint {
  49. color: #ccc;
  50. font-size: 80%;
  51. margin: -10px 0 10px 0;
  52. }
  53. .hint a {
  54. color:inherit;
  55. }
  56. legend.module,
  57. .module {
  58. display: none;
  59. }
  60. .template {
  61. display: none;
  62. }
  63. input[name=upgrade] {
  64. display: none;
  65. }
  66. select {
  67. margin-bottom: 10px;
  68. width: 100%;
  69. }
  70. input.center {
  71. margin-bottom: 0;
  72. }
  73. div.center {
  74. margin: .5em 0 1em;
  75. }
  76. .webmode {
  77. display: none;
  78. }
  79. #credentials {
  80. font-size: 200%;
  81. height: 100px;
  82. left: 50%;
  83. margin-left: -200px;
  84. margin-top: -50px;
  85. position: fixed;
  86. text-align: center;
  87. top: 50%;
  88. width: 400px;
  89. }
  90. div.state {
  91. border-top: 1px solid #eee;
  92. margin-top: 20px;
  93. padding-top: 30px;
  94. }
  95. .state div {
  96. font-size: 80%;
  97. }
  98. .state span {
  99. font-size: 80%;
  100. font-weight: bold;
  101. }
  102. .right {
  103. text-align: right;
  104. }
  105. .pure-g span.terminal,
  106. .pure-g textarea.terminal {
  107. font-family: 'Courier New', monospace;
  108. font-size: 80%;
  109. line-height: 100%;
  110. background-color: #000;
  111. color: #0F0;
  112. }
  113. /* -----------------------------------------------------------------------------
  114. Buttons
  115. -------------------------------------------------------------------------- */
  116. .pure-button {
  117. border-radius: 4px;
  118. color: white;
  119. letter-spacing: 0;
  120. margin-bottom: 10px;
  121. text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  122. padding: 8px 8px;
  123. }
  124. .main-buttons {
  125. margin: 20px auto;
  126. text-align: center;
  127. }
  128. .main-buttons button {
  129. width: 100px;
  130. }
  131. .button-del-schedule {
  132. margin-top: 15px;
  133. }
  134. .button-reboot,
  135. .button-reconnect,
  136. .button-ha-del,
  137. .button-rfb-forget,
  138. .button-del-network,
  139. .button-del-mapping,
  140. .button-del-schedule,
  141. .button-dbg-clear,
  142. .button-upgrade,
  143. .button-clear-filters,
  144. .button-clear-messages,
  145. .button-clear-counts,
  146. .button-settings-factory {
  147. background: rgb(192, 0, 0); /* redish */
  148. }
  149. .button-update,
  150. .button-update-password,
  151. .button-add-network,
  152. .button-add-mapping,
  153. .button-upgrade-browse,
  154. .button-rfb-learn,
  155. .button-ha-add,
  156. .button-ha-config,
  157. .button-settings-backup,
  158. .button-settings-restore,
  159. .button-dbgcmd,
  160. .button-apikey {
  161. background: rgb(0, 192, 0); /* green */
  162. }
  163. .button-add-switch-schedule,
  164. .button-add-light-schedule {
  165. background: rgb(0, 192, 0); /* green */
  166. display: none;
  167. }
  168. .button-more-network,
  169. .button-more-schedule,
  170. .button-wifi-scan,
  171. .button-rfb-send {
  172. background: rgb(255, 128, 0); /* orange */
  173. }
  174. .button-upgrade-browse,
  175. .button-clear-filters,
  176. .button-clear-messages,
  177. .button-clear-counts,
  178. .button-dbgcmd,
  179. .button-ha-add,
  180. .button-apikey,
  181. .button-upgrade {
  182. margin-left: 5px;
  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. }