瀏覽代碼

Merge pull request #15316 from vector-im/travis/jitsi-widget

Give the Jitsi widget an icon to help with discovery
Travis Ralston 5 年之前
父節點
當前提交
20c6e6dd73
共有 2 個文件被更改,包括 22 次插入1 次删除
  1. 1 0
      src/vector/jitsi/index.html
  2. 21 1
      src/vector/jitsi/index.scss

+ 1 - 0
src/vector/jitsi/index.html

@@ -9,6 +9,7 @@
 <div id="joinButtonContainer">
     <div class="joinConferenceFloating">
         <div class="joinConferencePrompt">
+            <span class="icon"><!-- managed by CSS --></span>
             <!-- TODO: i18n -->
             <h2>Jitsi Video Conference</h2>
             <div id="widgetActionContainer">

+ 21 - 1
src/vector/jitsi/index.scss

@@ -23,10 +23,11 @@ limitations under the License.
     src: url('~matrix-react-sdk/res/fonts/Nunito/Nunito-Regular.ttf') format('truetype');
 }
 
+$fg-color: #edf3ff;
 body {
     font-family: Nunito, Arial, Helvetica, sans-serif;
     background-color: #181b21;
-    color: #edf3ff;
+    color: $fg-color;
 }
 
 body, html {
@@ -73,3 +74,22 @@ body, html {
     background-color: #03b381;
     border: 0;
 }
+
+.icon {
+    $icon-size: 42px;
+    margin-top: -$icon-size; // to visually center the form
+
+    &::before {
+        content: '';
+        background-size: contain;
+        background-color: $fg-color;
+        mask-repeat: no-repeat;
+        mask-position: center;
+        mask-image: url("~matrix-react-sdk/res/img/element-icons/call/video-call.svg");
+        mask-size: $icon-size;
+        display: block;
+        width: $icon-size;
+        height: $icon-size;
+        margin: 0 auto; // center
+    }
+}