issuable.scss 4.7 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

D
Douwe Maan 已提交
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;
    }
  }
P
Phil Hughes 已提交
26 27 28 29

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

32
.issuable-sidebar {
P
Phil Hughes 已提交
33 34 35 36
  a {
    color: inherit;
  }

37 38
  .block {
    @include clearfix;
39
    padding: $gl-padding 0;
40
    border-bottom: 1px solid $border-gray-light;
41
    // This prevents the mess when resizing the sidebar
42
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
43
    width: $gutter_inner_width;
44
    // --
45

P
Phil Hughes 已提交
46 47 48
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
49 50
    }

51 52 53
    &:last-child {
      border: none;
    }
54

J
Jacob Schatz 已提交
55
    span {
56 57 58
      display: inline-block;
    }

J
Jacob Schatz 已提交
59 60 61 62
    .select2-container span {
      margin-top: 0;
    }

63
    .issuable-count {
P
Phil Hughes 已提交
64
      margin-top: 7px;
65 66
    }

67
    .gutter-toggle {
J
Jacob Schatz 已提交
68
      margin-left: 20px;
69
      padding-left: 10px;
70 71 72 73

      &:hover {
        color: $gray-darkest;
      }
74
    }
75
  }
D
Dmitriy Zaporozhets 已提交
76

77 78
  .title {
    color: $gl-text-color;
P
Phil Hughes 已提交
79 80
    margin-bottom: 10px;
    line-height: 1;
V
Valery Sizov 已提交
81

82 83
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
84 85
    }

86 87
    .edit-link {
      color: $gl-gray;
P
Phil Hughes 已提交
88 89 90 91

      &:hover {
        color: $md-link-color;
      }
D
Dmitriy Zaporozhets 已提交
92
    }
V
Valery Sizov 已提交
93 94
  }

95
  .cross-project-reference {
P
Phil Hughes 已提交
96
    color: inherit;
97

98 99
    span {
      white-space: nowrap;
J
Jacob Schatz 已提交
100
      width: 85%;
101 102 103 104 105
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
V
Valery Sizov 已提交
106

107 108 109 110
    cite {
      font-style: normal;
    }

111 112
    button {
      float: right;
J
Jacob Schatz 已提交
113
      padding: 3px 5px;
V
Valery Sizov 已提交
114
    }
115
  }
D
Dmitriy Zaporozhets 已提交
116

117 118 119
  .selectbox {
    display: none
  }
D
Dmitriy Zaporozhets 已提交
120

121 122
  .btn-clipboard {
    color: $gl-gray;
V
Valery Sizov 已提交
123
  }
124
}
J
Jacob Schatz 已提交
125 126 127 128

.right-sidebar {
  position: fixed;
  top: 58px;
129
  bottom: 0;
J
Jacob Schatz 已提交
130
  right: 0;
131
  transition: width .3s;
J
Jacob Schatz 已提交
132 133
  background: $gray-light;
  padding: 10px 20px;
134

135 136
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
137

P
Phil Hughes 已提交
138 139
    .value {
      line-height: 1;
140 141 142 143 144 145

      .assign-yourself {
        margin-top: 10px;
        font-weight: normal;
        display: block;
      }
P
Phil Hughes 已提交
146 147 148 149
    }

    .bold {
      font-weight: 600;
J
Jacob Schatz 已提交
150
    }
151 152 153 154 155 156

    .sidebar-collapsed-icon {
      display: none;
    }

    .gutter-toggle {
P
Phil Hughes 已提交
157
      margin-top: 7px;
158 159
      border-left: 1px solid $border-gray-light;
    }
P
Phil Hughes 已提交
160

161
    .assignee .avatar {
P
Phil Hughes 已提交
162 163 164 165 166 167 168 169 170 171 172 173
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

    .username {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: normal;
    }
174 175
  }

J
Jacob Schatz 已提交
176 177 178 179 180 181
  .subscribe-button {
    span {
      margin-top: 0;
    }
  }

182
  &.right-sidebar-collapsed {
183 184 185
    /* Extra small devices (phones, less than 768px) */
    display: none;
    /* Small devices (tablets, 768px and up) */
186 187 188 189
    @media (min-width: $screen-sm-min) {
      display: block
    }

190
    width: $sidebar_collapsed_width;
J
Jacob Schatz 已提交
191 192 193
    padding-top: 0;

    .block {
194 195
      width: $sidebar_collapsed_width - 1px;
      margin-left: -19px;
196
      padding: 15px 0 0;
197 198
      border-bottom: none;
      overflow: hidden;
J
Jacob Schatz 已提交
199
    }
200

P
Phil Hughes 已提交
201 202 203 204
    .participants {
      border-bottom: 1px solid $border-gray-light;
    }

205
    .hide-collapsed {
J
Jacob Schatz 已提交
206 207 208
      display: none;
    }

209
    .gutter-toggle {
P
Phil Hughes 已提交
210 211 212
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
213 214 215 216
    }

    .sidebar-collapsed-icon {
      display: block;
217
      width: 100%;
218
      text-align: center;
J
Jacob Schatz 已提交
219
      padding-bottom: 10px;
220
      color: #999;
J
Jacob Schatz 已提交
221 222 223 224 225

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

227 228 229 230
      .author {
        display: none;
      }

231 232 233 234 235 236 237 238
      .btn-clipboard {
        border: none;

        &:hover {
          background: transparent;
        }

        i {
239
          color: #999;
240 241
        }
      }
242
    }
P
Phil Hughes 已提交
243 244 245 246 247

    .sidebar-collapsed-user {
      padding-bottom: 0;
      margin-bottom: 10px;
    }
J
Jacob Schatz 已提交
248 249
  }

250 251 252 253 254 255
  .btn {
    background: $gray-normal;
    border: 1px solid $border-gray-normal;
    &:hover {
      background: $gray-dark;
      border: 1px solid $border-gray-dark;
J
Jacob Schatz 已提交
256 257
    }
  }
P
Phil Hughes 已提交
258

P
Phil Hughes 已提交
259
  a:not(.btn) {
P
Phil Hughes 已提交
260 261 262 263 264
    &:hover {
      color: $md-link-color;
      text-decoration: none;
    }
  }
P
Phil Hughes 已提交
265

266 267
  .dropdown-menu-toggle {
    width: 100%;
268
    padding-top: 6px;
269 270 271 272 273
  }

  .open .dropdown-menu {
    width: 100%;
  }
274
}
J
Jacob Schatz 已提交
275

276 277 278 279
.btn-default.gutter-toggle {
  margin-top: 4px;
}

J
Jacob Schatz 已提交
280 281 282 283
.detail-page-description {
  small {
    color: $gray-darkest;
  }
284
}
P
Phil Hughes 已提交
285 286 287 288 289 290 291 292

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

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

.participants-list {
295
  margin: -5px;
P
Phil Hughes 已提交
296 297 298 299
}

.participants-author {
  display: inline-block;
300
  padding: 5px;
P
Phil Hughes 已提交
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318

  .author_link {
    display: block;
  }

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

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

  a {
    color: #8c8c8c;
  }
}