signal-desktop/stylesheets/components/Inbox.scss

122 lines
2.1 KiB
SCSS
Raw Normal View History

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
.Inbox {
display: flex;
flex-direction: row;
height: 100%;
&__conversation-stack {
flex-grow: 1;
height: 100%;
overflow: hidden;
position: relative;
}
&__no-conversation-open {
align-items: center;
display: flex;
flex-direction: column;
height: 100%;
justify-content: center;
overflow: hidden;
position: relative;
text-align: center;
}
.__conversation {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
background-color: variables.$color-white;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background-color: variables.$color-gray-95;
}
}
}
2024-07-03 21:15:54 +00:00
2024-08-13 23:34:42 +00:00
.Inbox__no-conversation-open .module-splash-screen__logo {
margin: 0;
}
2024-07-03 21:15:54 +00:00
.Inbox__logo {
flex-shrink: 0;
display: block;
width: 150px;
height: 150px;
margin-block: 24px;
position: relative;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme() {
--Inbox__logo__bg: #{variables.$color-ultramarine-logo};
2024-11-15 02:58:49 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme() {
--Inbox__logo__bg: #{variables.$color-white};
2024-11-15 02:58:49 +00:00
}
2024-07-03 21:15:54 +00:00
.Inbox__logo__part {
width: 100%;
height: 100%;
position: absolute;
}
.Inbox__logo__part--base {
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
'../images/logo-parts/base.svg',
var(--Inbox__logo__bg)
);
& {
z-index: 1;
}
2024-07-03 21:15:54 +00:00
}
.Inbox__logo__part--segment {
opacity: 0;
z-index: 2;
}
.Inbox__logo__part--animated {
2024-07-24 00:31:40 +00:00
transition:
opacity 250ms,
transform 250ms;
2024-07-03 21:15:54 +00:00
}
@for $i from 1 through 16 {
.Inbox__logo__part--segment:nth-child(#{$i + 1}) {
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
2024-11-15 02:58:49 +00:00
'../images/logo-parts/p#{$i}.svg',
var(--Inbox__logo__bg)
);
2024-11-15 23:09:31 +00:00
& {
transform: rotate(#{(16 - $i) * 22.5}deg);
}
2024-07-03 21:15:54 +00:00
}
}
.Inbox__logo__part--segment:nth-child(n).Inbox__logo__part--visible {
transform: rotate(0deg);
opacity: 1;
}
}
2024-08-13 23:34:42 +00:00
.Inbox__welcome {
margin-block: 20px 6px;
2024-11-15 23:09:31 +00:00
@include mixins.font-title-medium;
2024-08-13 23:34:42 +00:00
line-height: 24px;
}
.Inbox__whatsnew {
margin: 0;
}
// To center the content relative left pane
.Inbox__padding {
flex-grow: 1;
max-height: 28px;
}