sidebar.scss 1.51 KB
Newer Older
1 2
.content-wrapper {
  width: 100%;
3
  transition: padding $sidebar-transition-duration;
4 5

  .container-fluid {
6
    background: $white-light;
7
    padding: 0 $gl-padding;
8 9 10 11 12 13

    &.container-blank {
      background: none;
      padding: 0;
      border: none;
    }
14
  }
15 16
}

17
.nav-header-btn {
18
  padding: 10px $gl-sidebar-padding;
19
  color: inherit;
Phil Hughes's avatar
Phil Hughes committed
20
  transition-duration: .3s;
21 22
  position: absolute;
  top: 0;
Fatih Acet's avatar
Fatih Acet committed
23
  cursor: pointer;
24

25 26 27
  &:hover,
  &:focus {
    color: $white-light;
28 29
    text-decoration: none;
  }
30
}
31

Phil Hughes's avatar
Phil Hughes committed
32
.right-sidebar-collapsed {
33
  padding-right: 0;
Phil Hughes's avatar
Phil Hughes committed
34

35
  @media (min-width: $screen-sm-min) {
36 37 38 39
    .content-wrapper {
      padding-right: $gutter_collapsed_width;
    }

40
    .merge-request-tabs-holder.affix {
41
      right: $gutter_collapsed_width;
42
    }
43
  }
44 45 46

  .sidebar-collapsed-icon {
    cursor: pointer;
47 48 49 50

    .btn {
      background-color: $gray-light;
    }
51
  }
52 53
}

Phil Hughes's avatar
Phil Hughes committed
54 55 56
.right-sidebar-expanded {
  padding-right: 0;

57 58 59 60 61 62
  @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
    .content-wrapper {
      padding-right: $gutter_collapsed_width;
    }
  }

Phil Hughes's avatar
Phil Hughes committed
63
  @media (min-width: $screen-md-min) {
64 65 66
    .content-wrapper {
      padding-right: $gutter_width;
    }
67

68
    &:not(.with-overlay) .merge-request-tabs-holder.affix {
69 70
      right: $gutter_width;
    }
71 72

    &.with-overlay .merge-request-tabs-holder.affix {
73
      right: $gutter_collapsed_width;
74
    }
Phil Hughes's avatar
Phil Hughes committed
75
  }
76 77

  &.with-overlay {
78
    padding-right: $gutter_collapsed_width;
79
  }
80
}
81 82 83

.right-sidebar {
  border-left: 1px solid $border-color;
84 85 86 87 88

  &.affix {
    position: fixed;
    top: 0;
  }
89
}