Newer
Older
Gabriel Engel
committed
@import "utils/_lesshat.import.less";
@import "utils/_reset.import.less";
@import "utils/_keyframes.import.less";
@import "utils/_preloader.import.less";
@import url(http://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900);
Gabriel Engel
committed
@import url(http://fonts.googleapis.com/css?family=Muli:400,300,500);
@footer-min-height: 70px;
@header-min-height: 60px;
@rooms-box-width: 220px;
@primary-background-color: #0b1628;
@secondary-background-color: #F4F4F4;
@tertiary-background-color: #E9E9E9;
Gabriel Engel
committed
@primary-font-color: #444444;
@secondary-font-color: #777777;
@status-online: #35AC19;
@status-offline: #666666;
@status-busy: #D30230;
@status-away: #fcb316;
Gabriel Engel
committed
.cf_ {
display: inline-block;
&:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
}
* {
.box-sizing(border-box);
}
:focus {
outline: 0 !important;
outline-color: transparent;
outline-style: none;
}
a {
text-decoration: none;
&:hover, &:active {
color: @primary-font-color;
text-decoration: none;
}
}
.hidden {
visibility: hidden !important;
display: none !important;
}
Gabriel Engel
committed
.small-title {
font-size: 13px;
text-transform: uppercase;
margin-bottom: 5px;
font-weight: 600;
}
.fill-all {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.custom-scroll(@background, @thumb, @width: 6px) {
Gabriel Engel
committed
&::-webkit-scrollbar {
width: @width;
background: @background;
Gabriel Engel
committed
}
&::-webkit-scrollbar-thumb {
background-color: @thumb;
-webkit-border-radius: 50px;
}
&::-webkit-scrollbar-corner {
background-color: @background;
Gabriel Engel
committed
}
}
.scrollable {
&:extend(.fill-all);
.custom-scroll(transparent, #BFBFBF);
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
Gabriel Engel
committed
.input-line {
&.search {
.icon-search {
position: absolute;
color: @secondary-font-color;
left: 5px;
top: 10px;
font-weight: 400;
}
input {
padding-left: 25px;
}
}
}
.rocket-h2 {
font-weight: 300;
text-transform: uppercase;
font-size: 20px;
letter-spacing: -0.5px;
margin: 18px 0;
color: #EFEFEF;
}
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
Gabriel Engel
committed
.rocket-h3 {
font-weight: 300;
text-transform: uppercase;
font-size: 16px;
letter-spacing: -0.5px;
margin: 18px 0;
color: #EAEAEA;
}
html {
overflow-y: scroll;
.custom-scroll(transparent, rgba(255, 255, 255, 0.05), 3px);
Gabriel Engel
committed
height: 100%;
&.noscroll {
overflow: hidden;
}
}
body {
font-family: "Roboto", "HelveticaNeue-Light", "sans-serif";
font-size: 14px;
color: #222;
height: 100%;
width: 100%;
Gabriel Engel
committed
-webkit-font-smoothing: antialiased;
line-height: 1rem;
padding: 0;
overflow: visible;
position: relative;
background-color: lighten(@primary-background-color, 10%);
}
// input & form styles
input,
button,
select,
textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
input:focus {
outline: none;
box-shadow: 0 0 0;
Gabriel Engel
committed
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
}
textarea,
select,
input[type='text'],
input[type='email'],
input[type='password'] {
height: 35px;
line-height: normal;
border: 1px solid #dfdfdf;
background-color: #fff;
border-radius: 2px;
padding: 2px 8px;
box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
position: relative;
width: 100%;
outline: none;
}
input.input-forward {
width: 0px;
visibility: hidden;
.transition(width .5s ease-in);
}
input.input-forward.show {
visibility: visible;
.calc(width, ~'100% - 48px');
}
input.search {
&:before {
content: " ";
width: 30px;
height: 30px;
display: block;
position: absolute;
top: 0;
left: 0;
background-color: #000;
}
}
form.search-form {
position: relative;
}
.form-group {
.-btn {
margin-left: 2px;
&:nth-child(1) {
margin-left: 3px;
}
}
.input-group {
padding: 2px 0;
}
}
.form-horizontal .control-label {
padding-top: 12px;
font-weight: bold;
color: @primary-font-color;
}
.-autocomplete-container {
box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
border: none;
border-radius: 0;
width: 100%;
top: auto !important;
p {
font-size: 14px;
padding: 8px 8px;
color: @secondary-font-color;
}
}
.-autocomplete-item {
padding: 8px 5px;
font-size: 12px;
cursor: pointer;
}
.-autocomplete-item.selected {
background-color: #dfdfdf;
color: inherit;
}
.-autocomplete-container > i {
visibility: hidden;
}
.-autocomplete-container > i:after {
content: " ";
visibility: visible;
background-image: url('/images/loading.gif');
background-position: center;
background-repeat: no-repeat;
display: block;
height: 40px;
margin-bottom: 12px;
}
label.required:after {
content: ' *';
color: red;
}
// soon to be deprecated buttons
Gabriel Engel
committed
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
.-btn {
display: inline-table;
padding: 0 12px;
margin-bottom: 0;
font-size: 11px;
font-weight: normal;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
border-radius: 2px;
height: 32px;
background-color: #eaeaea;
border-width: 0;
text-transform: uppercase;
position: relative;
color: @secondary-font-color;
font-weight: 300;
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
.user-select(none);
.transition(background-color .1s ease-out, color .1s ease-out, border .1s ease-out);
&:hover {
border-bottom-color: #bababa;
background-color: #e3e3e3;
color: @primary-font-color;
&.with-title {
&:before {
.animation(fadeIn .1s ease-out forwards);
}
span:after {
.animation(fadeIn .1s ease-out forwards);
}
}
}
&.-progress {
position: relative;
&:before {
content: " ";
position: absolute;
width: 0;
height: 100%;
top: 0;
left: 0;
z-index: 1;
background-color: rgba(0, 0, 0, 0.2);
.transition(width 10s ease-out);
}
}
&.going {
&:before {
width: 95%;
}
}
&.done {
&:before {
width: 100%;
}
}
&.small {
height: 24px;
padding: 0 8px;
> span {
font-size: 13px;
}
}
&.primary {
//.background-image(linear-gradient(top, #4387fd, #4683ea));
//border-color: #2273d0;
.background-image(linear-gradient(top, #1f8dd6, #1f8dd6));
border-color: #0484ba;
color: #FFF;
}
&.delete,
&.danger {
.background-image(linear-gradient(top, #dd4b39, #d14836));
border-color: #c41a1a;
color: #FFF;
}
&.with-title {
&:before {
content: attr(data-title);
height: 24px;
line-height: 24px;
background-color: rgba(43, 43, 43, 1);
position: absolute;
bottom: -34px;
left: 0;
color: #fff;
font-size: 11px;
padding: 0 10px;
visibility: hidden;
border-radius: 2px;
.animation(fadeOut .2s ease-out forwards);
}
}
> span {
display: table-cell;
vertical-align: middle;
text-align: center;
font-size: 12px;
line-height: 1;
position: relative;
z-index: 2;
&:after {
bottom: -10px;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-color: rgba(43, 43, 43, 0);
border-bottom-color: rgba(43, 43, 43, 1);
border-width: 6px;
margin-left: -6px;
visibility: hidden;
.animation(fadeOut .2s ease-out forwards);
}
}
.icon-plus {
&:before {
margin-right: 1px;
margin-left: 1px;
margin-top: 3px;
}
}
.icon-search {
&:before {
margin-left: 0px;
margin-right: 2px;
}
}
.icon-edit {
&:before {
margin-right: 0px;
margin-left: 2px;
margin-top: 2px;
}
}
.icon-target {
&:before {
margin-right: 1px;
margin-left: 1px;
margin-top: 3px;
}
}
.icon-forward {
&:before {
margin-left: 1px;
margin-right: 1px;
margin-top: 1px
}
}
}
.status-offline,
.icon-user.status-offline {
color: @status-offline;
Gabriel Engel
committed
}
.status-online,
.icon-user.status-online {
color: @status-online !important;
Gabriel Engel
committed
}
.status-busy,
.icon-user.status-busy {
color: @status-busy;
Gabriel Engel
committed
}
.status-away,
.icon-user.status-away {
color: @status-away !important;
Gabriel Engel
committed
}
// TODO -- Refactor favorite styles and logic;
Gabriel Engel
committed
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
.favorite-room {
color: #FECF09;
}
.toggle-favorite {
color: #AAA;
}
.loading {
background-image: url('/images/loading.gif');
background-repeat: no-repeat;
background-position: 50%;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
&.inline {
position: relative;
min-height: 40px;
background-size: 24px 24px;
}
}
.btn-loading {
background-image: url('/images/loading.gif');
background-repeat: no-repeat;
background-position: 50%;
color: transparent !important;
pointer-events: none;
cursor: not-allowed;
background-color: transparent;
border: none;
&:hover {
background-color: transparent;
}
}
// new layout buttons
.button {
display: inline-block;
padding: 10px 12px 8px;
background-color: #FFF;
color: #FAFAFA;
font-weight: 400;
font-size: 13px;
margin: 4px;
text-transform: uppercase;
word-spacing: 0;
box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
border: none;
line-height: 16px;
position: relative;
position: relative;
z-index: 2;
}
content: " ";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.15);
opacity: 0;
z-index: 1;
.transition(opacity .1s ease-out);
}
.fa {
text-align: center;
width: 20px;
font-size: 18px;
vertical-align: middle;
position: relative;
z-index: 2;
}
&:hover {
text-decoration: none;
color: #FFF;
opacity: 1;
}
}
&.primary {
min-width: 120px;
background-color: #4f85de;
}
&.secondary {
min-width: 120px;
background-color: #bc2031;
}
&.facebook {
background-color: #325c99;
}
&.twitter {
background-color: #02acec;
}
&.google {
background-color: #dd4b39;
}
&.github {
background-color: #4c4c4c;
}
&.trello {
background-color: #026aa7;
}
&.meteor-developer {
background-color: #de4f4f;
}
}
Gabriel Engel
committed
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
.sec-header {
margin: 16px 0;
text-align: center;
> * {
display: inline-table;
width: auto;
vertical-align: middle;
line-height: 35px;
}
label {
margin-left: 20px;
}
}
.burger {
padding: 12px;
visibility: hidden;
display: none;
cursor: pointer;
margin-left: 7px;
position: absolute;
top: 4px;
left: 5px;
.transition(transform .2s ease-out .1s);
i {
display: block;
height: 2px;
width: 20px;
margin: 5px 0;
background-color: #333;
opacity: .8;
.transition(transform .2s ease-out, width .2s ease-out);
&:nth-child(1) {
// .transition-delay(.06s);
}
&:nth-child(3) {
.transition-delay(.1s);
}
}
}
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
.arrow {
display: block;
width: 25px;
height: 25px;
z-index: 100;
.calc(top, ~"50% - 13px");
&:before, &:after {
content: " ";
display: block;
background-color: #aaa;
width: 2px;
height: 10px;
position: absolute;
.calc(top, ~"50% - 5px");
.calc(left, ~"50% - 5px");
}
&:before {
.transform(rotate(135deg) translateX(-4px));
.transition(transform .185s ease-out .085s, background .15s ease-out);
}
&:after {
.transform(rotate(-135deg) translateX(-4px));
.transition(transform .185s ease-out, background .15s ease-out);
}
&.left {
&:before {
.transform(rotate(45deg) translateY(-4px));
}
&:after {
.transform(rotate(-45deg) translateY(4px));
}
}
}
a.github-fork {
Gabriel Engel
committed
position: fixed;
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
display: block;
width: 260px;
z-index: 901;
right: -62px;
top: 50px;
background-size: 100% auto;
cursor: pointer;
background-color: #5c5c5c;
color: #f0f0f0;
padding: 1em 0 0.95em;
line-height: 1.04em;
text-decoration: none;
font-size: 1.04em;
box-shadow: -2px 3px 1px rgba(0, 0, 0, 0.23);
opacity: 1;
text-transform: uppercase;
font-weight: 400 !important;
.transform(rotate(45deg) translateY(0));
.transition(background-color .2s ease-out, transform .45s cubic-bezier(.15, 0, 0, 1) 2.15s, opacity .2s ease-out 2.15);
&:hover {
background-color: #4b4b4b;
color: #FFF;
}
&:before {
content: " ";
border-top: 1px dashed #f0f0f0;
position: absolute;
top: 3px;
width: 100%;
left: 0;
height: 1px;
z-index: 1;
}
&:after {
content: " ";
border-top: 1px dashed #f0f0f0;
position: absolute;
bottom: 2px;
z-index: 1;
left: 0;
width: 100%;
height: 1px;
}
}
.mac-bar {
display: block;
position: relative;
height: 24px;
background-color: #ddd;
Gabriel Engel
committed
width: 100%;
z-index: 10;
i {
height: 12px;
width: 12px;
Gabriel Engel
committed
display: inline-block;
background-color: #ff5f57;
border-radius: 50%;
position: absolute;
top: 6px;
left: 10px;
&:nth-child(2) {
left: 26px;
background-color: #ffbd2e;
Gabriel Engel
committed
}
&:nth-child(3) {
left: 42px;
background-color: #28ca41;
Gabriel Engel
committed
}
}
}
.avatar {
height: 100%;
width: 100%;
overflow: hidden;
img {
height: auto !important;
}
}
#rocket-chat {
display: block;
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
opacity: 1;
visibility: visible;
background-color: #fff;
.transition(opacity .2s ease-out);
&.-hidden {
visibility: hidden;
opacity: 0;
}
> .alert {
margin-bottom: 0;
padding: 5px;
}
}
// .popover {
// z-index: 120;
// }
Gabriel Engel
committed
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
.account-box {
position: relative;
height: 100%;
cursor: pointer;
width: 100%;
.info {
position: relative;
height: 100%;
.thumb {
float: left;
height: 100%;
position: relative;
width: 60px;
padding: 8px;
&:after {
content: " ";
display: block;
width: 11px;
height: 11px;
border: 2px solid #6f6f6f;
border-radius: 50%;
z-index: 10;
position: absolute;
right: 5px;
bottom: 10px;
}
.avatar-initials {
line-height: 44px;
}
Gabriel Engel
committed
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
}
.data {
float: left;
position: relative;
padding: 0 25px 0 5px;
height: 100%;
display: table;
.calc(width, ~"100% - 60px");
}
.wrp {
display: table-cell;
vertical-align: middle;
text-align: left;
}
h4 {
display: block;
line-height: 18px;
color: rgba(255, 255, 255, 0.65);
font-size: 16px;
margin-top: 3px;
font-weight: 400;
overflow: hidden;
text-overflow: ellipsis;
position: relative;
width: 130px;
.transition(color .15s ease-out);
}
&.status-offline {
.thumb:after {
border-color: darken(@status-offline, 5%);
background-color: @status-offline;
Gabriel Engel
committed
}
}
&.status-online {
.thumb:after {
border-color: darken(@status-online, 5%);
background-color: @status-online;
Gabriel Engel
committed
}
}
&.status-away {
.thumb:after {
border-color: darken(@status-away, 5%);
background-color: @status-away;
Gabriel Engel
committed
}
}
&.status-busy {
.thumb:after {
border-color: darken(@status-busy, 5%);
background-color: @status-busy;
Gabriel Engel
committed
}
}
}
.options {
background-color: @primary-background-color;
Gabriel Engel
committed
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
position: fixed;
top: @header-min-height;
left: 0;
padding-top: 15px;
width: @rooms-box-width;
.calc(height, ~'100% - ' @header-min-height + @footer-min-height);
.transition(transform .3s cubic-bezier(.5, 0, .1, 1));
&._hidden {
.transform(translateX(-100%));
}
.status {
padding-left: 30px;
position: relative;
&:after {
content: " ";
display: block;
width: 13px;
height: 13px;
border: 1px solid #6f6f6f;
border-radius: 50%;
z-index: 5;
position: absolute;
left: 12px;
.calc(top, ~"50% - 6px");
}
&.offline {
&:after {
border-color: #666666;
background-color: #7b7b7b;
}
}
&.online {
&:after {
border-color: #2c9210;
background-color: #35AC19;
}
}
&.away {
&:after {
border-color: #e69200;
background-color: #fcb316;
}
}
&.busy {
&:after {
border-color: #9f0030;
background-color: #D30230;
}
}
}
span.soon {
// content: "em breve";
width: 100px;
position: absolute;
right: -30px;
color: #aaa;
font-size: 10px;
top: 17px;
}
i {
width: 18px;
}
a {
position: relative;
display: table;
color: rgba(255, 255, 255, 0.5);
width: 100%;
height: 20px;
padding: 15px 12px;
line-height: 1;
text-decoration: none;
border-bottom: 1px solid darken(@primary-background-color, 3%);
Gabriel Engel
committed
&:nth-child(even) {
// background-color: #EFEFEF;
}
&:hover {
background-color: darken(@primary-background-color, 3%);
Gabriel Engel
committed
color: rgba(255, 255, 255, 0.75);
text-decoration: none;
}
}
}
&.active .info,
.info:hover {
h4 {
color: rgba(255, 255, 255, 0.85);
}
.arrow {
&:before, &:after {
background-color: rgba(255, 255, 255, 0.85);
}
}
}
Gabriel Engel
committed
position: absolute;
right: 5px;
}
}
// rooms-box
.side-nav {
position: fixed;
display: block;
top: 0;
bottom: 0;
left: 0;
width: @rooms-box-width;
height: auto;
overflow: visible;
background-color: #F4F4F4;
z-index: 100;
color: #000;
padding: 12px 0 0 0;
.transition(transform .3s ease-out);
Gabriel Engel
committed
&:before {
content: " ";
height: 1px;
width: 189px;
left: 8px;
position: absolute;
top: 59px;
background-color: #dfdfdf;
}
.rooms-list {
direction: rtl;
position: absolute;
top: @header-min-height;
.calc(height, ~"100% - " @header-min-height + @footer-min-height);
width: 100%;
overflow-x: hidden;
overflow-y: scroll;
display: block;
-webkit-overflow-scrolling: touch;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4) inset;
background-color: lighten(@primary-background-color, 5%);
Gabriel Engel
committed
.custom-scroll(transparent, rgba(255, 255, 255, 0.05));
> .wrapper {
direction: ltr;
padding-left: 8px;
}
}
.header {
position: absolute;
top: 0;
left: 0;
width: 100%;
color: #fff;
z-index: 110;
Gabriel Engel
committed
min-height: @header-min-height;
height: @header-min-height;
background-color: @primary-background-color;
Gabriel Engel
committed
}
.footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 15px 15px 0px 15px;
z-index: 100;
Gabriel Engel
committed
text-align: right;
background: #fff;
min-height: @footer-min-height;
background-color: @primary-background-color;
Gabriel Engel
committed
.logo {
display: block;
width: 100%;
height: 100%;