Skip to content
Open
Changes from 1 commit
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
20 changes: 12 additions & 8 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
font-weight: normal;
font-style: normal;
}
:root{
--card-color: #ECECEC;
--bg-color: black;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

색상을 따로 지정해두고 사용하니까 코드가 더 깔끔하네요!

.header{
display: flex;
height: 150px;
Expand Down Expand Up @@ -34,16 +38,16 @@
padding-bottom: 5px;
}
input{/*input 태그 따로 설정*/
background-color: black;
color: #ECECEC;
border: solid 2px #ECECEC;
background-color: var(--bg-color);
color: var(--card-color);
border: solid 2px var(--card-color);
border-radius: 6px;
width: 400px;
}
#plusButton{
background-color: black;
color: #ECECEC;
border: solid 2px #ECECEC;
background-color: var(--bg-color);
color: var(--card-color);
border: solid 2px var(--card-color);
border-radius: 6px;
width: 35px;
margin-left: 5px;
Expand All @@ -54,8 +58,8 @@ input{/*input 태그 따로 설정*/
color : #5f5f5f;
}
.todoCard{
background-color: #ECECEC;
color : black;
background-color: var(--card-color);
color : var(--bg-color);
display:flex; /*todoElem 세로축 가운데 정렬*/
align-items:center;
justify-content:space-between;/* item 사이 간격 균일하게 */
Expand Down