summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/gitlab_bootstrap/lists.scss
blob: d23323979bcda426c45fcf445679b3be6e4cdcb7 (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
/**
 * Well styled list
 *
 */
.well-list {
  margin: 0;
  list-style: none;
  li {
    padding: 10px;
    min-height: 20px;
    border-bottom: 1px solid #eee;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    &.disabled {
      color: #888;
    }

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

    &.smoke { background-color: #f5f5f5; }

    &:hover {
      background: $hover;
      border-bottom: 1px solid #ADF;
    }

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

      &.bottom {
        background: #f5f5f5;
      }
    }

    .author { color: #999; }

    p {
      padding-top: 1px;
      margin: 0;
      color: #222;
      img {
        position: relative;
        top: 3px;
      }
    }

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

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

/** light list with border-bottom between li **/
ul.bordered-list {
  margin: 5px 0px;
  padding: 0px;
  li {
    padding: 5px 0;
    border-bottom: 1px solid #EEE;
    overflow: hidden;
    display: block;
    margin: 0px;
    &:last-child { border:none }
    &.active {
      background: #f9f9f9;
      a { font-weight: bold; }
    }

    &.light {
      a { color: #777; }
    }
  }
}