xmpp.chapril.org-conversejs/sass/_roster.scss

187 lines
5.0 KiB
SCSS
Raw Normal View History

#conversejs #converse-roster {
text-align: left;
width: 100%;
position: relative;
margin: 0;
height: $roster-height;
height: calc(~"100% - #{$controlbox-dropdown-height*2} - 20px");
padding: 0;
overflow: hidden;
&.no-contact-requests {
height: calc(~"100% - #{$controlbox-dropdown-height*2} - 20px");
}
// XXX: FIXME
height: calc(100% - 70px);
/* Custom addition for CSP */
#online-count {
display: none;
}
2015-10-28 09:49:28 +01:00
.search-xmpp {
ul {
li.chat-info {
padding-left: 10px;
}
}
}
.roster-filter-form {
width: 100%;
2018-02-19 16:24:05 +01:00
.button-group {
padding: 0.2em;
}
span {
2018-02-19 16:05:29 +01:00
padding: 0.3em;
cursor: pointer;
}
2015-10-30 19:30:39 +01:00
.roster-filter {
2018-02-19 16:05:29 +01:00
width: 100%;
margin: 0.2em;
2015-10-30 19:30:39 +01:00
}
.state-type {
2015-10-30 19:30:39 +01:00
font-size: calc(#{$font-size} - 2px);
height: $controlbox-dropdown-height;
2018-02-19 16:05:29 +01:00
width: 100%;
2015-10-30 19:30:39 +01:00
}
}
.roster-contacts {
padding: 0;
margin: 0.2em 0;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
.roster-group {
border: none;
color: $text-color;
font-weight: normal;
text-shadow: 0 1px 0 $text-shadow-color;
margin: 1em 0 0 0;
.group-toggle {
&:hover {
color: $dark-gray-color;
}
color: $text-color;
display: block;
width: 100%;
line-height: $line-height;
}
li {
border: none;
clear: both;
color: $text-color;
display: block;
height: 24px;
overflow-y: hidden;
text-shadow: 0 1px 0 $text-shadow-color;
line-height: $font-size;
width: 100%;
2018-02-19 15:01:02 +01:00
margin-top: 0.5em;
&.requesting-xmpp-contact {
a.fa {
2018-02-19 15:01:02 +01:00
width: 1.5em;
}
.req-contact-name {
2018-02-19 15:01:02 +01:00
padding: 0 0.2em 0 0;
}
}
a:hover {
color: $dark-link-color;
}
a.fa:hover {
color: $gray-color;
}
.open-chat {
2018-02-19 15:01:02 +01:00
margin: 0;
padding: 0;
&.unread-msgs {
font-weight: bold;
.contact-name {
width: 70%;
}
}
.msgs-indicator {
background-color: $chat-head-color;
opacity: 1;
border-radius: 10%;
padding: 0 0.2em;
font-size: $font-size-small;
}
.contact-name {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding: 0;
margin: 0;
max-width: 80%;
float: none;
height: $roster-item-height;
&.unread-msgs {
max-width: 60%;
}
}
.avatar {
float: left;
display: inline-block;
height: $roster-item-height;
}
}
&.current-xmpp-contact span {
font-size: $font-size;
float: left;
margin-right: 0.5em;
}
&.odd {
background-color: #DCEAC5;
/* Make this difference */
}
a, span {
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
span {
padding: 0;
height: 100%;
}
a {
&.decline-xmpp-request {
margin-left: 5px;
}
&.remove-xmpp-contact {
font-size: $font-size-tiny;
float: right;
margin: 0;
padding: 0;
width: 2em;
&:before {
font-size: $font-size;
}
}
}
}
}
}
span {
&.pending-contact-name {
2017-02-16 14:42:50 +01:00
line-height: $line-height;
width: 100%;
}
}
}