8,960
edits
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
.ring-chart27 { | .ring-chart27 { | ||
position: relative; | position: relative; | ||
| Line 55: | Line 4: | ||
height: 200px; | height: 200px; | ||
border-radius: 50%; | border-radius: 50%; | ||
background: | background: white; | ||
} | } | ||
| Line 82: | Line 26: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
z-index: 2; | z-index: 2; | ||
} | } | ||
| Line 90: | Line 31: | ||
.ring-chart27 ul li { | .ring-chart27 ul li { | ||
position: absolute; | position: absolute; | ||
width: 100%; | |||
height: 100%; | |||
clip-path: polygon(50% 50%, 100% 0%, 100% 100%); /* Обрезка для создания четверти круга */ | |||
width: | transition: background 0.3s ease; | ||
height: | |||
} | } | ||
.ring-chart27 ul li:nth-child(1) { | .ring-chart27 ul li:nth-child(1) { | ||
background-color: #4caf50; | |||
transform: rotate(0deg); | |||
background: #4caf50; | |||
transform: rotate(0deg); | |||
} | } | ||
.ring-chart27 ul li:nth-child(1):hover { | .ring-chart27 ul li:nth-child(1):hover { | ||
background: #66bb6a; | background-color: #66bb6a; | ||
} | } | ||
.ring-chart27 ul li:nth-child(2) { | .ring-chart27 ul li:nth-child(2) { | ||
background-color: #ff9800; | |||
transform: rotate(90deg); | |||
background: #ff9800; | |||
transform: rotate(90deg); | |||
} | } | ||
.ring-chart27 ul li:nth-child(2):hover { | .ring-chart27 ul li:nth-child(2):hover { | ||
background: #ffb74d; | background-color: #ffb74d; | ||
} | } | ||
.ring-chart27 ul li:nth-child(3) { | .ring-chart27 ul li:nth-child(3) { | ||
background-color: #2196f3; | |||
transform: rotate(180deg); | |||
background: #2196f3; | |||
transform: rotate(180deg); | |||
} | } | ||
.ring-chart27 ul li:nth-child(3):hover { | .ring-chart27 ul li:nth-child(3):hover { | ||
background: #64b5f6; | background-color: #64b5f6; | ||
} | } | ||
.ring-chart27 ul li:nth-child(4) { | .ring-chart27 ul li:nth-child(4) { | ||
background-color: #f44336; | |||
transform: rotate(270deg); | |||
background: #f44336; | |||
transform: rotate(270deg); | |||
} | } | ||
.ring-chart27 ul li:nth-child(4):hover { | .ring-chart27 ul li:nth-child(4):hover { | ||
background: #ef5350; | background-color: #ef5350; | ||
} | } | ||