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

  // Border around images in issue and MR descriptions.
9
  .description img:not(.emoji) {
10 11 12
    border: 1px solid $table-border-gray;
    padding: 5px;
    margin: 5px;
13
    max-height: calc(100vh - 100px);
14
  }
15
}
16 17 18 19 20 21 22 23

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

D
Douwe Maan 已提交
25 26 27 28 29
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
30

D
Douwe Maan 已提交
31 32 33 34
    .color-label {
      padding: 6px 10px;
    }
  }
P
Phil Hughes 已提交
35 36 37 38

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

P
Phil Hughes 已提交
41
.right-sidebar {
P
Phil Hughes 已提交
42 43 44 45
  a {
    color: inherit;
  }

P
Phil Hughes 已提交
46 47 48 49
  .issuable-header-text {
    margin-top: 7px;
  }

50 51
  .block {
    @include clearfix;
52
    padding: $gl-padding 0;
53
    border-bottom: 1px solid $border-gray-light;
54
    // This prevents the mess when resizing the sidebar
55
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
56
    width: $gutter_inner_width;
57
    // --
58

P
Phil Hughes 已提交
59 60 61
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
62 63
    }

64 65 66
    &:last-child {
      border: none;
    }
67

J
Jacob Schatz 已提交
68
    span {
69 70 71
      display: inline-block;
    }

J
Jacob Schatz 已提交
72 73 74 75
    .select2-container span {
      margin-top: 0;
    }

76
    .gutter-toggle {
J
Jacob Schatz 已提交
77
      margin-left: 20px;
78
      padding-left: 10px;
79 80 81 82

      &:hover {
        color: $gray-darkest;
      }
83
    }
84
  }
D
Dmitriy Zaporozhets 已提交
85

P
Phil Hughes 已提交
86 87 88 89
  .block-first {
    padding-top: 0;
  }

90 91
  .title {
    color: $gl-text-color;
P
Phil Hughes 已提交
92 93
    margin-bottom: 10px;
    line-height: 1;
V
Valery Sizov 已提交
94

95 96
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
97 98
    }

99 100
    .edit-link {
      color: $gl-gray;
P
Phil Hughes 已提交
101 102 103 104

      &:hover {
        color: $md-link-color;
      }
D
Dmitriy Zaporozhets 已提交
105
    }
V
Valery Sizov 已提交
106 107
  }

108
  .cross-project-reference {
P
Phil Hughes 已提交
109
    color: inherit;
110

111 112
    span {
      white-space: nowrap;
J
Jacob Schatz 已提交
113
      width: 85%;
114 115 116 117 118
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
V
Valery Sizov 已提交
119

120 121 122 123
    cite {
      font-style: normal;
    }

124 125
    button {
      float: right;
126 127
      padding: 1px 5px;
      background-color: $gray-light;
V
Valery Sizov 已提交
128
    }
129
  }
D
Dmitriy Zaporozhets 已提交
130

131
  .selectbox {
132
    display: none;
133
  }
D
Dmitriy Zaporozhets 已提交
134

135
  .btn-clipboard:hover {
136
    color: $gl-gray;
V
Valery Sizov 已提交
137
  }
138
}
J
Jacob Schatz 已提交
139 140 141

.right-sidebar {
  position: fixed;
142
  top: $header-height;
143
  bottom: 0;
J
Jacob Schatz 已提交
144
  right: 0;
P
Phil Hughes 已提交
145
  z-index: 10;
146
  transition: width .3s;
J
Jacob Schatz 已提交
147 148
  background: $gray-light;
  padding: 10px 20px;
149

150 151
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
152

P
Phil Hughes 已提交
153 154
    .value {
      line-height: 1;
155 156 157 158 159

      .assign-yourself {
        margin-top: 10px;
        display: block;
      }
P
Phil Hughes 已提交
160 161 162 163
    }

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

P
Phil Hughes 已提交
166 167 168 169
    .light {
      font-weight: normal;
    }

170
    .no-value {
171
      color: $gl-placeholder-color;
172 173
    }

174 175 176 177 178
    .sidebar-collapsed-icon {
      display: none;
    }

    .gutter-toggle {
P
Phil Hughes 已提交
179
      margin-top: 7px;
180 181
      border-left: 1px solid $border-gray-light;
    }
P
Phil Hughes 已提交
182

183
    .assignee .avatar {
P
Phil Hughes 已提交
184 185 186 187 188 189 190 191 192 193 194 195
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: normal;
    }
196 197 198
  }

  &.right-sidebar-collapsed {
199 200 201
    /* Extra small devices (phones, less than 768px) */
    display: none;
    /* Small devices (tablets, 768px and up) */
202
    @media (min-width: $screen-sm-min) {
203
      display: block;
204 205
    }

206
    width: $sidebar_collapsed_width;
J
Jacob Schatz 已提交
207 208 209
    padding-top: 0;

    .block {
210
      width: $sidebar_collapsed_width - 2px;
211
      margin-left: -19px;
212
      padding: 15px 0 0;
213 214
      border-bottom: none;
      overflow: hidden;
J
Jacob Schatz 已提交
215
    }
216

P
Phil Hughes 已提交
217 218 219 220
    .participants {
      border-bottom: 1px solid $border-gray-light;
    }

221
    .hide-collapsed {
J
Jacob Schatz 已提交
222 223 224
      display: none;
    }

225
    .gutter-toggle {
P
Phil Hughes 已提交
226 227 228
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
229 230 231 232
    }

    .sidebar-collapsed-icon {
      display: block;
233
      width: 100%;
234
      text-align: center;
J
Jacob Schatz 已提交
235
      padding-bottom: 10px;
S
Sam Rose 已提交
236
      color: $issuable-sidebar-color;
J
Jacob Schatz 已提交
237

238 239 240 241
      &:hover {
        color: $gl-gray;
      }

J
Jacob Schatz 已提交
242 243 244 245
      span {
        display: block;
        margin-top: 0;
      }
246

247 248 249 250
      .author {
        display: none;
      }

251
      .avatar:hover {
S
Sam Rose 已提交
252
        border-color: $issuable-avatar-hover-border;
253 254
      }

255 256
      .btn-clipboard {
        border: none;
S
Sam Rose 已提交
257
        color: $issuable-clipboard-color;
258 259 260

        &:hover {
          background: transparent;
261
          color: $gl-gray;
262 263
        }
      }
264
    }
P
Phil Hughes 已提交
265 266 267 268 269

    .sidebar-collapsed-user {
      padding-bottom: 0;
      margin-bottom: 10px;
    }
270 271 272 273

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

276
  a {
P
Phil Hughes 已提交
277 278 279 280 281
    &:hover {
      color: $md-link-color;
      text-decoration: none;
    }
  }
P
Phil Hughes 已提交
282

283 284 285 286 287 288
  .dropdown-content {
    a:hover {
      color: inherit;
    }
  }

289 290
  .dropdown-menu-toggle {
    width: 100%;
291
    padding-top: 6px;
292 293 294 295 296
  }

  .open .dropdown-menu {
    width: 100%;
  }
297
}
J
Jacob Schatz 已提交
298 299 300 301 302

.detail-page-description {
  small {
    color: $gray-darkest;
  }
303
}
P
Phil Hughes 已提交
304 305 306 307 308 309 310 311

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

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

.participants-list {
314
  margin: -5px;
P
Phil Hughes 已提交
315 316 317 318
}

.participants-author {
  display: inline-block;
319
  padding: 5px;
P
Phil Hughes 已提交
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334

  .author_link {
    display: block;
  }

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

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

  a {
335
    color: $gl-placeholder-color;
P
Phil Hughes 已提交
336 337
  }
}
338 339 340 341 342 343

.issuable-form-padding-top {
  @media (min-width: $screen-sm-min) {
    padding-top: 7px;
  }
}
344 345 346 347 348 349 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

.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;
}
391 392 393 394 395

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

397 398 399 400
  @media (max-width: $screen-sm-max) {
    margin-bottom: $gl-padding;
  }
}
401 402 403 404 405

.issuable-list {
  li {
    .issue-check {
      float: left;
406
      padding-right: $gl-padding;
407 408 409 410 411 412 413 414 415
      margin-bottom: 10px;
      min-width: 15px;

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