Skip to content

Commit 20c6e6d

Browse files
authored
Merge pull request element-hq#15316 from vector-im/travis/jitsi-widget
Give the Jitsi widget an icon to help with discovery
2 parents 7d3ccb6 + 7ef0702 commit 20c6e6d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

src/vector/jitsi/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<div id="joinButtonContainer">
1010
<div class="joinConferenceFloating">
1111
<div class="joinConferencePrompt">
12+
<span class="icon"><!-- managed by CSS --></span>
1213
<!-- TODO: i18n -->
1314
<h2>Jitsi Video Conference</h2>
1415
<div id="widgetActionContainer">

src/vector/jitsi/index.scss

+21-1
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ limitations under the License.
2323
src: url('~matrix-react-sdk/res/fonts/Nunito/Nunito-Regular.ttf') format('truetype');
2424
}
2525

26+
$fg-color: #edf3ff;
2627
body {
2728
font-family: Nunito, Arial, Helvetica, sans-serif;
2829
background-color: #181b21;
29-
color: #edf3ff;
30+
color: $fg-color;
3031
}
3132

3233
body, html {
@@ -73,3 +74,22 @@ body, html {
7374
background-color: #03b381;
7475
border: 0;
7576
}
77+
78+
.icon {
79+
$icon-size: 42px;
80+
margin-top: -$icon-size; // to visually center the form
81+
82+
&::before {
83+
content: '';
84+
background-size: contain;
85+
background-color: $fg-color;
86+
mask-repeat: no-repeat;
87+
mask-position: center;
88+
mask-image: url("~matrix-react-sdk/res/img/element-icons/call/video-call.svg");
89+
mask-size: $icon-size;
90+
display: block;
91+
width: $icon-size;
92+
height: $icon-size;
93+
margin: 0 auto; // center
94+
}
95+
}

0 commit comments

Comments
 (0)