glide-design-system
Version:
Glide design system is an open-source React component library. It offers numerous benefits that make them essential tools for design and development teams.
94 lines (83 loc) • 1.72 kB
CSS
.container {
display: flex;
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
font-family: "Roboto", sans-serif;
font-size: 14px;
}
/* Hide the browser's default radio button */
.container input {
position: relative;
opacity: 0;
cursor: pointer;
}
/* Create a custom radio button */
.checkmark {
border: 1px solid #1b3764;
position: relative;
top: 0;
left: 0;
height: 20px;
width: 20px;
background-color: white;
border-radius: 50%;
}
/* When the radio button is checked, add a blue background */
/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
content: "";
position: relative;
display: none;
}
/* Show the indicator (dot/circle) when checked */
.container input:checked ~ .checkmark:after {
display: block;
}
/* Style the indicator (dot/circle) */
.container .checkmark:after {
content: "";
position: relative;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 50%;
height: 50%;
border-radius: 80%;
background: #1b3764;
}
.container .checkmark.disabled:after {
content: "";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 50%;
height: 50%;
border-radius: 80%;
background: #d7d7d7;
}
.container .checkmark.disabledCheckmark {
border: 1px solid #d7d7d7;
cursor: not-allowed;
}
.disabled {
border: 1px solid #d7d7d7;
}
.required {
color: red;
font-size: 20px;
margin-left: 4px;
margin-top: 2px;
}
.headers2 {
font-family: "Roboto", sans-serif;
font-size: 14px;
margin-bottom: 5px;
display: flex;
align-items: center;
margin-left: 12px;
}