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

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

Douwe Maan's avatar
Douwe Maan committed
17 18 19 20 21 22 23 24 25
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    .color-label {
      padding: 6px 10px;
    }
  }
Phil Hughes's avatar
Phil Hughes committed
26 27 28 29

  &.has-labels {
    margin-bottom: -5px;
  }
Douwe Maan's avatar
Douwe Maan committed
30 31
}

Phil Hughes's avatar
Phil Hughes committed
32
.right-sidebar {
33 34 35 36
  a {
    color: inherit;
  }

37 38 39 40
  .issuable-header-text {
    margin-top: 7px;
  }

41 42
  .block {
    @include clearfix;
43
    padding: $gl-padding 0;
44
    border-bottom: 1px solid $border-gray-light;
45
    // This prevents the mess when resizing the sidebar
46
    // of elements repositioning themselves..
Jacob Schatz's avatar
Jacob Schatz committed
47
    width: $gutter_inner_width;
48
    // --
49

Phil Hughes's avatar
Phil Hughes committed
50 51 52
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
53 54
    }

55 56 57
    &:last-child {
      border: none;
    }
58

Jacob Schatz's avatar
Jacob Schatz committed
59
    span {
60 61 62
      display: inline-block;
    }

Jacob Schatz's avatar
Jacob Schatz committed
63 64 65 66
    .select2-container span {
      margin-top: 0;
    }

67
    .gutter-toggle {
Jacob Schatz's avatar
Jacob Schatz committed
68
      margin-left: 20px;
69
      padding-left: 10px;
70 71 72 73

      &:hover {
        color: $gray-darkest;
      }
74
    }
75
  }
76

Phil Hughes's avatar
Phil Hughes committed
77 78 79 80
  .block-first {
    padding-top: 0;
  }

81 82
  .title {
    color: $gl-text-color;
Phil Hughes's avatar
Phil Hughes committed
83 84
    margin-bottom: 10px;
    line-height: 1;
Valery Sizov's avatar
Valery Sizov committed
85

86 87
    .avatar {
      margin-left: 0;
Valery Sizov's avatar
Valery Sizov committed
88 89
    }

90 91
    .edit-link {
      color: $gl-gray;
Phil Hughes's avatar
Phil Hughes committed
92 93 94 95

      &:hover {
        color: $md-link-color;
      }
96
    }
Valery Sizov's avatar
Valery Sizov committed
97 98
  }

99
  .cross-project-reference {
100
    color: inherit;
101

102 103
    span {
      white-space: nowrap;
Jacob Schatz's avatar
Jacob Schatz committed
104
      width: 85%;
105 106 107 108 109
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
Valery Sizov's avatar
Valery Sizov committed
110

111 112 113 114
    cite {
      font-style: normal;
    }

115 116
    button {
      float: right;
Jacob Schatz's avatar
Jacob Schatz committed
117
      padding: 3px 5px;
Valery Sizov's avatar
Valery Sizov committed
118
    }
119
  }
120

121 122 123
  .selectbox {
    display: none
  }
124

125 126
  .btn-clipboard {
    color: $gl-gray;
Valery Sizov's avatar
Valery Sizov committed
127
  }
128
}
129 130 131

.right-sidebar {
  position: fixed;
132
  top: $header-height;
133
  bottom: 0;
134
  right: 0;
135
  z-index: 10;
136
  transition: width .3s;
137 138
  background: $gray-light;
  padding: 10px 20px;
139

140 141
  &.right-sidebar-expanded {
    width: $gutter_width;
142

Phil Hughes's avatar
Phil Hughes committed
143 144
    .value {
      line-height: 1;
145 146 147 148 149

      .assign-yourself {
        margin-top: 10px;
        display: block;
      }
Phil Hughes's avatar
Phil Hughes committed
150 151 152 153
    }

    .bold {
      font-weight: 600;
154
    }
155

Phil Hughes's avatar
Phil Hughes committed
156 157 158 159
    .light {
      font-weight: normal;
    }

160
    .no-value {
161
      color: $gl-placeholder-color;
162 163
    }

164 165 166 167 168
    .sidebar-collapsed-icon {
      display: none;
    }

    .gutter-toggle {
Phil Hughes's avatar
Phil Hughes committed
169
      margin-top: 7px;
170 171
      border-left: 1px solid $border-gray-light;
    }
Phil Hughes's avatar
Phil Hughes committed
172

173
    .assignee .avatar {
Phil Hughes's avatar
Phil Hughes committed
174 175 176 177 178 179 180 181 182 183 184 185
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: normal;
    }
186 187 188
  }

  &.right-sidebar-collapsed {
189 190 191
    /* Extra small devices (phones, less than 768px) */
    display: none;
    /* Small devices (tablets, 768px and up) */
192 193 194 195
    @media (min-width: $screen-sm-min) {
      display: block
    }

196
    width: $sidebar_collapsed_width;
197 198 199
    padding-top: 0;

    .block {
200 201
      width: $sidebar_collapsed_width - 1px;
      margin-left: -19px;
202
      padding: 15px 0 0;
203 204
      border-bottom: none;
      overflow: hidden;
205
    }
206

Phil Hughes's avatar
Phil Hughes committed
207 208 209 210
    .participants {
      border-bottom: 1px solid $border-gray-light;
    }

211
    .hide-collapsed {
Jacob Schatz's avatar
Jacob Schatz committed
212 213 214
      display: none;
    }

215
    .gutter-toggle {
Phil Hughes's avatar
Phil Hughes committed
216 217 218
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
219 220 221 222
    }

    .sidebar-collapsed-icon {
      display: block;
223
      width: 100%;
224
      text-align: center;
225
      padding-bottom: 10px;
226
      color: #999;
227 228 229 230 231

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

233 234 235 236
      .author {
        display: none;
      }

237 238 239 240 241 242 243 244
      .btn-clipboard {
        border: none;

        &:hover {
          background: transparent;
        }

        i {
245
          color: #999;
246 247
        }
      }
248
    }
Phil Hughes's avatar
Phil Hughes committed
249 250 251 252 253

    .sidebar-collapsed-user {
      padding-bottom: 0;
      margin-bottom: 10px;
    }
254 255 256 257

    .issuable-header-btn {
      display: none;
    }
Jacob Schatz's avatar
Jacob Schatz committed
258 259
  }

260
  .issuable-header-btn {
261 262
    background: $gray-normal;
    border: 1px solid $border-gray-normal;
263
    
264 265 266
    &:hover {
      background: $gray-dark;
      border: 1px solid $border-gray-dark;
Jacob Schatz's avatar
Jacob Schatz committed
267
    }
268 269 270 271

    &.btn-primary {
      @extend .btn-primary
    }
Jacob Schatz's avatar
Jacob Schatz committed
272
  }
Phil Hughes's avatar
Phil Hughes committed
273

274
  a {
Phil Hughes's avatar
Phil Hughes committed
275 276 277 278 279
    &:hover {
      color: $md-link-color;
      text-decoration: none;
    }
  }
280

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

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

  .open .dropdown-menu {
    width: 100%;
  }
295
}
296 297 298 299 300

.detail-page-description {
  small {
    color: $gray-darkest;
  }
301
}
302 303 304 305 306 307 308 309

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

  .author_link {
    color: $gray-darkest;
  }
}
Phil Hughes's avatar
Phil Hughes committed
310 311

.participants-list {
312
  margin: -5px;
Phil Hughes's avatar
Phil Hughes committed
313 314 315 316
}

.participants-author {
  display: inline-block;
317
  padding: 5px;
Phil Hughes's avatar
Phil Hughes committed
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332

  .author_link {
    display: block;
  }

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

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

  a {
333
    color: $gl-placeholder-color;
Phil Hughes's avatar
Phil Hughes committed
334 335
  }
}
336 337 338 339 340 341

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

.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;
}