Browse Source

Add mixins for animations and separate toolbar css

master
yanas 8 years ago
parent
commit
ed29db290e
3 changed files with 333 additions and 0 deletions
  1. 37
    0
      css/_mixins.scss
  2. 289
    0
      css/_toolbars.scss
  3. 7
    0
      css/main.scss

+ 37
- 0
css/_mixins.scss View File

1
+/**
2
+ * Animation mixin.
3
+ */
4
+@mixin animation($animate...) {
5
+  $max: length($animate);
6
+  $animations: '';
7
+
8
+  @for $i from 1 through $max {
9
+    $animations: #{$animations + nth($animate, $i)};
10
+
11
+    @if $i < $max {
12
+      $animations: #{$animations + ", "};
13
+    }
14
+  }
15
+  -webkit-animation: $animations;
16
+  -moz-animation:    $animations;
17
+  -o-animation:      $animations;
18
+  animation:         $animations;
19
+}
20
+
21
+/**
22
+ * Keyframes mixin.
23
+ */
24
+@mixin keyframes($animationName) {
25
+  @-webkit-keyframes #{$animationName} {
26
+    @content;
27
+  }
28
+  @-moz-keyframes #{$animationName} {
29
+    @content;
30
+  }
31
+  @-o-keyframes #{$animationName} {
32
+    @content;
33
+  }
34
+  @keyframes #{$animationName} {
35
+    @content;
36
+  }
37
+}

+ 289
- 0
css/_toolbars.scss View File

1
+.toolbar {
2
+    background-color: rgba(0,0,0,0.5);
3
+    position: relative;
4
+    z-index: 900;
5
+    height: 100%;
6
+    pointer-events: auto;
7
+}
8
+
9
+#mainToolbarContainer{
10
+    display: block;
11
+    position: absolute;
12
+    text-align: center;
13
+    top:0;
14
+    left:0;
15
+    right:0;
16
+    z-index:10;
17
+    pointer-events: none;
18
+    min-height: 100px;
19
+    transform: translateY(-100%);
20
+    -webkit-transform: translateY(-100%);
21
+}
22
+
23
+#subject {
24
+    position: relative;
25
+    z-index: 3;
26
+    width: auto;
27
+    padding: 5px;
28
+    margin-left: 40%;
29
+    margin-right: 40%;
30
+    text-align: center;
31
+    background: linear-gradient(to bottom, rgba(255,255,255,.85) , rgba(255,255,255,.35));
32
+    box-shadow: 0 0 2px #000000, 0 0 10px #000000;
33
+    border-bottom-left-radius: 12px;
34
+    border-bottom-right-radius: 12px;
35
+}
36
+
37
+#mainToolbar {
38
+    height: $defaultToolbarSize;
39
+    display: inline-block;
40
+    position: relative;
41
+    top: 30px;
42
+    margin-left: auto;
43
+    margin-right: auto;
44
+    width: auto;
45
+    border-radius: 4px;
46
+}
47
+
48
+#mainToolbar .first {
49
+    border-bottom-left-radius: 4px;
50
+    border-top-left-radius: 4px;
51
+}
52
+
53
+#mainToolbar .last {
54
+    border-bottom-right-radius: 4px;
55
+    border-top-right-radius: 4px;
56
+}
57
+
58
+#extendedToolbar {
59
+    display: flex;
60
+    display: -webkit-box;
61
+    display: -moz-box;
62
+    display: -ms-flexbox;
63
+    display: -webkit-flex;
64
+    width: $defaultToolbarSize;
65
+    height: 100%;
66
+    top: 0px;
67
+    left: 0px;
68
+    padding-top: 10px;
69
+    flex-direction: column;
70
+    flex-wrap: nowrap;
71
+    justify-content: flex-start;
72
+    align-items: center;
73
+    transform: translateX(-100%);
74
+    -webkit-transform: translateX(-100%);
75
+}
76
+
77
+#extendedToolbarPanel {
78
+    display: inline-block;
79
+    position:absolute;
80
+    top: 0px;
81
+    left: $defaultToolbarSize;
82
+    width:0%;
83
+    height: 100%;
84
+    max-width: 200px;
85
+    background-color: rgba(0,0,0,0.8);
86
+    z-index: 800;
87
+    overflow: hidden;
88
+
89
+    .extendedToolbarPanel__inner {
90
+        display: none;
91
+        width: 200px;
92
+        color: #FFF;
93
+
94
+        > div.title {
95
+            text-align: left;
96
+            padding: 10px;
97
+            margin: 2px;
98
+            font-size: 12pt;
99
+        }
100
+    }
101
+}
102
+
103
+#toolbar_button_hangup {
104
+    color: #ff0000;
105
+    font-size: 2.2em !important;
106
+}
107
+
108
+#toolbar_button_etherpad {
109
+    display: none;
110
+}
111
+
112
+#toolbar_button_chat,
113
+#chatBottomButton,
114
+#contactListButton,
115
+#numberOfParticipants,
116
+#toolbar_button_record {
117
+    -webkit-transition: all .5s ease-in-out;
118
+    -moz-transition: all .5s ease-in-out;
119
+    transition: all .5s ease-in-out;
120
+}
121
+
122
+/*#ffde00*/
123
+#toolbar_button_chat.active,
124
+#contactListButton.glowing,
125
+#chatBottomButton.glowing {
126
+    -webkit-text-shadow:    -1px 0 10px #21B9FC,
127
+    0 1px 10px #21B9FC,
128
+    1px 0 10px #21B9FC,
129
+    0 -1px 10px #21B9FC;
130
+    -moz-text-shadow:   1px 0 10px #21B9FC,
131
+    0 1px 10px #21B9FC,
132
+    1px 0 10px #21B9FC,
133
+    0 -1px 10px #21B9FC;
134
+    text-shadow:    -1px 0 10px #21B9FC,
135
+    0 1px 10px #21B9FC,
136
+    1px 0 10px #21B9FC,
137
+    0 -1px 10px #21B9FC;
138
+}
139
+
140
+#numberOfParticipants {
141
+  position: absolute;
142
+  top: 5px;
143
+  line-height: 13px;
144
+  font-weight: bold;
145
+  font-size: 11px;
146
+}
147
+
148
+#contactListButton.active #numberOfParticipants {
149
+  color: #21B9FC;
150
+}
151
+
152
+#mainToolbar a.button:last-child::after {
153
+    content: none;
154
+}
155
+
156
+#bottomToolbar {
157
+    display:block;
158
+    position: absolute;
159
+    right: 0;
160
+    margin-right: 5px;
161
+    bottom: 40px;
162
+    width: 29px;
163
+    border-radius: 1px;
164
+    color: #FFF;
165
+    background: rgba(0,0,0,0.5);
166
+    z-index: 6; /*+1 from #remoteVideos*/
167
+}
168
+
169
+.bottomToolbarButton {
170
+    display: inline-block;
171
+    position: relative;
172
+    color: #FFFFFF;
173
+    top: 0;
174
+    padding-top: 6px;
175
+    margin: 2px;
176
+    width: 25px;
177
+    height: 20px;
178
+    cursor: pointer;
179
+    font-size: 10pt;
180
+    text-align: center;
181
+    text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);
182
+    z-index: 1;
183
+}
184
+
185
+.toolbar_span>span {
186
+    display: inline-block;
187
+    position: absolute;
188
+    font-size: 7pt;
189
+    color: #ffffff;
190
+    text-align:center;
191
+    cursor: pointer;
192
+}
193
+
194
+.bottomToolbar_span>span {
195
+    display: inline-block;
196
+    position: absolute;
197
+    font-size: 7pt;
198
+    color: #ffffff;
199
+    text-align: center;
200
+    cursor: pointer;
201
+}
202
+
203
+.button {
204
+    display: inline-block;
205
+    position: relative;
206
+    color: #FFFFFF;
207
+    top:0px;
208
+    width: 50px;
209
+    height: 50px;
210
+    cursor: pointer;
211
+    text-align: center;
212
+    z-index: 1;
213
+    font-size: 1.44em !important;
214
+    line-height: 50px !important;
215
+    vertical-align: middle;
216
+}
217
+
218
+.button[disabled] {
219
+    opacity: 0.5;
220
+}
221
+
222
+a.button:hover,
223
+a.bottomToolbarButton:hover {
224
+    cursor: pointer;
225
+    background: rgba(0, 0, 0, 0.8);
226
+}
227
+
228
+a.button>#avatar {
229
+    width: 30px;
230
+    border-radius: 50%;
231
+    padding-top: 10px;
232
+    padding-bottom: 10px;
233
+}
234
+
235
+#feedbackButton {
236
+    margin-top: auto;
237
+}
238
+
239
+@include keyframes(slideInX) {
240
+    100% { transform: translateX(0%); }
241
+}
242
+
243
+.slideInX {
244
+  @include animation('slideInX .5s forwards');
245
+}
246
+
247
+@include keyframes(slideOutX) {
248
+    0% { transform: translateX(0%); }
249
+    100% { transform: translateX(-100%); }
250
+}
251
+
252
+.slideOutX {
253
+  @include animation('slideOutX .5s forwards');
254
+}
255
+
256
+@include keyframes(slideInY) {
257
+    100% { transform: translateY(0%); }
258
+}
259
+
260
+.slideInY {
261
+  @include animation('slideInY .5s forwards');
262
+}
263
+
264
+@include keyframes(slideOutY) {
265
+    0% { transform: translateY(0%); }
266
+    100% { transform: translateY(-100%); }
267
+}
268
+
269
+.slideOutY {
270
+    @include animation('slideOutY .5s forwards');
271
+}
272
+
273
+@include keyframes(slideInExt) {
274
+    from { width: 0%; }
275
+    to   { width: 20%; }
276
+}
277
+
278
+.slideInExt {
279
+    @include animation("slideInExt .5s forwards");
280
+}
281
+
282
+@include keyframes(slideOutExt) {
283
+  from { width: 20%; }
284
+  to   { width: 0%; }
285
+}
286
+
287
+.slideOutExt {
288
+  @include animation("slideOutExt .5s forwards");
289
+}

+ 7
- 0
css/main.scss View File

4
 
4
 
5
 /* Variables END */
5
 /* Variables END */
6
 
6
 
7
+/* Mixins BEGIN */
8
+
9
+@import "mixins";
10
+
11
+/* Mixins END */
12
+
7
 /* Fonts BEGIN */
13
 /* Fonts BEGIN */
8
 
14
 
9
 @import 'font';
15
 @import 'font';
30
 @import 'welcome_page';
36
 @import 'welcome_page';
31
 @import 'settingsmenu';
37
 @import 'settingsmenu';
32
 @import 'feedback';
38
 @import 'feedback';
39
+@import 'toolbars';
33
 @import 'jquery.contextMenu';
40
 @import 'jquery.contextMenu';
34
 @import 'keyboard-shortcuts';
41
 @import 'keyboard-shortcuts';
35
 
42
 

Loading…
Cancel
Save