BigW Consortium Gitlab

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

10
  > li {
11
    padding: 10px 15px;
12 13 14 15
    min-height: 20px;
    border-bottom: 1px solid #eee;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

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

22 23 24 25
    &.disabled {
      color: #888;
    }

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

32 33 34 35 36 37
    &.warning-row {
      background-color: #fcf8e3;
      border-color: #faebcc;
      color: #8a6d3b;
    }

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

40
    &:hover {
41
      background: $row-hover;
42
    }
43 44

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

      &.bottom {
48
        background: $background-color;
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: $gray-dark;
62
      img {
63 64
        position: relative;
        top: 3px;
65 66
      }
    }
67 68

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

75 76

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

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

84 85 86 87 88
      h4, h5 {
        margin-top: 0;
      }
    }
  }
89
}
90

91 92 93 94
ul.unstyled-list > li {
  border-bottom: none;
}

95 96 97 98 99 100 101 102
ul.task-list {
  li.task-list-item {
    list-style-type: none;
  }

  ul:not(.task-list) {
    padding-left: 1.3em;
  }
103
}
104 105 106 107 108 109 110

ul.content-list {
  @include basic-list;

  margin: 0;
  padding: 0;

111
  > li {
Douwe Maan committed
112
    border-color: $table-border-color;
113
    color: $list-text-color;
114
    font-size: $list-font-size;
115 116 117 118 119

    .title {
      color: $list-title-color;
      font-weight: 600;
    }
120

121 122 123 124 125 126 127
    .description {
      p {
        @include str-truncated;
        margin-bottom: 0;
      }
    }

128 129 130
    .avatar {
      margin-right: 15px;
    }
Dmitriy Zaporozhets committed
131 132

    .controls {
133
      padding-top: 1px;
Dmitriy Zaporozhets committed
134
      float: right;
135 136 137 138

      .btn {
        padding: 10px 14px;
      }
Dmitriy Zaporozhets committed
139
    }
140 141 142
  }
}

143 144 145 146 147 148 149 150 151 152 153
ul.controls {
  padding-top: 1px;
  float: right;
  list-style: none;

  .btn {
    padding: 10px 14px;
  }

  > li {
    float: left;
154
    margin-right: 10px;
155

156 157 158
    &:last-child {
      margin-right: 0;
    }
159 160 161 162 163 164 165 166 167 168 169

    .author_link {
      display: inline-block;

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