aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/tabs.scss
blob: 65ca97a54ffa737d13b430ac894449f91f9b1560 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
@import './config.scss';

.theme__dark .tab-item {
  &.is-active {
    background: $dark-theme-gray;

    .tab-item__icon { margin-left: -4px; }
  }

  &.is-disabled .tab-item__icon { filter: grayscale(100%) opacity(.2); }
  .tab-item__icon { width: 34px; }
}

.tabs {
  display: flex;
  flex-direction: column;
  flex-shrink: 1;

  .placeholder {
    height: 40px;
    width: 100%;
  }
}

.tab-item {
  align-items: center;
  display: flex;
  height: 65px;
  justify-content: center;
  min-height: 50px;
  position: relative;
  transition: background $theme-transition-time;
  width: $theme-sidebar-width;

  &.is-active {
    background: lighten($theme-brand-primary, 35%);
    border-left-width: 4px;
    border-left-style: solid;
    border-left-color: $theme-brand-primary;

    .tab-item__icon { margin-left: -4px; }
  }

  &.is-disabled .tab-item__icon { filter: grayscale(100%) opacity(0.2); }
  &.has-custom-icon .tab-item__icon { border-radius: $theme-border-radius; }
  &:active .tab-item__icon { opacity: .7; }

  .tab-item__icon {
    height: auto;
    width: 30px;
  }

  .tab-item__message-count {
    align-items: center;
    background: #0088cc;
    border-radius: 20px;
    bottom: 8px;
    color: #FFF;
    display: flex;
    font-size: 11px;
    justify-content: center;
    min-height: 17px;
    min-width: 17px;
    padding: 0px 5px;
    position: absolute;
    right: 8px;

    &.is-indirect { 
      padding-top: 0;
      background: #0088cc;
	}
    &.hibernating { 
      padding-top: 0; 
      background: $theme-gray; 
      font-size: 0px;
      min-height: 10px;
      min-width: 10px;
      right: auto;
      left: 8px;
    }
  }

  .tab-item__info-badge {
    align-items: center;
    background: $theme-gray-light;
    bottom: 8px;
    border-radius: 20px;
    color: $theme-gray-lighter;
    display: flex;
    font-size: 11px;
    height: 17px;
    justify-content: center;
    padding: 0px 5px;
    position: absolute;
    right: 8px;
    width: 17px;

    &.is-indirect { 
      padding-top: 0;
      background: #0088cc;
	}
  }

  &.is-reordering { z-index: 99999; }
}