fleet/frontend/components/forms/fields/Radio/_styles.scss
Gabe Hernandez d0ded91d0b partial implementation of user table with generic table and new create user form (#500)
* use new data table in user manage page'

* remove default empty array hiddenColumns props, was causing render performance problems

* remove unused tooltip in hostcontainer

* add search to user manage table

* add query params to user GET requests

* move createUserForm closer to user management page

* starting to implement create user modal

* starting to add team checking functionality to create user

* styling of select team form

* changing logic for selectedTeamsForm, simplifying

* updated SelectedTeamsForm to handle own state and pass back relevant state to parent

* created reusable infobanner component and use it in osquery options page

* use infobanner in createuserform

* create new Radio component and use in createuserform

* create new Radio component and use in createuserform

* added new radio buttons to createUserForm

* finish custom radio button styling

* finish styling of radio in createUserForm

* fix and add entities/users#loadAll tests

* remove unneeded tests and updated broken ones on UserManagementPage

* remove unused modules
2021-03-31 11:58:29 -07:00

55 lines
1.1 KiB
SCSS

// build with the help of this article, with some of our own modifications
// https://moderncss.dev/pure-css-custom-styled-radio-buttons/
.radio {
font-size: $x-small;
display: flex;
align-items: center;
&__input {
display: flex;
input {
opacity: 0;
width: 0;
height: 0;
margin: 0;
& + .radio__control::before {
position: absolute;
content: "";
width: 10px;
height: 10px;
box-shadow: inset 1em 1em $core-blue;
border-radius: 50%;
top: 5px;
left: 5px;
transition: 180ms transform ease-in-out;
transform: scale(0);
}
&:checked + .radio__control::before {
transform: scale(1);
}
&:focus + .radio__control {
border-color: $core-blue;
}
}
}
&__control {
position: relative;
display: flex;
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid $ui-borders;
transform: translateY(-0.05em);
}
&__label {
margin-left: $pad-xsmall;
line-height: 1;
}
}