Cable-Desktop/stylesheets/_index.scss
lilia 4970cbeaed Fix overlapping name and timestamp
In the conversation list, fix long conversation names overlapping with
the right-floated timestamps.

// FREEBIE
2015-10-23 15:47:32 -07:00

183 lines
2.9 KiB
SCSS

.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;
width: 300px;
.conversations {
overflow-y: scroll;
height: calc(100% - 20px);
width: 100%;
}
}
.socket-status {
float: right;
padding: 6px;
-webkit-app-region: no-drag;
* {
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 {
button.drop-down {
background: url('/images/arrow_drop_down.png') no-repeat center;
}
}
input.search {
border: none;
padding: 0;
margin: 0;
outline: 0;
}
.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%);
}
}
input.search {
height: $header-height - 10px;
width: 270px;
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;
}
}
}
}
.last-timestamp {
font-size: smaller;
float: right;
margin: 0 10px;
}
.new-contact {
display: none;
cursor: pointer;
background: $grey_l;
.name, .last-timestamp, .avatar { display: none; }
.contact-details::before {
content: 'Create new contact';
display: block;
font-style: italic;
opacity: 0.7;
padding-right: 8px;
}
}
.index {
color: $grey_d;
background: linear-gradient(rgba(46,172,224,1.0) 50%, rgba(160,228,208,1.0) 100%);
.gutter .new-group-update-form {
display: none;
padding: 0.5em;
}
.last-message {
margin: 6px 0;
font-size: small;
font-weight: 300;
color: $grey;
}
.gutter .timestamp {
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-message,
.last-timestamp {
font-weight: bold;
}
}