mirror of
https://github.com/fleetdm/fleet
synced 2026-05-17 22:18:39 +00:00
- Replace uses of deprecated Bourbon helpers with raw CSS
- Add autoprefixer into the build chain to prefix the now removed helpers
This process was achieved by running through each of the deprecation warnings and using the following bash function to replace it in all files:
```
function bourbon-deprecate() {
grep -rl "@include $1" ./frontend --exclude-dir=.git | xargs sed -i '' -E "s/@include $1[(](.*)[)]/$1: \1/g"
}
```
For some helpers, this did not result in valid CSS, so manual modifications were made.
Closes #1189 #1274
67 lines
1.4 KiB
SCSS
67 lines
1.4 KiB
SCSS
.kolide-checkbox {
|
|
@include clearfix;
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
&__input {
|
|
visibility: hidden;
|
|
margin: 0;
|
|
position: absolute;
|
|
z-index: -1;
|
|
|
|
&:checked + .kolide-checkbox__tick {
|
|
&::after {
|
|
background-color: $brand;
|
|
border: solid 2px $brand;
|
|
}
|
|
|
|
&::before {
|
|
@include position(absolute, 50% null null 50%);
|
|
transform: rotate(45deg);
|
|
box-sizing: border-box;
|
|
display: block;
|
|
width: 7px;
|
|
height: 13px;
|
|
margin: -8px 0 0 -3px;
|
|
border: 2px solid $white;
|
|
border-top: 0;
|
|
border-left: 0;
|
|
content: '';
|
|
}
|
|
}
|
|
}
|
|
|
|
&__tick {
|
|
@include size(20px);
|
|
@include position(absolute, 50% null null 0);
|
|
transform: translateY(-10px);
|
|
display: inline-block;
|
|
|
|
&::after {
|
|
@include size(20px);
|
|
transition: border 75ms ease-in-out, background 75ms ease-in-out;
|
|
border-radius: 2px;
|
|
border: solid 2px $border-medium;
|
|
content: '';
|
|
box-sizing: border-box;
|
|
display: block;
|
|
background-color: $white;
|
|
visibility: visible;
|
|
}
|
|
|
|
&--disabled {
|
|
&::after {
|
|
background-color: $border-medium;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
font-size: 13px;
|
|
font-weight: $normal;
|
|
line-height: 20px;
|
|
letter-spacing: 0.5px;
|
|
color: $text-medium;
|
|
padding-left: 25px;
|
|
}
|
|
}
|