|
|
@@ -1,38 +1,118 @@
|
|
|
-.App {
|
|
|
- text-align: center;
|
|
|
+@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");
|
|
|
+
|
|
|
+/** Main Colors **/
|
|
|
+:root {
|
|
|
+ --background-color: white;
|
|
|
+ --main-color: black;
|
|
|
+ --highlight-color: #49a1f8;
|
|
|
+ --light-highlight-color: #9bc9f1;
|
|
|
}
|
|
|
|
|
|
-.App-logo {
|
|
|
- height: 40vmin;
|
|
|
- pointer-events: none;
|
|
|
+input, select {
|
|
|
+ -ms-box-sizing:content-box;
|
|
|
+ -moz-box-sizing:content-box;
|
|
|
+ -webkit-box-sizing:content-box;
|
|
|
+ box-sizing:content-box;
|
|
|
}
|
|
|
|
|
|
-@media (prefers-reduced-motion: no-preference) {
|
|
|
- .App-logo {
|
|
|
- animation: App-logo-spin infinite 20s linear;
|
|
|
- }
|
|
|
+body {
|
|
|
+ background-color: var(--background-color);
|
|
|
+ color: var(--main-color);
|
|
|
+ font-family: "Roboto", sans-serif;
|
|
|
+ font-weight: 400;
|
|
|
+ font-style: normal;
|
|
|
+}
|
|
|
+
|
|
|
+h2 {
|
|
|
+ margin: 0px;
|
|
|
}
|
|
|
|
|
|
-.App-header {
|
|
|
- background-color: #282c34;
|
|
|
- min-height: 100vh;
|
|
|
+
|
|
|
+.label-container {
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-size: calc(10px + 2vmin);
|
|
|
- color: white;
|
|
|
+}
|
|
|
+.label_box {
|
|
|
+ border-top: 2px solid var(--highlight-color);
|
|
|
+}
|
|
|
+.label_box:first-child {
|
|
|
+ border: none;
|
|
|
+}
|
|
|
+
|
|
|
+.label-container label {
|
|
|
+ width: 400px;
|
|
|
+ text-align: left;
|
|
|
+ background-color: var(--light-highlight-color);
|
|
|
+
|
|
|
+ border-bottom: 1px solid var(--light-highlight-color);
|
|
|
+ padding: 3px;
|
|
|
+ font-weight: bold;
|
|
|
+}
|
|
|
+
|
|
|
+.label-container span, input, select, a {
|
|
|
+ text-align: right;
|
|
|
+ width: 300px;
|
|
|
+ padding: 3px;
|
|
|
+ border: none;
|
|
|
+ border-bottom: 1px solid var(--light-highlight-color);
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+/* Checkbox Design */
|
|
|
+input[type="checkbox"] {
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ border-radius: 4px;
|
|
|
+ appearance: none;
|
|
|
+ -webkit-appearance: none;
|
|
|
+ -moz-appearance: none;
|
|
|
+ outline: none;
|
|
|
+ border: 2px solid black;
|
|
|
+ background-color: white;
|
|
|
+}
|
|
|
+
|
|
|
+input[type="checkbox"]:checked {
|
|
|
+ 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');
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: center;
|
|
|
+ background-size: 19px 19px;
|
|
|
+}
|
|
|
+
|
|
|
+.calculateButton {
|
|
|
+ min-width: 400px;
|
|
|
+ font-weight: bolder;
|
|
|
+ border: 2px solid black;
|
|
|
+ cursor: pointer;
|
|
|
+ font-size: 15px;
|
|
|
+ margin: 3px;
|
|
|
+ background-color: var(--highlight-color);
|
|
|
+}
|
|
|
+
|
|
|
+.plus-button:hover {
|
|
|
+ color: var(--light-highlight-color);
|
|
|
}
|
|
|
|
|
|
-.App-link {
|
|
|
- color: #61dafb;
|
|
|
+.delete-button {
|
|
|
+ color: red;
|
|
|
}
|
|
|
|
|
|
-@keyframes App-logo-spin {
|
|
|
- from {
|
|
|
- transform: rotate(0deg);
|
|
|
+.plus-button:hover {
|
|
|
+ color: darkred;
|
|
|
+}
|
|
|
+
|
|
|
+/* Responsive Table Design */
|
|
|
+@media only screen and (max-width: 800px) {
|
|
|
+
|
|
|
+ .label-container label {
|
|
|
+ width: 49%;
|
|
|
}
|
|
|
- to {
|
|
|
- transform: rotate(360deg);
|
|
|
+
|
|
|
+ .calculateButton {
|
|
|
+ width: 49%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .label-container span, input, select, a {
|
|
|
+ width: 49%;
|
|
|
}
|
|
|
}
|
|
|
+
|