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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
// Limit MR description for side-by-side diff view
.fixed-width-container {
  max-width: $limited-layout-width - ($gl-padding * 2);
  margin-left: auto;
  margin-right: auto;
}

.limit-container-width {
  .detail-page-header {
    @extend .fixed-width-container;
  }

  .issuable-details {
    .detail-page-description,
    .mr-source-target,
    .mr-state-widget,
    .merge-manually {
      @extend .fixed-width-container;
    }

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

        .nav-links {
          border: 0;
        }
      }

      .container-fluid {
        @extend .fixed-width-container;
      }
    }
  }

  .merge-request-details {
    .emoji-list-container {
      @extend .fixed-width-container;
    }
  }

  .diffs {
    .mr-version-controls,
    .files-changed {
      @extend .fixed-width-container;
    }
  }
}

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

57 58 59 60 61 62
  .title {
    padding: 0;
    margin: 0;
    border-bottom: none;
  }

63
  // Border around images in issue and MR descriptions.
64
  .description img:not(.emoji) {
A
Annabel Dunstone Gray 已提交
65
    border: 1px solid $white-normal;
66
    padding: 5px;
67
    max-height: calc(100vh - 100px);
68
  }
69
}
70 71 72 73 74 75 76 77

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

D
Douwe Maan 已提交
79 80 81 82 83
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
84

D
Douwe Maan 已提交
85 86
    .color-label {
      padding: 6px 10px;
87
      border-radius: $label-border-radius;
D
Douwe Maan 已提交
88 89
    }
  }
P
Phil Hughes 已提交
90 91 92 93

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

P
Phil Hughes 已提交
96
.right-sidebar {
P
Phil Hughes 已提交
97 98 99 100
  a {
    color: inherit;
  }

P
Phil Hughes 已提交
101 102 103 104
  .issuable-header-text {
    margin-top: 7px;
  }

105 106
  .block {
    @include clearfix;
107
    padding: $gl-padding 0;
A
Annabel Dunstone Gray 已提交
108
    border-bottom: 1px solid $border-gray-normal;
109
    // This prevents the mess when resizing the sidebar
110
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
111
    width: $gutter_inner_width;
112
    // --
113

P
Phil Hughes 已提交
114 115 116
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
117 118
    }

119 120 121
    &:last-child {
      border: none;
    }
122

J
Jacob Schatz 已提交
123
    span {
124 125 126
      display: inline-block;
    }

J
Jacob Schatz 已提交
127 128 129 130
    .select2-container span {
      margin-top: 0;
    }

131
    .gutter-toggle {
J
Jacob Schatz 已提交
132
      margin-left: 20px;
133
      padding-left: 10px;
134 135 136 137

      &:hover {
        color: $gray-darkest;
      }
138
    }
139
  }
D
Dmitriy Zaporozhets 已提交
140

P
Phil Hughes 已提交
141 142 143 144
  .block-first {
    padding-top: 0;
  }

145 146
  .title {
    color: $gl-text-color;
P
Phil Hughes 已提交
147 148
    margin-bottom: 10px;
    line-height: 1;
V
Valery Sizov 已提交
149

150 151
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
152 153
    }

154
    .edit-link {
T
tauriedavis 已提交
155
      color: $gl-text-color;
P
Phil Hughes 已提交
156 157 158 159

      &:hover {
        color: $md-link-color;
      }
D
Dmitriy Zaporozhets 已提交
160
    }
V
Valery Sizov 已提交
161 162
  }

163
  .cross-project-reference {
P
Phil Hughes 已提交
164
    color: inherit;
165

166 167
    span {
      white-space: nowrap;
J
Jacob Schatz 已提交
168
      width: 85%;
169 170 171 172 173
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
V
Valery Sizov 已提交
174

175 176 177 178
    cite {
      font-style: normal;
    }

179 180
    button {
      float: right;
181 182
      padding: 1px 5px;
      background-color: $gray-light;
V
Valery Sizov 已提交
183
    }
184
  }
D
Dmitriy Zaporozhets 已提交
185

186
  .selectbox {
187
    display: none;
188
  }
D
Dmitriy Zaporozhets 已提交
189

190
  .btn-clipboard:hover {
T
tauriedavis 已提交
191
    color: $gl-text-color;
V
Valery Sizov 已提交
192
  }
193
}
J
Jacob Schatz 已提交
194 195 196

.right-sidebar {
  position: fixed;
197
  top: $header-height;
198
  bottom: 0;
J
Jacob Schatz 已提交
199
  right: 0;
P
Phil Hughes 已提交
200
  z-index: 10;
201
  transition: width .3s;
J
Jacob Schatz 已提交
202 203
  background: $gray-light;
  padding: 10px 20px;
204

205 206
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
207

P
Phil Hughes 已提交
208 209
    .value {
      line-height: 1;
210 211 212 213 214

      .assign-yourself {
        margin-top: 10px;
        display: block;
      }
P
Phil Hughes 已提交
215 216 217 218
    }

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

P
Phil Hughes 已提交
221 222 223 224
    .light {
      font-weight: normal;
    }

225
    .no-value {
T
tauriedavis 已提交
226
      color: $gl-text-color-secondary;
227 228
    }

229 230 231 232 233
    .sidebar-collapsed-icon {
      display: none;
    }

    .gutter-toggle {
P
Phil Hughes 已提交
234
      margin-top: 7px;
A
Annabel Dunstone Gray 已提交
235
      border-left: 1px solid $border-gray-normal;
236
    }
P
Phil Hughes 已提交
237

238
    .assignee .avatar {
P
Phil Hughes 已提交
239 240 241 242 243 244 245 246 247 248 249 250
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: normal;
    }
251 252 253
  }

  &.right-sidebar-collapsed {
254 255 256
    /* Extra small devices (phones, less than 768px) */
    display: none;
    /* Small devices (tablets, 768px and up) */
257
    @media (min-width: $screen-sm-min) {
258
      display: block;
259 260
    }

261
    width: $sidebar_collapsed_width;
J
Jacob Schatz 已提交
262 263 264
    padding-top: 0;

    .block {
265
      width: $sidebar_collapsed_width - 2px;
266
      margin-left: -19px;
267
      padding: 15px 0 0;
268 269
      border-bottom: none;
      overflow: hidden;
J
Jacob Schatz 已提交
270
    }
271

P
Phil Hughes 已提交
272
    .participants {
A
Annabel Dunstone Gray 已提交
273
      border-bottom: 1px solid $border-gray-normal;
P
Phil Hughes 已提交
274 275
    }

276
    .hide-collapsed {
J
Jacob Schatz 已提交
277 278 279
      display: none;
    }

280
    .gutter-toggle {
P
Phil Hughes 已提交
281 282 283
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
284 285 286 287
    }

    .sidebar-collapsed-icon {
      display: block;
288
      width: 100%;
289
      text-align: center;
J
Jacob Schatz 已提交
290
      padding-bottom: 10px;
S
Sam Rose 已提交
291
      color: $issuable-sidebar-color;
J
Jacob Schatz 已提交
292

293
      &:hover {
T
tauriedavis 已提交
294
        color: $gl-text-color;
295 296
      }

J
Jacob Schatz 已提交
297 298 299 300
      span {
        display: block;
        margin-top: 0;
      }
301

302 303 304 305
      .author {
        display: none;
      }

306
      .avatar:hover {
T
tauriedavis 已提交
307
        border-color: $issuable-sidebar-color;
308 309
      }

310 311
      .btn-clipboard {
        border: none;
T
tauriedavis 已提交
312
        color: $issuable-sidebar-color;
313 314 315

        &:hover {
          background: transparent;
T
tauriedavis 已提交
316
          color: $gl-text-color;
317 318
        }
      }
319
    }
P
Phil Hughes 已提交
320 321 322 323 324

    .sidebar-collapsed-user {
      padding-bottom: 0;
      margin-bottom: 10px;
    }
325 326 327 328

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

331
  a {
P
Phil Hughes 已提交
332 333 334 335 336
    &:hover {
      color: $md-link-color;
      text-decoration: none;
    }
  }
P
Phil Hughes 已提交
337

338 339 340 341 342 343
  .dropdown-content {
    a:hover {
      color: inherit;
    }
  }

344 345
  .dropdown-menu-toggle {
    width: 100%;
346
    padding-top: 6px;
347 348 349 350 351
  }

  .open .dropdown-menu {
    width: 100%;
  }
352
}
J
Jacob Schatz 已提交
353 354 355 356 357

.detail-page-description {
  small {
    color: $gray-darkest;
  }
358
}
P
Phil Hughes 已提交
359 360 361 362 363 364 365 366

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

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

.participants-list {
369
  margin: -5px;
P
Phil Hughes 已提交
370 371 372 373
}

.participants-author {
  display: inline-block;
374
  padding: 5px;
P
Phil Hughes 已提交
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389

  .author_link {
    display: block;
  }

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

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

  a {
T
tauriedavis 已提交
390
    color: $gl-text-color-secondary;
P
Phil Hughes 已提交
391 392
  }
}
393 394 395 396 397 398

.issuable-form-padding-top {
  @media (min-width: $screen-sm-min) {
    padding-top: 7px;
  }
}
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 438 439 440 441 442 443 444

.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;
445
  font-size: 14px;
446
}
447 448 449 450 451

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

453 454 455 456
  @media (max-width: $screen-sm-max) {
    margin-bottom: $gl-padding;
  }
}
457 458 459 460 461

.issuable-list {
  li {
    .issue-check {
      float: left;
462
      padding-right: $gl-padding;
463 464 465 466 467 468 469 470 471
      margin-bottom: 10px;
      min-width: 15px;

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