issuable.scss 7.2 KB
Newer Older
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
// Limit MR description for side-by-side diff view
.limit-container-width {
  .detail-page-header {
    max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2));
    margin-left: auto;
    margin-right: auto;
  }

  .issuable-details {
    .detail-page-description,
    .mr-source-target,
    .mr-state-widget,
    .merge-manually {
      max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2));
      margin-left: auto;
      margin-right: auto;
    }

    .merge-request-tabs-holder {
      &.affix {
        border-bottom: 1px solid $border-color;

        .nav-links {
          border: 0;
        }
26
      }
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

      .container-fluid {
        padding-left: 0;
        padding-right: 0;
        max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2));
        margin-left: auto;
        margin-right: auto;
      }
    }
  }

  .diffs {
    .mr-version-controls,
    .files-changed {
      max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2));
      margin-left: auto;
      margin-right: auto;
44 45 46
    }
  }
}
47

48
.issuable-details {
49
  section {
50
    .issuable-discussion {
51 52 53
      margin-right: 1px;
    }
  }
54 55

  // Border around images in issue and MR descriptions.
56
  .description img:not(.emoji) {
A
Annabel Dunstone Gray 已提交
57
    border: 1px solid $white-normal;
58
    padding: 5px;
59
    max-height: calc(100vh - 100px);
60
  }
61
}
62 63 64 65 66 67 68 69

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

D
Douwe Maan 已提交
71 72 73 74 75
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
76

D
Douwe Maan 已提交
77 78
    .color-label {
      padding: 6px 10px;
79
      border-radius: $label-border-radius;
D
Douwe Maan 已提交
80 81
    }
  }
P
Phil Hughes 已提交
82 83 84 85

  &.has-labels {
    margin-bottom: -5px;
  }
D
Douwe Maan 已提交
86 87
}

P
Phil Hughes 已提交
88
.right-sidebar {
P
Phil Hughes 已提交
89 90 91 92
  a {
    color: inherit;
  }

P
Phil Hughes 已提交
93 94 95 96
  .issuable-header-text {
    margin-top: 7px;
  }

97 98
  .block {
    @include clearfix;
99
    padding: $gl-padding 0;
A
Annabel Dunstone Gray 已提交
100
    border-bottom: 1px solid $border-gray-normal;
101
    // This prevents the mess when resizing the sidebar
102
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
103
    width: $gutter_inner_width;
104
    // --
105

P
Phil Hughes 已提交
106 107 108
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
109 110
    }

111 112 113
    &:last-child {
      border: none;
    }
114

J
Jacob Schatz 已提交
115
    span {
116 117 118
      display: inline-block;
    }

J
Jacob Schatz 已提交
119 120 121 122
    .select2-container span {
      margin-top: 0;
    }

123
    .gutter-toggle {
J
Jacob Schatz 已提交
124
      margin-left: 20px;
125
      padding-left: 10px;
126 127 128 129

      &:hover {
        color: $gray-darkest;
      }
130
    }
131
  }
D
Dmitriy Zaporozhets 已提交
132

P
Phil Hughes 已提交
133 134 135 136
  .block-first {
    padding-top: 0;
  }

137 138
  .title {
    color: $gl-text-color;
P
Phil Hughes 已提交
139 140
    margin-bottom: 10px;
    line-height: 1;
V
Valery Sizov 已提交
141

142 143
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
144 145
    }

146 147
    .edit-link {
      color: $gl-gray;
P
Phil Hughes 已提交
148 149 150 151

      &:hover {
        color: $md-link-color;
      }
D
Dmitriy Zaporozhets 已提交
152
    }
V
Valery Sizov 已提交
153 154
  }

155
  .cross-project-reference {
P
Phil Hughes 已提交
156
    color: inherit;
157

158 159
    span {
      white-space: nowrap;
J
Jacob Schatz 已提交
160
      width: 85%;
161 162 163 164 165
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
V
Valery Sizov 已提交
166

167 168 169 170
    cite {
      font-style: normal;
    }

171 172
    button {
      float: right;
173 174
      padding: 1px 5px;
      background-color: $gray-light;
V
Valery Sizov 已提交
175
    }
176
  }
D
Dmitriy Zaporozhets 已提交
177

178
  .selectbox {
179
    display: none;
180
  }
D
Dmitriy Zaporozhets 已提交
181

182
  .btn-clipboard:hover {
183
    color: $gl-gray;
V
Valery Sizov 已提交
184
  }
185
}
J
Jacob Schatz 已提交
186 187 188

.right-sidebar {
  position: fixed;
189
  top: $header-height;
190
  bottom: 0;
J
Jacob Schatz 已提交
191
  right: 0;
P
Phil Hughes 已提交
192
  z-index: 10;
193
  transition: width .3s;
J
Jacob Schatz 已提交
194 195
  background: $gray-light;
  padding: 10px 20px;
196

197 198
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
199

P
Phil Hughes 已提交
200 201
    .value {
      line-height: 1;
202 203 204 205 206

      .assign-yourself {
        margin-top: 10px;
        display: block;
      }
P
Phil Hughes 已提交
207 208 209 210
    }

    .bold {
      font-weight: 600;
J
Jacob Schatz 已提交
211
    }
212

P
Phil Hughes 已提交
213 214 215 216
    .light {
      font-weight: normal;
    }

217
    .no-value {
218
      color: $gl-gray-light;
219 220
    }

221 222 223 224 225
    .sidebar-collapsed-icon {
      display: none;
    }

    .gutter-toggle {
P
Phil Hughes 已提交
226
      margin-top: 7px;
A
Annabel Dunstone Gray 已提交
227
      border-left: 1px solid $border-gray-normal;
228
    }
P
Phil Hughes 已提交
229

230
    .assignee .avatar {
P
Phil Hughes 已提交
231 232 233 234 235 236 237 238 239 240 241 242
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: normal;
    }
243 244 245
  }

  &.right-sidebar-collapsed {
246 247 248
    /* Extra small devices (phones, less than 768px) */
    display: none;
    /* Small devices (tablets, 768px and up) */
249
    @media (min-width: $screen-sm-min) {
250
      display: block;
251 252
    }

253
    width: $sidebar_collapsed_width;
J
Jacob Schatz 已提交
254 255 256
    padding-top: 0;

    .block {
257
      width: $sidebar_collapsed_width - 2px;
258
      margin-left: -19px;
259
      padding: 15px 0 0;
260 261
      border-bottom: none;
      overflow: hidden;
J
Jacob Schatz 已提交
262
    }
263

P
Phil Hughes 已提交
264
    .participants {
A
Annabel Dunstone Gray 已提交
265
      border-bottom: 1px solid $border-gray-normal;
P
Phil Hughes 已提交
266 267
    }

268
    .hide-collapsed {
J
Jacob Schatz 已提交
269 270 271
      display: none;
    }

272
    .gutter-toggle {
P
Phil Hughes 已提交
273 274 275
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
276 277 278 279
    }

    .sidebar-collapsed-icon {
      display: block;
280
      width: 100%;
281
      text-align: center;
J
Jacob Schatz 已提交
282
      padding-bottom: 10px;
S
Sam Rose 已提交
283
      color: $issuable-sidebar-color;
J
Jacob Schatz 已提交
284

285 286 287 288
      &:hover {
        color: $gl-gray;
      }

J
Jacob Schatz 已提交
289 290 291 292
      span {
        display: block;
        margin-top: 0;
      }
293

294 295 296 297
      .author {
        display: none;
      }

298
      .avatar:hover {
S
Sam Rose 已提交
299
        border-color: $issuable-avatar-hover-border;
300 301
      }

302 303
      .btn-clipboard {
        border: none;
S
Sam Rose 已提交
304
        color: $issuable-clipboard-color;
305 306 307

        &:hover {
          background: transparent;
308
          color: $gl-gray;
309 310
        }
      }
311
    }
P
Phil Hughes 已提交
312 313 314 315 316

    .sidebar-collapsed-user {
      padding-bottom: 0;
      margin-bottom: 10px;
    }
317 318 319 320

    .issuable-header-btn {
      display: none;
    }
J
Jacob Schatz 已提交
321 322
  }

323
  a {
P
Phil Hughes 已提交
324 325 326 327 328
    &:hover {
      color: $md-link-color;
      text-decoration: none;
    }
  }
P
Phil Hughes 已提交
329

330 331 332 333 334 335
  .dropdown-content {
    a:hover {
      color: inherit;
    }
  }

336 337
  .dropdown-menu-toggle {
    width: 100%;
338
    padding-top: 6px;
339 340 341 342 343
  }

  .open .dropdown-menu {
    width: 100%;
  }
344
}
J
Jacob Schatz 已提交
345 346 347 348 349

.detail-page-description {
  small {
    color: $gray-darkest;
  }
350
}
P
Phil Hughes 已提交
351 352 353 354 355 356 357 358

.edited-text {
  color: $gray-darkest;

  .author_link {
    color: $gray-darkest;
  }
}
P
Phil Hughes 已提交
359 360

.participants-list {
361
  margin: -5px;
P
Phil Hughes 已提交
362 363 364 365
}

.participants-author {
  display: inline-block;
366
  padding: 5px;
P
Phil Hughes 已提交
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381

  .author_link {
    display: block;
  }

  .avatar.avatar-inline {
    margin: 0;
  }
}

.participants-more {
  margin-top: 5px;
  margin-left: 5px;

  a {
382
    color: $gl-gray-light;
P
Phil Hughes 已提交
383 384
  }
}
385 386 387 388 389 390

.issuable-form-padding-top {
  @media (min-width: $screen-sm-min) {
    padding-top: 7px;
  }
}
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437

.issuable-status-box {
  float: none;
  display: inline-block;
  margin-top: 0;

  @media (max-width: $screen-xs-max) {
    position: absolute;
    top: 0;
    left: 0;
  }
}

.issuable-header {
  position: relative;
  padding-left: 45px;
  padding-right: 45px;
  line-height: 35px;

  @media (min-width: $screen-sm-min) {
    float: left;
    padding-left: 0;
    padding-right: 0;
  }
}

.issuable-actions {
  padding-top: 10px;

  @media (min-width: $screen-sm-min) {
    float: right;
    padding-top: 0;
  }
}

.issuable-gutter-toggle {
  @media (max-width: $screen-sm-max) {
    position: absolute;
    top: 0;
    right: 0;
  }
}

.issuable-meta {
  display: inline-block;
  line-height: 18px;
}
438 439 440 441 442

.js-issuable-selector-wrap {
  .js-issuable-selector {
    width: 100%;
  }
443

444 445 446 447
  @media (max-width: $screen-sm-max) {
    margin-bottom: $gl-padding;
  }
}
448 449 450 451 452

.issuable-list {
  li {
    .issue-check {
      float: left;
453
      padding-right: $gl-padding;
454 455 456 457 458 459 460 461 462
      margin-bottom: 10px;
      min-width: 15px;

      .selected_issue {
        vertical-align: text-top;
      }
    }
  }
}