Signal-Desktop/stylesheets/_settings.scss

117 lines
1.9 KiB
SCSS

// Copyright 2016-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.settings {
user-select: none;
&.modal {
padding: 0;
background-color: transparent;
z-index: 1;
.content {
margin: 0;
margin-left: auto;
margin-right: auto;
width: 100%;
max-width: 450px;
border-radius: 0;
box-shadow: 0px 0px 0px 0px;
}
}
hr {
margin: 10px 0;
@include dark-theme {
border-color: $color-gray-45;
}
}
.device-name-settings {
text-align: center;
margin-bottom: 1em;
}
.syncSettings {
button {
float: right;
line-height: 36px;
padding: 0 20px;
margin: 0 0 20px 20px;
}
.synced_at {
@include font-body-2;
color: $color-gray-60;
}
.sync_failed {
display: none;
@include font-body-2;
color: $color-accent-red;
}
}
.restart-needed {
margin-top: 1em;
}
.clear-data-settings {
button {
float: right;
line-height: 36px;
padding: 0 20px;
margin: 0 0 20px 20px;
}
.destructive {
background-color: $color-accent-red;
color: $color-white;
}
}
.send-link-previews-setting {
margin-top: 0.75em;
}
.description {
margin-top: 0.3em;
margin-left: 1.5em;
}
.detail {
margin-top: 0.3em;
margin-left: 1.5em;
@include font-body-2;
color: $color-gray-60;
}
.disappearing-messages-setting {
&__timer {
display: flex;
flex-direction: row;
align-items: center;
&__label {
flex-grow: 1;
margin-right: 20px;
}
margin-bottom: 10px;
&__right {
position: relative;
&__info {
position: absolute;
@include font-subtitle;
padding-left: 14px;
}
}
&--with-info {
margin-bottom: 16px;
}
}
&__footer {
@include font-body-2;
color: $color-gray-60;
}
}
}