issue_box.scss
1.93 KB
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
/**
 * Issue box:
 * Huge block (one per page) for storing title, descripion and other information.
 * Used for Issue#show page, MergeRequest#show page etc
 *
 * CLasses:
 *   .issue-box - Regular box
 */
.issue-box {
  color: #666;
  margin:20px 0;
  background: #FFF;
  border: 1px solid #EEE;
  @include box-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
  &.issue-box-closed {
    border-color: $border_danger;
    .state {
      background-color: $bg_danger;
      color: #FFF;
      border-color: $border_danger;
    }
  }
  &.issue-box-merged {
    border-color: $border_primary;
    .state {
      background-color: $bg_primary;
      color: #FFF;
      border-color: $border_primary;
    }
  }
  &.issue-box-open {
    border-color: $border_success;
    .state {
      border-color: $border_success;
      background-color: $bg_success;
      color: #FFF;
    }
  }
  &.issue-box-expired {
    border-color: #cea61b;
    .state {
      border-color: #faebcc;
      background: #cea61b;
      color: #FFF;
    }
  }
  .control-group {
    margin-bottom: 0;
  }
  .state {
    border-bottom: 1px solid #DDD;
    padding: 10px 25px;
  }
  .title {
    font-size: 26px;
    font-weight: normal;
    line-height: 1.5;
    margin: 0;
    color: #333;
    padding-bottom: 0;
    padding: 15px 25px;
  }
  .context {
    border: none;
    border-top: 1px solid #eee;
    padding: 15px 25px;
    // Reset text align for children
    .text-right > * { text-align: left; }
    @media (max-width: $screen-xs-max) {
      // Don't right align on mobile
      .text-right { text-align: left; }
      .row .col-md-6 {
        padding-top: 5px;
      }
    }
  }
  .description {
    padding: 0 25px 15px 25px;
  }
  .title, .context, .description {
    .clearfix {
      margin: 0;
    }
  }
  .state-label {
    font-size: 14px;
    float: left;
    font-weight: bold;
  }
  .creator {
    float: right;
    a {
      color: #FFF;
      text-decoration: underline;
    }
  }
}