session-desktop/stylesheets/_index.scss

393 lines
6.4 KiB
SCSS
Raw Normal View History

2018-05-04 22:07:52 +02:00
.new-conversation,
.inbox,
.gutter {
height: 100%;
overflow: hidden;
}
.edit-profile-dialog,
2020-02-19 01:27:37 +01:00
.create-group-dialog,
.user-details-dialog {
2019-11-18 07:23:27 +01:00
.content {
max-width: 100% !important;
}
.buttons {
margin: 8px;
}
.profile-name {
font-size: larger;
text-align: center;
}
.title-text {
font-size: large;
text-align: center;
}
.message {
font-style: italic;
color: $grey;
font-size: 12px;
margin-bottom: 16px;
}
.module-avatar {
display: block;
margin-bottom: 1em;
}
.avatar-center {
2019-11-18 07:23:27 +01:00
display: flex;
justify-content: center;
}
.avatar-center-inner {
2019-11-18 07:23:27 +01:00
display: flex;
2020-08-24 06:57:55 +02:00
padding-top: 30px;
2019-11-18 07:23:27 +01:00
}
.upload-btn-background {
background-color: #ffffff70;
align-self: center;
margin-inline-start: -24px;
2019-11-18 07:23:27 +01:00
margin-top: 40px;
z-index: 1;
border-radius: 8px;
}
.input-file {
display: none;
}
}
.expired {
2018-05-04 22:07:52 +02:00
.gutter {
height: calc(100% - 48px);
}
}
.scrollable {
height: 100%;
overflow: auto;
}
.gutter {
display: flex;
flex-direction: column;
float: left;
2015-08-27 02:48:18 +02:00
width: 300px;
user-select: none;
2018-12-03 01:19:45 +01:00
position: relative;
.tool-bar {
margin-top: 8px;
2018-11-28 05:38:10 +01:00
color: $color-dark-05;
.search-icon {
background-color: $color-light-35;
}
input.search {
border: 1px solid $color-light-60;
color: $color-dark-05;
background-color: $color-gray-95;
&:focus {
outline: solid 1px $blue;
}
}
}
.content {
2018-11-29 02:41:06 +01:00
overflow-y: auto;
max-height: calc(100% - 88px);
min-height: 0px;
flex: 1 1 auto;
2018-11-29 02:00:41 +01:00
color: $color-gray-05;
2018-12-12 04:55:46 +01:00
background: inherit;
}
.loki {
display: flex;
justify-content: center;
align-items: center;
height: 70px;
2018-11-28 05:38:10 +01:00
background: $color-loki-extra-dark-gray;
img {
2019-04-12 05:51:11 +02:00
object-fit: cover;
max-width: 60%;
max-height: 60%;
}
2015-08-27 02:48:18 +02:00
}
}
2018-11-28 05:38:10 +01:00
2018-11-29 02:00:41 +01:00
.section-toggle {
position: relative;
display: block;
padding: 0 0 0 1em;
background: $color-dark-75;
font-weight: bold;
line-height: 3;
cursor: pointer;
overflow: hidden;
2018-11-29 02:41:06 +01:00
user-select: none;
2018-11-29 02:00:41 +01:00
}
2019-01-16 05:44:13 +01:00
h4.section-toggle,
.section-toggle h4 {
margin-top: 1px;
margin-bottom: 1px;
}
2018-11-29 02:00:41 +01:00
.section-toggle::after {
position: absolute;
right: 0;
top: 0;
display: block;
width: 3em;
height: 3em;
line-height: 3;
text-align: center;
2019-01-16 05:44:13 +01:00
-webkit-transition: all 0.35s;
-o-transition: all 0.35s;
transition: all 0.35s;
content: '+';
2018-11-29 02:00:41 +01:00
}
.section-toggle-visible::after {
transform: rotate(315deg);
}
.section-conversations-container {
display: flex;
flex-direction: row;
margin-inline-end: 3em;
align-items: center;
h4 {
2019-01-16 05:44:13 +01:00
flex: 1;
}
}
.network-status-container {
.network-status {
padding: 10px;
padding-inline-start: 2 * $button-height;
display: none;
2018-05-04 22:07:52 +02:00
.network-status-message {
h3 {
padding: 0px;
margin: 0px;
margin-bottom: 2px;
font-size: 14px;
}
span {
display: inline-block;
font-size: 12px;
padding: 0.5em 0;
}
}
}
}
2019-01-14 22:49:58 +01:00
.left-pane-placeholder {
flex-grow: 1;
display: flex;
2019-01-14 22:49:58 +01:00
}
2019-01-14 22:49:58 +01:00
.left-pane-wrapper {
flex: 1;
}
.tool-bar {
color: $color-light-90;
padding: 8px;
padding-top: 0px;
margin-top: -1px;
position: relative;
.search-icon {
content: '';
display: inline-block;
float: left;
width: 24px;
height: 33px;
2017-03-08 01:54:46 +01:00
-webkit-mask: url('../images/search.svg') no-repeat left center;
-webkit-mask-size: 100%;
background-color: $color-light-35;
position: absolute;
left: 20px;
top: 0;
}
}
$search-x-size: 16px;
$search-padding-inline-end: 12px;
$search-padding-inline-start: 30px;
input.search {
border: 1px solid $color-black-02;
padding: 0 $search-padding-inline-end 0 $search-padding-inline-start;
margin-inline-start: 8px;
margin-inline-end: 8px;
2015-02-06 07:42:16 +01:00
outline: 0;
height: 32px;
width: calc(100% - 16px);
2016-03-28 00:30:10 +02:00
outline-offset: -2px;
font-size: 14px;
line-height: 18px;
font-weight: normal;
position: relative;
border-radius: 4px;
2016-03-28 00:30:10 +02:00
&:focus {
2016-03-28 00:30:10 +02:00
outline: solid 1px $blue;
}
&.active {
2017-03-08 01:54:46 +01:00
background-image: url('../images/x.svg');
background-repeat: no-repeat;
background-size: $search-x-size;
&.ltr {
background-position: right $search-padding-inline-end center;
}
&.rtl {
background-position: left $search-padding-inline-start center;
}
2016-03-28 00:30:10 +02:00
}
2015-12-07 05:40:29 +01:00
&::-webkit-search-cancel-button {
-webkit-appearance: none;
display: block;
width: $search-x-size;
height: $search-x-size;
2015-12-07 05:40:29 +01:00
}
2016-03-28 00:30:10 +02:00
&::-webkit-search-cancel-button:hover {
cursor: pointer;
}
2015-01-26 08:44:53 +01:00
}
.last-timestamp {
font-size: smaller;
float: right;
margin: 0 10px;
2016-03-18 21:09:45 +01:00
color: $grey;
}
2015-02-06 07:42:16 +01:00
.new-contact {
display: none;
cursor: pointer;
opacity: 0.7;
.contact-details .number {
2015-02-06 07:42:16 +01:00
display: block;
font-style: italic;
padding-inline-end: 8px;
2015-02-06 07:42:16 +01:00
}
&.valid {
2018-05-04 22:07:52 +02:00
opacity: 1;
}
2015-01-25 19:38:35 +01:00
}
2015-01-25 19:36:41 +01:00
.index {
.gutter .new-group-update-form {
display: none;
padding: 0.5em;
2015-01-25 19:36:41 +01:00
}
.last-message {
margin: 6px 0 0;
font-size: $font-size-small;
2015-01-25 19:36:41 +01:00
}
.gutter .timestamp {
2015-01-25 19:36:41 +01:00
position: absolute;
top: 14px;
right: 12px;
2016-03-18 21:09:45 +01:00
color: $grey;
2015-01-25 19:36:41 +01:00
}
}
.conversations .unread .contact-details {
2018-05-04 22:07:52 +02:00
.name,
.last-message,
.last-timestamp {
font-weight: bold;
}
}
.hint {
margin: 10px;
padding: 1em;
2016-04-01 23:24:13 +02:00
border-radius: $border-radius;
color: white;
border: 2px dashed white;
h3 {
margin-top: 5px;
}
&.firstRun {
position: absolute;
top: 0;
left: 302px;
width: 225px;
2018-05-04 22:07:52 +02:00
&:before,
&:after {
content: ' ';
display: block;
position: absolute;
top: 8px;
left: -35px;
width: 0;
height: 0;
border: solid 10px white;
border-color: transparent white transparent transparent;
transform: scaleX(2.5) scaleY(0.75);
}
&:after {
border-color: transparent #2eace0 transparent transparent;
left: -30px;
}
}
}
2015-11-28 00:43:45 +01:00
.contact.placeholder {
position: absolute;
top: 50px;
left: 0;
background: transparent;
color: white;
border: 2px dashed white;
overflow: visible;
2018-05-04 22:07:52 +02:00
p {
color: white;
}
&:before,
&:after {
content: ' ';
display: block;
position: absolute;
top: -35px;
left: 15px;
width: 0;
height: 0;
border: solid 10px white;
border-color: transparent transparent white transparent;
transform: scaleY(2.5) scaleX(0.75);
}
&:after {
border-color: transparent transparent #2eace0 transparent;
top: -30px;
}
}