issuable.scss 6.3 KB
Newer Older
1
.issuable-details {
2
  section {
3
    .issuable-discussion {
4 5 6
      margin-right: 1px;
    }
  }
7

8 9 10 11 12 13
  .title {
    padding: 0;
    margin: 0;
    border-bottom: none;
  }

14
  // Border around images in issue and MR descriptions.
15
  .description img:not(.emoji) {
A
Annabel Dunstone Gray 已提交
16
    border: 1px solid $white-normal;
17
    padding: 5px;
18
    max-height: calc(100vh - 100px);
19
  }
20
}
21 22 23 24 25 26 27 28

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

D
Douwe Maan 已提交
30 31 32 33 34
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
35

D
Douwe Maan 已提交
36 37
    .color-label {
      padding: 6px 10px;
38
      border-radius: $label-border-radius;
D
Douwe Maan 已提交
39 40
    }
  }
P
Phil Hughes 已提交
41 42 43 44

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

P
Phil Hughes 已提交
47
.right-sidebar {
P
Phil Hughes 已提交
48 49 50 51
  a {
    color: inherit;
  }

P
Phil Hughes 已提交
52 53 54 55
  .issuable-header-text {
    margin-top: 7px;
  }

56 57
  .block {
    @include clearfix;
58
    padding: $gl-padding 0;
A
Annabel Dunstone Gray 已提交
59
    border-bottom: 1px solid $border-gray-normal;
60
    // This prevents the mess when resizing the sidebar
61
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
62
    width: $gutter_inner_width;
63
    // --
64

P
Phil Hughes 已提交
65 66 67
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
68 69
    }

70 71 72
    &:last-child {
      border: none;
    }
73

J
Jacob Schatz 已提交
74
    span {
75 76 77
      display: inline-block;
    }

J
Jacob Schatz 已提交
78 79 80 81
    .select2-container span {
      margin-top: 0;
    }

82
    .gutter-toggle {
J
Jacob Schatz 已提交
83
      margin-left: 20px;
84
      padding-left: 10px;
85 86 87 88

      &:hover {
        color: $gray-darkest;
      }
89
    }
90
  }
D
Dmitriy Zaporozhets 已提交
91

P
Phil Hughes 已提交
92 93 94 95
  .block-first {
    padding-top: 0;
  }

96 97
  .title {
    color: $gl-text-color;
P
Phil Hughes 已提交
98 99
    margin-bottom: 10px;
    line-height: 1;
V
Valery Sizov 已提交
100

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

105
    .edit-link {
T
tauriedavis 已提交
106
      color: $gl-text-color;
P
Phil Hughes 已提交
107 108 109 110

      &:hover {
        color: $md-link-color;
      }
D
Dmitriy Zaporozhets 已提交
111
    }
V
Valery Sizov 已提交
112 113
  }

114
  .cross-project-reference {
P
Phil Hughes 已提交
115
    color: inherit;
116

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

126 127 128 129
    cite {
      font-style: normal;
    }

130 131
    button {
      float: right;
132 133
      padding: 1px 5px;
      background-color: $gray-light;
V
Valery Sizov 已提交
134
    }
135
  }
D
Dmitriy Zaporozhets 已提交
136

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

141
  .btn-clipboard:hover {
T
tauriedavis 已提交
142
    color: $gl-text-color;
V
Valery Sizov 已提交
143
  }
144
}
J
Jacob Schatz 已提交
145 146 147

.right-sidebar {
  position: fixed;
148
  top: $header-height;
149
  bottom: 0;
J
Jacob Schatz 已提交
150
  right: 0;
P
Phil Hughes 已提交
151
  z-index: 10;
152
  transition: width .3s;
J
Jacob Schatz 已提交
153 154
  background: $gray-light;
  padding: 10px 20px;
155

156 157
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
158

P
Phil Hughes 已提交
159 160
    .value {
      line-height: 1;
161 162 163 164 165

      .assign-yourself {
        margin-top: 10px;
        display: block;
      }
P
Phil Hughes 已提交
166 167 168 169
    }

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

P
Phil Hughes 已提交
172 173 174 175
    .light {
      font-weight: normal;
    }

176
    .no-value {
T
tauriedavis 已提交
177
      color: $gl-text-color-secondary;
178 179
    }

180 181 182 183 184
    .sidebar-collapsed-icon {
      display: none;
    }

    .gutter-toggle {
P
Phil Hughes 已提交
185
      margin-top: 7px;
A
Annabel Dunstone Gray 已提交
186
      border-left: 1px solid $border-gray-normal;
187
    }
P
Phil Hughes 已提交
188

189
    .assignee .avatar {
P
Phil Hughes 已提交
190 191 192 193 194 195 196 197 198 199 200 201
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: normal;
    }
202 203 204
  }

  &.right-sidebar-collapsed {
205 206 207
    /* Extra small devices (phones, less than 768px) */
    display: none;
    /* Small devices (tablets, 768px and up) */
208
    @media (min-width: $screen-sm-min) {
209
      display: block;
210 211
    }

212
    width: $sidebar_collapsed_width;
J
Jacob Schatz 已提交
213 214 215
    padding-top: 0;

    .block {
216
      width: $sidebar_collapsed_width - 2px;
217
      margin-left: -19px;
218
      padding: 15px 0 0;
219 220
      border-bottom: none;
      overflow: hidden;
J
Jacob Schatz 已提交
221
    }
222

P
Phil Hughes 已提交
223
    .participants {
A
Annabel Dunstone Gray 已提交
224
      border-bottom: 1px solid $border-gray-normal;
P
Phil Hughes 已提交
225 226
    }

227
    .hide-collapsed {
J
Jacob Schatz 已提交
228 229 230
      display: none;
    }

231
    .gutter-toggle {
P
Phil Hughes 已提交
232 233 234
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
235 236 237 238
    }

    .sidebar-collapsed-icon {
      display: block;
239
      width: 100%;
240
      text-align: center;
J
Jacob Schatz 已提交
241
      padding-bottom: 10px;
S
Sam Rose 已提交
242
      color: $issuable-sidebar-color;
J
Jacob Schatz 已提交
243

244
      &:hover {
T
tauriedavis 已提交
245
        color: $gl-text-color;
246 247
      }

J
Jacob Schatz 已提交
248 249 250 251
      span {
        display: block;
        margin-top: 0;
      }
252

253 254 255 256
      .author {
        display: none;
      }

257
      .avatar:hover {
T
tauriedavis 已提交
258
        border-color: $issuable-sidebar-color;
259 260
      }

261 262
      .btn-clipboard {
        border: none;
T
tauriedavis 已提交
263
        color: $issuable-sidebar-color;
264 265 266

        &:hover {
          background: transparent;
T
tauriedavis 已提交
267
          color: $gl-text-color;
268 269
        }
      }
270
    }
P
Phil Hughes 已提交
271 272 273 274 275

    .sidebar-collapsed-user {
      padding-bottom: 0;
      margin-bottom: 10px;
    }
276 277 278 279

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

282
  a {
P
Phil Hughes 已提交
283 284 285 286 287
    &:hover {
      color: $md-link-color;
      text-decoration: none;
    }
  }
P
Phil Hughes 已提交
288

289 290 291 292 293 294
  .dropdown-content {
    a:hover {
      color: inherit;
    }
  }

295 296
  .dropdown-menu-toggle {
    width: 100%;
297
    padding-top: 6px;
298 299 300 301 302
  }

  .open .dropdown-menu {
    width: 100%;
  }
303
}
J
Jacob Schatz 已提交
304 305 306 307 308

.detail-page-description {
  small {
    color: $gray-darkest;
  }
309
}
P
Phil Hughes 已提交
310 311 312 313 314 315 316 317

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

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

.participants-list {
320
  margin: -5px;
P
Phil Hughes 已提交
321 322 323 324
}

.participants-author {
  display: inline-block;
325
  padding: 5px;
P
Phil Hughes 已提交
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340

  .author_link {
    display: block;
  }

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

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

  a {
T
tauriedavis 已提交
341
    color: $gl-text-color-secondary;
P
Phil Hughes 已提交
342 343
  }
}
344 345 346 347 348 349

.issuable-form-padding-top {
  @media (min-width: $screen-sm-min) {
    padding-top: 7px;
  }
}
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395

.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;
396
  font-size: 14px;
397
}
398 399 400 401 402

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

404 405 406 407
  @media (max-width: $screen-sm-max) {
    margin-bottom: $gl-padding;
  }
}
408 409 410 411 412

.issuable-list {
  li {
    .issue-check {
      float: left;
413
      padding-right: $gl-padding;
414 415 416 417 418 419 420 421 422
      margin-bottom: 10px;
      min-width: 15px;

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