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.

408 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
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. -webkit-clip-path: inset(0 50% 0 0);
  227. clip-path: inset(0 50% 0 0);
  228. transition: .3s cubic-bezier(0,0,0,1);
  229. }
  230. .toggle {
  231. width: 50%;
  232. position: absolute;
  233. height: inherit;
  234. display: flex;
  235. box-sizing: border-box;
  236. }
  237. .toggle p {
  238. margin: auto;
  239. }
  240. .toggle:nth-child(1) {
  241. right: 0;
  242. }
  243. /* -----------------------------------------------------------------------------
  244. Loading
  245. -------------------------------------------------------------------------- */
  246. .loading {
  247. background-image: url('images/loading.gif');
  248. display: none;
  249. height: 20px;
  250. margin: 8px 0 0 10px;
  251. width: 20px;
  252. }
  253. /* -----------------------------------------------------------------------------
  254. Menu
  255. -------------------------------------------------------------------------- */
  256. #menu .small {
  257. font-size: 60%;
  258. padding-left: 9px;
  259. }
  260. #menu div.footer {
  261. color: #999;
  262. font-size: 80%;
  263. padding: 10px;
  264. }
  265. #menu div.footer a {
  266. padding: 0;
  267. text-decoration: none;
  268. }
  269. /* -----------------------------------------------------------------------------
  270. RF Bridge panel
  271. -------------------------------------------------------------------------- */
  272. #panel-rfb fieldset {
  273. margin: 10px 2px;
  274. padding: 20px;
  275. }
  276. #panel-rfb input {
  277. margin-right: 5px;
  278. }
  279. #panel-rfb label {
  280. padding-top: 5px;
  281. }
  282. #panel-rfb input {
  283. text-align: center;
  284. }
  285. /* -----------------------------------------------------------------------------
  286. Admin panel
  287. -------------------------------------------------------------------------- */
  288. #upgrade-progress {
  289. display: none;
  290. height: 20px;
  291. margin-top: 10px;
  292. width: 100%;
  293. }
  294. #uploader,
  295. #downloader {
  296. display: none;
  297. }
  298. /* -----------------------------------------------------------------------------
  299. Wifi panel
  300. -------------------------------------------------------------------------- */
  301. #networks .pure-g,
  302. #schedules .pure-g {
  303. border-bottom: 1px solid #eee;
  304. margin-bottom: 10px;
  305. padding: 10px 0 10px 0;
  306. }
  307. #networks .more {
  308. display: none;
  309. }
  310. #haConfig,
  311. #scanResult {
  312. margin-top: 10px;
  313. display: none;
  314. padding: 10px;
  315. }
  316. /* -----------------------------------------------------------------------------
  317. Table
  318. -------------------------------------------------------------------------- */
  319. .right {
  320. text-align: right;
  321. }
  322. table.dataTable.display tbody td {
  323. text-align: center;
  324. }
  325. #packets_filter {
  326. display: none;
  327. }
  328. .filtered {
  329. color: rgb(202, 60, 60);
  330. }
  331. /* -----------------------------------------------------------------------------
  332. Logs
  333. -------------------------------------------------------------------------- */
  334. #weblog {
  335. height: 400px;
  336. margin-bottom: 10px;
  337. }