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.

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