esp8266-remote-timer

ESP8266 based timer w/ remote control and NTP sync
Index Commits Files Refs README LICENSE
data/style.css (4636B)
   1 body {
   2     margin: 3em auto 3em auto;
   3     text-align: center;
   4     font-family: "Nimbus Sans", "Nimbus Sans L", "Helvetica", Inter;
   5     font-size: 20px;
   6 }
   7 
   8 #title {
   9     padding: 0em 0.5em 0em 0.5em;
  10 }
  11 
  12 #main-div {
  13     max-width: 23em;
  14     margin: auto auto;
  15     padding: 0 10px;
  16 }
  17 
  18 table {
  19     border-collapse: collapse;
  20 }
  21 
  22 tr {
  23     vertical-align: bottom;
  24     border-color: #3E3E42;
  25 }
  26 
  27 td {
  28     width: 100%;
  29 }
  30 
  31 a, a:visited {
  32     color: #00E;
  33 }
  34 
  35 h1 {
  36     font-size: 36px;
  37 }
  38 
  39 #main-toggle-div {
  40     margin-bottom: 0.5em;
  41     cursor: pointer;
  42     padding: 1.25em 28px 1.00em 28px;
  43     border-radius: 8px;
  44     border: 1px solid #E3E3E3;
  45 }
  46 
  47 #timer {
  48     border-radius: 8px;
  49     border: 1px solid #E3E3E3;
  50 }
  51 
  52 #timer-enable {
  53     cursor: pointer;
  54     padding: 27.5px 28px 16px 28px;
  55 }
  56 
  57 #timer-picker {
  58     padding: 18px 28px 0.00em 28px;
  59     font-size: 20px;
  60 }
  61 
  62 #timer-sep {
  63     border-bottom: 1px solid #E3E3E3;
  64     margin: 0 30px 0 30px;
  65 }
  66 
  67 #from-time, #to-time {
  68     font-size: 18px;
  69     padding: 2px;
  70     margin: 0px;
  71     border: 1px solid #E3E3E3;
  72     border-radius: 5px;
  73     cursor: pointer;
  74     background-color: white;
  75 }
  76 
  77 #timer-save-div {
  78     padding: 18px 30px 30px 30px;
  79     text-align: center;
  80 }
  81 
  82 #timer-save {
  83     margin-right: 0px;
  84     box-shadow: none;
  85     border: 1px solid #E3E3E3;
  86     color: black;
  87     background-color: white;
  88     border-radius: 5px;
  89     cursor: pointer;
  90     height: 32px;
  91     font-size: 14px;
  92     width: 100%;
  93     font-weight: bold;
  94 }
  95 
  96 #timer-save:active {
  97   background-color: #E3E3E3;
  98   border: none;
  99 }
 100 
 101 @media (hover: hover) and (pointer: fine) {
 102     #main-toggle-div:hover #main-checkbox,
 103     #timer-enable:hover #timer-checkbox,
 104     #from-time:hover, #to-time:hover,
 105     #main-checkbox:hover, #timer-checkbox:hover,
 106     #timer-save:hover {
 107         border: 1px solid #999999;
 108     }
 109 }
 110 
 111 #from-time:focus-visible,
 112 #to-time:focus-visible {
 113     border: 1px solid #999999;
 114     outline: none;
 115 }
 116 
 117 #buttons-div {
 118     text-align: left;
 119     margin-left: auto;
 120     margin-right: auto;
 121     font-size: 22px;
 122     user-select: none;
 123 }
 124 
 125 #info-div {
 126     padding: 1.75em 1em 1em 1em;
 127     font-size: 16px;
 128     td {
 129         padding: .20em;
 130         text-wrap: nowrap;
 131     }
 132     td:nth-child(1) {
 133         text-align: left;
 134         user-select: none;
 135     }
 136     td:nth-child(2) {
 137         text-align: right;
 138         font-family: monospace;
 139     }
 140 }
 141 
 142 #save-button {
 143     padding: 0.25em 0 0 0;
 144     text-align: right;
 145 }
 146 
 147 #save-timer-button {
 148     border: 1px solid grey;
 149     border-radius: 2px;
 150     text-align: center;
 151     margin-top: 0.35em;
 152     font-size: 16px;
 153     color: black;
 154     background-color: white;
 155     vertical-align: bottom;
 156 }
 157 
 158 #main-checkbox, #timer-checkbox {
 159     width: 20px;
 160     height: 20px;
 161     border: 1px solid #E3E3E3;
 162     border-radius: 5px;
 163     color: black;
 164     text-align: center;
 165     vertical-align: center;
 166     cursor: pointer;
 167     color: white;
 168     svg {
 169         display: none;
 170     }
 171 }
 172 
 173 #main-checkbox[checked="1"], #timer-checkbox[checked="1"] {
 174     background-color: #3584e4;
 175     svg {
 176         display: revert;
 177     }
 178 }
 179 
 180 #checkmark-svg {
 181     width: 14px;
 182     height: 20px;
 183 }
 184 
 185 #main-checkbox-td, #timer-checkbox-td {
 186     display: block;
 187     padding: 0;
 188     margin: 0;
 189 }
 190 
 191 @media (prefers-color-scheme: dark) {
 192     body {
 193         color: white;
 194         background-color: #17171A;
 195     }
 196 
 197     a, a:visited {
 198         color: #56C8FF;
 199     }
 200 
 201     input {
 202         color-scheme: dark;
 203     }
 204 
 205     #buttons-div {
 206         border: none;
 207     }
 208 
 209     #main-toggle-div, #timer {
 210         background-color: #232326;
 211         border: none;
 212     }
 213 
 214     #timer-sep {
 215         border-bottom-color: #3E3E42;
 216     }
 217 
 218     #timer-save {
 219         border-color: #999999;
 220         color: white;
 221         background-color: #303033;
 222         border-color: #3E3E42;
 223     }
 224 
 225     #timer-save:active {
 226         background-color: #3E3E42;
 227         border: none;
 228     }
 229 
 230     #from-time, #to-time {
 231         background-color: #303033;
 232         color: white;
 233         border-color: #3E3E42;
 234     }
 235 
 236     #main-checkbox, #timer-checkbox {
 237         border-color: #3E3E42;
 238         background-color: #303033;
 239     }
 240 
 241     #main-checkbox[checked="1"], #timer-checkbox[checked="1"] {
 242         background-color: #56C8FF;
 243         color: #004263;
 244     }
 245 
 246     @media (hover: hover) and (pointer: fine) {
 247         #main-toggle-div:hover #main-checkbox,
 248         #timer-enable:hover #timer-checkbox,
 249         #from-time:hover, #to-time:hover,
 250         #main-checkbox:hover, #timer-checkbox:hover,
 251         #timer-save:hover {
 252             border: 1px solid #828282;
 253         }
 254     }
 255 
 256     #from-time:focus-visible,
 257     #to-time:focus-visible {
 258         border: 1px solid #828282;
 259     }
 260 }