ui_box.scss 2.61 KB
Newer Older
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
/**
 * UI box:
 * Block element for separating information on page.
 * Used for storing issues lists, grouped data.
 * You can have multiple ui boxes on one page
 *
 * Classes:
 *   .ui-box   - for any block & widgets
 *   .ui-box.ui-box-small - same but with smaller title
 *   .ui-box.ui-box-danger - with red title
 *
 * Ex. 1: List
 *   .ui-box
 *     .title
 *       # title here
 *     %ul
 *       # content here
 *
 * Ex. 2: Block data
 *   .ui-box
 *     .title
 *       # title here
 *     .body
 *       # content here
 *
 */

.ui-box {
  background: #FFF;
  margin-bottom: 20px;
  border: 1px solid #DDD;
  word-wrap: break-word;

  img {
    max-width: 100%;
  }

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

  ul {
    margin: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
46
    padding: 0;
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 154 155 156 157 158 159 160
  }

  .title {
    background-color: #EEE;
    border-bottom: 1px solid #DDD;
    color: #666;
    font-size: 16px;
    text-shadow: 0 1px 1px #fff;
    padding: 0 10px;
    font-size: 14px;
    line-height: 40px;
    font-weight: normal;
    margin: 0;

    > a {
      text-shadow: 0 1px 1px #fff;
    }

    form {
      margin-bottom: 0;
      margin-top: 0;
    }

    .btn {
      vertical-align: middle;
      padding: 4px 12px;
      @include box-shadow(0 0px 1px 1px #f2f2f2);
    }

    .nav-pills {
      > li {
        > a {
          padding: 13px;
          margin: 0;
          font-size: 13px;
        }
        &.active {
          > a {
            background: #D5D5D5;
            color: $style_color;
            @include border-radius(0);
            border-radius: 0;
            border-left: 1px solid #CCC;
            border-right: 1px solid #CCC;
          }
        }
      }
    }
  }

  .body {
    padding: 10px;
  }

  &.padded {
    h5, .title {
      margin: -20px;
      margin-bottom: 0;
      padding: 5px 20px;
    }
  }

  .row_title {
    font-weight: 500;
    color: #444;
    &:hover {
      color: #444;
      text-decoration: underline;
    }
  }

  .form-holder {
    padding-top: 20px;
    form {
      margin-bottom: 0;
      legend {
        text-indent: 10px;
      }
      .form-actions {
        margin-bottom: 0;
      }
    }
  }
}

/*
 * Small box
 */
.ui-box.ui-box-small {
  margin-bottom: 10px;

  .title {
    font-size: 13px;
    line-height: 30px;

    a {
      color: #666;
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

/*
 * Danger box
 */
.ui-box.ui-box-danger {
  background: #f7f7f7;
  border: none;

  .title {
    background: #D65;
    color: #fff;
161 162
    text-shadow: none;
    font-weight: 500;
163 164 165 166 167 168 169 170 171 172 173
  }
}

/*
 * Block under tw-bootstrap tabs
 */
.tab-pane {
  .ui-box {
    margin: 3px 3px 25px 3px;
  }
}