styles.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. :root {
  2. /* TODO: make this all parametric */
  3. --dark-back: burlywood;
  4. --light-back: bisque;
  5. --mid-accent: chocolate;
  6. --angry: orangered;
  7. }
  8. *,
  9. *::before,
  10. *::after {
  11. box-sizing: border-box;
  12. }
  13. body {
  14. margin: 0;
  15. background: var(--light-back);
  16. }
  17. .satis-tier {
  18. /* delete this rule when you get to satis tier, obviously */
  19. /* display: none; */
  20. }
  21. .nodisplay {
  22. display: none;
  23. }
  24. header .forloggedin,
  25. header .forloggedout {
  26. display: none;
  27. }
  28. [data-logged-in=true] header .forloggedin {
  29. display: initial;
  30. }
  31. [data-logged-in=false] header .forloggedout {
  32. display: initial;
  33. }
  34. header {
  35. display: flex;
  36. justify-content: space-between;
  37. background: var(--mid-accent);
  38. }
  39. header>* {
  40. padding: 1em;
  41. }
  42. header .logo {
  43. color: black;
  44. font-size: x-large;
  45. font-weight: bold;
  46. text-decoration: unset;
  47. }
  48. #refreshVotes {
  49. background-color: transparent;
  50. background-repeat: no-repeat;
  51. border: none;
  52. cursor: pointer;
  53. overflow: hidden;
  54. outline: none;
  55. }
  56. .refresh {
  57. display: flex;
  58. flex-direction: row;
  59. overflow-x: auto;
  60. width: fit-content;
  61. margin: 2em;
  62. background-color: var(--dark-back);
  63. border: 1px solid var(--mid-accent);
  64. border-radius: 4px;
  65. }
  66. .days-view {
  67. display: flex;
  68. flex-direction: row;
  69. width: calc(100vw - 4em);
  70. overflow-x: auto;
  71. margin: 2em;
  72. background-color: var(--dark-back);
  73. border: 1px solid var(--mid-accent);
  74. border-radius: 4px;
  75. }
  76. .days-view .card {
  77. display: flex;
  78. flex-direction: column;
  79. background: var(--light-back);
  80. margin: 8px;
  81. padding: 8px;
  82. border: 1px solid var(--mid-accent);
  83. border-radius: 4px;
  84. min-width: 12em;
  85. min-height: 30em;
  86. }
  87. .days-view>.card>*:nth-child(2) {
  88. margin: 1em 0.12em;
  89. }
  90. .days-view .card .cardtop {
  91. padding: 3px;
  92. border-radius: 3px;
  93. display: flex;
  94. flex-direction: row;
  95. justify-content: space-between;
  96. background-color: var(--dark-back);
  97. }
  98. .days-view .card .cardtop div.weather {
  99. display: flex;
  100. flex-direction: row;
  101. align-items: center;
  102. }
  103. .days-view .card .cardtop div.weather img {
  104. max-height: 35px;
  105. }
  106. .card .make-vote {
  107. visibility: hidden;
  108. }
  109. [data-logged-in=true] .card .make-vote .forloggedin {
  110. visibility: initial;
  111. }
  112. .days-view>.card>.vote {
  113. display: flex;
  114. flex-direction: column;
  115. align-items: center;
  116. }
  117. .days-view>.card>.vote button {
  118. margin: 2px;
  119. padding: 2px;
  120. box-shadow: 1px 1px 0 black;
  121. /* border-radius: 3px; */
  122. }
  123. .days-view>.card>.vote button.quiet {
  124. opacity: 50%;
  125. }
  126. .days-view>.card>.vote button.loud {
  127. font-weight: bold;
  128. border-width: 3px;
  129. }
  130. .existing-votes div {
  131. margin: 2px;
  132. padding: 2px;
  133. border-radius: 3px;
  134. }
  135. .existing-votes .vote-yes.vote-yes.vote-yes.vote-yes {
  136. background: green;
  137. }
  138. .existing-votes .vote-no.vote-no.vote-no.vote-no {
  139. background: red;
  140. }
  141. /* Scrollbar stuff. Works on Firefox */
  142. .days-view {
  143. scrollbar-width: thin;
  144. scrollbar-color: var(--mid-accent) var(--light-back);
  145. }
  146. /* Scrollbar stuff. Works on Chrome, Edge, and Safari */
  147. .days-view::-webkit-scrollbar {
  148. width: 12px;
  149. }
  150. .days-view::-webkit-scrollbar-track {
  151. background: var(--light-back);
  152. }
  153. .days-view::-webkit-scrollbar-thumb {
  154. background-color: var(--mid-accent);
  155. /* border-radius: 20px; */
  156. border: 3px solid var(--light-back);
  157. }