mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
195 lines
3.9 KiB
CSS
195 lines
3.9 KiB
CSS
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
.contact-list {
|
|
border-top: 1px solid #ccc;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
/* We need enough space to show the context menu of the first contact. */
|
|
min-height: 204px;
|
|
/* Show six contacts and scroll for the rest. */
|
|
max-height: 306px;
|
|
}
|
|
|
|
.contact,
|
|
.contact-separator {
|
|
padding: 5px 10px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.contact {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
color: #666;
|
|
}
|
|
|
|
.contact-separator {
|
|
height: 24px;
|
|
background: #eee;
|
|
color: #888;
|
|
}
|
|
|
|
.contact:not(:first-child) {
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
.contact-separator:not(:first-child) {
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
.contact:hover {
|
|
background: #eee;
|
|
}
|
|
|
|
.contact:hover > .icons {
|
|
display: block;
|
|
z-index: 1;
|
|
}
|
|
|
|
.contact > .avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: #ccc;
|
|
border-radius: 50%;
|
|
margin-right: 10px;
|
|
overflow: hidden;
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
|
|
background-image: url("../img/audio-call-avatar.svg");
|
|
background-repeat: no-repeat;
|
|
background-color: #4ba6e7;
|
|
background-size: contain;
|
|
-moz-user-select: none;
|
|
}
|
|
|
|
.contact > .avatar > img {
|
|
width: 100%;
|
|
}
|
|
|
|
.contact > .details > .username {
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
color: #222;
|
|
}
|
|
|
|
.contact.blocked > .details > .username {
|
|
color: #d74345;
|
|
}
|
|
|
|
.contact > .details > .username > strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.contact > .details > .username > i.icon-blocked {
|
|
display: inline-block;
|
|
width: 10px;
|
|
height: 20px;
|
|
-moz-margin-start: 3px;
|
|
background-image: url("../img/icons-16x16.svg#block-red");
|
|
background-position: center;
|
|
background-size: 10px 10px;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.contact > .details > .username > i.icon-google {
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 35%;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background-image: url("../img/icons-16x16.svg#google");
|
|
background-position: center;
|
|
background-size: 16px 16px;
|
|
background-repeat: no-repeat;
|
|
background-color: fff;
|
|
}
|
|
|
|
.contact > .details > .email {
|
|
color: #999;
|
|
font-size: 11px;
|
|
line-height: 16px;
|
|
}
|
|
|
|
.icons {
|
|
cursor: pointer;
|
|
display: none;
|
|
margin-left: auto;
|
|
padding: 12px 10px;
|
|
border-radius: 30px;
|
|
background: #7ed321;
|
|
-moz-user-select: none;
|
|
}
|
|
|
|
.icons:hover {
|
|
background: #89e029;
|
|
}
|
|
|
|
.icons i {
|
|
margin: 0 5px;
|
|
display: inline-block;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.icons i.icon-video {
|
|
background-image: url("../img/icons-14x14.svg#video-white");
|
|
background-size: 14px 14px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.icons i.icon-caret-down {
|
|
background-image: url("../img/icons-10x10.svg#dropdown-white");
|
|
background-size: 10px 10px;
|
|
width: 10px;
|
|
height: 16px;
|
|
}
|
|
|
|
.contact > .dropdown-menu {
|
|
z-index: 2;
|
|
top: 10px;
|
|
bottom: auto;
|
|
right: 3em;
|
|
left: auto;
|
|
}
|
|
|
|
.contact > .dropdown-menu-up {
|
|
bottom: 10px;
|
|
top: auto;
|
|
}
|
|
|
|
.contact > .dropdown-menu > .dropdown-menu-item > .icon {
|
|
display: inline-block;
|
|
width: 20px;
|
|
height: 10px;
|
|
background-position: center left;
|
|
background-size: 10px 10px;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.contact > .dropdown-menu > .dropdown-menu-item > .icon-audio-call {
|
|
background-image: url("../img/icons-16x16.svg#audio");
|
|
}
|
|
|
|
.contact > .dropdown-menu > .dropdown-menu-item > .icon-video-call {
|
|
background-image: url("../img/icons-16x16.svg#video");
|
|
}
|
|
|
|
.contact > .dropdown-menu > .dropdown-menu-item > .icon-edit {
|
|
background-image: url("../img/icons-16x16.svg#contacts");
|
|
}
|
|
|
|
.contact > .dropdown-menu > .dropdown-menu-item > .icon-block {
|
|
background-image: url("../img/icons-16x16.svg#block");
|
|
}
|
|
|
|
.contact > .dropdown-menu > .dropdown-menu-item > .icon-delete {
|
|
background-image: url("../img/icons-16x16.svg#delete");
|
|
}
|
|
|
|
.contact-form > .button-group {
|
|
margin-top: 14px;
|
|
}
|