App.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
  2. /** Main Colors **/
  3. :root {
  4. --background-color: white;
  5. --main-color: black;
  6. --highlight-color: #576fcb;
  7. --error-color: #d73741;
  8. }
  9. input, select {
  10. -ms-box-sizing:content-box;
  11. -moz-box-sizing:content-box;
  12. -webkit-box-sizing:content-box;
  13. box-sizing:content-box;
  14. }
  15. body {
  16. background-color: var(--background-color);
  17. color: var(--main-color);
  18. font-family: "Roboto", sans-serif;
  19. font-weight: 400;
  20. font-style: normal;
  21. font-size: 18px;
  22. max-width:710px;
  23. margin: auto;
  24. }
  25. h2 {
  26. margin: 0px;
  27. }
  28. .label-container {
  29. display: flex;
  30. align-items: center;
  31. }
  32. .label_box {
  33. border-top: 2px solid var(--highlight-color);
  34. }
  35. .label_box:first-child {
  36. border: none;
  37. }
  38. .label-container label {
  39. width: 400px;
  40. text-align: left;
  41. padding: 3px;
  42. font-weight: bold;
  43. }
  44. .label-container span, input, select, a {
  45. font-size: 18px;
  46. text-align: right;
  47. width: 300px;
  48. padding: 3px;
  49. border: none;
  50. border: 1px solid var(--main-color);
  51. height: 100%;
  52. padding: 1px;
  53. }
  54. /* Checkbox Design */
  55. input[type="checkbox"] {
  56. width: 20px;
  57. height: 20px;
  58. border-radius: 4px;
  59. appearance: none;
  60. -webkit-appearance: none;
  61. -moz-appearance: none;
  62. outline: none;
  63. border: 2px solid black;
  64. background-color: white;
  65. }
  66. input[type="checkbox"]:checked {
  67. background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="none" d="M0 0h24v24H0z" /%3E%3Cpath d="M5.5 13.6l2.7 2.7L16.8 8l1.4 1.4-9.5 9.5L3 12.3z" fill="black" /%3E%3C/svg%3E');
  68. background-repeat: no-repeat;
  69. background-position: center;
  70. background-size: 19px 19px;
  71. }
  72. .calculateButton {
  73. min-width: 98%;
  74. font-weight: bolder;
  75. border: 2px solid black;
  76. cursor: pointer;
  77. font-size: 20px;
  78. margin: 3px;
  79. background-color: var(--highlight-color);
  80. color: var(--background-color);
  81. text-align: left;
  82. }
  83. .delete-button {
  84. color: var(--error-color);
  85. background-color: transparent;
  86. border: none;
  87. cursor: pointer;
  88. font-weight: bolder;
  89. font-size: 18px;
  90. }
  91. .delete-button:hover {
  92. color: darkred;
  93. }
  94. /* Responsive Table Design */
  95. @media only screen and (max-width: 800px) {
  96. .label-container label {
  97. width: 49%;
  98. word-wrap: break-word;
  99. }
  100. .label-container span, input, select, a {
  101. width: 49%;
  102. }
  103. .calculateButton {
  104. min-width: 98%;
  105. }
  106. }