@@ -10,71 +10,12 @@ export const CircleContainer = styled.div(
1010 `
1111) ;
1212
13- export const CircleInner = styled . div (
13+ export const SVGContainer = styled . svg (
1414 ( { theme } ) => css `
15- position : absolute;
16- top : ${ theme . custom . widths . eventLoopWheelWidth } px;
17- left : ${ theme . custom . widths . eventLoopWheelWidth } px;
18- right : ${ theme . custom . widths . eventLoopWheelWidth } px;
19- bottom : ${ theme . custom . widths . eventLoopWheelWidth } px;
20- background : ${ theme . custom . colors . container } ;
21- border-radius : 50% ;
22- `
23- ) ;
24-
25- export const CircleOuter = styled . div (
26- ( { theme } ) => css `
27- position : absolute;
28- top : 0 ;
29- left : 0 ;
30- right : 0 ;
31- bottom : 0 ;
32- background : ${ theme . custom . colors . onContainer . dim } ;
33- border-radius : 50% ;
15+ path ,
16+ text ,
17+ circle {
18+ transition : all ${ theme . custom . colorTransition } ;
19+ }
3420 `
3521) ;
36-
37- export const Sector = styled . div < {
38- background : string ;
39- degree : number ;
40- enabled : boolean ;
41- } > ( ( { theme, background, degree, enabled } ) => {
42- const saturation = {
43- light : 2 ,
44- dark : 1.3 ,
45- } [ theme . custom . mode ] ;
46- const brightness = {
47- light : {
48- enabled : 1.4 ,
49- disabled : 1 ,
50- } ,
51- dark : {
52- enabled : 1 ,
53- disabled : 0.8 ,
54- } ,
55- } [ theme . custom . mode ] ;
56- return css `
57- height : ${ theme . custom . widths . eventLoopRadius } px;
58- width : ${ theme . custom . widths . eventLoopDiameter } px;
59- overflow : hidden;
60- position : absolute;
61- transform-origin : 50% 100% ;
62- transform : rotate (${ degree } deg);
63-
64- & : before {
65- height : inherit;
66- width : inherit;
67- position : absolute;
68- content : '' ;
69- border-radius : ${ theme . custom . widths . eventLoopRadius } px
70- ${ theme . custom . widths . eventLoopRadius } px 0 0 ;
71- background-color : ${ background } ;
72- filter : saturate (${ saturation } )
73- brightness (${ enabled ? brightness . enabled : brightness . disabled } );
74- opacity : ${ enabled ? 1 : 0.3 } ;
75- transform-origin : 50% 100% ;
76- transform : rotate (160deg );
77- left : 0 ;
78- }
79- ` ;
80- } ) ;
0 commit comments