mirror of https://github.com/zulip/zulip.git
widgets: Add classes to todo-widget div and span tags.
This commit is contained in:
parent
9b8e8bf0d3
commit
7820c5e15e
|
@ -37,7 +37,7 @@
|
|||
vertical-align: top;
|
||||
|
||||
& input[type="checkbox"] {
|
||||
~ span {
|
||||
~ .custom-checkbox {
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
border: 2px solid hsl(156deg 28% 70%);
|
||||
|
@ -48,7 +48,7 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:checked ~ span {
|
||||
&:checked ~ .custom-checkbox {
|
||||
background-image: url("../images/checkbox-white.svg");
|
||||
background-size: 75%;
|
||||
background-position: 50% 50%;
|
||||
|
@ -57,16 +57,16 @@
|
|||
border: 2px solid hsl(156deg 41% 40%);
|
||||
}
|
||||
|
||||
&:disabled ~ span {
|
||||
&:disabled ~ .custom-checkbox {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&:hover ~ span {
|
||||
&:hover ~ .custom-checkbox {
|
||||
border-color: hsl(156deg 30% 50%);
|
||||
}
|
||||
|
||||
&:focus ~ span {
|
||||
&:focus ~ .custom-checkbox {
|
||||
outline-color: hsl(0deg 0% 100% / 0%);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{{#each all_tasks}}
|
||||
<li>
|
||||
<label class="checkbox">
|
||||
<div>
|
||||
<div class="todo-checkbox">
|
||||
<input type="checkbox" class="task" data-key="{{ key }}" {{#if completed}}checked{{/if}}/>
|
||||
<span></span>
|
||||
<span class="custom-checkbox"></span>
|
||||
</div>
|
||||
<div>
|
||||
<div class="todo-task">
|
||||
{{#if completed}}
|
||||
<strike><strong>{{ task }}</strong>{{#if desc }}: {{ desc }}{{/if}}</strike>
|
||||
{{else}}
|
||||
|
|
Loading…
Reference in New Issue