Files
dhi-class-website/public/style.css
T
2026-03-04 21:41:09 +09:00

305 lines
5.0 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100%;
height: 100vh;
font-family: "Fira Code", serif;
display: flex;
flex-direction: column;
gap: 10px;
background-color: rgb(246, 242, 237);
}
.box {
border-radius: 10px;
position: relative;
}
.title {
height: 30px;
width: 100%;
border-bottom: 2px solid black;
margin-bottom: 10px;
font-size: 20px;
font-weight: 700;
display: flex;
align-items: center;
}
#header {
width: 100%;
height: 60px;
background-color: white;
box-shadow: 0 1px 1px white;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding-left: 20px;
padding-right: 20px;
}
#header h1 {
font-size: 20px;
}
#header ul {
display: flex;
flex-direction: row;
}
#header ul li {
display: inline-block;
padding: 0 2rem;
font-size: 20px;
font-weight: 700;
}
#header ul li a {
text-decoration: none;
color: black;
}
#main {
width: 100%;
height: calc(100% - 60px - 10px);
padding: 10px;
display: flex;
flex-direction: row;
gap: 25px;
}
#side {
width: 400px;
height: 100%;
display: flex;
flex-direction: column;
gap: 25px;
}
#task {
width: 100%;
height: calc(100% - 515px - 25px);
background-color: white;
border: none;
box-shadow: 0 5px 10px #d4d4d4;
padding: 10px;
display: flex;
flex-direction: column;
}
#task task-list {
width: 100%;
flex-grow: 1;
}
#task task-list ul {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
#task task-list ul li {
width: 100%;
height: 65px;
border-radius: 10px;
border: 2px solid #b4b4b4;
display: flex;
flex-direction: column;
justify-content: center;
gap: 2px;
padding-left: 10px;
cursor: pointer;
}
#task task-list ul li:hover {
border: 2px solid black;
}
#task task-list ul li h2 {
font-size: 18px;
font-size: 700;
}
#task task-list ul li div {
display: flex;
flex-direction: row;
align-items: center;
gap: 5px;
}
#task task-list ul li div img {
width: 15px;
height: 15px;
}
#task task-list ul li div p {
font-size: 15px;
font-weight: 700;
color: #fbb40e;
}
#task #add_task {
cursor: pointer;
font-size: 25px;
padding-right: 10px;
display: flex;
flex-direction: row-reverse;
}
#info {
width: 100%;
height: 515px;
background-color: white;
border: none;
box-shadow: 0 5px 10px #d4d4d4;
padding: 10px;
}
#info meal-list {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: none;
}
#info meal-list header {
width: 100%;
height: 40px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
#info meal-list header select {
border: none;
border-radius: 5px;
padding: 4px 4px;
font-size: 15px;
cursor: pointer;
}
#info meal-list header select:hover {
box-shadow: 0 0 0 1px black;
}
#info meal-list ul {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
overflow-y: auto;
overflow-x: hidden;
cursor: ns-resize;
}
#info meal-list ul::-webkit-scrollbar {
display: none;
}
#info meal-list ul li {
width: 100%;
height: 60px;
border-radius: 10px;
border: 2px solid #b4b4b4;
display: flex;
flex-direction: row;
align-items: center;
padding-left: 10px;
flex-shrink: 0;
}
#calendar {
border: 2px solid orange;
width: calc(100% - 400px - 25px);
height: 100%;
}
#calendar iframe {
border-radius: 8px;
width: 100%;
height: 100%;
border: none;
}
.task_modal {
width: 400px;
height: auto;
border: 2px solid black;
border-radius: 10px;
background: white;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 10px;
display: flex;
flex-direction: column;
gap: 10px;
}
.task_modal label {
font-weight: 700;
display: block;
margin-bottom: 5px;
}
.task_modal input,
.task_modal textarea {
width: 100%;
padding: 8px;
border: 1px solid black;
border-radius: 4px;
}
.task_modal textarea {
height: 100px;
resize: none;
}
.task_modal .date-group {
display: flex;
align-items: center;
gap: 10px;
}
.task_modal .buttons {
display: flex;
justify-content: flex-end;
gap: 10px;
}
.task_modal button {
padding: 8px 12px;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
font-weight: 700;
}
.task_modal .cancel {
border: 1px solid black;
background: white;
}
.task_modal .save {
background: #d1d1d1;
border: none;
}
.task_modal .close {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
font-size: 18px;
}
@media (max-width: 800px) {
h1 {
font-size: 20px;
}
#main {
width: 100%;
flex-direction: column;
}
#side {
width: 100%;
height: auto;
}
#task {
height: auto;
}
#info {
height: auto;
}
#calendar {
width: 100%;
height: 400px;
flex-shrink: 0;
}
}
/*# sourceMappingURL=style.css.map */