summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/sidebar.scss
blob: 5cf9330b8f81173fca1d12320a31d6dc9516f3c8 (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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
.content-wrapper {
  width: 100%;
  transition: padding $sidebar-transition-duration;

  .container-fluid {
    background: $white-light;
    padding: 0 $gl-padding;

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

.nav-header-btn {
  padding: 10px $gl-sidebar-padding;
  color: inherit;
  transition-duration: .3s;
  position: absolute;
  top: 0;
  cursor: pointer;

  &:hover,
  &:focus {
    color: $white-light;
    text-decoration: none;
  }
}

.right-sidebar-collapsed {
  padding-right: 0;

  @media (min-width: $screen-sm-min) {
    &:not(.wiki-sidebar):not(.build-sidebar):not(.issuable-bulk-update-sidebar) .content-wrapper {
      padding-right: $gutter_collapsed_width;
    }

    .merge-request-tabs-holder.affix {
      right: $gutter_collapsed_width;
    }
  }

  .sidebar-collapsed-icon {
    cursor: pointer;

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

.right-sidebar-expanded {
  padding-right: 0;
  z-index: 300;

  @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
    &:not(.wiki-sidebar):not(.build-sidebar):not(.issuable-bulk-update-sidebar) .content-wrapper {
      padding-right: $gutter_collapsed_width;
    }
  }

  @media (min-width: $screen-md-min) {
    .content-wrapper {
      padding-right: $gutter_width;
    }

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

    &.with-overlay .merge-request-tabs-holder.affix {
      right: $gutter_collapsed_width;
    }
  }
}

.right-sidebar {
  border-left: 1px solid $border-color;

  &.affix {
    position: fixed;
    top: $header-height;
  }

  &:not(.affix-top) {
    min-height: 100%;
  }
}

@mixin maintain-sidebar-dimensions {
  display: block;
  width: $gutter-width;
  padding: 10px 20px;
}

.issues-bulk-update.right-sidebar {
  @include maintain-sidebar-dimensions;
  width: 0;
  padding: 0;
  transition: width $sidebar-transition-duration;

  &.right-sidebar-expanded {
    @include maintain-sidebar-dimensions;
    width: $gutter-width;
  }

  &.right-sidebar-collapsed {
    @include maintain-sidebar-dimensions;
    width: 0;
    padding: 0;

    .block {
      padding: 16px 0;
      width: 250px;
      border-bottom: 1px solid $border-color;
    }
  }

  .issuable-sidebar {
    padding: 0 3px;
    width: calc(100% + 35px);
  }
}