lists.scss 2.27 KB
Newer Older
1 2 3 4 5 6
/**
 * Well styled list
 *
 */
.well-list {
  margin: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
7
  padding: 0;
8
  list-style: none;
Dmitriy Zaporozhets's avatar
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 {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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's avatar
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's avatar
Douwe Maan committed
112
    border-color: $table-border-color;
113 114 115 116 117 118
    color: $list-text-color;

    .title {
      color: $list-title-color;
      font-weight: 600;
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
119 120 121 122

    .avatar {
      margin-right: 15px;
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
123 124

    .controls {
125
      padding-top: 1px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
126
      float: right;
127 128 129 130

      .btn {
        padding: 10px 14px;
      }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
131
    }
132 133 134
  }
}

135 136 137
.panel > .content-list {
  li {
    margin: 0;
138
    padding: $gl-padding;
139 140
  }
}
141 142 143 144 145 146 147 148 149 150 151 152

ul.controls {
  padding-top: 1px;
  float: right;
  list-style: none;

  .btn {
    padding: 10px 14px;
  }

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

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

    .author_link {
      display: inline-block;

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