session-desktop/stylesheets/_index.scss

232 lines
3.8 KiB
SCSS
Raw Normal View History

.conversation-stack,
.new-conversation, .inbox, .gutter {
height: 100%;
}
.scrollable {
height: 100%;
overflow: auto;
}
.gutter {
2016-03-21 07:36:45 +01:00
color: $grey_d;
float: left;
2015-08-27 02:48:18 +02:00
width: 300px;
.content {
background-color: $grey_l;
height: calc(100% - 104px);
}
2015-08-27 02:48:18 +02:00
.conversations {
overflow-y: scroll;
height: 100%;
2015-08-27 02:48:18 +02:00
width: 100%;
}
}
.socket-status {
float: right;
line-height: $button-height;
* {
2015-08-26 19:31:16 +02:00
display: inline;
padding-left: 20px;
vertical-align: middle;
}
.connecting .icon {
background-color: $blue;
}
.closing {
background-color: $blue_l;
}
.closed {
background: url('/images/error_red.png') no-repeat left center;
}
}
.conversation-stack {
2016-03-22 18:34:54 +01:00
padding-left: 300px;
.conversation {
display: none;
}
.conversation:first-child {
display: block;
}
}
.conversation-header {
height: $header-height;
2016-03-18 21:09:45 +01:00
text-align: center;
color: white;
background-color: #999999;
transition: background-color 0.5s;
border-bottom: 1px solid rgba(0,0,0,0.2);
2016-03-18 21:09:45 +01:00
.avatar {
2016-03-18 21:09:45 +01: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;
border-color: rgba(0,0,0,0.05);
}
input.search {
2015-02-06 07:42:16 +01:00
border: none;
padding: 0;
margin: 0;
outline: 0;
height: 36px;
2016-03-28 00:30:10 +02:00
width: 100%;
padding: 10px;
border: solid 1px $grey_l;
outline-offset: -2px;
font-size: inherit;
2016-03-28 00:30:10 +02:00
&.active {
outline: solid 1px $blue;
}
2015-12-07 05:40:29 +01:00
&::-webkit-search-cancel-button {
-webkit-appearance: none;
display: block;
2015-12-07 05:40:29 +01:00
width: 16px;
height: 16px;
background: url('/images/x.svg') no-repeat center;
2015-12-07 05:40:29 +01:00
background-size: cover;
}
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-right: 8px;
}
&.valid {
opacity: 1.0
}
2015-01-25 19:38:35 +01:00
}
2015-01-25 19:36:41 +01:00
.index {
color: $grey_d;
.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: small;
2015-01-25 19:36:41 +01:00
font-weight: 300;
}
.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 {
.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;
&: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
.conversation.placeholder {
text-align: center;
padding: 100px 36px;
color: #aaa;
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;
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;
}
}