signal-desktop/stylesheets/_progress.scss

50 lines
1,003 B
SCSS
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2017 Signal Messenger, LLC
2020-10-30 20:34:04 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use 'variables';
@keyframes progress-bar-stripes {
from {
background-position: 40px 0;
}
to {
background-position: 0 0;
}
}
.progress-bar-striped {
2018-05-04 20:07:52 +00:00
background-image: linear-gradient(
45deg,
2024-11-15 23:09:31 +00:00
variables.$color-white-alpha-60 25%,
2018-05-04 20:07:52 +00:00
transparent 25%,
transparent 50%,
2024-11-15 23:09:31 +00:00
variables.$color-white-alpha-60 50%,
variables.$color-white-alpha-60 75%,
2018-05-04 20:07:52 +00:00
transparent 75%,
transparent
);
background-size: 40px 40px;
}
.progress-bar-striped {
2018-05-04 20:07:52 +00:00
background-image: linear-gradient(
45deg,
2024-11-15 23:09:31 +00:00
variables.$color-white-alpha-60 25%,
2018-05-04 20:07:52 +00:00
transparent 25%,
transparent 50%,
2024-11-15 23:09:31 +00:00
variables.$color-white-alpha-60 50%,
variables.$color-white-alpha-60 75%,
2018-05-04 20:07:52 +00:00
transparent 75%,
transparent
);
}
.progress-bar.active {
2018-05-04 20:07:52 +00:00
animation: progress-bar-stripes 2s linear infinite;
}
.bar-container {
2024-11-15 23:09:31 +00:00
background: variables.$color-ios-blue-tint;
.progress-bar {
height: 100%;
}
}