App.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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: hsl(214, 56%, 61%);
  7. --light-highlight-color: #d6d6d6;
  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. max-width:710px;
  22. margin: auto;
  23. }
  24. h2 {
  25. margin: 0px;
  26. }
  27. .label-container {
  28. display: flex;
  29. align-items: center;
  30. }
  31. .label_box {
  32. border-top: 2px solid var(--highlight-color);
  33. }
  34. .label_box:first-child {
  35. border: none;
  36. }
  37. .label-container label {
  38. width: 400px;
  39. text-align: left;
  40. background-color: var(--light-highlight-color);
  41. border-bottom: 1px solid var(--light-highlight-color);
  42. padding: 3px;
  43. font-weight: bold;
  44. }
  45. .label-container span, input, select, a {
  46. text-align: right;
  47. width: 300px;
  48. padding: 3px;
  49. border: none;
  50. border-bottom: 1px solid var(--light-highlight-color);
  51. align-self: flex-end;
  52. }
  53. /* Checkbox Design */
  54. input[type="checkbox"] {
  55. width: 20px;
  56. height: 20px;
  57. border-radius: 4px;
  58. appearance: none;
  59. -webkit-appearance: none;
  60. -moz-appearance: none;
  61. outline: none;
  62. border: 2px solid black;
  63. background-color: white;
  64. }
  65. input[type="checkbox"]:checked {
  66. 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');
  67. background-repeat: no-repeat;
  68. background-position: center;
  69. background-size: 19px 19px;
  70. }
  71. .calculateButton {
  72. min-width: 400px;
  73. font-weight: bolder;
  74. border: 2px solid black;
  75. cursor: pointer;
  76. font-size: 15px;
  77. margin: 3px;
  78. background-color: var(--highlight-color);
  79. }
  80. .delete-button {
  81. color: red;
  82. background-color: transparent;
  83. border: none;
  84. cursor: pointer;
  85. }
  86. .delete-button:hover {
  87. color: darkred;
  88. }
  89. /* Responsive Table Design */
  90. @media only screen and (max-width: 800px) {
  91. .label-container label {
  92. width: 49%;
  93. word-wrap: break-word;
  94. }
  95. .label-container span, input, select, a {
  96. width: 49%;
  97. }
  98. .calculateButton {
  99. min-width: 49%;
  100. }
  101. }