Skip to content

Commit

Permalink
WIP styles improving radio styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanKingston committed Jun 19, 2017
1 parent 2278498 commit 13e4b4e
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions webextension/css/popup.css
Expand Up @@ -114,6 +114,11 @@ table {
--identity-icon-color: #51cd00;
}

[data-identity-color="grey"] {
/* Only used for the edit panel */
--identity-icon-color: #616161;
}

[data-identity-color="yellow"] {
--identity-tab-color: #ffcb00;
--identity-icon-color: #ffcb00;
Expand Down Expand Up @@ -784,20 +789,29 @@ span ~ .panel-header-text {
}

.radio-choice > .radio-container > label {
background: none;
block-size: 23px;
border: 0;
filter: none;
inline-size: 23px;
margin: 0;
padding: 0;
}

.radio-choice > .radio-container > label::before {
background-color: unset;
background-image: var(--identity-icon);
background-position: center;
background-repeat: no-repeat;
background-size: 16px;
block-size: 22px;
block-size: 23px;
fill: var(--identity-icon-color);
filter: url('/img/filters.svg#fill');
flex: 0 0 22px;
margin-inline-start: 2px;
position: relative;
}

.radio-choice > .radio-container > label::before {
block-size: 0;
inline-size: 0;
opacity: 0 !important;
content: "";
display: block;
border: none;
inline-size: 23px;
}

.radio-choice > .radio-container > [type="radio"] {
Expand All @@ -807,8 +821,14 @@ span ~ .panel-header-text {
}

.radio-choice > .radio-container > [type="radio"]:checked + label {
outline: 2px solid grey;
-moz-outline-radius: 50px;
background: #d3d3d3;
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 {
Expand Down

0 comments on commit 13e4b4e

Please sign in to comment.