Settings: Adjusted styles for nested checkbox list (#5433)
This commit is contained in:
parent
c649fd004f
commit
cdbb5e15ed
@ -86,7 +86,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.Checkbox-main {
|
.Checkbox-main {
|
||||||
flex: 1;
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto;
|
||||||
|
grid-template-rows: auto auto;
|
||||||
|
align-items: center;
|
||||||
|
flex-grow: 1;
|
||||||
|
|
||||||
&::before,
|
&::before,
|
||||||
&::after {
|
&::after {
|
||||||
@ -124,14 +128,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.right-icon {
|
.right-icon {
|
||||||
|
grid-column: 2;
|
||||||
|
grid-row: span 2;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
color: var(--color-text-secondary);
|
color: var(--color-text-secondary);
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subLabel {
|
.subLabel {
|
||||||
display: block;
|
grid-column: 1;
|
||||||
|
grid-row: 2;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1rem;
|
line-height: 1rem;
|
||||||
color: var(--color-text-secondary);
|
color: var(--color-text-secondary);
|
||||||
|
|||||||
@ -155,9 +155,9 @@ const Checkbox: FC<OwnProps> = ({
|
|||||||
{leftElement}
|
{leftElement}
|
||||||
{typeof label === 'string' ? renderText(label) : label}
|
{typeof label === 'string' ? renderText(label) : label}
|
||||||
{labelText && <span className="ml-1">{renderText(labelText)}</span>}
|
{labelText && <span className="ml-1">{renderText(labelText)}</span>}
|
||||||
{rightIcon && <i className={`icon icon-${rightIcon} right-icon`} />}
|
|
||||||
</span>
|
</span>
|
||||||
{subLabel && <span className="subLabel" dir="auto">{renderText(subLabel)}</span>}
|
{subLabel && <span className="subLabel" dir="auto">{renderText(subLabel)}</span>}
|
||||||
|
{rightIcon && <Icon name={rightIcon} className="right-icon" />}
|
||||||
</div>
|
</div>
|
||||||
{nestedCheckbox && (
|
{nestedCheckbox && (
|
||||||
<span className="nestedButton" dir="auto">
|
<span className="nestedButton" dir="auto">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user