Files
2026-03-04 21:41:09 +09:00

384 lines
6.8 KiB
SCSS

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