issuable.scss 3.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
@media (max-width: $screen-sm-max) {
  .issuable-affix {
    margin-top: 20px;
  }
}

@media (max-width: $screen-md-max) {
  .issuable-affix {
    position: static;
  }
}

@media (min-width: $screen-md-max) {
  .issuable-affix {
    &.affix-top {
      position: static;
    }

    &.affix {
      position: fixed;
21
      top: 70px;
K
Kyle 已提交
22
      margin-right: 35px;
23 24 25 26 27

      &.no-affix {
        position: relative;
        top: 0;
      }
28 29 30
    }
  }
}
D
Dmitriy Zaporozhets 已提交
31

32
.issuable-details {
33
  section {
34
    .issuable-discussion {
35 36 37
      margin-right: 1px;
    }
  }
38
}
39 40 41 42 43 44 45 46

.issuable-filter-count {
  span {
    display: block;
    margin-bottom: -16px;
    padding: 13px 0;
  }
}
47

D
Douwe Maan 已提交
48 49 50 51 52 53 54 55 56 57 58
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    .color-label {
      padding: 6px 10px;
    }
  }
}

59 60 61 62
.issuable-sidebar {
  .block {
    @include clearfix;
    padding:  $gl-padding 0;
63
    border-bottom: 1px solid $border-gray-light;
64
    // This prevents the mess when resizing the sidebar
65
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
66
    width: $gutter_inner_width;
67 68
    overflow-x: hidden;
    // --
69

70 71 72 73
    &:first-child {
      padding-top: 5px;
    }

74 75 76
    &:last-child {
      border: none;
    }
77

J
Jacob Schatz 已提交
78
    span:not(.select2-container span) {
79 80 81 82 83 84 85 86
      margin-top: 7px;
      display: inline-block;
    }

    .issuable-count {

    }

87
    .gutter-toggle {
J
Jacob Schatz 已提交
88
      margin-left: 20px;
89
      border-left: 1px solid $border-gray-light;
90
      padding-left: 10px;
91 92 93 94

      &:hover {
        color: $gray-darkest;
      }
95
    }
96
  }
D
Dmitriy Zaporozhets 已提交
97

98 99 100
  .title {
    color: $gl-text-color;
    margin-bottom: 8px;
V
Valery Sizov 已提交
101

102 103
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
104 105
    }

106 107 108
    label {
      font-weight: normal;
      margin-right: 4px;
V
Valery Sizov 已提交
109
    }
D
Dmitriy Zaporozhets 已提交
110

111 112
    .edit-link {
      color: $gl-gray;
D
Dmitriy Zaporozhets 已提交
113
    }
V
Valery Sizov 已提交
114 115
  }

116 117
  .cross-project-reference {
    color: $gl-link-color;
118

119 120
    span {
      white-space: nowrap;
J
Jacob Schatz 已提交
121
      width: 85%;
122 123 124 125 126
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
V
Valery Sizov 已提交
127

128 129 130 131
    cite {
      font-style: normal;
    }

132 133
    button {
      float: right;
J
Jacob Schatz 已提交
134
      padding: 3px 5px;
V
Valery Sizov 已提交
135
    }
136
  }
D
Dmitriy Zaporozhets 已提交
137

138 139 140
  .selectbox {
    display: none
  }
D
Dmitriy Zaporozhets 已提交
141

142 143
  .btn-clipboard {
    color: $gl-gray;
V
Valery Sizov 已提交
144
  }
145 146 147 148 149

  .participants .avatar {
    margin-top: 6px;
    margin-right: 2px;
  }
150
}
J
Jacob Schatz 已提交
151 152 153 154 155 156 157 158 159 160 161


.right-sidebar {
  position: fixed;
  top: 58px;
  right: 0;
  height: 100%;
  transition-duration: .3s;
  background: $gray-light;
  overflow: scroll;
  padding: 10px 20px;
162

163 164
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
165 166 167 168

    hr {
      display: none;
    }
169 170
  }

J
Jacob Schatz 已提交
171 172 173 174 175 176
  .subscribe-button {
    span {
      margin-top: 0;
    }
  }

177 178
  &.right-sidebar-collapsed {
    width: $sidebar_collapsed_width;
J
Jacob Schatz 已提交
179
    padding-top: 0;
180
    overflow-x: hidden;
J
Jacob Schatz 已提交
181 182 183 184 185 186 187 188 189 190 191 192 193

    hr {
      margin: 0;
      color: $gray-normal;
      border-color: $gray-normal;
      width: 62px;
      margin-left: -20px
    }

    .block {
      border-bottom: none;
      padding: 15px 0 0 0;
    }
194 195
  }

196 197
  .btn {
    background: $gray-normal;
198
    border: 1px solid $border-gray-normal;
199 200 201 202
    &:hover {
      background: $gray-dark;
      border: 1px solid $border-gray-dark;
    }
203 204
  }

J
Jacob Schatz 已提交
205
  &.right-sidebar-collapsed {
206
    .issuable-count,
J
Jacob Schatz 已提交
207
    .issuable-nav,
208
    .assignee > *,
209 210 211 212 213
    .milestone > *,
    .labels > *,
    .participants > *,
    .light > *,
    .project-reference > * {
J
Jacob Schatz 已提交
214 215 216
      display: none;
    }

217
    .gutter-toggle {
J
Jacob Schatz 已提交
218
      margin-left: -$gutter_inner_width + 4;
219 220 221 222
    }

    .sidebar-collapsed-icon {
      display: block;
223 224 225 226
      float: left;
      width: 62px;
      text-align: center;
      margin-left: -19px;
J
Jacob Schatz 已提交
227
      padding-bottom: 10px;
228
      color: #999999;
J
Jacob Schatz 已提交
229 230 231 232 233

      span {
        display: block;
        margin-top: 0;
      }
234 235
    }

J
Jacob Schatz 已提交
236 237 238 239 240 241 242
  }

  &.right-sidebar-expanded {
    .sidebar-collapsed-icon {
      display: none;
    }
  }
243
}
J
Jacob Schatz 已提交
244 245 246 247 248 249

.detail-page-description {
  small {
    color: $gray-darkest;
  }
}