index.css 3.8 KB

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