signal-desktop/stylesheets/_index.scss

296 lines
5.1 KiB
SCSS
Raw Normal View History

.conversation-stack,
2018-05-04 20:07:52 +00:00
.new-conversation,
.inbox,
.gutter {
height: 100%;
}
.expired {
2018-05-04 20:07:52 +00:00
.conversation-stack,
.gutter {
height: calc(100% - 56px);
}
}
.scrollable {
height: 100%;
overflow: auto;
}
.gutter {
2016-03-21 06:36:45 +00:00
color: $grey_d;
float: left;
2015-08-27 00:48:18 +00:00
width: 300px;
display: flex;
flex-direction: column;
.content {
background-color: $grey_l;
flex-grow: 1;
overflow-y: auto;
2015-08-27 00:48:18 +00:00
}
}
.network-status-container {
.network-status {
2017-03-08 00:54:46 +00:00
background: url('../images/error_red.svg') no-repeat left 10px center;
background-size: 25px 25px;
background-color: #fcd156;
padding: 10px;
padding-left: 2 * $button-height;
display: none;
2018-05-04 20:07:52 +00: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;
}
}
.action {
button {
border-radius: $border-radius;
border: solid 1px #ccc;
cursor: pointer;
font-family: inherit;
color: white;
background: $blue;
}
}
}
}
.conversation-stack {
2016-03-22 17:34:54 +00:00
padding-left: 300px;
.conversation {
display: none;
}
.conversation:first-child {
display: block;
}
}
.conversation-header {
height: $header-height;
2016-03-18 20:09:45 +00:00
text-align: center;
color: white;
background-color: #999999;
transition: background-color 0.5s;
2018-05-04 20:07:52 +00:00
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
2016-03-18 20:09:45 +00:00
.avatar {
2016-03-18 20:09:45 +00:00
margin-bottom: -30px;
border: solid 2px white;
z-index: 10;
width: 48px;
height: 48px;
line-height: 44px;
position: relative;
}
}
.inactive .conversation-header {
background-color: $grey_l !important;
color: $grey_d;
2018-05-04 20:07:52 +00:00
border-color: rgba(0, 0, 0, 0.05);
.verified-icon {
@include color-svg('../images/verified-check.svg', $grey_d);
}
}
.tool-bar {
position: relative;
.search-icon {
content: '';
display: inline-block;
float: left;
width: 24px;
height: 100%;
2017-03-08 00:54:46 +00:00
-webkit-mask: url('../images/search.svg') no-repeat left center;
-webkit-mask-size: 100%;
background-color: #ccc;
position: absolute;
left: 20px;
top: 0;
}
}
input.search {
2015-02-06 06:42:16 +00:00
border: none;
padding: 0 $search-padding-right 0 $search-padding-left;
2015-02-06 06:42:16 +00:00
margin: 0;
outline: 0;
height: $search-height;
line-height: $search-height;
2016-03-27 22:30:10 +00:00
width: 100%;
border: solid 1px $grey_l;
outline-offset: -2px;
font-size: inherit;
position: relative;
2016-03-27 22:30:10 +00:00
&.active {
outline: solid 1px $blue;
2017-03-08 00:54:46 +00:00
background-image: url('../images/x.svg');
background-repeat: no-repeat;
background-size: $search-x-size;
&.ltr {
2018-05-04 20:07:52 +00:00
background-position: right $search-padding-right center;
}
&.rtl {
2018-05-04 20:07:52 +00:00
background-position: left $search-padding-left center;
}
2016-03-27 22:30:10 +00:00
}
2015-12-07 04:40:29 +00:00
&::-webkit-search-cancel-button {
-webkit-appearance: none;
display: block;
width: $search-x-size;
height: $search-x-size;
2015-12-07 04:40:29 +00:00
}
2016-03-27 22:30:10 +00:00
&::-webkit-search-cancel-button:hover {
cursor: pointer;
}
2015-01-26 07:44:53 +00:00
}
.last-timestamp {
font-size: smaller;
float: right;
margin: 0 10px;
2016-03-18 20:09:45 +00:00
color: $grey;
}
2015-02-06 06:42:16 +00:00
.new-contact {
display: none;
cursor: pointer;
opacity: 0.7;
.contact-details .number {
2015-02-06 06:42:16 +00:00
display: block;
font-style: italic;
padding-right: 8px;
}
&.valid {
2018-05-04 20:07:52 +00:00
opacity: 1;
}
2015-01-25 18:38:35 +00:00
}
2015-01-25 18:36:41 +00:00
.index {
.gutter .new-group-update-form {
display: none;
padding: 0.5em;
2015-01-25 18:36:41 +00:00
}
.last-message {
margin: 6px 0 0;
font-size: $font-size-small;
2015-01-25 18:36:41 +00:00
}
.gutter .timestamp {
2015-01-25 18:36:41 +00:00
position: absolute;
top: 14px;
right: 12px;
2016-03-18 20:09:45 +00:00
color: $grey;
2015-01-25 18:36:41 +00:00
}
}
.conversations .unread .contact-details {
2018-05-04 20:07:52 +00:00
.name,
.last-message,
.last-timestamp {
font-weight: bold;
}
}
.hint {
margin: 10px;
padding: 1em;
2016-04-01 21:24:13 +00: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 20:07:52 +00: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-27 23:43:45 +00:00
.conversation.placeholder {
text-align: center;
.container {
position: absolute;
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.content {
display: inline-block;
}
h3 {
font-size: large;
}
2015-11-27 23:43:45 +00:00
}
.contact.placeholder {
position: absolute;
top: 50px;
left: 0;
background: transparent;
color: white;
border: 2px dashed white;
overflow: visible;
2018-05-04 20:07:52 +00: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;
}
}