summaryrefslogtreecommitdiffstats
path: root/browser/themes/windows/webRTC-indicator.css
blob: c22f942ec93bb9f614ee71516d98cdb333ecc789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/* 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/. */

window {
  border: 1px solid #ff9500;
}

#audioVideoButton,
#screenShareButton,
#firefoxButton {
  height: 29px;
  margin: 0;
  -moz-appearance: none;
  border-style: none;
}

#firefoxButton {
  background-image: url("chrome://branding/content/icon48.png");
  background-repeat: no-repeat;
  background-size: 22px;
  background-position: center center;
  min-width: 29px;
  background-color: white;
}

#firefoxButton:hover {
  background-color: #f2f2f2;
}

#screenShareButton {
  background-image: url("webRTC-screen-white-16.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 16px;
  min-width: 27px;
  display: none;
}

window[sharingscreen] > #screenShareButton {
  display: -moz-box;
}

#audioVideoButton {
  display: none;
  background-repeat: no-repeat;
}

/* When screen sharing, need to pull in the separator: */
window[sharingscreen] > #audioVideoButton {
  margin-right: -1px;
}

/* Single icon button: */
window[sharingvideo] > #audioVideoButton,
window[sharingaudio] > #audioVideoButton {
  display: -moz-box;
  background-position: center center;
  background-size: 16px;
  min-width: 26px;
}

window[sharingvideo] > #audioVideoButton {
  background-image: url("webRTC-camera-white-16.png");
}

window[sharingaudio] > #audioVideoButton {
  background-image: url("webRTC-microphone-white-16.png");
}

/* Multi-icon button: */
window[sharingaudio][sharingvideo] > #audioVideoButton {
  background-image: url("webRTC-camera-white-16.png"),
                    url("webRTC-microphone-white-16.png");
  background-position: 6px center, 26px center;
  background-size: 16px, 16px;
  min-width: 46px;
}

/* Hover styles */
#audioVideoButton,
#screenShareButton {
  background-color: #ffaa33;
}

#audioVideoButton:hover,
#screenShareButton:hover {
  background-color: #ff9500;
}

/* Don't show the dropmarker for the type="menu" case */
#audioVideoButton > .box-inherit > .button-menu-dropmarker,
#screenShareButton > .box-inherit > .button-menu-dropmarker {
  display: none;
}

/* Separator in case of screen sharing + video/audio sharing */
#shareSeparator {
  width: 1px;
  margin: 4px -1px 4px 0;
  background-color: #FFCA80;
  /* Separator needs to show above either button when they're hovered: */
  position: relative;
  z-index: 1;
  display: none;
}

window[sharingscreen][sharingvideo] > #shareSeparator,
window[sharingscreen][sharingaudio] > #shareSeparator {
  display: -moz-box;
}

:-moz-any(#audioVideoButton, #screenShareButton,
          #firefoxButton):-moz-focusring > .button-box {
  border: none;
}