signal-desktop/stylesheets/_index.scss
2016-03-18 16:21:55 -07:00

245 lines
4 KiB
SCSS

.conversation-stack,
.new-conversation, .inbox, .gutter {
height: 100%;
}
.container, .scrollable {
height: 100%;
overflow: auto;
}
.gutter {
color: #000000;
background-color: $blue;
float: left;
width: 300px;
.content {
background-color: $grey_l;
height: calc(100% - 104px);
}
.conversations {
overflow-y: scroll;
height: 100%;
width: 100%;
}
}
.socket-status {
float: right;
line-height: $header-height;
* {
display: inline;
padding-left: 20px;
border-radius: 100%;
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 {
padding-left: 300px;
.conversation {
display: none;
}
.conversation:first-child {
display: block;
}
}
.conversation-header {
height: 64px;
text-align: center;
color: white;
background: #999999;
.avatar {
margin-bottom: -30px;
border: solid 2px white;
z-index: 10;
width: 48px;
height: 48px;
line-height: 44px;
position: relative;
}
}
input.search {
border: none;
padding: 0;
margin: 0;
outline: 0;
&::-webkit-search-cancel-button {
-webkit-appearance: none;
width: 16px;
height: 16px;
background: url('/images/x.png') no-repeat center;
background-size: cover;
}
&::-webkit-search-cancel-button:hover {
cursor: pointer;
}
}
.tool-bar {
background: $grey_l;
padding: 2px;
button.show-new-conversation {
float: right;
height: $header-height;
width: $header-height;
border: 0;
outline: 0;
font: 300 36px $roboto;
color: white;
background: url('/images/pencil.png') no-repeat center center;
&:hover {
background-color: darken($grey_l, 3%);
}
}
input.search {
height: $header-height;
width: 100%;
padding: 10px;
border: solid 1px $grey_l;
&.active {
outline: solid 1px $blue;
}
}
}
.last-timestamp {
font-size: smaller;
float: right;
margin: 0 10px;
color: $grey;
}
.new-contact {
display: none;
cursor: pointer;
opacity: 0.7;
background: $grey_l;
.contact-details .number {
display: block;
font-style: italic;
padding-right: 8px;
}
&.valid {
opacity: 1.0
}
}
.index {
color: $grey_d;
.gutter .new-group-update-form {
display: none;
padding: 0.5em;
}
.last-message {
margin: 6px 0;
font-size: small;
font-weight: 300;
}
.gutter .timestamp {
position: absolute;
top: 14px;
right: 12px;
color: $grey;
}
}
.conversations .unread .contact-details {
.name,
.last-message,
.last-timestamp {
font-weight: bold;
}
}
.hint {
margin: 10px;
padding: 1em;
border-radius: 10px;
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;
}
}
}
.conversation.placeholder {
text-align: center;
padding-top: 100px;
color: #aaa;
}
.contact.placeholder {
position: absolute;
top: 50px;
left: 0;
background: transparent;
border-radius: 10px;
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;
}
}