signal-desktop/stylesheets/components/StoryImage.scss

75 lines
1.3 KiB
SCSS
Raw Normal View History

2022-03-29 01:10:08 +00:00
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
2022-03-29 01:10:08 +00:00
.StoryImage {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
overflow: hidden;
position: relative;
width: 100%;
2024-11-15 23:09:31 +00:00
z-index: variables.$z-index-base;
2022-03-29 01:10:08 +00:00
&--thumbnail {
height: 72px;
width: 46px;
}
&__image {
height: 100%;
object-fit: cover;
width: 100%;
}
&__overlay-container {
2022-03-29 01:10:08 +00:00
align-items: center;
display: flex;
height: 100%;
justify-content: center;
2023-04-20 17:03:43 +00:00
inset-inline-start: 0;
2022-03-29 01:10:08 +00:00
position: absolute;
top: 0;
width: 100%;
}
2022-08-04 00:38:41 +00:00
&__error {
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
2022-08-04 00:38:41 +00:00
'../images/full-screen-flow/alert-outline.svg',
2024-11-15 23:09:31 +00:00
variables.$color-white
2022-08-04 00:38:41 +00:00
);
2024-11-15 23:09:31 +00:00
& {
align-items: center;
display: flex;
height: 32px;
justify-content: center;
width: 32px;
}
2022-08-04 00:38:41 +00:00
}
2022-03-29 01:10:08 +00:00
&__spinner-bubble {
align-items: center;
2024-11-15 23:09:31 +00:00
background-color: variables.$color-gray-75;
2022-03-29 01:10:08 +00:00
border-radius: 32px;
display: flex;
height: 32px;
justify-content: center;
width: 32px;
}
&__spinner {
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
2022-03-29 01:10:08 +00:00
&__circle {
2024-11-15 23:09:31 +00:00
background-color: variables.$color-white;
2022-03-29 01:10:08 +00:00
}
&__arc {
2024-11-15 23:09:31 +00:00
background-color: variables.$color-gray-75;
2022-03-29 01:10:08 +00:00
}
}
}
}