index.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. @import "./home.css";
  2. @import "./addMenu.css";
  3. @import "./createAllowance.css";
  4. @import "./viewTransactions.css";
  5. :root {
  6. --primary: #6E4B3A;
  7. --secondary: #3A5A85;
  8. --accent: #D4AF37;
  9. --background: #F9F6F0;
  10. --surface: #DCD6CF;
  11. --textMain: #2A2A2A;
  12. --textMuted: #6D6D6D;
  13. --error: #B7410E;
  14. --success: #708238;
  15. }
  16. *{
  17. margin: 0;
  18. padding: 0;
  19. box-sizing: border-box;
  20. }
  21. body{
  22. height: 100vh;
  23. width: 100vw;
  24. background: var(--background);
  25. color: var(--textMain);
  26. }
  27. .logo{
  28. position: absolute;
  29. top: 15px;
  30. left: 15px;
  31. z-index: 100;
  32. cursor: pointer;
  33. background: none;
  34. border: none;
  35. }
  36. .page{
  37. display: flex;
  38. flex-direction: column;
  39. justify-content: center;
  40. align-items: center;
  41. height: 100%;
  42. width: 100%;
  43. position: relative;
  44. padding: 10px;
  45. padding: 75px 10px 10px 10px;
  46. }
  47. .standardForm{
  48. display: flex;
  49. flex-direction: column;
  50. width: 100%;
  51. max-width: 550px;
  52. background: var(--surface);
  53. padding: 10px;
  54. }
  55. .standardForm h1{
  56. text-align: center;
  57. }
  58. .standardForm label{
  59. display: flex;
  60. flex-direction: column;
  61. font-size: 22px;
  62. margin: 5px 0;
  63. }
  64. .standardForm input,
  65. .standardForm select{
  66. background: white;
  67. outline: none;
  68. font-size: 22px;
  69. padding: 5px 0 5px 10px;
  70. border: 3px solid rgba(0, 0, 0, 0);
  71. }
  72. .standardForm input:focus,
  73. .standardForm select:focus{
  74. border: 3px solid var(--secondary);
  75. }
  76. .standardForm button,
  77. .button{
  78. font-size: 22px;
  79. margin: 10px 0;
  80. background: var(--primary);
  81. border: none;
  82. color: var(--accent);
  83. padding: 10px;
  84. font-weight: 700;
  85. cursor: pointer;
  86. }
  87. .standardForm button:hover,
  88. .button:hover{
  89. filter: brightness(1.25);
  90. }
  91. .standardForm button:active,
  92. .button:active{
  93. filter: brightness(1.75);
  94. }
  95. .standardForm button.cancel,
  96. .button.cancel{
  97. background: var(--error);
  98. color: white;
  99. }
  100. .navigator{
  101. display: flex;
  102. position: absolute;
  103. top: 5px;
  104. right: 5px;
  105. }
  106. .navButton{
  107. display: flex;
  108. justify-content: center;
  109. align-items: center;
  110. border-radius: 50%;
  111. height: 50px;
  112. width: 50px;
  113. font-size: 45px;
  114. color: var(--accent);
  115. background: var(--primary);
  116. border: none;
  117. cursor: pointer;
  118. margin: 0 5px;
  119. }
  120. .navButton:hover{
  121. filter: brightness(1.25);
  122. }
  123. .navButton:active{
  124. filter: brightness(1.75);
  125. }
  126. .navButton svg{
  127. height: 35px;
  128. width: 35px;
  129. }
  130. .link,
  131. .standardForm .link{
  132. background: none;
  133. border: none;
  134. font-size: 18px;
  135. color: var(--textMuted);
  136. cursor: pointer;
  137. text-decoration: underline;
  138. margin: 0;
  139. }
  140. .notifier{
  141. position: absolute;
  142. bottom: 35px;
  143. left: 50%;
  144. transform: translate(-50%);
  145. width: 100%;
  146. max-width: 750px;
  147. padding: 15px 35px;
  148. font-size: 18px;
  149. font-weight: 700;
  150. text-align: center;
  151. z-index: 100;
  152. color: #fff;
  153. }
  154. .notifier.error{
  155. background: var(--error);
  156. }
  157. .notifier.success{
  158. background: var(--success);
  159. }