Files
firefox/browser/components/loop/content/shared/css/conversation.css
T

402 lines
8.2 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/. */
/* Conversation window styles */
.conversation {
position: relative;
}
.conversation-toolbar {
position: absolute;
z-index: 999; /* required to have it superimposed to the video element */
left: 0;
right: 0;
background: rgba(0, 0, 0, .70);
border: 1px solid #5a5a5a;
list-style-type: none;
margin: 0;
padding: 0;
}
.conversation-toolbar li {
float: left;
font-size: 0px; /* prevents vertical bottom padding added to buttons in google
chrome */
}
.conversation-toolbar .btn {
width: 40px;
height: 30px;
background: transparent;
background-repeat: no-repeat;
background-position: 12px 8px;
background-size: 14px 14px;
border-right: 1px solid #5a5a5a;
border-radius: 0;
cursor: pointer;
}
.conversation-toolbar .btn:hover {
background-color: rgba(255, 255, 255, .35);
}
/* Hangup button */
.conversation-toolbar .btn-hangup {
background-color: #D74345;
background-image: url(../img/hangup-inverse-14x14.png);
}
.conversation-toolbar .btn-hangup:hover {
background-color: #C53436;
}
@media (min-resolution: 2dppx) {
.conversation-toolbar .btn-hangup {
background-image: url(../img/[email protected]);
}
}
/* Common media control buttons behavior */
.conversation-toolbar .media-control {
background-color: transparent;
opacity: 1;
}
.conversation-toolbar .media-control:hover {
background-color: rgba(255, 255, 255, .35);
opacity: 1;
}
.conversation-toolbar .media-control.muted {
background-color: #0096DD;
opacity: 1;
}
/* Audio mute button */
.conversation-toolbar .local-media.btn-mute-audio {
background-image: url(../img/audio-inverse-14x14.png);
}
.conversation-toolbar .local-media.btn-mute-audio.muted {
background-image: url(../img/mute-inverse-14x14.png);
}
@media (min-resolution: 2dppx) {
.conversation-toolbar .local-media.btn-mute-audio {
background-image: url(../img/[email protected]);
}
.conversation-toolbar .local-media.btn-mute-audio.muted {
background-image: url(../img/[email protected]);
}
}
/* Video mute button */
.conversation-toolbar .local-media.btn-mute-video {
background-image: url(../img/video-inverse-14x14.png);
}
.conversation-toolbar .local-media.btn-mute-video.muted {
background-image: url(../img/facemute-14x14.png);
}
@media (min-resolution: 2dppx) {
.conversation-toolbar .local-media.btn-mute-video {
background-image: url(../img/[email protected]);
}
.conversation-toolbar .local-media.btn-mute-video.muted {
background-image: url(../img/[email protected]);
}
}
/* Video elements */
.conversation .media video {
background: #eee;
}
/* Nested video elements */
.conversation .media.nested {
position: relative;
text-align: center;
}
/* fluid aspect ratio trick, see http://stackoverflow.com/a/10441480/330911 */
.conversation .media.nested .remote_wrapper {
display: inline-block;
position: relative;
background: #0f0;
width: 100%;
padding-bottom: 75%; /* XXX forced 4:3 ratio, see bug 1020445 */
}
.conversation .media.nested .remote {
display: inline-block;
position: absolute; /* workaround for lack of object-fit; see bug 1020445 */
width: 100%;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: #000;
}
.conversation .media.nested .local {
position: absolute;
bottom: 4px;
right: 0;
width: 30%;
max-width: 140px;
/* next two lines are workaround for lack of object-fit; see bug 1020445 */
height: 22.5%;
max-height: 105px;
}
/* Side by side video elements */
.conversation .media.side-by-side .remote {
width: 50%;
float: left;
}
.conversation .media.side-by-side .local {
width: 50%;
}
/* Call ended view */
.call-ended p {
text-align: center;
}
/* Incoming call */
/*
* Height matches the height of the docked window
* but the UI breaks when you pop out
* Bug 1040985
*/
.incoming-call {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
min-height: 264px;
}
.incoming-call-action-group {
padding: 2.5em 1em;
}
.incoming-call-action-group .button-chevron-menu-group {
margin-right: .5em;
}
.incoming-call-action-group > .btn {
margin-left: .5em;
}
.incoming-call h2 {
font-size: 1.5em;
font-weight: normal;
}
.call-audio-only {
width: 26px;
height: 26px;
border-left: 1px solid rgba(255,255,255,.4);
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
background-color: #74BF43;
background-image: url("../img/audio-inverse-14x14.png");
background-size: 1rem;
background-position: center;
background-repeat: no-repeat;
cursor: pointer;
}
.call-audio-only:hover {
background-color: #6cb23e;
}
.call-audio-video {
background-image: url("../img/video-inverse-14x14.png");
background-position: 96% center;
background-repeat: no-repeat;
background-size: 1rem;
}
@media (min-resolution: 2dppx) {
.call-audio-only {
background-image: url("../img/[email protected]");
}
.call-audio-video {
background-image: url("../img/[email protected]");
}
}
/* Expired call url page */
.expired-url-info {
width: 400px;
margin: 0 auto;
}
.promote-firefox {
text-align: center;
font-size: 18px;
line-height: 24px;
margin: 2em 0;
}
.promote-firefox h3 {
font-weight: 300;
}
/*
* Dropdown menu hidden behind a chevron
*
* .native-dropdown-menu[-large-parent] Generic class, contains common styles
* .standalone-dropdown-menu Initiate call dropdown menu
* .conversation-window-dropdown Dropdown menu for answer/decline/block options
*/
.native-dropdown-menu,
.native-dropdown-large-parent {
/* Should match a native select menu */
padding: 0;
position: absolute; /* element can be wider than the parent */
background: #fff;
margin: 0;
box-shadow: 0 4px 5px rgba(30, 30, 30, .3);
border-style: solid;
border-width: 1px 1px 1px 2px;
border-color: #aaa #111 #111 #aaa;
}
/*
* If the component is smaller than the parent
* we need it to display block to occupy full width
* Same as above but overrides apropriate styles
*/
.native-dropdown-large-parent {
position: relative;
display: block;
}
.native-dropdown-menu li,
.native-dropdown-large-parent li {
list-style: none;
cursor: pointer;
color: #000;
}
.native-dropdown-menu li:hover,
.native-dropdown-large-parent li:hover,
.native-dropdown-large-parent li:hover button {
color: #fff;
background-color: #111;
}
.conversation-window-dropdown li {
padding: 0 10px 0 5px;
font-size: .9em;
}
/* Expired call url page */
.expired-url-info {
width: 400px;
margin: 0 auto;
}
.promote-firefox {
text-align: center;
font-size: 18px;
line-height: 24px;
margin: 2em 0;
}
.promote-firefox h3 {
font-weight: 300;
}
/* Feedback form */
.feedback {
padding: 1em;
}
.feedback h3 {
color: #666;
font-size: 12px;
font-weight: 700;
text-align: center;
margin-bottom: 10px;
margin-top: 15px;
}
.feedback .faces {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 20px 0;
}
.feedback .face {
border: 1px solid transparent;
box-shadow: 0px 1px 2px #CCC;
cursor: pointer;
border-radius: 4px;
margin: 0px 10px;
width: 80px;
height: 80px;
background-color: #fbfbfb;
background-size: 60px auto;
background-position: center center;
background-repeat: no-repeat;
}
.feedback .face:hover {
border: 1px solid #DDD;
background-color: #FEFEFE;
}
.feedback .face.face-happy {
background-image: url("../img/happy.png");
}
.feedback .face.face-sad {
background-image: url("../img/sad.png");
}
.feedback button.back {
border-radius: 2px;
border: 1px solid #CCC;
color: #CCC;
font-size: 11px;
cursor: pointer;
padding: 3px 10px;
display: inline;
margin-bottom: 1em;
}
.feedback label {
display: block;
line-height: 1.5em;
}
.feedback form input[type="radio"] {
margin-right: .5em;
}
.feedback form button[type="submit"] {
width: 100%;
}
.feedback form input[type="text"] {
width: 100%;
}
.feedback .info {
display: block;
font-size: 10px;
color: #CCC;
text-align: center;
}