Browse Source

Editions in jitsi popover styles

master
Ilya Daynatovich 8 years ago
parent
commit
70861465e1

css/connection-info.scss → css/_connection-info.scss View File

23
     td:nth-child(n-1) {
23
     td:nth-child(n-1) {
24
         padding-left: 5px;
24
         padding-left: 5px;
25
     }
25
     }
26
+
27
+    &__icon {
28
+        margin-right: 2px;
29
+    }
30
+
31
+    &__download
32
+    {
33
+        @extend .connection-info__icon;
34
+        color: $downloadConnectionIconColor;
35
+    }
36
+
37
+    &__upload
38
+    {
39
+        @extend .connection-info__icon;
40
+        color: $uploadConnectionIconColor;
41
+    }
26
 }
42
 }

+ 6
- 50
css/_jitsi_popover.scss View File

19
     margin-top: -10px;
19
     margin-top: -10px;
20
     margin-bottom: 35px;
20
     margin-bottom: 35px;
21
 
21
 
22
-    &__title {
23
-        text-align: left;
24
-        margin: 0;
25
-        padding: 0;
26
-    }
27
-
28
-    &__content {
29
-        padding: em(5) em(10);
30
-        font-size: em(14);
31
-        white-space:pre-wrap;
32
-        text-align: center;
33
-    }
34
-
35
-    &__icon {
36
-        margin-right: 2px;
37
-    }
38
-
39
-    &__green
40
-    {
41
-        @extend .jitsipopover__icon;
42
-        color: #4abd04;
43
-    }
44
-
45
-    &__orange
46
-    {
47
-        @extend .jitsipopover__icon;
48
-        color: #ffa800;
49
-    }
50
-
51
     &__menu-padding {
22
     &__menu-padding {
52
         height: 35px;
23
         height: 35px;
53
         width: 100px;
24
         width: 100px;
62
         margin: 10px auto;
33
         margin: 10px auto;
63
     }
34
     }
64
 
35
 
65
-    &__clear {
36
+    > .arrow {
66
         position: absolute;
37
         position: absolute;
67
         display: block;
38
         display: block;
39
+        left: 50%;
40
+        bottom: -5px;
41
+        margin-left: -5px;
68
         width: 0;
42
         width: 0;
69
         height: 0;
43
         height: 0;
70
         border-color: transparent;
44
         border-color: transparent;
45
+        border-top-color: $popoverBg;
71
         border-style: solid;
46
         border-style: solid;
72
-    }
73
-
74
-    > .arrow {
75
-        border-width: 5px 2.5px 0 2.5px;
76
-        left: 50%;
77
-        margin-left: -5px;
78
-        @extend .jitsipopover__clear;
47
+        border-width: 5px;
79
         border-bottom-width: 0;
48
         border-bottom-width: 0;
80
-        border-top-color: $popoverBg;
81
-        bottom: -5px;
82
-
83
-
84
-        &:after {
85
-            border-width: 5px;
86
-            content: " ";
87
-            bottom: 1px;
88
-            margin-left: -5px;
89
-            @extend .jitsipopover__clear;
90
-            border-bottom-width: 0;
91
-            border-top-color: $popoverBg;
92
-        }
93
     }
49
     }
94
 }
50
 }

+ 0
- 5
css/_variables.scss View File

1
-/**
2
-* Theme
3
-*/
4
-@import 'themes/main';
5
-
6
 /**
1
 /**
7
  * Style variables
2
  * Style variables
8
  */
3
  */

+ 6
- 0
css/themes/_light.scss View File

22
 
22
 
23
 $buttonShadowColor: #192d4f;
23
 $buttonShadowColor: #192d4f;
24
 
24
 
25
+/**
26
+* Connection indicator
27
+**/
28
+$downloadConnectionIconColor: #4abd04;
29
+$uploadConnectionIconColor: #ffa800;
30
+
25
 /**
31
 /**
26
  * Dialog colors
32
  * Dialog colors
27
  **/
33
  **/

+ 6
- 6
modules/UI/videolayout/ConnectionIndicator.js View File

80
         packetLoss = "N/A";
80
         packetLoss = "N/A";
81
     } else {
81
     } else {
82
 
82
 
83
-        packetLoss = "<span class='jitsipopover__green'>&darr;</span>" +
83
+        packetLoss = "<span class='connection-info__download'>&darr;</span>" +
84
             (this.packetLoss.download !== null ?
84
             (this.packetLoss.download !== null ?
85
                 this.packetLoss.download : "N/A") +
85
                 this.packetLoss.download : "N/A") +
86
-            "% <span class='jitsipopover__orange'>&uarr;</span>" +
86
+            "% <span class='connection-info__upload'>&uarr;</span>" +
87
             (this.packetLoss.upload !== null? this.packetLoss.upload : "N/A") +
87
             (this.packetLoss.upload !== null? this.packetLoss.upload : "N/A") +
88
             "%";
88
             "%";
89
     }
89
     }
104
                     </span>
104
                     </span>
105
                 </td>
105
                 </td>
106
                 <td>
106
                 <td>
107
-                    <span class='jitsipopover__green'>&darr;</span>${downloadBitrate}
108
-                    <span class='jitsipopover__orange'>&uarr;</span>${uploadBitrate}
107
+                    <span class='connection-info__download'>&darr;</span>${downloadBitrate}
108
+                    <span class='connection-info__upload'>&uarr;</span>${uploadBitrate}
109
                 </td>
109
                 </td>
110
             </tr>
110
             </tr>
111
             <tr>
111
             <tr>
242
             "<span data-i18n='connectionindicator.bandwidth'>" +
242
             "<span data-i18n='connectionindicator.bandwidth'>" +
243
             translate("connectionindicator.bandwidth") + "</span>" +
243
             translate("connectionindicator.bandwidth") + "</span>" +
244
             "</td><td>" +
244
             "</td><td>" +
245
-            "<span class='jitsipopover__green'>&darr;</span>" +
245
+            "<span class='connection-info__download'>&darr;</span>" +
246
             downloadBandwidth +
246
             downloadBandwidth +
247
-            " <span class='jitsipopover__orange'>&uarr;</span>" +
247
+            " <span class='connection-info__upload'>&uarr;</span>" +
248
             uploadBandwidth + "</td></tr>";
248
             uploadBandwidth + "</td></tr>";
249
 
249
 
250
         result += transport + "</table>";
250
         result += transport + "</table>";

Loading…
Cancel
Save