aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/tabs.scss
blob: abafdb53c133e84bd4f506d57b65732ae0c3da35 (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
@import './config.scss';

.tabs {
  display: flex;
  // flex: 1;
  flex-direction: column;
  flex-shrink: 1;
  // align-items: center;
  // height: auto;

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

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

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

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

  &.has-custom-icon {
    .tab-item__icon {
      border-radius: $theme-border-radius;
      // border: 1px solid $theme-gray-lighter;
      // width: 32px;
    }
  }

  &:hover {
    .tab-item__icon {
      transform: scale(1.1);
    }
  }

  .tab-item__icon {
    width: 30px;
    height: auto;
    transition: transform 0.25s;
  }

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

    &.is-indirect {
      padding-top: 0px;
    }
  }

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