codecheck

Форк
0
128 строк · 2.6 Кб
1
// core
2
.p-progressbar {
3
    position: relative;
4
    overflow: hidden;
5
}
6

7
.p-progressbar-determinate .p-progressbar-value {
8
    height: 100%;
9
    width: 0%;
10
    position: absolute;
11
    display: none;
12
    border: 0 none;
13
    display: flex;
14
    align-items: center;
15
    justify-content: center;
16
    overflow: hidden;
17
}
18

19
.p-progressbar-determinate .p-progressbar-label {
20
    display: inline-flex;
21
}
22

23
.p-progressbar-determinate .p-progressbar-value-animate {
24
    transition: width 1s ease-in-out;
25
}
26

27
.p-progressbar-indeterminate .p-progressbar-value::before {
28
    content: '';
29
    position: absolute;
30
    background-color: inherit;
31
    top: 0;
32
    left: 0;
33
    bottom: 0;
34
    will-change: left, right;
35
    -webkit-animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
36
    animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
37
}
38

39
.p-progressbar-indeterminate .p-progressbar-value::after {
40
    content: '';
41
    position: absolute;
42
    background-color: inherit;
43
    top: 0;
44
    left: 0;
45
    bottom: 0;
46
    will-change: left, right;
47
    -webkit-animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
48
    animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
49
    -webkit-animation-delay: 1.15s;
50
    animation-delay: 1.15s;
51
}
52

53
@-webkit-keyframes p-progressbar-indeterminate-anim {
54
    0% {
55
        left: -35%;
56
        right: 100%;
57
    }
58
    60% {
59
        left: 100%;
60
        right: -90%;
61
    }
62
    100% {
63
        left: 100%;
64
        right: -90%;
65
    }
66
}
67
@keyframes p-progressbar-indeterminate-anim {
68
    0% {
69
        left: -35%;
70
        right: 100%;
71
    }
72
    60% {
73
        left: 100%;
74
        right: -90%;
75
    }
76
    100% {
77
        left: 100%;
78
        right: -90%;
79
    }
80
}
81

82
@-webkit-keyframes p-progressbar-indeterminate-anim-short {
83
    0% {
84
        left: -200%;
85
        right: 100%;
86
    }
87
    60% {
88
        left: 107%;
89
        right: -8%;
90
    }
91
    100% {
92
        left: 107%;
93
        right: -8%;
94
    }
95
}
96
@keyframes p-progressbar-indeterminate-anim-short {
97
    0% {
98
        left: -200%;
99
        right: 100%;
100
    }
101
    60% {
102
        left: 107%;
103
        right: -8%;
104
    }
105
    100% {
106
        left: 107%;
107
        right: -8%;
108
    }
109
}
110

111
// theme
112
.p-progressbar {
113
    border: $progressBarBorder;
114
    height: $progressBarHeight;
115
    background: $progressBarBg;
116
    border-radius: $borderRadius;
117

118
    .p-progressbar-value {
119
        border: 0 none;
120
        margin: 0;
121
        background: $progressBarValueBg;
122
    }
123

124
    .p-progressbar-label {
125
        color: $progressBarValueTextColor;
126
        line-height: $progressBarHeight;
127
    }
128
}
129

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.