Add counter on selected items
This commit is contained in:
parent
eaf37f40d5
commit
c35cf6e6aa
6 changed files with 44 additions and 26 deletions
|
|
@ -215,11 +215,7 @@ function setStepStatus(stepName) {
|
|||
border-radius: var(--rounded-2xl);
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
.image .tag {
|
||||
position: absolute;
|
||||
top: var(--space-12);
|
||||
left: var(--space-12);
|
||||
cursor: pointer;
|
||||
}
|
||||
.image.has-description::after {
|
||||
content: "";
|
||||
|
|
@ -235,6 +231,29 @@ function setStepStatus(stepName) {
|
|||
top: 1.25rem;
|
||||
right: 1.25rem;
|
||||
}
|
||||
.image[aria-selected="true"] {
|
||||
outline: 2px solid var(--color-focus-ring);
|
||||
}
|
||||
.image[aria-selected="true"]::after {
|
||||
content: counter(selected-items);
|
||||
position: absolute;
|
||||
top: var(--space-12);
|
||||
right: var(--space-12);
|
||||
border-radius: 50%;
|
||||
color: var(--color-white);
|
||||
font-weight: 700;
|
||||
background: var(--color-grey-800);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
text-align: center;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
}
|
||||
.image .tag {
|
||||
position: absolute;
|
||||
top: var(--space-12);
|
||||
left: var(--space-12);
|
||||
}
|
||||
|
||||
/* Kanban */
|
||||
.kanban {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue