_calendar.scss 5.64 KB
Newer Older
1 2 3 4 5 6 7 8
section.cal {
  @include box-sizing(border-box);
  padding: 25px;
  @include clearfix;

  > header {
    @include clearfix;
    margin-bottom: 10px;
9 10 11 12 13 14
    opacity: .4;
    @include transition;

    &:hover {
      opacity: 1;
    }
15 16 17 18 19 20 21 22

    h2 {
      @include inline-block();
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 14px;
      padding: 6px;
      font-size: 12px;
23 24 25
    }

    ul {
26
      @include inline-block;
27 28 29

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

        a {
35
          @include inline-block();
36 37
        }

38 39
        ul {
          @include inline-block();
40

41 42 43 44
          li {
            @include inline-block();
            padding: 0;
            border-left: 0;
45 46 47 48 49 50 51 52 53
          }
        }
      }
    }
  }

  ol {
    list-style: none;
    @include clearfix;
54 55
    border-left: 1px solid lighten($dark-blue, 40%);
    border-top: 1px solid lighten($dark-blue, 40%);
56
    width: 100%;
57
    @include box-sizing(border-box);
58 59

    > li {
60 61
      border-right: 1px solid lighten($dark-blue, 40%);
      border-bottom: 1px solid lighten($dark-blue, 40%);
62 63 64
      @include box-sizing(border-box);
      float: left;
      width: flex-grid(3) + ((flex-gutter() * 3) / 4);
65
      background-color: lighten($light-blue, 2%);
66

67

68
      header {
69 70
        border-bottom: 1px solid lighten($dark-blue, 40%);
        @include box-shadow(0 2px 2px $light-blue);
71 72
        display: block;
        margin-bottom: 2px;
73
        background: #FFF;
74

75 76 77
        h1 {
          font-size: 14px;
          text-transform: uppercase;
78
          border-bottom: 1px solid lighten($dark-blue, 60%);
79
          padding: 6px;
80 81

          a {
82
            color: $bright-blue;
83 84 85 86
            display: block;
          }
        }

87 88
        ul {
          li {
89
            background: #fff;
90 91 92
            color: #888;
            border-bottom: 0;
            font-size: 12px;
93 94 95 96

            &:hover {
              background: #fff;
            }
97
          }
98 99
        }
      }
100

101 102 103
      ul {
        list-style: none;
        margin-bottom: 1px;
104

105
        li {
106
          border-bottom: 1px solid darken($light-blue, 8%);
107
          padding: 6px;
108

109 110 111 112
          &:hover {
            background: lighten($yellow, 10%);
          }

113 114 115 116
          a {
            color: lighten($dark-blue, 10%);
          }

117 118
          &.create-module {
            position: relative;
119

120 121 122 123
            > div {
              display: none;
              @include position(absolute, 30px 0 0 0);
              width: 90%;
124
              background: rgba(#000, .9);
125 126 127 128 129
              padding: 10px;
              @include box-sizing(border-box);
              @include border-radius(3px);
              z-index: 99;

130 131 132 133 134 135 136 137 138 139
              &:before {
                content: "  ";
                display: block;
                background: rgba(#000, .8);
                width: 10px;
                height: 10px;
                @include position(absolute, -5px 0 0 50%);
                @include transform(rotate(45deg));
              }

140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
              ul {
                li {
                  border-bottom: 0;
                  background: none;

                  input {
                    width: 100%;
                    @include box-sizing(border-box);
                    border-color: #000;
                    padding: 6px;
                  }

                  select {
                    width: 100%;
                    @include box-sizing(border-box);

                    option {
                      font-size: 14px;
                    }
                  }

                  a {
                    float: right;

                    &:first-child {
                      float: left;
                    }
                  }
                }
169 170 171
              }
            }

172 173 174
            &:hover {
              div {
                display: block;
175 176 177 178 179
              }
            }
          }
        }
      }
180 181 182 183 184
    }
  }

  section.new-section {
    margin-top: 10px;
185 186
    @include inline-block();
    position: relative;
187 188 189

    > a {
      @extend .button;
190
      display: block;
191 192 193 194
    }

    section {
      display: none;
195
      @include position(absolute, 30px 0 0 0);
196 197 198 199 200 201
      background: rgba(#000, .8);
      min-width: 300px;
      padding: 10px;
      @include box-sizing(border-box);
      @include border-radius(3px);
      z-index: 99;
202

203 204 205 206 207 208 209 210
      &:before {
        content: "  ";
        display: block;
        background: rgba(#000, .8);
        width: 10px;
        height: 10px;
        @include position(absolute, -5px 0 0 20%);
        @include transform(rotate(45deg));
211 212 213
      }

      form {
214

215 216
        ul {
          list-style: none;
217

218 219 220 221
          li {
            border-bottom: 0;
            background: none;
            margin-bottom: 6px;
222

223 224 225 226 227 228
            input {
              width: 100%;
              @include box-sizing(border-box);
              border-color: #000;
              padding: 6px;
            }
229

230 231 232
            select {
              width: 100%;
              @include box-sizing(border-box);
233

234 235 236 237
              option {
                font-size: 14px;
              }
            }
238

239 240 241 242 243 244 245
            a {
              float: right;

              &:first-child {
                float: left;
              }
            }
246 247 248 249
          }
        }
      }
    }
250 251 252 253 254 255

    &:hover {
      section {
        display: block;
      }
    }
256 257 258 259
  }
}

body.content
260 261 262 263 264
section.cal {
  width: flex-grid(3) + flex-gutter();
  float: left;
  overflow: scroll;
  @include box-sizing(border-box);
265 266
  opacity: .4;
  @include transition();
267 268 269 270 271

  > header ul {
    display: none;
  }

272 273 274 275
  &:hover {
    opacity: 1;
  }

276 277
  ol {
    li {
278
      @include box-sizing(border-box);
279
      width: 100%;
280

281
      &.create-module {
282 283 284
        display: none;
      }
    }
285 286
  }
}