issuable.scss 4.5 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 33 34
.issuable-sidebar {
  .block {
    @include clearfix;
35
    padding: $gl-padding 0;
36
    border-bottom: 1px solid $border-gray-light;
37
    // This prevents the mess when resizing the sidebar
38
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
39
    width: $gutter_inner_width;
40
    // --
41

P
Phil Hughes 已提交
42 43 44
    &.issuable-sidebar-header {
      padding-top: 0;
      padding-bottom: 10px;
45 46
    }

47 48 49
    &:last-child {
      border: none;
    }
50

J
Jacob Schatz 已提交
51
    span {
52 53 54
      display: inline-block;
    }

J
Jacob Schatz 已提交
55 56 57 58
    .select2-container span {
      margin-top: 0;
    }

59
    .issuable-count {
P
Phil Hughes 已提交
60
      margin-top: 7px;
61 62
    }

63
    .gutter-toggle {
J
Jacob Schatz 已提交
64
      margin-left: 20px;
65
      padding-left: 10px;
66 67 68 69

      &:hover {
        color: $gray-darkest;
      }
70
    }
71
  }
D
Dmitriy Zaporozhets 已提交
72

73 74
  .title {
    color: $gl-text-color;
P
Phil Hughes 已提交
75 76
    margin-bottom: 10px;
    line-height: 1;
V
Valery Sizov 已提交
77

78 79
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
80 81
    }

82 83
    .edit-link {
      color: $gl-gray;
P
Phil Hughes 已提交
84 85 86 87

      &:hover {
        color: $md-link-color;
      }
D
Dmitriy Zaporozhets 已提交
88
    }
V
Valery Sizov 已提交
89 90
  }

91 92
  .cross-project-reference {
    color: $gl-link-color;
93

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

103 104 105 106
    cite {
      font-style: normal;
    }

107 108
    button {
      float: right;
J
Jacob Schatz 已提交
109
      padding: 3px 5px;
V
Valery Sizov 已提交
110
    }
111
  }
D
Dmitriy Zaporozhets 已提交
112

113 114 115
  .selectbox {
    display: none
  }
D
Dmitriy Zaporozhets 已提交
116

117 118
  .btn-clipboard {
    color: $gl-gray;
V
Valery Sizov 已提交
119
  }
120
}
J
Jacob Schatz 已提交
121 122 123 124

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

131 132
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
133

P
Phil Hughes 已提交
134 135 136 137 138 139
    .value {
      line-height: 1;
    }

    .bold {
      font-weight: 600;
J
Jacob Schatz 已提交
140
    }
141 142 143 144 145 146

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

    .gutter-toggle {
P
Phil Hughes 已提交
147
      margin-top: 7px;
148 149
      border-left: 1px solid $border-gray-light;
    }
P
Phil Hughes 已提交
150 151 152 153 154 155 156 157 158 159 160 161 162 163

    .avatar {
      float: left;
      margin-right: 10px;
      margin-bottom: 0;
      margin-left: 0;
    }

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

J
Jacob Schatz 已提交
166 167 168 169 170 171
  .subscribe-button {
    span {
      margin-top: 0;
    }
  }

172
  &.right-sidebar-collapsed {
173 174 175
    /* Extra small devices (phones, less than 768px) */
    display: none;
    /* Small devices (tablets, 768px and up) */
176 177 178 179
    @media (min-width: $screen-sm-min) {
      display: block
    }

180
    width: $sidebar_collapsed_width;
J
Jacob Schatz 已提交
181 182 183
    padding-top: 0;

    .block {
184 185
      width: $sidebar_collapsed_width - 1px;
      margin-left: -19px;
J
Jacob Schatz 已提交
186
      padding: 15px 0 0 0;
187 188
      border-bottom: none;
      overflow: hidden;
J
Jacob Schatz 已提交
189
    }
190

P
Phil Hughes 已提交
191 192 193 194
    .participants {
      border-bottom: 1px solid $border-gray-light;
    }

195
    .hide-collapsed {
J
Jacob Schatz 已提交
196 197 198
      display: none;
    }

199
    .gutter-toggle {
P
Phil Hughes 已提交
200 201 202
      width: 100%;
      margin-left: 0;
      padding-left: 25px;
203 204 205 206
    }

    .sidebar-collapsed-icon {
      display: block;
207
      width: 100%;
208
      text-align: center;
J
Jacob Schatz 已提交
209
      padding-bottom: 10px;
210
      color: #999;
J
Jacob Schatz 已提交
211 212 213 214 215

      span {
        display: block;
        margin-top: 0;
      }
216 217 218 219 220 221 222 223 224

      .btn-clipboard {
        border: none;

        &:hover {
          background: transparent;
        }

        i {
225
          color: #999;
226 227
        }
      }
228
    }
P
Phil Hughes 已提交
229 230 231 232 233

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

236 237 238 239 240 241
  .btn {
    background: $gray-normal;
    border: 1px solid $border-gray-normal;
    &:hover {
      background: $gray-dark;
      border: 1px solid $border-gray-dark;
J
Jacob Schatz 已提交
242 243
    }
  }
P
Phil Hughes 已提交
244 245 246 247 248 249 250

  a {
    &:hover {
      color: $md-link-color;
      text-decoration: none;
    }
  }
251
}
J
Jacob Schatz 已提交
252

253 254 255 256
.btn-default.gutter-toggle {
  margin-top: 4px;
}

J
Jacob Schatz 已提交
257 258 259 260
.detail-page-description {
  small {
    color: $gray-darkest;
  }
261
}
P
Phil Hughes 已提交
262 263 264 265 266 267 268 269

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

  .author_link {
    color: $gray-darkest;
  }
}
P
Phil Hughes 已提交
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304

.participants-list {
  margin: -5px -5px;
}

.participants-author {
  display: inline-block;
  padding: 5px 5px;

  .author_link {
    display: block;
  }

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

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

  a {
    color: #8c8c8c;

    &:hover {
      color: $gl-text-color;
      text-decoration: none;
    }

    &:focus {
      text-decoration: none;
    }
  }
}