mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
优化任务样式
This commit is contained in:
parent
6f83db1578
commit
7685a25ee1
@ -285,22 +285,22 @@ ul[data-type=taskList] {
|
||||
opacity: 0;
|
||||
|
||||
& + span {
|
||||
height: 1rem;
|
||||
width: 1rem;
|
||||
color: var(--theme);
|
||||
margin-top: 50%;
|
||||
height: 1rem;
|
||||
line-height: 1rem;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
& + span::before {
|
||||
content: '✖';
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
background: var(--dark-d);
|
||||
color: var(--light-a);
|
||||
width: 0.8rem;
|
||||
height: 0.8rem;
|
||||
padding: 0.1rem;
|
||||
text-align: center;
|
||||
line-height: 1rem;
|
||||
background: var(--dark-d);
|
||||
color: var(--light-a);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@ -308,15 +308,8 @@ ul[data-type=taskList] {
|
||||
|
||||
&:checked + span::before {
|
||||
content: '✔';
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
background: var(--theme);
|
||||
color: var(--light-a);
|
||||
text-align: center;
|
||||
line-height: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
@ -324,20 +317,12 @@ ul[data-type=taskList] {
|
||||
& + span::before {
|
||||
border-radius: var(--radius-inner);
|
||||
}
|
||||
|
||||
&:checked + span::before {
|
||||
border-radius: var(--radius-inner);
|
||||
}
|
||||
}
|
||||
|
||||
& > input[type="radio"] {
|
||||
& + span::before {
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
&:checked + span::before {
|
||||
border-radius: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
templates/assets/css/style.min.css
vendored
2
templates/assets/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user