session-desktop/stylesheets/_index.scss

180 lines
2.9 KiB
SCSS
Raw Normal View History

.gutter {
padding: $header-height 0 0;
}
.conversation-stack,
.new-conversation, .inbox, .gutter {
height: 100%;
}
.container, .scrollable {
height: 100%;
overflow: auto;
}
.loading .gutter {
// TODO: spinner
}
.gutter {
float: left;
margin: 10px 0;
2015-08-27 02:48:18 +02:00
width: 300px;
.conversations {
height: calc(100% - 20px);
2015-08-27 02:48:18 +02:00
width: 100%;
}
}
.socket-status {
float: right;
padding: 6px;
-webkit-app-region: no-drag;
* {
2015-08-26 19:31:16 +02:00
display: inline;
cursor: pointer;
padding-left: 20px;
border-radius: $header-height;
&:hover {
background: $blue url('/images/refresh.png') center;
}
}
.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;
padding-top: $header-height;
.conversation {
display: none;
}
.conversation:first-child {
display: block;
}
}
.conversation-header {
border-bottom: solid 1px darken($grey_l, 10%);
margin-bottom: 4px;
}
.menu.conversation-menu {
2015-08-31 22:58:17 +02:00
button.drop-down {
background: url('/images/arrow_drop_down.png') no-repeat center;
}
}
input.search {
2015-02-06 07:42:16 +01:00
border: none;
padding: 0;
margin: 0;
outline: 0;
2015-01-26 08:44:53 +01:00
}
.tool-bar {
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%);
}
2015-01-26 08:44:53 +01:00
}
input.search {
height: $header-height - 10px;
width: 280px;
background: rgba(255,255,255,0.2);
margin: 10px;
padding: 5px;
&::-webkit-input-placeholder {
color: white;
}
&.active, &:active, &:focus {
background: white;
&::-webkit-input-placeholder {
color: #ccc;
}
}
}
2015-01-26 08:44:53 +01:00
}
.last-timestamp {
font-size: smaller;
float: right;
}
2015-02-06 07:42:16 +01:00
.new-contact {
display: none;
cursor: pointer;
background: $grey_l;
.name, .last-timestamp, .avatar { display: none; }
2015-02-06 07:42:16 +01:00
.contact-details::before {
content: 'Create new contact';
display: block;
font-style: italic;
opacity: 0.7;
padding-right: 8px;
}
2015-01-25 19:38:35 +01:00
}
2015-01-25 19:36:41 +01:00
.index {
color: $grey_d;
background: linear-gradient(rgba(46,172,224,1.0) 50%, rgba(160,228,208,1.0) 100%);
2015-01-25 19:36:41 +01:00
.gutter .new-group-update-form {
display: none;
padding: 0.5em;
2015-01-25 19:36:41 +01:00
}
.last-message {
margin: 6px 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;
color: #888;
}
}
.settings {
height: 100%;
width: 100%;
background: red;
display: none;
.settings-open & {
display: block;
}
}
.conversations .unread .contact-details {
.name,
.last-timestamp {
font-weight: bold;
}
}