11@import url ("https://fonts.googleapis.com/css2?family=Lato&display=swap" );
22@import url ("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400&display=swap" );
3+
34: root {
45 --grey-05 : # f5f6f7 ;
56 --grey-10 : # dfdfe2 ;
@@ -25,12 +26,45 @@ body {
2526 color : var (--grey-90 );
2627}
2728
28- [type = "checkbox" ] {
29- -webkit-box-shadow : 0 1px 1px var (--grey-90 ) !important ;
30- -moz-box-shadow : 0 1px 1px var (--grey-90 ) !important ;
31- box-shadow : 0 1px 1px var (--grey-90 ) !important ;
29+ input [type = "checkbox" ] {
30+ box-sizing : border-box;
31+ padding : 0 ;
32+ }
33+
34+ .checkbox-label {
3235 cursor : pointer;
33- border-radius : 0px !important ;
36+ }
37+ .checkbox-label : hover .tooltiptext {
38+ visibility : visible;
39+ }
40+ .checkbox-label__input {
41+ position : absolute;
42+ opacity : 0 ;
43+ }
44+ .checkbox-label__control {
45+ position : relative;
46+ display : inline-block;
47+ width : 24px ;
48+ height : 24px ;
49+ margin-right : 12px ;
50+ vertical-align : middle;
51+ background-color : var (--grey-05 );
52+ border : 2px solid var (--grey-90 );
53+ transform : scale (0.75 );
54+ }
55+ .checkbox-label__input : checked + .checkbox-label__control : after {
56+ position : absolute;
57+ display : block;
58+ content : "" ;
59+ top : 5px ;
60+ left : 5px ;
61+ width : 10px ;
62+ height : 10px ;
63+ background-color : var (--dark-purple );
64+ }
65+ .checkbox-label__input : hover + .checkbox-label__control ,
66+ .checkbox-label__input : focus + .checkbox-label__control {
67+ box-shadow : 0 0 0 10px rgba (10 , 10 , 35 , .1 );
3468}
3569
3670.section {
79113 padding : 2% 5% ;
80114 font-size : 14px ;
81115}
82-
83- .skillCheckbox : hover .tooltiptext {
84- visibility : visible;
85- }
86-
87- .switch {
88- position : relative;
89- display : inline-block;
90- width : 40px ;
91- height : 20px ;
92- background-color : rgba (0 , 0 , 0 , 0.25 );
93- border-radius : 20px ;
94- transition : all 0.25s ;
95- }
96- .switch ::after {
97- content : '' ;
98- position : absolute;
99- width : 16px ;
100- height : 16px ;
101- border-radius : 16px ;
102- background-color : # fff ;
103- top : 2px ;
104- left : 2px ;
105- transition : all 0.25s ;
106- }
107-
108- input [type = 'checkbox' ]: checked + .switch ::after {
109- transform : translateX (20px );
110- }
111- input [type = 'checkbox' ]: checked + .switch {
112- background-color : var (--light-green );
113- }
114- input [type = 'checkbox' ]: focus + .switch {
115- background-color : var (--blue );
116- box-shadow : 0 4px 6px -1px rgba (0 , 0 , 0 , 0.1 ), 0 2px 4px -1px rgba (0 , 0 , 0 , 0.06 );
117- }
118- input [type = 'checkbox' ]: checked : focus + .switch {
119- background-color : var (--light-green );
120- }
121-
122- .offscreen {
123- position : absolute;
124- left : -9999px ;
125- }
126-
127116.tooltiptext ::after {
128117 content : " " ;
129118 position : absolute;
@@ -135,6 +124,7 @@ input[type='checkbox']:checked:focus+.switch {
135124 border-style : solid;
136125 border-color : transparent var (--grey-90 ) transparent transparent;
137126}
127+
138128.workflow {
139129 margin-left : 2% ;
140130 padding : 1% ;
@@ -160,9 +150,11 @@ input[type='checkbox']:checked:focus+.switch {
160150 .tooltiptext {
161151 display : none;
162152 }
153+
163154 .warning {
164155 font-size : 10px ;
165156 }
157+
166158 .workflow {
167159 font-size : 12px ;
168160 }
0 commit comments