Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
368 changes: 368 additions & 0 deletions css/style.css
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:root 활용 리뷰
홍엽님 리뷰 단 내역이랑 비슷한 내용입니다!
:root를 활용하셔서 색상, shadow 값을 변수로 정의하시면 좋을거 같습니다!

Original file line number Diff line number Diff line change
@@ -0,0 +1,368 @@
* {
box-sizing: border-box;
}

body {
margin: 0;
font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #ffd6e7;
color: #2e2a26;
}

button,
input {
font: inherit;
}

button {
border: none;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.15s ease,
opacity 0.2s ease;
}

.app {
min-height: 100vh;
display: flex;
justify-content: center;
padding: 24px;
}

.todoCard {
width: 100%;
max-width: 520px;
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
}

.todoHeader {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding-top: 8px;
}

.menuButton {
position: absolute;
left: 0;
top: 0;
background: transparent;
font-size: 28px;
color: #2e2a26;
padding: 4px 8px;
z-index: 20;
}

.menuButton:hover {
opacity: 0.7;
}

.viewMenu {
position: absolute;
left: 0;
top: 42px;
display: flex;
flex-direction: column;
gap: 8px;
background-color: #ffe6f0;
padding: 10px;
border-radius: 14px;
box-shadow: 0 8px 18px rgba(90, 60, 70, 0.14);
z-index: 15;
}

.viewMenuButton {
min-width: 110px;
background-color: white;
color: #2e2a26;
border-radius: 10px;
padding: 8px 12px;
font-weight: 600;
text-align: left;
}

.viewMenuButton:hover {
background-color: #ffcade;
transform: translateY(-1px);
}

.hidden {
display: none;
}

.appTitle {
margin: 0;
font-size: 28px;
font-weight: 700;
}

.dateSection {
display: flex;
align-items: center;
gap: 24px;
}

.dateButton {
background: transparent;
color: #2e2a26;
font-size: 18px;
padding: 4px 8px;
}

.dateButton:hover {
opacity: 0.7;
transform: scale(1.05);
}

.selectedDate {
margin: 0;
font-size: 16px;
font-weight: 600;
}

.todoInputSection,
.todoListSection,
.todoSummarySection {
width: 100%;
}

.todoForm {
display: flex;
align-items: center;
gap: 8px;
background-color: #ffe6f0;
border-radius: 20px;
padding: 10px 12px;
}

.todoInput {
flex: 1;
border: none;
outline: none;
background: transparent;
font-size: 15px;
color: #2e2a26;
}

.todoInput::placeholder {
color: #8c7a73;
}

.todoInput:disabled {
opacity: 0.7;
cursor: not-allowed;
}

.addButton {
background-color: #ff7aa2;
color: white;
font-weight: 700;
border-radius: 12px;
padding: 10px 16px;
}

.addButton:hover {
background-color: #f0628f;
transform: translateY(-1px);
}

.addButton:disabled {
background-color: #d9a7b9;
cursor: not-allowed;
transform: none;
}

.todoList {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 12px;
}

.todoItem {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
background-color: #ffb3cc;
border-radius: 20px;
padding: 12px 14px;
transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.todoItem:hover {
transform: translateY(-2px);
box-shadow: 0 8px 18px rgba(120, 72, 88, 0.14);
}

.todoLeft {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
min-width: 0;
}

.todoCheckbox {
width: 22px;
height: 22px;
appearance: none;
-webkit-appearance: none;
background-color: white;
border: 2px solid #efb2c8;
border-radius: 6px;
position: relative;
cursor: pointer;
flex-shrink: 0;
}

.todoCheckbox:hover {
border-color: #ff8fb2;
}

.todoCheckbox:checked {
background-color: white;
border-color: #efb2c8;
}

.todoCheckbox:checked::after {
content: "✔";
position: absolute;
color: #ff5c8a;
font-size: 16px;
font-weight: 900;
left: 3px;
top: -1px;
}

.todoText {
font-size: 15px;
font-weight: 400;
word-break: break-word;
color: #2e2a26;
}

.completedTodo {
text-decoration: line-through;
opacity: 0.7;
}

.deleteButton {
background-color: #4a403b;
color: white;
border-radius: 12px;
padding: 8px 14px;
font-weight: 700;
flex-shrink: 0;
}

.deleteButton:hover {
background-color: #6f645e;
transform: translateY(-1px);
}

.summaryCardList {
display: flex;
gap: 12px;
flex-wrap: wrap;
}

.summaryCard {
flex: 1 1 150px;
background-color: #ffe6f0;
border-radius: 18px;
padding: 16px;
text-align: center;
transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.summaryCard:hover {
transform: translateY(-2px);
box-shadow: 0 8px 18px rgba(120, 72, 88, 0.1);
}

.summaryTitle {
margin: 0 0 10px;
font-size: 15px;
color: #5c514b;
}

.summaryValue {
margin: 0;
font-size: 22px;
font-weight: 700;
color: #d94b77;
}

/* Weekly view */
.weeklyTodoGroup {
display: flex;
flex-direction: column;
gap: 10px;
background-color: #ffdbe8;
border-radius: 18px;
padding: 14px;
}

.weeklyTodoTitle {
margin: 0;
font-size: 16px;
font-weight: 700;
color: #4a403b;
}

.weeklyEmptyText {
margin: 0;
font-size: 14px;
color: #6f645e;
padding-left: 4px;
}

.emptyTodoText {
margin: 0;
font-size: 15px;
font-weight: 500;
color: #5c514b;
text-align: center;
}

@media (max-width: 600px) {
.app {
padding: 16px;
}

.todoCard {
gap: 20px;
}

.dateSection {
gap: 14px;
}

.todoForm {
padding: 10px;
}

.addButton {
padding: 10px 14px;
}

.todoItem {
padding: 12px;
}

.summaryCardList {
flex-direction: column;
}

.viewMenu {
top: 40px;
}
}
Loading