summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/contextual_sidebar_header.scss
blob: 7159dadf7cc018b2f071f85f5531dc4430c2ebba (plain)
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
.context-header {
  position: relative;
  margin-right: 2px;
  width: $contextual-sidebar-width;

  > a,
  > button {
    transition: padding $sidebar-transition-duration;
    font-weight: $gl-font-weight-bold;
    display: flex;
    width: 100%;
    align-items: center;
    padding: 10px 16px 10px 10px;
    color: $gl-text-color;
    background-color: transparent;
    border: 0;
    text-align: left;

    &:hover,
    &:focus {
      background-color: $link-hover-background;
      color: $gl-text-color;
      outline: 0;
    }
  }

  .avatar-container {
    flex: 0 0 40px;
    background-color: $white;
  }

  .sidebar-context-title {
    overflow: hidden;
    text-overflow: ellipsis;
    color: $gray-900;

    &.text-secondary {
      font-weight: normal;
      font-size: 0.8em;
    }
  }
}

@mixin context-header-collapsed {
  .context-header {
    height: 60px;
    width: $contextual-sidebar-collapsed-width;

    a {
      padding: 10px 4px;
    }
  }

  .sidebar-context-title {
    @include gl-sr-only;
  }
}