ESP8266 Treppenlichtsteuerung mit OTA zum Firmware Upload
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.

style.css 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. html {
  2. font-size: 10px;
  3. font-family: sans-serif, Arial, Helvetica;
  4. background-color: #b3b3b3;
  5. }
  6. .topbar {
  7. padding: 1em;
  8. background-color: #1f1f1f;
  9. color: white;
  10. font-size: x-large;
  11. text-align: center;
  12. }
  13. .control {
  14. padding: 1em;
  15. }
  16. p, li {
  17. font-size: 16px;
  18. line-height: 2;
  19. letter-spacing: 1px;
  20. }
  21. body {
  22. margin: 0 auto;
  23. border: 1px solid black;
  24. border-radius: 3;
  25. }
  26. /* The switch - the box around the slider */
  27. .switch {
  28. position: relative;
  29. display: inline-block;
  30. width: 60px;
  31. height: 34px;
  32. }
  33. /* Hide default HTML checkbox */
  34. .switch input {
  35. opacity: 0;
  36. width: 0;
  37. height: 0;
  38. }
  39. /* The slider */
  40. .slider {
  41. position: absolute;
  42. cursor: pointer;
  43. top: 0;
  44. left: 0;
  45. right: 0;
  46. bottom: 0;
  47. background-color: #ccc;
  48. -webkit-transition: .4s;
  49. transition: .4s;
  50. }
  51. .slider:before {
  52. position: absolute;
  53. content: "";
  54. height: 26px;
  55. width: 26px;
  56. left: 4px;
  57. bottom: 4px;
  58. background-color: white;
  59. -webkit-transition: .4s;
  60. transition: .4s;
  61. }
  62. input:checked + .slider {
  63. background-color: #04AA6D;
  64. }
  65. input:focus + .slider {
  66. box-shadow: 0 0 1px #04AA6D;
  67. }
  68. input:checked + .slider:before {
  69. -webkit-transform: translateX(26px);
  70. -ms-transform: translateX(26px);
  71. transform: translateX(26px);
  72. }
  73. /* Rounded sliders */
  74. .slider.round {
  75. border-radius: 34px;
  76. }
  77. .slider.round:before {
  78. border-radius: 50%;
  79. }
  80. /* The slider itself */
  81. .rangeslider {
  82. -webkit-appearance: none; /* Override default CSS styles */
  83. appearance: none;
  84. width: 50%; /* Full-width */
  85. height: 34px; /* Specified height */
  86. border-radius: 34px; /* range round corners */
  87. background: #d3d3d3; /* Grey background */
  88. outline: none; /* Remove outline */
  89. opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  90. -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  91. transition: opacity .2s;
  92. }
  93. /* Mouse-over effects */
  94. .rangeslider:hover {
  95. opacity: 1; /* Fully shown on mouse-over */
  96. }
  97. /* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
  98. .rangeslider::-webkit-slider-thumb {
  99. -webkit-appearance: none; /* Override default look */
  100. appearance: none;
  101. width: 26px; /* Set a specific slider handle width */
  102. height: 26px; /* Slider handle height */
  103. border-radius: 50%; /* Round Element */
  104. background: #04AA6D; /* Green background */
  105. cursor: pointer; /* Cursor on hover */
  106. }
  107. .rangeslider::-moz-range-thumb {
  108. width: 26px; /* Set a specific slider handle width */
  109. height: 26px; /* Slider handle height */
  110. background: #04AA6D; /* Green background */
  111. cursor: pointer; /* Cursor on hover */
  112. }