styles.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. .days-view {
  49. display: flex;
  50. flex-direction: row;
  51. width: calc(100vw - 4em);
  52. overflow-x: auto;
  53. margin: 2em;
  54. background-color: var(--dark-back);
  55. border: 1px solid var(--mid-accent);
  56. border-radius: 4px;
  57. }
  58. .days-view .card {
  59. display: flex;
  60. flex-direction: column;
  61. background: var(--light-back);
  62. margin: 8px;
  63. padding: 8px;
  64. border: 1px solid var(--mid-accent);
  65. border-radius: 4px;
  66. min-width: 12em;
  67. min-height: 30em;
  68. }
  69. .days-view>.card>*:nth-child(2) {
  70. margin: 1em 0.12em;
  71. }
  72. .days-view .card .cardtop {
  73. padding: 3px;
  74. border-radius: 3px;
  75. display: flex;
  76. flex-direction: row;
  77. justify-content: space-between;
  78. background-color: var(--dark-back);
  79. }
  80. .days-view .card .cardtop div.weather {
  81. display: flex;
  82. flex-direction: row;
  83. align-items: center;
  84. }
  85. .days-view .card .cardtop div.weather img {
  86. max-height: 35px;
  87. }
  88. .card .make-vote {
  89. visibility: hidden;
  90. }
  91. [data-logged-in=true] .card .make-vote .forloggedin {
  92. visibility: initial;
  93. }
  94. .days-view>.card>.vote {
  95. display: flex;
  96. flex-direction: column;
  97. align-items: center;
  98. }
  99. .days-view>.card>.vote button {
  100. margin: 2px;
  101. padding: 2px;
  102. box-shadow: 1px 1px 0 black;
  103. /* border-radius: 3px; */
  104. }
  105. .days-view>.card>.vote button.quiet {
  106. opacity: 50%;
  107. }
  108. .days-view>.card>.vote button.loud {
  109. font-weight: bold;
  110. border-width: 3px;
  111. }
  112. .existing-votes div {
  113. margin: 2px;
  114. padding: 2px;
  115. border-radius: 3px;
  116. }
  117. .existing-votes .vote-yes.vote-yes.vote-yes.vote-yes {
  118. background: green;
  119. }
  120. .existing-votes .vote-no.vote-no.vote-no.vote-no {
  121. background: red;
  122. }
  123. /* Scrollbar stuff. Works on Firefox */
  124. .days-view {
  125. scrollbar-width: thin;
  126. scrollbar-color: var(--mid-accent) var(--light-back);
  127. }
  128. /* Scrollbar stuff. Works on Chrome, Edge, and Safari */
  129. .days-view::-webkit-scrollbar {
  130. width: 12px;
  131. }
  132. .days-view::-webkit-scrollbar-track {
  133. background: var(--light-back);
  134. }
  135. .days-view::-webkit-scrollbar-thumb {
  136. background-color: var(--mid-accent);
  137. /* border-radius: 20px; */
  138. border: 3px solid var(--light-back);
  139. }