Template:Progress ring/ProgressRing.css: Difference between revisions

From Portals of Phereon Wiki
Content added Content deleted
mNo edit summary
(Kozd changed the content model of the page Template:Progress ring/ProgressRing.css from "CSS" to "Sanitized CSS": back to template style)
Tag: content model change
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
.radial-progress {
.progress-ring {
position: relative;
position: relative;
border-radius: 50%;
border-radius: 50%;
}
}


.radial-progress .circle .mask,
.progress-ring .circle .mask,
.radial-progress .circle .fill,
.progress-ring .circle .fill,
.radial-progress .circle .shadow {
.progress-ring .circle .shadow {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
Line 13: Line 13:
}
}


.radial-progress .inset {
.progress-ring .inset {
position: absolute;
position: absolute;
border-radius: 50%;
border-radius: 50%;
}
}


.radial-progress .inset .percentage {
.progress-ring .inset .percentage {
position: absolute;
position: absolute;
top: 50%;
top: 50%;
Line 25: Line 25:
}
}


.radial-progress .inset .percentage .numbers span {
.progress-ring .inset .percentage .numbers span {
font-weight: 800;
font-weight: 800;
}
}

Latest revision as of 04:43, 19 January 2021

.progress-ring {
	position: relative;
	border-radius: 50%;
}

.progress-ring .circle .mask,
.progress-ring .circle .fill,
.progress-ring .circle .shadow {
	width: 100%;
	height: 100%;
	position: absolute;
	border-radius: 50%;
}

.progress-ring .inset {
	position: absolute;
	border-radius: 50%;
}

.progress-ring .inset .percentage {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

.progress-ring .inset .percentage .numbers span {
	font-weight: 800;
}