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.

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