Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
71 lines
1.7 KiB
CSS
71 lines
1.7 KiB
CSS
gaia-checkbox {
|
|
display: inline-block;
|
|
width: 100%;
|
|
}
|
|
|
|
#checkbox {
|
|
display: block;
|
|
width: 100%;
|
|
/* Normal gaia-checkboxes are the heights of their parents. */
|
|
height: 100%;
|
|
position: relative;
|
|
background: none;
|
|
}
|
|
|
|
#checkbox span {
|
|
font-size: 1.9rem;
|
|
font-weight: normal;
|
|
color: var(--label-color);
|
|
line-height: 3rem;
|
|
box-sizing: border-box;
|
|
display: block;
|
|
min-width: 2.2rem;
|
|
min-height: 2.2rem;
|
|
width: 100%;
|
|
padding-inline-end: 2.2rem;
|
|
/* Override inheriting nowrap from legacy lists building blocks. */
|
|
white-space: normal;
|
|
}
|
|
|
|
/* Inline gaia-checkboxes are the heights of their parents. */
|
|
#checkbox.inline {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#checkbox:not(.invisible) span:after {
|
|
content: '';
|
|
position: absolute;
|
|
offset-inline-end: 0;
|
|
top: 50%;
|
|
margin: -1.2rem 0 0;
|
|
margin-inline-start: -1.2rem;
|
|
width: 2.2rem;
|
|
height: 2.2rem;
|
|
}
|
|
|
|
#checkbox.inline span {
|
|
padding-inline-start: 3rem;
|
|
padding-inline-end: 0;
|
|
height: auto;
|
|
}
|
|
|
|
#checkbox.inline span:after {
|
|
offset-inline-start: 1.2rem;
|
|
offset-inline-end: unset;
|
|
margin: -1.2rem 0 0;
|
|
margin-inline-start: -1.2rem;
|
|
}
|
|
|
|
#checkbox:not(.invisible) span:after {
|
|
background: image-set(url("images/default.png") 1x, url("images/default@1.5x.png") 1.5x, url("images/default@2x.png") 2x, url("images/default@2.25x.png") 2.25x) no-repeat center top / 2.2rem auto;
|
|
}
|
|
|
|
#checkbox.checked span:after {
|
|
background-position: center bottom;
|
|
}
|
|
|
|
/* 'Dangerous' checkboxes */
|
|
#checkbox.danger span:after {
|
|
background-image: image-set(url("images/danger.png") 1x, url("images/danger@1.5x.png") 1.5x, url("images/danger@2x.png") 2x, url("images/danger@2.25x.png") 2.25x);
|
|
}
|