浏览代码

show/hide menu if elem hovered

master
Konstantyn Pahsura 8 年前
父节点
当前提交
76e55f1132
共有 4 个文件被更改,包括 22 次插入10 次删除
  1. 2
    3
      css/_jitsi_popover.scss
  2. 17
    5
      css/_videolayout_default.scss
  3. 2
    1
      modules/UI/util/JitsiPopover.js
  4. 1
    1
      modules/UI/videolayout/RemoteVideo.js

+ 2
- 3
css/_jitsi_popover.scss 查看文件

@@ -15,13 +15,12 @@
15 15
     /*box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);*/
16 16
     white-space: normal;
17 17
     margin-top: -10px;
18
-    margin-bottom: 35px;
19 18
 
20 19
     &__menu-padding {
21
-        height: 35px;
20
+        height: 10px;
22 21
         width: 100px;
23 22
         position: absolute;
24
-        bottom: -35px;
23
+        bottom: -10px;
25 24
     }
26 25
 
27 26
     &__showmore {

+ 17
- 5
css/_videolayout_default.scss 查看文件

@@ -113,11 +113,23 @@
113 113
 /**
114 114
  * Hovered video thumbnail.
115 115
  */
116
-#remoteVideos .videocontainer:hover {
117
-    cursor: hand;
118
-    border: 2px solid $videoThumbnailHovered;
119
-    box-shadow: inset 0 0 3px $videoThumbnailHovered,
120
-              0 0 3px $videoThumbnailHovered;
116
+#remoteVideos .videocontainer {
117
+    .remotevideomenu {
118
+        display: none;
119
+    }
120
+
121
+    /**
122
+     * Show/hide items for hover event here
123
+     */
124
+    &:hover {
125
+        cursor: hand;
126
+        border: 2px solid $videoThumbnailHovered;
127
+        box-shadow: inset 0 0 3px $videoThumbnailHovered,
128
+            0 0 3px $videoThumbnailHovered;
129
+        .remotevideomenu {
130
+            display: inline-block;
131
+        }
132
+    }
121 133
 }
122 134
 
123 135
 #localVideoWrapper {

+ 2
- 1
modules/UI/util/JitsiPopover.js 查看文件

@@ -53,7 +53,8 @@ var JitsiPopover = (function () {
53 53
             `<div class="jitsipopover ${this.options.skin}">
54 54
                 ${arrow}
55 55
                 <div class="jitsipopover__content"></div>
56
-            <div class="jitsipopover__menu-padding"></div></div>`
56
+                <div class="jitsipopover__menu-padding"></div>
57
+            </div>`
57 58
         );
58 59
     };
59 60
 

+ 1
- 1
modules/UI/videolayout/RemoteVideo.js 查看文件

@@ -516,7 +516,7 @@ RemoteVideo.prototype.addRemoteStreamElement = function (stream) {
516 516
     }
517 517
 
518 518
     $(streamElement).click(onClickHandler);
519
-},
519
+};
520 520
 
521 521
 /**
522 522
  * Show/hide peer container for the given id.

正在加载...
取消
保存