VulpesOS/overrides/fl.gaiamobile.org/shared/elements/gaia_radio/style.css
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

107 lines
2.5 KiB
CSS

gaia-radio {
display: inline-block;
width: 100%;
}
#radio {
display: inline-block;
vertical-align: middle;
width: 100%;
position: relative;
background: none;
}
gaia-radio.inline,
#radio.inline {
width: 5rem;
height: 100%;
}
#radio span {
font-size: 1.9rem;
color: var(--label-color);
padding: 1rem 0;
padding-inline-end: 2.4rem;
line-height: 3rem;
box-sizing: border-box;
display: block;
/* Override inheriting nowrap from legacy lists building blocks. */
white-space: normal;
word-wrap: break-word;
}
/* Users may choose to truncate text instead of it wrapping by adding the "truncate" className */
#radio.truncate span {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
#radio span:after {
content: '';
position: absolute;
offset-inline-end: 0;
top: 50%;
margin: -1.1rem 0 0;
margin-inline-start: -1.1rem;
width: 2.2rem;
height: 2.2rem;
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;
}
#radio.checked span:after {
background-position: center bottom;
}
/* 'Dangerous' radio */
#radio.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);
}
/* 'checkone' radio */
#radio.checkone span:after {
background: none;
}
#radio.checkone.checked span:after {
background: image-set(url("images/checked.png") 1x, url("images/checked@1.5x.png") 1.5x, url("images/checked@2x.png") 2x, url("images/checked@2.25x.png") 2.25x) no-repeat right center / 100%;
}
#radio.checkone.checked span {
font-weight: 500;
}
/* 'split' radio label */
#radio.split .divider {
content: '';
position: absolute;
background-color: #E6E6E3;
offset-inline-end: 3.5rem;
width: 0.1rem;
height: calc(100% - 1rem);
top: 0.5rem;
}
gaia-radio.split label {
display: block;
width: 100%;
}
/******************************************************************************
* A <details> slot may be specified in addition the the <label>.
* When provided, it appears under the <label> and can provide additional context.
*/
#radio div.details {
position: relative;
top: -1.5rem;
display: block;
margin: 0;
padding-top: 0.5rem;
-moz-padding-start: 0;
-moz-padding-end: 8rem;
font-size: 1.4rem;
line-height: 1.6rem;
color: #505859;
font-style: normal;
white-space: normal;
}