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.

409 lines
7.0 KiB

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