2023-07-18 15:08:50 +02:00
|
|
|
@progress-height: 18px;
|
2023-06-23 14:23:51 +02:00
|
|
|
@progress-background: fade(@progress-bar-background, 30%);
|
2022-06-16 18:44:05 +02:00
|
|
|
@progress-border-radius: 500px;
|
2023-06-23 14:23:51 +02:00
|
|
|
@progress-box-shadow: none;
|
|
|
|
@progress-bar-background: @global-primary-background;
|
2023-12-06 11:40:39 +01:00
|
|
|
@progress-bar-background-open-access: @open-access-color;
|
|
|
|
@progress-background-open-access: @muted-color;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
2023-06-23 14:23:51 +02:00
|
|
|
@progress-circle-size: 100px;
|
2023-12-06 11:40:39 +01:00
|
|
|
@progress-circle-color: @global-primary-background;
|
2023-06-23 14:23:51 +02:00
|
|
|
@progress-circle-text-font-weight: @text-bold-weight;
|
|
|
|
@progress-circle-text-font-size: @global-large-font-size;
|
2023-12-06 11:40:39 +01:00
|
|
|
@progress-circle-sub-background: @table-color;
|
|
|
|
@progress-circle-background: conic-gradient(@progress-bar-background calc(var(--percentage) * 1%), @progress-background 0);
|
|
|
|
@progress-circle-background-open-access: conic-gradient(@progress-bar-background-open-access calc(var(--percentage) * 1%), @progress-background-open-access 0);
|
|
|
|
|
|
|
|
@progress-semicircle-size: 120px;
|
2024-04-08 18:09:26 +02:00
|
|
|
@progress-semicircle-size-small: 80px;
|
2023-12-06 11:40:39 +01:00
|
|
|
@progress-semicircle-color: @global-primary-background;
|
|
|
|
@progress-semicircle-text-font-weight: @text-bold-weight;
|
|
|
|
@progress-semicircle-text-font-size: @global-large-font-size;
|
2024-04-08 18:09:26 +02:00
|
|
|
@progress-semicircle-text-font-size-small: @global-font-size;
|
2023-12-06 11:40:39 +01:00
|
|
|
@progress-semicircle-background: conic-gradient(from 0.75turn at 50% 100%, @progress-bar-background calc(var(--percentage) * 1% / 2), @progress-background calc(var(--percentage) * 1% / 2 + 0.1%));
|
|
|
|
@progress-semicircle-background-open-access: conic-gradient(from 0.75turn at 50% 100%, @progress-bar-background-open-access calc(var(--percentage) * 1% / 2), @progress-background-open-access calc(var(--percentage) * 1% / 2 + 0.1%));
|
2022-06-16 18:44:05 +02:00
|
|
|
|
2023-10-05 16:01:22 +02:00
|
|
|
|
2022-06-16 18:44:05 +02:00
|
|
|
.hook-progress() {
|
|
|
|
border-radius: @progress-border-radius;
|
|
|
|
box-shadow: @progress-box-shadow;
|
2023-12-06 11:40:39 +01:00
|
|
|
|
|
|
|
&.open-access {
|
|
|
|
background: @progress-background-open-access;
|
|
|
|
|
|
|
|
&::-moz-progress-bar {
|
|
|
|
background-color: @progress-bar-background-open-access;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-progress-value {
|
|
|
|
background-color: @progress-bar-background-open-access;
|
|
|
|
}
|
|
|
|
}
|
2022-06-16 18:44:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.hook-progress-bar() {
|
|
|
|
border-radius: @progress-border-radius;
|
2023-10-06 09:13:21 +02:00
|
|
|
transition: none;
|
2022-06-16 18:44:05 +02:00
|
|
|
}
|
2023-06-23 14:23:51 +02:00
|
|
|
|
|
|
|
.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%;
|
2023-12-06 11:40:39 +01:00
|
|
|
background: @progress-circle-background;
|
2023-06-23 14:23:51 +02:00
|
|
|
|
|
|
|
&::before {
|
2023-12-06 11:40:39 +01:00
|
|
|
color: @progress-circle-color;
|
2023-06-23 14:23:51 +02:00
|
|
|
font-weight: @progress-circle-text-font-weight;
|
|
|
|
font-size: @progress-circle-text-font-size;
|
2023-12-06 11:40:39 +01:00
|
|
|
width: 80%;
|
|
|
|
height: 80%;
|
|
|
|
border-radius: inherit;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
background: @progress-circle-sub-background;
|
2023-06-23 14:23:51 +02:00
|
|
|
content: attr(percentage) '%';
|
|
|
|
}
|
2023-12-06 11:40:39 +01:00
|
|
|
|
|
|
|
&.open-access {
|
|
|
|
background: @progress-circle-background-open-access;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.uk-progress-semicircle[percentage] {
|
|
|
|
width: @progress-semicircle-size;
|
|
|
|
aspect-ratio: 2 / 1;
|
|
|
|
border-radius: 50% / 100% 100% 0 0;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-end;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: @progress-semicircle-background;
|
|
|
|
mask: radial-gradient(at 50% 100%, white 62%, transparent 63%);
|
|
|
|
mask-mode: alpha;
|
|
|
|
-webkit-mask: radial-gradient(at 50% 100%, #0000 62%, #000 63%);
|
|
|
|
-webkit-mask-mode: alpha;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
color: @progress-semicircle-color;
|
|
|
|
font-weight: @progress-semicircle-text-font-weight;
|
|
|
|
font-size: @progress-semicircle-text-font-size;
|
|
|
|
content: attr(percentage) '%';
|
|
|
|
}
|
|
|
|
|
|
|
|
&.open-access {
|
|
|
|
&::before {
|
|
|
|
background: @progress-semicircle-background-open-access;
|
|
|
|
}
|
|
|
|
}
|
2023-06-23 14:23:51 +02:00
|
|
|
}
|
2024-04-08 18:09:26 +02:00
|
|
|
|
|
|
|
.uk-progress-semicircle-small[percentage] {
|
|
|
|
width: @progress-semicircle-size-small;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
font-size: @progress-semicircle-text-font-size-small;
|
|
|
|
}
|
|
|
|
}
|
2023-06-23 14:23:51 +02:00
|
|
|
}
|
2023-10-05 16:01:22 +02:00
|
|
|
|
2023-12-06 11:40:39 +01:00
|
|
|
@inverse-progress-background: @inverse-global-color;
|
|
|
|
@inverse-progress-bar-background: @global-secondary-background;
|
|
|
|
@inverse-progress-background-open-access: @inverse-global-color;
|
|
|
|
@inverse-progress-bar-background-open-access: @progress-bar-background-open-access;
|
|
|
|
|
|
|
|
@inverse-progress-circle-color: @inverse-global-color;
|
|
|
|
@inverse-progress-circle-sub-background: @global-primary-background;
|
|
|
|
@inverse-progress-circle-background: conic-gradient(@inverse-progress-bar-background calc(var(--percentage) * 1%), @inverse-progress-background 0);
|
|
|
|
@inverse-progress-circle-background-open-access: conic-gradient(@inverse-progress-bar-background-open-access calc(var(--percentage) * 1%), @inverse-progress-background-open-access 0);
|
|
|
|
|
|
|
|
@inverse-progress-semicircle-color: @inverse-global-color;
|
|
|
|
@inverse-progress-semicircle-background: conic-gradient(from 0.75turn at 50% 100%, @inverse-progress-bar-background calc(var(--percentage) * 1% / 2), @inverse-progress-background calc(var(--percentage) * 1% / 2 + 0.1%));
|
|
|
|
@inverse-progress-semicircle-background-open-access: conic-gradient(from 0.75turn at 50% 100%, @inverse-progress-bar-background-open-access calc(var(--percentage) * 1% / 2), @inverse-progress-background-open-access calc(var(--percentage) * 1% / 2 + 0.1%));
|
|
|
|
|
2023-10-05 16:01:22 +02:00
|
|
|
.hook-inverse() {
|
|
|
|
.uk-progress {
|
|
|
|
background-color: @inverse-progress-background;
|
2023-12-06 11:40:39 +01:00
|
|
|
|
|
|
|
&::-moz-progress-bar {
|
|
|
|
background-color: @inverse-progress-bar-background;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-progress-value {
|
|
|
|
background-color: @inverse-progress-bar-background;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.open-access {
|
|
|
|
background: @inverse-progress-background-open-access;
|
|
|
|
|
|
|
|
&::-moz-progress-bar {
|
|
|
|
background-color: @inverse-progress-bar-background-open-access;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-progress-value {
|
|
|
|
background-color: @inverse-progress-bar-background-open-access;
|
|
|
|
}
|
|
|
|
}
|
2023-10-05 16:01:22 +02:00
|
|
|
}
|
|
|
|
|
2023-12-06 11:40:39 +01:00
|
|
|
.uk-progress-circle[percentage] {
|
|
|
|
background: @inverse-progress-circle-background;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
color: @inverse-progress-circle-color;
|
|
|
|
background: @inverse-progress-circle-sub-background;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.open-access {
|
|
|
|
background: @inverse-progress-circle-background-open-access;
|
|
|
|
}
|
2023-10-06 09:13:21 +02:00
|
|
|
}
|
|
|
|
|
2023-12-06 11:40:39 +01:00
|
|
|
.uk-progress-semicircle[percentage] {
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background: @inverse-progress-semicircle-background;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
color: @inverse-progress-semicircle-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.open-access {
|
|
|
|
&::before {
|
|
|
|
background: @inverse-progress-semicircle-background-open-access;
|
|
|
|
}
|
2023-12-07 16:00:01 +01:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
color: @inverse-progress-semicircle-color;
|
|
|
|
}
|
2023-12-06 11:40:39 +01:00
|
|
|
}
|
2023-10-05 16:01:22 +02:00
|
|
|
}
|
|
|
|
}
|