BigW Consortium Gitlab

lists.scss 5.93 KB
Newer Older
1 2 3 4 5
/**
 * Well styled list
 *
 */
.well-list {
Phil Hughes committed
6
  position: relative;
7
  margin: 0;
Dmitriy Zaporozhets committed
8
  padding: 0;
9
  list-style: none;
Dmitriy Zaporozhets committed
10

11
  > li {
12
    padding: 10px 15px;
13
    min-height: 20px;
14
    border-bottom: 1px solid $list-border;
15

16
    &::after {
17 18 19 20 21
      content: " ";
      display: table;
      clear: both;
    }

22
    &.disabled {
23
      color: $list-text-disabled-color;
24 25
    }

26 27 28 29 30 31
    &.unstyled {
      &:hover {
        background: none;
      }
    }

32
    &.warning-row {
33 34 35
      background-color: $list-warning-row-bg;
      border-color: $list-warning-row-border;
      color: $list-warning-row-color;
36 37
    }

38
    &.smoke { background-color: $gray-light; }
39

40
    &:not(.ui-sort-disabled):hover {
41
      background: $row-hover;
42
    }
43 44

    &:last-child {
45
      border-bottom: none;
46 47

      &.bottom {
48
        background: $gray-light;
49
      }
50 51
    }

52 53 54 55 56 57
    .list-item-name {
      float: left;
      position: relative;
      top: 3px;
    }

58
    p {
59
      padding-top: 1px;
60
      margin: 0;
61
      color: $white-normal;
62

63
      img {
64 65
        position: relative;
        top: 3px;
66 67
      }
    }
68 69

    .well-title {
70
      font-size: $list-font-size;
71 72
      line-height: 18px;
    }
73 74
  }
}
randx committed
75

76 77

/** light list with border-bottom between li **/
78 79
ul.bordered-list,
ul.unstyled-list {
80
  @include basic-list;
81 82 83 84

  &.top-list {
    li:first-child {
      padding-top: 0;
85

86 87
      h4,
      h5 {
88 89 90 91
        margin-top: 0;
      }
    }
  }
92
}
93

94 95 96 97
ul.unstyled-list > li {
  border-bottom: none;
}

98
// Generic content list
99 100 101 102 103
ul.content-list {
  @include basic-list;
  margin: 0;
  padding: 0;

104
  li {
105
    border-color: $white-normal;
106
    font-size: $list-font-size;
107
    color: $list-text-color;
108

109 110 111 112 113 114
    &.no-description {
      .title {
        line-height: $list-text-height;
      }
    }

115
    .title {
116
      font-weight: $gl-font-weight-bold;
117
    }
118

119
    a {
120
      color: $gl-text-color;
121 122
    }

Phil Hughes committed
123
    .member-group-link {
124
      color: $blue-600;
Phil Hughes committed
125 126
    }

127 128 129 130 131 132 133
    .description {
      p {
        @include str-truncated;
        margin-bottom: 0;
      }
    }

Dmitriy Zaporozhets committed
134
    .controls {
135 136
      @include new-style-dropdown;

Dmitriy Zaporozhets committed
137
      float: right;
138

139 140
      > .control-text {
        margin-right: $gl-padding-top;
141
        line-height: $list-text-height;
142 143 144 145 146 147

        &:last-child {
          margin-right: 0;
        }
      }

148
      > .btn,
149 150
      > .btn-group,
      > .dropdown.inline {
151 152
        margin-right: $gl-padding-top;
        display: inline-block;
153
        margin-top: 3px;
154
        margin-bottom: 4px;
155

156
        &.has-tooltip,
157 158
        &:last-child {
          margin-right: 0;
159 160 161 162

          @media(max-width: $screen-xs-max) {
            margin: 0 auto;
          }
163
        }
164
      }
165 166

      .no-comments {
167
        opacity: .5;
168
      }
Dmitriy Zaporozhets committed
169
    }
170

171 172
    .member-controls {
      float: none;
Phil Hughes committed
173 174

      @media (min-width: $screen-sm-min) {
175 176 177 178
        float: right;
      }
    }

179 180 181 182 183 184 185
    // When dragging a list item
    &.ui-sortable-helper {
      border-bottom: none;
    }

    &.list-placeholder {
      background-color: $gray-light;
186
      border: dotted 1px $white-normal;
187
      margin: 1px 0;
188
      min-height: 52px;
189
    }
190 191 192
  }
}

193 194 195 196 197 198
// Content list using flexbox
.flex-list {
  .flex-row {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
199
    align-items: center;
200 201 202 203 204 205 206 207 208
    white-space: nowrap;
  }

  .row-main-content {
    flex: 1 1 auto;
    overflow: hidden;
    padding-right: 8px;
  }

209 210 211 212 213
  .row-fixed-content {
    flex: 0 0 auto;
    margin-left: auto;
  }

214
  .row-title {
215
    font-weight: $gl-font-weight-bold;
216 217 218 219 220 221 222 223 224 225 226 227 228 229
  }

  .row-second-line {
    display: block;
  }

  .dropdown {
    .btn-block {
      margin-bottom: 0;
      line-height: inherit;
    }
  }

  .label-default {
230
    color: $gl-text-color-secondary;
231 232 233
  }
}

234 235 236 237
.panel > .content-list > li {
  padding: $gl-padding-top $gl-padding;
}

238 239 240
ul.controls {
  float: right;
  list-style: none;
241 242
  display: flex;
  align-items: center;
243 244 245 246 247 248 249

  .btn {
    padding: 10px 14px;
  }

  > li {
    float: left;
250
    margin-right: 10px;
251

252 253 254
    &:last-child {
      margin-right: 0;
    }
255 256 257 258 259 260 261

    .author_link {
      display: inline-block;

      .avatar-inline {
        margin-left: 0;
        margin-right: 0;
262
        margin-bottom: 0;
263 264 265
      }
    }
  }
266 267 268 269 270 271

  .issuable-pipeline-broken a,
  .issuable-pipeline-status a,
  .author_link {
    display: flex;
  }
272
}
273 274 275 276

ul.indent-list {
  padding: 10px 0 0 30px;
}
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


// Specific styles for tree list
.group-list-tree {
  .folder-toggle-wrap {
    float: left;
    line-height: $list-text-height;
    font-size: 0;

    span {
      font-size: $gl-font-size;
    }
  }

  .folder-caret,
  .folder-icon {
    display: inline-block;
  }

  .folder-caret {
    width: 15px;
  }

  .folder-icon {
    width: 20px;
  }

304
  > .group-row:not(.has-subgroups) {
305 306 307 308 309 310 311 312 313 314 315
    .folder-caret .fa {
      opacity: 0;
    }
  }

  .content-list li:last-child {
    padding-bottom: 0;
  }

  .group-list-tree {
    margin-bottom: 0;
316
    margin-left: 30px;
317 318
    position: relative;

319
    &::before {
320 321 322 323
      content: '';
      display: block;
      width: 0;
      position: absolute;
324
      top: 5px;
325 326 327 328 329 330 331
      bottom: 0;
      left: -16px;
      border-left: 2px solid $border-white-normal;
    }

    .group-row {
      position: relative;
332 333

      &::before {
334 335 336 337 338 339 340 341 342 343
        content: "";
        display: block;
        width: 10px;
        height: 0;
        border-top: 2px solid $border-white-normal;
        position: absolute;
        top: 30px;
        left: -16px;
      }

344 345
      &:last-child::before {
        background: $white-light;
346 347 348 349 350 351
        height: auto;
        top: 30px;
        bottom: 0;
      }
    }
  }
Alfredo Sumaran committed
352

353 354 355
  .group-row {
    padding: 0;
    border: none;
356 357 358 359 360 361

    &:last-of-type {
      .group-row-contents:not(:hover) {
        border-bottom: 1px solid transparent;
      }
    }
362 363 364
  }

  .group-row-contents {
Alfredo Sumaran committed
365
    padding: 10px 10px 8px;
366 367 368
    border-top: solid 1px transparent;
    border-bottom: solid 1px $white-normal;

Alfredo Sumaran committed
369
    &:hover {
370 371
      border-color: $row-hover-border;
      background-color: $row-hover;
Alfredo Sumaran committed
372
      cursor: pointer;
373
    }
374 375 376 377

    .avatar-container > a {
      width: 100%;
    }
378
  }
379
}
380 381 382 383 384 385 386

.js-groups-list-holder {
  .groups-list-loading {
    font-size: 34px;
    text-align: center;
  }
}