|
|
@@ -0,0 +1,223 @@ |
|
|
.pie-container { |
|
|
transition: padding 0.7s ease; |
|
|
width: 50%; |
|
|
margin: auto; |
|
|
} |
|
|
|
|
|
#pieChart { |
|
|
max-width: none !important; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
margin: 0 auto; |
|
|
counter-reset: break-point 80; |
|
|
width: 100%; |
|
|
} |
|
|
|
|
|
.row { |
|
|
display: flex; |
|
|
} |
|
|
#pieChart svg { |
|
|
overflow: visible; |
|
|
transition: width 0.7s ease; |
|
|
} |
|
|
#pieChart path { |
|
|
cursor: pointer; |
|
|
} |
|
|
|
|
|
#pieText { |
|
|
overflow: visible; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
justify-content: center; |
|
|
width: 80%; |
|
|
} |
|
|
#pieText .panel { |
|
|
background-color: #111; |
|
|
border: groove 4px #222; |
|
|
box-shadow: 8px 10px 20px #000, 4px 5px 25px #000; |
|
|
width: 100%; |
|
|
height: 60%; |
|
|
border-radius: 7px; |
|
|
padding: 0; |
|
|
float: left; |
|
|
transition: height 0.7s ease, padding 0.7s ease; |
|
|
perspective: 350px; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
} |
|
|
|
|
|
.content-wrapper { |
|
|
overflow: hidden; |
|
|
transform-style: preserve-3d; |
|
|
} |
|
|
|
|
|
#segmentTitle, |
|
|
#segmentText { |
|
|
text-shadow: 1px 1px 3px #000, 1px 1px 3px #000; |
|
|
text-align: center; |
|
|
} |
|
|
|
|
|
#segmentTitle { |
|
|
transition: padding 0.7s ease; |
|
|
padding: 10px; |
|
|
font-size: 10px; |
|
|
} |
|
|
@media screen and (max-width: 200px) { |
|
|
#segmentTitle { |
|
|
font-size: 19px; |
|
|
} |
|
|
} |
|
|
|
|
|
@media screen and (min-width: 1314px) { |
|
|
#segmentTitle { |
|
|
font-size: 35px; |
|
|
} |
|
|
} |
|
|
|
|
|
#segmentText { |
|
|
width: 100%; |
|
|
transition: padding 0.7s ease, line-height 0.7s ease; |
|
|
padding: 15px 20px 20px; |
|
|
font-size: 5px; |
|
|
line-height: 28px; |
|
|
} |
|
|
@media screen and (max-width: 200px) { |
|
|
#segmentText { |
|
|
font-size: 14px; |
|
|
} |
|
|
} |
|
|
@media screen and (min-width: 1314px) { |
|
|
#segmentText { |
|
|
font-size: 21px; |
|
|
} |
|
|
} |
|
|
|
|
|
@media (max-width: 360px) { |
|
|
div.pie-container #pieChart { |
|
|
counter-reset: break-point 40; |
|
|
} |
|
|
div.pie-container #pieChart svg { |
|
|
width: 100%; |
|
|
} |
|
|
div.pie-container #pieText { |
|
|
margin-top: 15px; |
|
|
} |
|
|
div.pie-container #pieText .panel { |
|
|
height: 230px; |
|
|
padding: 0; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentTitle { |
|
|
padding: 2px 4px 4px; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentText { |
|
|
padding: 2px 4px 4px; |
|
|
line-height: 16px; |
|
|
} |
|
|
} |
|
|
@media (min-width: 360.02px) and (max-width: 442px) { |
|
|
div.pie-container #pieChart { |
|
|
counter-reset: break-point 53; |
|
|
} |
|
|
div.pie-container #pieText { |
|
|
margin-top: 15px; |
|
|
} |
|
|
div.pie-container #pieText .panel { |
|
|
height: 210px; |
|
|
padding: 0; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentTitle { |
|
|
padding: 4px; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentText { |
|
|
padding: 4px; |
|
|
line-height: 18px; |
|
|
} |
|
|
} |
|
|
@media (min-width: 442.02px) and (max-width: 575.98px) { |
|
|
div.pie-container #pieChart { |
|
|
counter-reset: break-point 60; |
|
|
} |
|
|
div.pie-container #pieText { |
|
|
margin-top: 15px; |
|
|
} |
|
|
div.pie-container #pieText .panel { |
|
|
height: 200px; |
|
|
padding: 0; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentTitle { |
|
|
padding: 4px; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentText { |
|
|
padding: 0 4px 4px; |
|
|
line-height: 21px; |
|
|
} |
|
|
} |
|
|
@media (min-width: 576px) and (max-width: 637.98px) { |
|
|
div.pie-container #pieChart { |
|
|
counter-reset: break-point 70; |
|
|
} |
|
|
div.pie-container #pieText { |
|
|
margin-top: 20px; |
|
|
} |
|
|
div.pie-container #pieText .panel { |
|
|
padding: 0; |
|
|
height: 205px; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentTitle { |
|
|
padding: 8px; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentText { |
|
|
padding: 0 8px 8px; |
|
|
line-height: 24px; |
|
|
} |
|
|
} |
|
|
@media (min-width: 638px) and (max-width: 767px) { |
|
|
div.pie-container #pieChart { |
|
|
counter-reset: break-point 80; |
|
|
} |
|
|
div.pie-container #pieText { |
|
|
margin-top: 20px; |
|
|
} |
|
|
div.pie-container #pieText .panel { |
|
|
padding: 0 3px; |
|
|
height: 270px; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentTitle { |
|
|
padding: 15px; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentText { |
|
|
padding: 15px; |
|
|
line-height: 27px; |
|
|
} |
|
|
} |
|
|
@media (min-width: 767.02px) and (max-width: 965px) { |
|
|
div.pie-container #pieChart { |
|
|
counter-reset: break-point 50; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentTitle { |
|
|
padding: 8px; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentText { |
|
|
padding: 0 8px 8px; |
|
|
line-height: 23px; |
|
|
} |
|
|
} |
|
|
@media (min-width: 965.02px) and (max-width: 1314px) { |
|
|
div.pie-container #pieChart { |
|
|
counter-reset: break-point 60; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentTitle { |
|
|
padding: 10px; |
|
|
} |
|
|
div.pie-container #pieText .panel #segmentText { |
|
|
padding: 5px 10px 10px; |
|
|
} |
|
|
} |
|
|
@media (min-width: 1314.02px) and (max-width: 1480px) { |
|
|
div.pie-container #pieText .panel #segmentText { |
|
|
padding-top: 10px; |
|
|
} |
|
|
} |