blocks.scss 2.59 KB
Newer Older
1 2
/**
 * ===================================
3
 * Contain 3 main UI block elements:
4 5 6 7 8 9 10 11 12 13 14 15 16 17
 *   .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;
18
  border-width: 1px;
19
  @include solid-shade;
20 21 22 23 24 25 26 27 28 29 30 31 32


  img { max-width: 100%; }

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

  .top_box_content,
  .middle_box_content,
  .bottom_box_content {
33
    padding: 15px;
34 35
    word-wrap: break-word;

36 37
    pre {
      background: none !important;
38 39 40
      margin: 0;
      border: none;
      padding: 0;
41 42 43
    }
  }

44 45 46 47 48 49 50 51 52
  .top_box_content {
    .box-title {
      color: $style_color;
      font-size: 18px;
      font-weight: normal;
      line-height: 28px;
    }
  }

53
  .middle_box_content {
54
    @include border-radius(0);
55 56
    border: none;
    font-size: 12px;
57
    background-color: #f5f5f5;
58
    border: none;
59
    border-top: 1px solid #eee;
60 61 62
  }

  .bottom_box_content {
63
    border-top: 1px solid #eee;
64 65 66 67 68 69 70 71
  }
}

/**
 * Big UI Block for show page content
 *
 */
.ui-box {
72
  background: #F9F9F9;
73
  margin-bottom: 25px;
74 75 76

  border: 1px solid #eaeaea;
  @include border-radius(4px);
77

78
  border-color: #CCC;
79
  @include solid-shade;
80

81
  &.white {
82
    background: #fff;
83 84
  }

85
  ul {
86
    margin: 0;
87 88 89 90
  }

  h5, .title {
    padding: 0 10px;
91
    @include border-radius(4px 4px 0 0);
92
    @include bg-gray-gradient;
93
    border-top: 1px solid #eaeaea;
94 95
    border-bottom: 1px solid #bbb;

96 97 98 99
    > a {
      text-shadow: 0 1px 1px #fff;
    }

100 101 102
    &.small {
      line-height: 28px;
      font-size: 14px;
103
      line-height: 28px;
104 105 106 107
      text-shadow: 0 1px 1px white;
    }

    form {
108
      padding: 9px 0;
109
      margin: 0px;
110 111 112 113
    }

    .nav-pills {
      li {
114
        padding: 3px 0;
115
        &.active a { background-color: $style_color; }
116
        a {
117
          @include border-radius(7px);
118 119 120 121 122 123 124
        }
      }
    }
  }

  .bottom {
    @include bg-gray-gradient;
125
    @include border-radius(0 0 4px 4px);
126
    border-bottom: none;
127 128 129 130 131 132 133 134 135 136
    border-top: 1px solid #bbb;
  }

  &.padded {
    h5, .title {
      margin: -20px;
      margin-bottom: 0;
      padding: 5px 20px;
    }
    .middle_title {
137
      background: #f5f5f5;
138 139
      margin:20px -20px;
      padding: 0 20px;
140 141
      border-top: 1px solid #eee;
      border-bottom: 1px solid #eee;
142
      font-size: 14px;
143
      color: #777;
144 145 146
    }
  }
  .row_title {
147
    font-weight: bold;
148
    color: #444;
149
    &:hover {
150
      color: #444;
151
      text-decoration: underline;
152 153 154
    }
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
155
  .ui-box-body {
156
    padding: 10px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
157
  }
158
}