_section.scss 4.98 KB
Newer Older
1
section#unit-wrapper {
2 3
  section.filters {
    @include clearfix;
4
    display: none;
5 6
    opacity: .4;
    margin-bottom: 10px;
7 8 9 10
    @include transition;

    &:hover {
      opacity: 1;
11 12 13 14 15 16 17 18 19
    }

    h2 {
      @include inline-block();
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 14px;
      padding: 6px 6px 6px 0;
      font-size: 12px;
20
      margin: 0;
21
    }
22

23 24 25
    ul {
      @include clearfix();
      list-style: none;
26 27
      margin: 0;
      padding: 0;
28

29
      li {
30 31 32 33
        @include inline-block;
        margin-right: 6px;
        border-right: 1px solid #ddd;
        padding-right: 6px;
34

35
        &.search {
36
          float: right;
37 38 39 40 41 42 43 44 45 46
          border: 0;
        }

        a {
          &.more {
            font-size: 12px;
            @include inline-block;
            margin: 0 6px;
            font-style: italic;
          }
47
        }
48 49
      }
    }
50
  }
51

52
  div.content {
53
    display: table;
54
    border: 1px solid lighten($dark-blue, 40%);
55
    width: 100%;
56 57
    @include border-radius(3px);
    @include box-shadow(0 0 4px lighten($dark-blue, 50%));
58 59 60

    section {
      header {
61
        background: #fff;
62
        padding: 6px;
63
        border-bottom: 1px solid lighten($dark-blue, 60%);
64 65 66
        @include clearfix;

        h2 {
67
          color: $bright-blue;
Kyle Fiedler committed
68 69
          // float: left;
          font-size: 14px;
70
          letter-spacing: 1px;
Kyle Fiedler committed
71
          // line-height: 20px;
72
          text-transform: uppercase;
73
          margin: 0;
74
        }
75
      }
76

77 78 79 80
      &.modules {
        @include box-sizing(border-box);
        display: table-cell;
        width: flex-grid(6, 9);
81
        border-right: 1px solid lighten($dark-blue, 40%);
82

83 84 85
        &.empty {
          text-align: center;
          vertical-align: middle;
86

87 88 89 90
          a {
            @extend .button;
            @include inline-block();
            margin-top: 10px;
91
          }
92
        }
93

94 95
        ol {
          list-style: none;
96 97
          margin: 0;
          padding: 0;
98

99
          li {
100
            border-bottom: 1px solid lighten($dark-blue, 60%);
101

102 103 104
            a {
              color: #000;
            }
105

106 107
            ol {
              list-style: none;
108 109
              margin: 0;
              padding: 0;
110

111 112
              li {
                padding: 6px;
113
                position: relative;
114

115 116 117 118
                &:last-child {
                  border-bottom: 0;
                }

119
                &:hover {
120 121
                  background-color: lighten($yellow, 10%);

122
                  a.draggable {
123
                    opacity: 1;
124
                  }
125 126 127 128
                }

                a.draggable {
                  float: right;
129
                  opacity: .4;
130
                }
131

132 133
                &.group {
                  padding: 0;
134

135 136 137
                  header {
                    padding: 6px;
                    background: none;
138

139 140
                    h3 {
                      font-size: 14px;
141
                      margin: 0;
142
                    }
143
                  }
144

145
                  ol {
146 147
                    border-left: 4px solid #999;
                    border-bottom: 0;
148 149
                    margin: 0;
                    padding: 0;
150

151 152 153
                    li {
                      &:last-child {
                        border-bottom: 0;
154 155
                      }
                    }
156 157 158 159 160 161
                  }
                }
              }
            }
          }
        }
162
      }
163

164 165 166 167 168
      &.scratch-pad {
        @include box-sizing(border-box);
        display: table-cell;
        width: flex-grid(3, 9) + flex-gutter(9);
        vertical-align: top;
169

170 171
        ol {
          list-style: none;
172 173
          margin: 0;
          padding: 0;
174

175
          li {
176
            background: $light-blue;
177

178 179 180
            &:last-child {
              border-bottom: 0;
            }
181

182 183
            &.new-module a {
              background-color: darken($light-blue, 2%);
Kyle Fiedler committed
184
              border-bottom: 1px solid darken($light-blue, 8%);
185 186 187 188 189 190

              &:hover {
                background-color: lighten($yellow, 10%);
              }
            }

191 192 193 194
            a {
              color: $dark-blue;
            }

195 196
            ul {
              list-style: none;
197 198
              margin: 0;
              padding: 0;
199

200 201
              li {
                padding: 6px;
202
                border-collapse: collapse;
Kyle Fiedler committed
203
                border-bottom: 1px solid darken($light-blue, 8%);
204
                position: relative;
205

206
                &:last-child {
207
                  border-bottom: 1px solid darken($light-blue, 8%);
208
                }
209

210
                &:hover {
211 212
                  background-color: lighten($yellow, 10%);

213 214
                  a.draggable {
                    opacity: 1;
215
                  }
216
                }
217

218

219 220
                &.empty {
                  padding: 12px;
221

222 223 224 225
                  a {
                    @extend .button;
                    display: block;
                    text-align: center;
226
                  }
227
                }
228

229 230 231
                a.draggable {
                  opacity: .3;
                }
232
              }
233
            }
234
          }
235 236 237 238 239
        }
      }
    }
  }
}