Files
givefortune/task1/source/u-QhJMXmcPK/style.css
louiscklaw 5bc945e8af update,
2025-02-01 02:01:26 +08:00

392 lines
6.2 KiB
CSS

* {
font-family: "Mali", cursive;
font-size: small;
font-weight: 400;
}
.big-container {
background-image: ;
background-color: contain;
border-radius: 50px;
grid-gap: 20px;
padding: 5px;
width: 1000px;
height: 750px;
display: grid;
grid-template-columns: 32% 30% 45%;
grid-template-rows: 25% 45% 18%;
}
.title {
text-align: center;
font-size: 30px;
}
.welcome {
background-color: #ffffff;
display: flex;
border-radius: 50px;
width: 75%;
height: 105%;
grid-row: 1 / 2;
padding: 0px 40px;
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
}
.part1 {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #ffffff;
padding: 0px 40px;
width: 75%;
height: 110%;
grid-row: 2 / 4;
border-radius: 50px;
line-height: 10px;
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
}
h3 {
margin-top: 5px;
margin-bottom: 15px;
text-align: center;
font-size: 18px;
font-weight: 700;
line-height: normal;
}
.form-group {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 10px;
flex-grow: 1;
}
.form-group label {
text-align: left;
width: 70%;
font-family: "Mali", cursive;
}
.form-control {
background-color: #f0f0f0;
padding: 5px;
border-radius: 8px;
border: 1px solid #707070;
width: 70%;
}
.bmrbtn {
border-radius: 50px;
padding: 10px;
border: none;
background-color: #9162f3;
color: white;
width: 70%;
margin-top: 10px;
}
p {
font-size: 20px;
font-weight: 300;
}
#edit {
border-radius: 10px;
padding: 10px;
border: none;
background-color: #d9caf8;
width: 90%;
font-weight: bold;
margin: 30px, 0;
}
.threeBtn {
display: flex;
width: 100%;
font-size: 20px;
align-items: center;
gap: 10px;
}
.three {
border-radius: 10px;
padding: 20px;
border: none;
background-color: #9ffd98;
width: 40%;
color: #000000;
font-weight: bold;
}
#save {
border-radius: 10px;
padding: 5px;
border: none;
background-color: #000000;
width: 50%;
color: #ffffff;
font-weight: bold;
position: relative;
margin-top: 40px;
font-size: 15px;
}
.part2 {
background-color: #74f5fd;
border-radius: 50px;
padding: 20px;
grid-column: 2 / 3;
grid-row: 1 / 3;
height: 40%;
width: 100%;
line-height: 15px;
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
}
.calorie {
background-color: rgba(255, 255, 255, 0.3);
padding: 3px;
border-radius: 8px;
border: 1px solid rgb(0, 0, 0);
}
.apiInput {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 5px;
flex-grow: 1;
}
.apiInput select {
margin-top: 5px;
}
.foodbtn {
border-radius: 50px;
padding: 10px;
border: none;
background-color: #000000;
color: white;
width: 70%;
margin-top: 10px;
}
#part2result {
background-color: #9ffd98;
padding: 15px 15px;
border-radius: 50px;
grid-column: 2 / 3;
grid-row: 2 / 4;
width: 85%;
height: 93%;
margin-top: 60px;
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
}
#result-container {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 10px;
flex-grow: 1;
}
h2 {
font-size: 30px;
font-weight: 700;
margin-top: 60px;
}
#foodname {
font-size: 22px;
}
.line {
font-size: 16px;
border-bottom: 2px dotted #42329b;
width: 80%;
margin-bottom: -1px;
color: #707070;
font-weight: 300;
}
#recordbtn button {
border-radius: 15px;
padding: 10px;
border: none;
background-color: #000000;
width: 80%;
color: #ffffff;
margin-top: 20px;
font-weight: bold;
margin: 10px, 0;
}
.intakeListbtn {
border-radius: 15px;
padding: 10px;
border: none;
background-color: #d9caf8;
width: 70%;
color: #000000;
font-weight: bold;
margin-top: 10px;
}
.recorddate {
border-radius: 15px;
padding: 10px;
border: none;
background-color: #844eda;
width: 180px;
height: 50px;
color: #ffffff;
}
.nameCal {
display: flex;
justify-content: space-around;
background-color: #ffffff;
margin-bottom: 5px;
}
.calBar {
display: flex;
justify-content: space-around;
background-color: #ffffff;
}
.part3 {
background-color: #ffffff;
border-radius: 50px;
padding: 8px 30px;
grid-column: 3 / 4;
grid-row: 1 / 3;
height: 41vh;
width: 40vh;
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
margin-bottom: 15px;
}
.date {
display: flex;
justify-content: space-between;
}
.datebtn {
border: 0px;
background-color: #ffffff;
}
#dateContainer {
position: absolute;
display: flex;
align-items: center;
top: 10px;
right: 10px;
}
#currentDate {
font-size: 20px; /* Change the font size as desired */
font-family: "Mali", cursive;
}
.text {
font-size: 50px;
width: 100%;
text-align: center;
}
.container {
width: 500px;
height: 500px;
overflow: hidden;
position: relative;
margin: 50px auto;
}
.barcontainer {
background-color: #181818;
border-radius: 20px;
position: relative;
transform: translateY(-50%);
top: 80px;
margin-left: 10px;
width: 20px;
height: 150px;
float: left;
border: darken(#98afc7, 40%) 3px solid;
}
.bar {
background-color: #9bc9c7;
position: absolute;
bottom: 0;
width: 100%;
height: 80%;
border-radius: 20px;
border-top: 6px solid #fff;
box-sizing: border-box;
animation: grow 1.5s ease-out forwards;
transform-origin: bottom;
}
@keyframes grow {
from {
transform: scaleY(0);
}
}
.today {
font-size: 30px;
font-weight: 700;
}
#cal-value {
position: relative;
font-size: x-large;
text-align: center;
}
#back {
border-radius: 10px;
padding: 5px;
border: none;
background-color: #ffffff;
width: 30%;
color: #000000;
font-weight: bold;
position: relative;
top: 10px;
}
.part4 {
background-color: #ffffff;
border-radius: 50px;
padding: 8px 30px;
grid-column: 3 / 4;
grid-row: 2 / 3;
height: 50vh;
width: 40vh;
position: relative;
top: 90px;
right: 3px;
margin-top: 50px;
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
}
.weekly-report {
font-size: 20px;
font-weight: 700;
text-align: left;
}
/* button {
background: none;
border: none;
cursor: pointer;
font-size: 30px;
color: #000;
padding: 0;
margin: 0 30px;} /* Add margin between buttons */