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.

383 lines
6.6 KiB

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