signal-desktop/stylesheets/components/StoryImage.scss

75 lines
1.3 KiB
SCSS
Raw Normal View History

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