WIP styles improving radio styles
This commit is contained in:
parent
2278498b06
commit
13e4b4e7f7
1 changed files with 33 additions and 13 deletions
|
@ -114,6 +114,11 @@ table {
|
||||||
--identity-icon-color: #51cd00;
|
--identity-icon-color: #51cd00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-identity-color="grey"] {
|
||||||
|
/* Only used for the edit panel */
|
||||||
|
--identity-icon-color: #616161;
|
||||||
|
}
|
||||||
|
|
||||||
[data-identity-color="yellow"] {
|
[data-identity-color="yellow"] {
|
||||||
--identity-tab-color: #ffcb00;
|
--identity-tab-color: #ffcb00;
|
||||||
--identity-icon-color: #ffcb00;
|
--identity-icon-color: #ffcb00;
|
||||||
|
@ -784,20 +789,29 @@ span ~ .panel-header-text {
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-choice > .radio-container > label {
|
.radio-choice > .radio-container > label {
|
||||||
background-image: var(--identity-icon);
|
background: none;
|
||||||
background-size: 16px;
|
block-size: 23px;
|
||||||
block-size: 22px;
|
border: 0;
|
||||||
fill: var(--identity-icon-color);
|
filter: none;
|
||||||
filter: url('/img/filters.svg#fill');
|
inline-size: 23px;
|
||||||
flex: 0 0 22px;
|
margin: 0;
|
||||||
margin-inline-start: 2px;
|
padding: 0;
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-choice > .radio-container > label::before {
|
.radio-choice > .radio-container > label::before {
|
||||||
block-size: 0;
|
background-color: unset;
|
||||||
inline-size: 0;
|
background-image: var(--identity-icon);
|
||||||
opacity: 0 !important;
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 16px;
|
||||||
|
block-size: 23px;
|
||||||
|
fill: var(--identity-icon-color);
|
||||||
|
filter: url('/img/filters.svg#fill');
|
||||||
|
position: relative;
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
border: none;
|
||||||
|
inline-size: 23px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-choice > .radio-container > [type="radio"] {
|
.radio-choice > .radio-container > [type="radio"] {
|
||||||
|
@ -807,8 +821,14 @@ span ~ .panel-header-text {
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-choice > .radio-container > [type="radio"]:checked + label {
|
.radio-choice > .radio-container > [type="radio"]:checked + label {
|
||||||
outline: 2px solid grey;
|
background: #d3d3d3;
|
||||||
-moz-outline-radius: 50px;
|
border-radius: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* When focusing the element add a thin blue highlight to match input fields. This gives a distinction to other selected radio items */
|
||||||
|
.radio-choice > .radio-container > [type="radio"]:focus + label {
|
||||||
|
outline: 1px solid #1f9ffc;
|
||||||
|
-moz-outline-radius: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-container-panel fieldset {
|
.edit-container-panel fieldset {
|
||||||
|
|
Loading…
Add table
Reference in a new issue