issuable.scss 5.8 KB
Newer Older
1
.issuable-details {
2
  section {
3
    .issuable-discussion {
4 5 6
      margin-right: 1px;
    }
  }
7 8 9 10 11 12 13

  // Border around images in issue and MR descriptions.
  .description img {
    border: 1px solid $table-border-gray;
    padding: 5px;
    margin: 5px;
  }
14
}
15 16 17 18 19 20 21 22

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

D
Douwe Maan 已提交
24 25 26 27 28 29 30 31 32
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    .color-label {
      padding: 6px 10px;
    }
  }
P
Phil Hughes 已提交
33 34 35 36

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

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

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

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

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

62 63 64
    &:last-child {
      border: none;
    }
65

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

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

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

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

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

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

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

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

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

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

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

118 119 120 121
    cite {
      font-style: normal;
    }

122 123
    button {
      float: right;
J
Jacob Schatz 已提交
124
      padding: 3px 5px;
V
Valery Sizov 已提交
125
    }
126
  }
D
Dmitriy Zaporozhets 已提交
127

128 129 130
  .selectbox {
    display: none
  }
D
Dmitriy Zaporozhets 已提交
131

132 133
  .btn-clipboard {
    color: $gl-gray;
V
Valery Sizov 已提交
134
  }
135
}
J
Jacob Schatz 已提交
136 137 138

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

147 148
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
149

P
Phil Hughes 已提交
150 151
    .value {
      line-height: 1;
152 153 154 155 156

      .assign-yourself {
        margin-top: 10px;
        display: block;
      }
P
Phil Hughes 已提交
157 158 159 160
    }

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

P
Phil Hughes 已提交
163 164 165 166
    .light {
      font-weight: normal;
    }

167
    .no-value {
168
      color: $gl-placeholder-color;
169 170
    }

171 172 173 174 175
    .sidebar-collapsed-icon {
      display: none;
    }

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

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

    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: normal;
    }
193 194 195
  }

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

203
    width: $sidebar_collapsed_width;
J
Jacob Schatz 已提交
204 205 206
    padding-top: 0;

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

P
Phil Hughes 已提交
214 215 216 217
    .participants {
      border-bottom: 1px solid $border-gray-light;
    }

218
    .hide-collapsed {
J
Jacob Schatz 已提交
219 220 221
      display: none;
    }

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

    .sidebar-collapsed-icon {
      display: block;
230
      width: 100%;
231
      text-align: center;
J
Jacob Schatz 已提交
232
      padding-bottom: 10px;
233
      color: #999;
J
Jacob Schatz 已提交
234 235 236 237 238

      span {
        display: block;
        margin-top: 0;
      }
239

240 241 242 243
      .author {
        display: none;
      }

244 245 246 247 248 249 250 251
      .btn-clipboard {
        border: none;

        &:hover {
          background: transparent;
        }

        i {
252
          color: #999;
253 254
        }
      }
255
    }
P
Phil Hughes 已提交
256 257 258 259 260

    .sidebar-collapsed-user {
      padding-bottom: 0;
      margin-bottom: 10px;
    }
261 262 263 264

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

P
Phil Hughes 已提交
267
  .issuable-header-btn {
268 269
    background: $gray-normal;
    border: 1px solid $border-gray-normal;
270
    
271 272 273
    &:hover {
      background: $gray-dark;
      border: 1px solid $border-gray-dark;
J
Jacob Schatz 已提交
274
    }
275 276 277 278

    &.btn-primary {
      @extend .btn-primary
    }
J
Jacob Schatz 已提交
279
  }
P
Phil Hughes 已提交
280

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

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

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

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

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

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

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

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

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

  .author_link {
    display: block;
  }

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

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

  a {
340
    color: $gl-placeholder-color;
P
Phil Hughes 已提交
341 342
  }
}
343 344 345 346 347 348

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