summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/gitlab_bootstrap/blocks.scss
blob: b705f8fb3b160255a7defb165372f25e35a5f68a (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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/**
 * ===================================
 * Contain 3 main UI block elements:
 *   .main_box - for show pages
 *   .ui-box   - for simple block & widgets
 * ===================================
 */

/**
 *  UI box element
 *  contains top, middle, bottom blocks
 *
 */
.main_box {
  @extend .borders;
  @extend .prepend-top-20;
  @extend .append-bottom-20;
  border-width: 1px;
  @include solid_shade;


  img { max-width: 100%; }

  pre {
    code {
      background: none !important;
    }
  }

  .top_box_content,
  .middle_box_content,
  .bottom_box_content {
    padding: 15px;

    pre {
      background: none !important;
      margin: 0;
      border: none;
      padding: 0;
    }
  }

  .middle_box_content {
    border-radius: 0;
    border: none;
    font-size: 12px;
    background-color:#f5f5f5;
    border: none;
    border-top:1px solid #eee;
  }

  .bottom_box_content {
    border-top:1px solid #eee;
  }
}

/**
 * Big UI Block for show page content
 *
 */
.ui-box {
  background:#F9F9F9;
  margin-bottom: 25px;
  @include round-borders-all(4px);
  border-color: #CCC;
  @include solid_shade;

  &.white {
    background:#fff;
  }

  ul {
    margin: 0;
  }

  h5, .title {
    padding: 0 10px;
    @include round-borders-top(4px);
    @include bg-gray-gradient;
    border-bottom: 1px solid #bbb;

    &.small {
      line-height: 28px;
      font-size: 14px;
      line-height: 28px;
      text-shadow: 0 1px 1px white;
    }

    form {
      padding:9px 0;
      margin: 0px;
    }

    .nav-pills {
      li {
        padding:3px 0;
        &.active a { background-color: $style_color; }
        a {
          border-radius: 7px;
        }
      }
    }
  }

  .bottom {
    @include bg-gray-gradient;
    @include round-borders-bottom(4px);
    border-bottom: none;
    border-top: 1px solid #bbb;
  }

  &.padded {
    h5, .title {
      margin: -20px;
      margin-bottom: 0;
      padding: 5px 20px;
    }
    .middle_title {
      background:#f5f5f5;
      margin:20px -20px;
      padding: 0 20px;
      border-top:1px solid #eee;
      border-bottom:1px solid #eee;
      font-size: 14px;
      color:#777;
    }
  }
  .row_title {
    font-weight: bold;
    color:#444;
    &:hover {
      color:#444;
      text-decoration: underline;
    }
  }

  li, .wll {
    padding: 10px;
    &:first-child {
      @include round-borders-top(4px);
      border-top: none;
    }

    &:last-child {
      @include round-borders-bottom(4px);
      border: none;
    }
  }

  .ui-box-body {
    padding: 10px;
  }
}