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.

443 lines
8.2 KiB

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: 0px 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-del-schedule {
  132. margin-top: 15px;
  133. }
  134. .button-reboot,
  135. .button-reconnect,
  136. .button-ha-del,
  137. .button-rfb-forget,
  138. .button-del-network,
  139. .button-del-mapping,
  140. .button-del-schedule,
  141. .button-dbg-clear,
  142. .button-upgrade,
  143. .button-clear-filters,
  144. .button-clear-messages,
  145. .button-clear-counts,
  146. .button-settings-factory {
  147. background: rgb(192, 0, 0); /* redish */
  148. }
  149. .button-update,
  150. .button-update-password,
  151. .button-add-network,
  152. .button-add-mapping,
  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-messages,
  177. .button-clear-counts,
  178. .button-dbgcmd,
  179. .button-ha-add,
  180. .button-apikey,
  181. .button-upgrade {
  182. margin-left: 5px;
  183. }
  184. /* -----------------------------------------------------------------------------
  185. Sliders
  186. -------------------------------------------------------------------------- */
  187. input.slider {
  188. margin-top: 10px;
  189. }
  190. span.slider {
  191. font-size: 70%;
  192. letter-spacing: 0;
  193. margin-left: 10px;
  194. margin-top: 7px;
  195. }
  196. /* -----------------------------------------------------------------------------
  197. Checkboxes
  198. -------------------------------------------------------------------------- */
  199. .toggleWrapper{
  200. overflow: hidden;
  201. width:auto;
  202. height:29px;
  203. border: 1px solid #AAA;
  204. margin: 0px;
  205. padding: 0px;
  206. border-radius: 4px;
  207. box-shadow: inset 1px 1px #CCC;
  208. }
  209. .toggleWrapper input{
  210. position: absolute;
  211. left: -99em;
  212. }
  213. .toggle{
  214. margin: 0px !important;
  215. padding: 0px!important;
  216. letter-spacing:normal;
  217. cursor: pointer;
  218. display: inline-block;
  219. position: relative;
  220. width: 130px;
  221. height: 100%;
  222. background: #e9e9e9;
  223. color: #a9a9a9;
  224. border-radius: 4px;
  225. -webkit-transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  226. transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  227. }
  228. .toggle:before, .toggle:after{
  229. position: absolute;
  230. line-height: 30px;
  231. font-size: .7em;
  232. z-index: 2;
  233. -webkit-transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  234. transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  235. }
  236. .toggle:before{
  237. content: "NO";
  238. left: 20px;
  239. }
  240. .toggle:after{
  241. content: "YES";
  242. right: 20px;
  243. }
  244. .toggle__handler{
  245. display: inline-block;
  246. position: relative;
  247. z-index: 1;
  248. background: #c00000;
  249. width: 50%;
  250. height: 100%;
  251. border-radius: 4px;
  252. border-top-right-radius: 0px;
  253. border-bottom-right-radius: 0px;
  254. top: 0px;
  255. left: 0px;
  256. -webkit-transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  257. transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  258. -webkit-transform: translateX(0px);
  259. transform: translateX(0px);
  260. }
  261. input:checked + .toggle:after {
  262. color: #fff;
  263. }
  264. input:checked + .toggle:before {
  265. color: #a9a9a9;
  266. }
  267. input + .toggle:before {
  268. color: #fff;
  269. }
  270. input[disabled] + .toggle .toggle__handler{
  271. background: #CCC !important;
  272. }
  273. input:checked + .toggle .toggle__handler{
  274. width: 50%;
  275. background: #00c000;
  276. -webkit-transform: translateX(65px);
  277. transform: translateX(65px);
  278. border-color: #000;
  279. border-top-left-radius: 0px;
  280. border-bottom-left-radius: 0px;
  281. border-top-right-radius: 4px;
  282. border-bottom-right-radius: 4px;
  283. }
  284. /* -----------------------------------------------------------------------------
  285. Loading
  286. -------------------------------------------------------------------------- */
  287. .loading {
  288. background-image: url('images/loading.gif');
  289. display: none;
  290. height: 20px;
  291. margin: 8px 0 0 10px;
  292. width: 20px;
  293. }
  294. /* -----------------------------------------------------------------------------
  295. Menu
  296. -------------------------------------------------------------------------- */
  297. #menu .small {
  298. font-size: 60%;
  299. padding-left: 9px;
  300. }
  301. #menu div.footer {
  302. color: #999;
  303. font-size: 80%;
  304. padding: 10px;
  305. }
  306. #menu div.footer a {
  307. padding: 0;
  308. text-decoration: none;
  309. }
  310. /* -----------------------------------------------------------------------------
  311. RF Bridge panel
  312. -------------------------------------------------------------------------- */
  313. #panel-rfb fieldset {
  314. margin: 10px 2px;
  315. padding: 20px;
  316. }
  317. #panel-rfb input {
  318. margin-right: 5px;
  319. }
  320. #panel-rfb label {
  321. padding-top: 5px;
  322. }
  323. #panel-rfb input {
  324. text-align: center;
  325. }
  326. /* -----------------------------------------------------------------------------
  327. Admin panel
  328. -------------------------------------------------------------------------- */
  329. #upgrade-progress {
  330. display: none;
  331. height: 20px;
  332. margin-top: 10px;
  333. width: 100%;
  334. }
  335. #uploader,
  336. #downloader {
  337. display: none;
  338. }
  339. /* -----------------------------------------------------------------------------
  340. Wifi panel
  341. -------------------------------------------------------------------------- */
  342. #networks .pure-g,
  343. #schedules .pure-g {
  344. border-bottom: 1px solid #eee;
  345. margin-bottom: 10px;
  346. padding: 10px 0 10px 0;
  347. }
  348. #networks .more {
  349. display: none;
  350. }
  351. #haConfig,
  352. #scanResult {
  353. margin-top: 10px;
  354. display: none;
  355. padding: 10px;
  356. }
  357. /* -----------------------------------------------------------------------------
  358. Table
  359. -------------------------------------------------------------------------- */
  360. .right {
  361. text-align: right;
  362. }
  363. table.dataTable.display tbody td {
  364. text-align: center;
  365. }
  366. #packets_filter {
  367. display: none;
  368. }
  369. .filtered {
  370. color: rgb(202, 60, 60);
  371. }
  372. /* -----------------------------------------------------------------------------
  373. Logs
  374. -------------------------------------------------------------------------- */
  375. #weblog {
  376. height: 400px;
  377. margin-bottom: 10px;
  378. }