summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/lists.scss
blob: f6942db5816966e22989f3505a25a449d4497226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/**
 * Well styled list
 *
 */
.well-list {
  margin: 0;
  padding: 0;
  list-style: none;

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

    &:after {
      content: " ";
      display: table;
      clear: both;
    }

    &.disabled {
      color: #888;
    }

    &.unstyled {
      &:hover {
        background: none;
      }
    }

    &.warning-row {
      background-color: #fcf8e3;
      border-color: #faebcc;
      color: #8a6d3b;
    }

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

    &:hover {
      background: $hover;
    }

    &:last-child {
      border-bottom: none;

      &.bottom {
        background: $background-color;
      }
    }

    .list-item-name {
      float: left;
      position: relative;
      top: 3px;
    }

    p {
      padding-top: 1px;
      margin: 0;
      color: $gray-dark;
      img {
        position: relative;
        top: 3px;
      }
    }

    .well-title {
      font-size: $list-font-size;
      line-height: 18px;
    }
  }
}

ol, ul {
  &.styled {
    li {
      padding: 2px;
    }
  }
}

/** light list with border-bottom between li **/
ul.bordered-list {
  @include basic-list;

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

      h4, h5 {
        margin-top: 0;
      }
    }
  }
}

li.task-list-item {
  list-style-type: none;
}

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

  margin: 0;
  padding: 0;

  > li {
    padding: $gl-padding;
    border-color: $table-border-color;
    margin-left: -$gl-padding;
    margin-right: -$gl-padding;
    color: $gl-gray;

    .avatar {
      margin-right: 15px;
    }

    .controls {
      padding-top: 4px;
      float: right;

      .btn {
        padding: 10px 14px;
      }
    }
  }
}