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.

405 lines
6.9 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 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-reboot,
  132. .button-reconnect,
  133. .button-ha-del,
  134. .button-rfb-forget,
  135. .button-del-network,
  136. .button-del-mapping,
  137. .button-del-schedule,
  138. .button-dbg-clear,
  139. .button-upgrade,
  140. .button-clear-filters,
  141. .button-clear-counts,
  142. .button-settings-factory {
  143. background: rgb(192, 0, 0); /* redish */
  144. }
  145. .button-update,
  146. .button-update-password,
  147. .button-add-network,
  148. .button-add-mapping,
  149. .button-upgrade-browse,
  150. .button-rfb-learn,
  151. .button-ha-add,
  152. .button-ha-config,
  153. .button-settings-backup,
  154. .button-settings-restore,
  155. .button-dbgcmd,
  156. .button-apikey {
  157. background: rgb(0, 192, 0); /* green */
  158. }
  159. .button-add-switch-schedule,
  160. .button-add-light-schedule {
  161. background: rgb(0, 192, 0); /* green */
  162. display: none;
  163. }
  164. .button-more-network,
  165. .button-more-schedule,
  166. .button-wifi-scan,
  167. .button-rfb-send {
  168. background: rgb(255, 128, 0); /* orange */
  169. }
  170. .button-upgrade-browse,
  171. .button-clear-filters,
  172. .button-clear-counts,
  173. .button-dbgcmd,
  174. .button-ha-add,
  175. .button-apikey,
  176. .button-upgrade {
  177. margin-left: 5px;
  178. }
  179. /* -----------------------------------------------------------------------------
  180. Sliders
  181. -------------------------------------------------------------------------- */
  182. input.slider {
  183. margin-top: 10px;
  184. }
  185. span.slider {
  186. font-size: 70%;
  187. letter-spacing: 0;
  188. margin-left: 10px;
  189. margin-top: 7px;
  190. }
  191. /* -----------------------------------------------------------------------------
  192. Checkboxes
  193. -------------------------------------------------------------------------- */
  194. .checkbox-container {
  195. width: 130px;
  196. height: 30px;
  197. margin: 3px 0 10px 0px;
  198. position: relative;
  199. border-radius: 4px;
  200. overflow: hidden;
  201. user-select: none;
  202. cursor: pointer;
  203. }
  204. .checkbox-container input {
  205. display: none;
  206. }
  207. .inner-container {
  208. position: absolute;
  209. left: 0;
  210. top: 0;
  211. width: inherit;
  212. height: inherit;
  213. text-transform: uppercase;
  214. font-size: .7em;
  215. letter-spacing: .2em;
  216. }
  217. .inner-container:first-child {
  218. background: #e9e9e9;
  219. color: #a9a9a9;
  220. }
  221. .inner-container:nth-child(2) {
  222. background: #c00000;
  223. color: white;
  224. clip-path: inset(0 50% 0 0);
  225. transition: .3s cubic-bezier(0,0,0,1);
  226. }
  227. .toggle {
  228. width: 50%;
  229. position: absolute;
  230. height: inherit;
  231. display: flex;
  232. box-sizing: border-box;
  233. }
  234. .toggle p {
  235. margin: auto;
  236. }
  237. .toggle:nth-child(1) {
  238. right: 0;
  239. }
  240. /* -----------------------------------------------------------------------------
  241. Loading
  242. -------------------------------------------------------------------------- */
  243. .loading {
  244. background-image: url('images/loading.gif');
  245. display: none;
  246. height: 20px;
  247. margin: 8px 0 0 10px;
  248. width: 20px;
  249. }
  250. /* -----------------------------------------------------------------------------
  251. Menu
  252. -------------------------------------------------------------------------- */
  253. #menu .small {
  254. font-size: 60%;
  255. padding-left: 9px;
  256. }
  257. #menu div.footer {
  258. color: #999;
  259. font-size: 80%;
  260. padding: 10px;
  261. }
  262. #menu div.footer a {
  263. padding: 0;
  264. text-decoration: none;
  265. }
  266. /* -----------------------------------------------------------------------------
  267. RF Bridge panel
  268. -------------------------------------------------------------------------- */
  269. #panel-rfb fieldset {
  270. margin: 10px 2px;
  271. padding: 20px;
  272. }
  273. #panel-rfb input {
  274. margin-right: 5px;
  275. }
  276. #panel-rfb label {
  277. padding-top: 5px;
  278. }
  279. #panel-rfb input {
  280. text-align: center;
  281. }
  282. /* -----------------------------------------------------------------------------
  283. Admin panel
  284. -------------------------------------------------------------------------- */
  285. #upgrade-progress {
  286. display: none;
  287. height: 20px;
  288. margin-top: 10px;
  289. width: 100%;
  290. }
  291. #uploader,
  292. #downloader {
  293. display: none;
  294. }
  295. /* -----------------------------------------------------------------------------
  296. Wifi panel
  297. -------------------------------------------------------------------------- */
  298. #networks .pure-g,
  299. #schedules .pure-g {
  300. border-bottom: 1px solid #eee;
  301. margin-bottom: 10px;
  302. padding: 10px 0 10px 0;
  303. }
  304. #networks .more {
  305. display: none;
  306. }
  307. #haConfig,
  308. #scanResult {
  309. margin-top: 10px;
  310. display: none;
  311. padding: 10px;
  312. }
  313. /* -----------------------------------------------------------------------------
  314. Table
  315. -------------------------------------------------------------------------- */
  316. .right {
  317. text-align: right;
  318. }
  319. table.dataTable.display tbody td {
  320. text-align: center;
  321. }
  322. #packets_filter {
  323. display: none;
  324. }
  325. .filtered {
  326. color: rgb(202, 60, 60);
  327. }
  328. /* -----------------------------------------------------------------------------
  329. Logs
  330. -------------------------------------------------------------------------- */
  331. #weblog {
  332. height: 400px;
  333. margin-bottom: 10px;
  334. }