Skip to content

Commit 4b36d7b

Browse files
committed
合并
1 parent 55ab0ab commit 4b36d7b

File tree

1 file changed

+32
-14
lines changed

1 file changed

+32
-14
lines changed

src/pages/Task/style.js

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,16 @@ export const TaskWrapper = styled.div`
7171
background-color: #fff;
7272
position: relative;
7373
74+
&:hover {
75+
.delete {
76+
display: block;
77+
}
78+
}
79+
7480
.delete {
81+
display: none;
7582
width: 18px;
7683
height: 18px;
77-
display: inline-block;
7884
border-radius: 50%;
7985
background-color: #f173ac;
8086
line-height: 16px;
@@ -112,23 +118,35 @@ export const TaskWrapper = styled.div`
112118
text-align: center;
113119
line-height: 30px;
114120
background-color: #fff;
115-
}
116-
.delete {
117-
width: 18px;
118-
height: 18px;
119-
display: block;
120-
border-radius: 50%;
121-
background-color: #f173ac;
122-
line-height: 16px;
123-
color: #fff;
124-
margin-left: 140px;
125-
margin-top: -10px;
121+
position: relative;
122+
126123
&:hover {
127-
cursor: pointer;
124+
.delete {
125+
display: block;
126+
}
127+
}
128+
129+
.delete {
130+
display: none;
131+
width: 18px;
132+
height: 18px;
133+
border-radius: 50%;
134+
background-color: #f173ac;
135+
line-height: 16px;
136+
color: #fff;
137+
left: 140px;
138+
top: -10px;
139+
position: absolute;
140+
141+
&:hover {
142+
cursor: pointer;
143+
background-color: #d93a49;
144+
}
128145
}
129146
}
147+
130148
&::before {
131-
content: "Complete";
149+
content: "Learning";
132150
background-color: #e2e2e2;
133151
display: block;
134152
margin-top: -50px;

0 commit comments

Comments
 (0)