71 lines
1.4 KiB
CSS
71 lines
1.4 KiB
CSS
.checkbox {
|
|
background-color: var(--Base-Surface-Primary-light-Normal);
|
|
border: 1px solid var(--Base-Border-Subtle);
|
|
border-radius: var(--Corner-radius-Large);
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Spacing-x1);
|
|
padding: var(--Spacing-x-one-and-half) var(--Spacing-x2);
|
|
transition: all 200ms ease;
|
|
width: min(100%, 600px);
|
|
}
|
|
|
|
.checkbox:hover {
|
|
background-color: var(--Base-Surface-Secondary-light-Hover);
|
|
}
|
|
|
|
.checkbox:has(:checked) {
|
|
background-color: var(--Primary-Light-Surface-Normal);
|
|
border-color: var(--Base-Border-Hover);
|
|
}
|
|
|
|
.header {
|
|
align-items: center;
|
|
display: grid;
|
|
gap: 0px var(--Spacing-x1);
|
|
grid-template-areas:
|
|
"title icon"
|
|
"subtitle icon";
|
|
}
|
|
|
|
.icon {
|
|
grid-area: icon;
|
|
justify-self: flex-end;
|
|
transition: fill 200ms ease;
|
|
}
|
|
|
|
.checkbox:hover .icon,
|
|
.checkbox:hover .icon *,
|
|
.checkbox:has(:checked) .icon,
|
|
.checkbox:has(:checked) .icon * {
|
|
fill: var(--Base-Text-Medium-contrast);
|
|
}
|
|
|
|
.checkbox[data-declined="true"]:hover .icon,
|
|
.checkbox[data-declined="true"]:hover .icon *,
|
|
.checkbox[data-declined="true"]:has(:checked) .icon,
|
|
.checkbox[data-declined="true"]:has(:checked) .icon * {
|
|
fill: var(--Base-Text-Disabled);
|
|
}
|
|
|
|
.subtitle {
|
|
grid-area: subtitle;
|
|
}
|
|
|
|
.title {
|
|
grid-area: title;
|
|
}
|
|
|
|
.list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.listItem {
|
|
align-items: center;
|
|
display: flex;
|
|
gap: var(--Spacing-x-quarter);
|
|
}
|