A rewrite of the Raspberry Pi Garage Door Opener using Flask
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.

106 lines
1.4 KiB

  1. * {box-sizing: border-box;}
  2. body {
  3. margin: 0;
  4. }
  5. .header {
  6. overflow: hidden;
  7. background-color: #f1f1f1;
  8. padding: 20px 10px;
  9. }
  10. a {
  11. float: left;
  12. color: black;
  13. text-align: center;
  14. padding: 12px;
  15. text-decoration: none;
  16. font-size: 18px;
  17. line-height: 25px;
  18. border-radius: 4px;
  19. }
  20. a.none {
  21. float: none;
  22. color: dodgerblue;
  23. text-align: inherit;
  24. padding: 0px;
  25. text-decoration: none;
  26. font-size: 16px;
  27. line-height: 24px;
  28. border-radius: 0px;
  29. }
  30. a.overridefloat {
  31. float: none;
  32. text-align: center;
  33. padding: 12px;
  34. text-decoration: none;
  35. font-size: 18px;
  36. line-height: 25px;
  37. border-radius: 4px;
  38. background-color: dodgerblue;
  39. color: white;
  40. }
  41. a.overridefloat:hover {
  42. background-color: #ddd;
  43. color: black;
  44. }
  45. a.text {
  46. font-size: 25px;
  47. font-weight: bold;
  48. }
  49. a:hover {
  50. background-color: #ddd;
  51. color: black;
  52. }
  53. a.active {
  54. background-color: dodgerblue;
  55. color: white;
  56. }
  57. .header-right {
  58. float: right;
  59. }
  60. @media screen and (max-width: 500px) {
  61. .header a {
  62. float: none;
  63. display: block;
  64. text-align: left;
  65. }
  66. .header-right {
  67. float: none;
  68. }
  69. }
  70. .column {
  71. float: left;
  72. width: 50%;
  73. padding: 10px;
  74. height: calc(100vh - 149px)
  75. }
  76. .row:after {
  77. content: "";
  78. display: table;
  79. clear: both;
  80. }
  81. .row {
  82. margin-left: 0px;
  83. margin-right: 0px;
  84. }
  85. @media screen and (max-width: 600px) {
  86. .column {
  87. width: 100%;
  88. height: calc((100vh - 198px)*0.5)
  89. }
  90. }