webcontent.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef GOTEK_WEBCONTENT_H
  2. #define GOTEK_WEBCONTENT_H
  3. const char stylecss[] PROGMEM = R"rawliteral(<style>
  4. body { font-family: Arial; text-align: center; margin:0px auto; padding-top: 30px;}
  5. .button {
  6. padding: 10px 20px;
  7. font-size: 24px;
  8. text-align: center;
  9. outline: none;
  10. color: #fff;
  11. background-color: #2f4468;
  12. border: none;
  13. border-radius: 5px;
  14. box-shadow: 0 6px #999;
  15. cursor: pointer;
  16. -webkit-touch-callout: none;
  17. -webkit-user-select: none;
  18. -khtml-user-select: none;
  19. -moz-user-select: none;
  20. -ms-user-select: none;
  21. user-select: none;
  22. -webkit-tap-highlight-color: rgba(0,0,0,0);
  23. }
  24. .button:hover {background-color: #1f2e45}
  25. .button:active {
  26. background-color: #1f2e45;
  27. box-shadow: 0 4px #666;
  28. transform: translateY(2px);
  29. }
  30. .switch {position: relative; display: inline-block; width: 120px; height: 68px}
  31. .switch input {display: none}
  32. .slider {position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; border-radius: 34px}
  33. .slider:before {position: absolute; content: ""; height: 52px; width: 52px; left: 8px; bottom: 8px; background-color: #fff; -webkit-transition: .4s; transition: .4s; border-radius: 68px}
  34. input:checked+.slider {background-color: #2196F3}
  35. input:checked+.slider:before {-webkit-transform: translateX(52px); -ms-transform: translateX(52px); transform: translateX(52px)}
  36. ul {
  37. list-style-type: none;
  38. margin: 0;
  39. padding: 0;
  40. }
  41. </style>)rawliteral";
  42. #endif //GOTEK_WEBCONTENT_H