@@ -266,57 +266,58 @@ footer,P{
266266
267267
268268/* custom radio button */
269-
270-
271- [type = "radio" ]: checked ,
272- [type = "radio" ]: not (: checked ) {
273- position : absolute;
274- left : -9999px ;
269+ : root {
270+ --form-control-color : # E0633A ;;
275271}
276- [type = "radio" ]: checked + label ,
277- [type = "radio" ]: not (: checked ) + label
278- {
279- position : relative;
280- padding-left : 28px ;
281- cursor : pointer;
282- line-height : 20px ;
283- display : inline-block;
284-
272+ .radio-btn-grid {
273+ display : grid;
274+ grid-template-areas : "k s" ;
285275}
286- [type = "radio" ]: checked + label : before ,
287- [type = "radio" ]: not (: checked ) + label : before {
288- content : '' ;
289- position : absolute;
290- left : 0 ;
291- top : 0 ;
292- width : 18px ;
293- height : 18px ;
294- border : 1px solid # ddd ;
295- border-radius : 100% ;
276+
277+ .form-control1 {
278+ font-family : system-ui, sans-serif;
279+ font-size : 10px ;
280+ line-height : 1.1 ;
281+ display : grid;
282+ grid-template-columns : 1fr auto;
283+ gap : 1em ;
296284}
297- [type = "radio" ]: checked + label : after ,
298- [type = "radio" ]: not (: checked ) + label : after {
299- content : '' ;
300- width : 12px ;
301- height : 12px ;
302- background : # E0633A ;
303- position : absolute;
304- top : 4px ;
305- left : 4px ;
306- border-radius : 100% ;
307- -webkit-transition : all 0.2s ease;
308- transition : all 0.2s ease;
285+ input [type = "radio" ] {
286+ /* Add if not using autoprefixer */
287+ -webkit-appearance : none;
288+ /* Remove most all native input styles */
289+ appearance : none;
290+ /* For iOS < 15 */
291+ background-color : var (--form-background );
292+ /* Not removed via appearance */
293+ margin : 0 ;
294+
295+ font : inherit;
296+ color : currentColor;
297+ width : 1.15em ;
298+ height : 1.15em ;
299+ border : 0.15em solid currentColor;
300+ border-radius : 50% ;
301+ transform : translateY (-0.075em );
302+
303+ display : grid;
304+ place-content : center;
309305}
310- [type = "radio" ]: not (: checked ) + label : after {
311- opacity : 0 ;
312- -webkit-transform : scale (0 );
313- transform : scale (0 );
306+ input [type = "radio" ]::before {
307+ content : "" ;
308+ width : 0.65em ;
309+ height : 0.65em ;
310+ border-radius : 50% ;
311+ transform : scale (0 );
312+ transition : 120ms transform ease-in-out;
313+ box-shadow : inset 1em 1em var (--form-control-color );
314+ /* Windows High Contrast Mode */
315+ background-color : # E0633A ;;
314316}
315- [type = "radio" ]: checked + label : after {
316- opacity : 1 ;
317- -webkit-transform : scale (1 );
318- transform : scale (1 );
317+ input [type = "radio" ]: checked ::before {
318+ transform : scale (1 );
319319}
320+
320321/* custom style for checkbox */
321322
322323.form-control {
0 commit comments