Skip to content

Commit

Permalink
Lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Nordström committed Mar 20, 2017
1 parent db34025 commit c881e4b
Show file tree
Hide file tree
Showing 12 changed files with 51 additions and 47 deletions.
32 changes: 16 additions & 16 deletions less/checkbox.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
margin-right: 20px;
}

&:before {
&::before {
border: solid 2px @ffe-grey;
border-radius: 2px;
content: '';
Expand All @@ -32,7 +32,7 @@
background-color: @ffe-white;
}

&:after {
&::after {
transform: scaleX(-1) rotate(180deg + -45deg);
transform-origin: left top;
border-right: 3px solid transparent;
Expand All @@ -52,45 +52,45 @@
opacity: 0;
cursor: pointer;

&:checked + .ffe-checkbox:before,
&:hover + .ffe-checkbox:before,
&:focus + .ffe-checkbox:before,
&:active + .ffe-checkbox:before {
&:checked + .ffe-checkbox::before,
&:hover + .ffe-checkbox::before,
&:focus + .ffe-checkbox::before,
&:active + .ffe-checkbox::before {
outline: none;
}

&:hover + .ffe-checkbox:before {
&:hover + .ffe-checkbox::before {
border-color: @ffe-blue-royal-light-wcag;
}

&:active + .ffe-checkbox:before,
&:focus + .ffe-checkbox:before {
&:active + .ffe-checkbox::before,
&:focus + .ffe-checkbox::before {
box-shadow: 0 0 0 2px @ffe-blue-focus;
}

&:checked + .ffe-checkbox:before {
&:checked + .ffe-checkbox::before {
border-color: @ffe-blue-royal-light-wcag;
background-color: @ffe-white;
}

&:focus + .ffe-checkbox:before {
&:focus + .ffe-checkbox::before {
box-shadow: 0 0 0 2px @ffe-blue-focus;
}

&:checked + .ffe-checkbox:after {
&:checked + .ffe-checkbox::after {
animation: checkmark 0.4s;
border-color: @ffe-blue-royal-light-wcag;
}
}

@keyframes checkmark {
0% {
height: 0;
width: 6px;
height: 0;
width: 6px;
}

50% {
height: 11px;
width: 6px;
height: 11px;
width: 6px;
}
}
2 changes: 1 addition & 1 deletion less/field-error-message.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
display: none;
}

&:before:extend(.ffe-field-info-message:before) {
&::before:extend(.ffe-field-info-message::before) {
content: '!';
background-color: @ffe-orange-wcag;
}
Expand Down
2 changes: 1 addition & 1 deletion less/field-info-message.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
display: none;
}

&:before {
&::before {
content: 'i';
color: @ffe-white;
background-color: @ffe-blue-royal;
Expand Down
2 changes: 1 addition & 1 deletion less/field-success-message.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
display: none;
}

&:before:extend(.ffe-field-info-message:before) {
&::before:extend(.ffe-field-info-message::before) {
content: '\2713';
background-color: @ffe-green-wcag;
}
Expand Down
2 changes: 1 addition & 1 deletion less/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
select,
textarea,
input:not([type="radio"]):not([type="checkbox"]) {
appearance: none;
appearance: none;
}
3 changes: 2 additions & 1 deletion less/input-field.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
border-color: @ffe-blue-royal-light-wcag;
}

&:focus, &:active {
&:focus,
&:active {
border-color: @ffe-blue-royal-light-wcag;
box-shadow: 0 0 0 2px @ffe-blue-focus;
outline: none;
Expand Down
8 changes: 4 additions & 4 deletions less/radio-block.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
background-color: @ffe-white;
cursor: pointer;

&:before {
&::before {
.ffe-sb1-radioblob();

left: 20px;
Expand All @@ -30,8 +30,8 @@
}

&__wrapper {
padding: 20px 20px 30px;
cursor: auto;
padding: 20px 20px 30px;
cursor: auto;

&--empty {
padding: 0;
Expand Down Expand Up @@ -63,7 +63,7 @@
}
}

&:checked + .ffe-radio-block__content:before {
&:checked + .ffe-radio-block__content::before {
.ffe-sb1-radioblob-active();
}

Expand Down
24 changes: 12 additions & 12 deletions less/radio-button.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
margin-right: 20px;
}

&:before {
&::before {
content: '';
background-color: @ffe-white;
border: 2px solid @ffe-grey;
Expand All @@ -27,7 +27,7 @@
top: 3px;
}

&:after {
&::after {
content: '';
border: 2px solid transparent;
width: 20px;
Expand All @@ -41,32 +41,32 @@
}

.ffe-radio-input {
&:checked + .ffe-radio-button:before,
&:hover + .ffe-radio-button:before,
&:focus + .ffe-radio-button:before,
&:active + .ffe-radio-button:before {
&:checked + .ffe-radio-button::before,
&:hover + .ffe-radio-button::before,
&:focus + .ffe-radio-button::before,
&:active + .ffe-radio-button::before {
outline: none;
}

&:hover + .ffe-radio-button:before {
&:hover + .ffe-radio-button::before {
border-color: @ffe-blue-royal-light-wcag;
}

&:active + .ffe-radio-button:before,
&:focus + .ffe-radio-button:before {
&:active + .ffe-radio-button::before,
&:focus + .ffe-radio-button::before {
border-color: @ffe-blue-focus;
}

&:checked + .ffe-radio-button:before {
&:checked + .ffe-radio-button::before {
background-color: @ffe-blue-royal-light-wcag;
border: 5px solid @ffe-white;
}

&:checked + .ffe-radio-button:after {
&:checked + .ffe-radio-button::after {
border-color: @ffe-blue-royal-light-wcag;
}

&:focus + .ffe-radio-button:before {
&:focus + .ffe-radio-button::before {
box-shadow: 0 0 0 2px @ffe-blue-focus;
}
}
4 changes: 2 additions & 2 deletions less/radio-input.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.ffe-radio-input {
position: absolute;
opacity: 0;
position: absolute;
opacity: 0;
}
10 changes: 5 additions & 5 deletions less/radio-switch.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.05);
margin-bottom: 5px;

&:before {
.ffe-sb1-radioblob();
&::before {
.ffe-sb1-radioblob();

left: 12px;
top: 8px;
left: 12px;
top: 8px;
}

@media screen and (min-width: @breakpoint-sm) {
Expand All @@ -41,7 +41,7 @@
border-color: @ffe-blue-focus;
}

&:checked + .ffe-radio-switch:before {
&:checked + .ffe-radio-switch::before {
.ffe-sb1-radioblob-active();
}
}
3 changes: 2 additions & 1 deletion less/textarea.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
border-color: @ffe-blue-royal-light-wcag;
}

&:focus, &:active {
&:focus,
&:active {
border-color: @ffe-blue-royal-light-wcag;
box-shadow: 0 0 0 2px @ffe-blue-focus;
outline: none;
Expand Down
6 changes: 4 additions & 2 deletions less/tooltip.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
vertical-align: middle;
width: @ffe-tooltip-size;

&:hover, &:focus {
&:hover,
&:focus {
border-color: @ffe-blue-royal-light-wcag;
}

Expand All @@ -27,7 +28,8 @@
outline: none;
}

&:active, &--active {
&:active,
&--active {
border-color: @ffe-blue-royal;
color: @ffe-blue-royal;
}
Expand Down

0 comments on commit c881e4b

Please sign in to comment.