sidebar.scss 2.84 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

    &.container-blank {
      background: none;
      padding: 0;
12
      border: 0;
13
    }
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
    &:not(.wiki-sidebar):not(.build-sidebar):not(.issuable-bulk-update-sidebar) .content-wrapper {
37 38 39
      padding-right: $gutter_collapsed_width;
    }

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

  .sidebar-collapsed-icon {
46 47 48
    .btn {
      background-color: $gray-light;
    }
Clement Ho's avatar
Clement Ho committed
49 50 51 52

    &:not(.disabled) {
      cursor: pointer;
    }
Clement Ho's avatar
Clement Ho committed
53 54 55 56 57

    svg {
      width: $gl-padding;
      height: $gl-padding;
    }
58
  }
59 60
}

Phil Hughes's avatar
Phil Hughes committed
61 62
.right-sidebar-expanded {
  padding-right: 0;
63
  z-index: 300;
Phil Hughes's avatar
Phil Hughes committed
64

Clement Ho's avatar
Clement Ho committed
65 66 67 68
  .btn-sidebar-action {
    display: inline-flex;
  }

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

Phil Hughes's avatar
Phil Hughes committed
75
  @media (min-width: $screen-md-min) {
76 77 78
    .content-wrapper {
      padding-right: $gutter_width;
    }
79

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

    &.with-overlay .merge-request-tabs-holder.affix {
85
      right: $gutter_collapsed_width;
86
    }
Phil Hughes's avatar
Phil Hughes committed
87
  }
88
}
89 90 91

.right-sidebar {
  border-left: 1px solid $border-color;
92
  height: calc(100% - #{$header-height});
93
}
94

95
.with-performance-bar .right-sidebar.affix {
96
  top: $header-height + $performance-bar-height;
97 98
}

99 100 101 102 103 104 105
@mixin maintain-sidebar-dimensions {
  display: block;
  width: $gutter-width;
}

.issues-bulk-update.right-sidebar {
  @include maintain-sidebar-dimensions;
Bryce Johnson's avatar
Bryce Johnson committed
106 107 108
  width: 0;
  padding: 0;
  transition: width $sidebar-transition-duration;
109 110 111

  &.right-sidebar-expanded {
    @include maintain-sidebar-dimensions;
Bryce Johnson's avatar
Bryce Johnson committed
112
    width: $gutter-width;
113 114 115 116 117 118 119

    .issuable-sidebar-header {
      // matches `.top-area .nav-controls` for issuable index pages
      padding: 11px 0;
    }

    .block:last-of-type {
120
      border: 0;
121
    }
122 123 124 125
  }

  &.right-sidebar-collapsed {
    @include maintain-sidebar-dimensions;
Bryce Johnson's avatar
Bryce Johnson committed
126 127
    width: 0;
    padding: 0;
128 129 130 131 132 133 134 135 136 137

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

  .issuable-sidebar {
    padding: 0 3px;
Bryce Johnson's avatar
Bryce Johnson committed
138
    width: calc(100% + 35px);
139 140
  }
}
141

Clement Ho's avatar
Clement Ho committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155
.pikaday-container {
  .pika-single {
    margin-top: 2px;
    width: 250px;
  }

  .dropdown-menu-toggle {
    line-height: 20px;
  }
}

.sidebar-collapsed-icon .sidebar-collapsed-value {
  font-size: 12px;
}