58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
@progress-height: 18px;
|
|
@progress-background: fade(@progress-bar-background, 30%);
|
|
@progress-border-radius: 500px;
|
|
@progress-box-shadow: none;
|
|
@progress-bar-background: @global-primary-background;
|
|
|
|
@progress-circle-size: 100px;
|
|
@progress-circle-text-font-weight: @text-bold-weight;
|
|
@progress-circle-text-font-size: @global-large-font-size;
|
|
|
|
@inverse-progress-background: @inverse-global-color;
|
|
@inverse-progress-bar-background: @global-secondary-background;
|
|
|
|
.hook-progress() {
|
|
border-radius: @progress-border-radius;
|
|
box-shadow: @progress-box-shadow;
|
|
}
|
|
|
|
.hook-progress-bar() {
|
|
border-radius: @progress-border-radius;
|
|
transition: none;
|
|
}
|
|
|
|
.hook-progress-misc() {
|
|
.uk-progress-circle[percentage] {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: @progress-circle-size;
|
|
height: @progress-circle-size;
|
|
border-radius: 50%;
|
|
background:
|
|
radial-gradient(closest-side, @table-color 70%, @global-inverse-color 70% 80%, transparent 80% 100%),
|
|
conic-gradient(@progress-bar-background calc(var(--percentage) * 1%), @progress-background 0);
|
|
|
|
&::before {
|
|
color: @progress-bar-background;
|
|
font-weight: @progress-circle-text-font-weight;
|
|
font-size: @progress-circle-text-font-size;
|
|
content: attr(percentage) '%';
|
|
}
|
|
}
|
|
}
|
|
|
|
.hook-inverse() {
|
|
.uk-progress {
|
|
background-color: @inverse-progress-background;
|
|
}
|
|
|
|
.uk-progress::-moz-progress-bar {
|
|
background-color: @inverse-progress-bar-background;
|
|
}
|
|
|
|
.uk-progress::-webkit-progress-value {
|
|
background-color: @inverse-progress-bar-background;
|
|
}
|
|
}
|