_course_object.scss 5.27 KB
Newer Older
1 2 3
.highlighted-courses, .find-courses {
  .courses {
    @include clearfix;
4
    padding: 40px 0px 15px;
5

6 7 8 9 10 11 12 13 14 15
    .university-column {
      width: flex-grid(4);
      margin-right: flex-gutter();
      float: left;

      &:nth-child(3n+3) {
        margin-right: 0;
      }
    }

16 17
    .course {
      background: rgb(250,250,250);
18
      border: 1px solid rgb(180,180,180);
19 20
      @include border-radius(2px);
      @include box-sizing(border-box);
21 22 23
      @include box-shadow(0 1px 10px 0 rgba(0,0,0, 0.15), inset 0 0 0 1px rgba(255,255,255, 0.9));
      margin-bottom: 30px;
      position: relative;
24
      width: 100%;
25 26
      @include transition(all, 0.15s, linear);

27 28 29
      a:hover {
        text-decoration: none;
      }
30

31 32 33 34 35 36 37 38
      .meta-info {
        background: rgba(0,0,0, 0.6);
        bottom: 6px;
        border: 1px solid rgba(0,0,0, 0.5);
        @include border-right-radius(2px);
        @include box-shadow(0 1px 5px 0 rgba(0,0,0, 0.15));
        @include clearfix;
        position: absolute;
39
        right: -4px;
40 41 42 43
        @include transition(all, 0.15s, linear);

        p {
          color: rgb(255,255,255);
44
          font-style: italic;
45 46
          line-height: 1.2em;
          padding: 4px 12px 5px;
47 48
        }
      }
49

50 51 52
      .inner-wrapper {
        border: 1px solid rgba(255,255,255, 1);
        height: 100%;
53
        height: 200px;
54 55
        overflow: hidden;
        position: relative;
56 57
      }

58 59
      header.course-preview {
        left: 0px;
60
        position: absolute;
61
        top: 0px;
62
        width: 100%;
63 64
        z-index: 3;

65
        // > a {
66
          @include background-image(linear-gradient(-90deg, rgba(255,255,255, 1), rgba(255,255,255, 0.85)));
67 68 69 70 71
          @include box-shadow(inset 0 -1px 0 0 rgba(255,255,255, 0.2));
          border-bottom: 1px solid rgba(150,150,150, 0.7);
          display: block;
          height: 50px;

72 73 74 75 76 77 78 79 80 81 82 83 84 85
          &:hover {
            @include background-image(linear-gradient(-90deg, rgba(255,255,255, 1), rgba(255,255,255, 0.8)));
            text-decoration: none;

            .info-link {
              color: $blue;
              opacity: 1;
            }

            h2 {
              color: $blue;
            }
          }

86 87
          hgroup {
            left: 0px;
88
            padding: 0px 10px;
89 90 91 92 93
            position: absolute;
            right: 60px;
            top: 0px;

            h2 {
94
              color: $base-font-color;
95
              display: table-cell;
96
              font-family: $sans-serif;
97
              font-size: 0.8em;
98
              font-weight: 700;
99 100
              height: 48px;
              letter-spacing: 0px;
101
              margin-bottom: 0px;
102
              padding-top: 0px;
103 104
              text-shadow: 0 1px rgba(255,255,255, 0.6);
              text-overflow: ellipsis;
105 106 107 108 109 110 111
              text-transform: none;
              vertical-align: middle;

              .course-number {
                font-weight: 700;
                text-transform: none;
              }
112 113
            }
          }
114

115 116 117 118
          .info-link {
            border-left: 1px solid rgba(150,150,150, 0.5);
            @include box-sizing(border-box);
            color: $base-font-color;
119
            display: inline-block;
120
            font: bold 1.6em/1.2em $sans-serif;
121 122 123 124 125 126 127 128 129
            height: 100%;
            opacity: 0.6;
            padding-top: 10px;
            position: absolute;
            right: 0px;
            text-align: center;
            text-shadow: 0 1px rgba(255,255,255, 0.6);
            top: 0px;
            width: 60px;
130
            vertical-align: middle;
131
          }
132 133

        }
134
      // }
135

136
      .info {
137
        background: rgb(255,255,255);
138
        height: 220px + 130px;
139
        left: 0px;
140 141 142 143
        position: absolute;
        top: 0px;
        @include transition(all, 0.15s, linear);
        width: 100%;
144
        overflow: hidden;
145

146
        .cover-image {
147
          height: 200px;
148 149
          overflow: hidden;
          width: 100%;
150

151 152
          img {
            display: block;
153 154
            min-height: 100%;
            width: 100%;
155 156 157
          }
        }

158 159
        .desc {
          @include box-sizing(border-box);
160
          height: 120px;
161
          overflow: hidden;
162
          padding: 10px 10px 12px 10px;
163
          position: relative;
164
          width: 100%;
165

166 167 168 169 170 171 172 173 174
          p {
            height: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }

        .bottom {
          @include box-sizing(border-box);
175
          padding: 0px 10px 10px 10px;
176 177
          width: 100%;

178 179
          .university {
            border-right: 1px solid rgb(200,200,200);
180 181
            color: $lighter-base-font-color;
            letter-spacing: 1px;
182 183
            margin-right: 10px;
            padding-right: 10px;
184

185 186
            &:hover {
              color: $blue;
187 188
            }
          }
189 190 191 192 193

          .start-date  {
            color: $lighter-base-font-color;
            letter-spacing: 1px;
          }
194 195 196
        }
      }

197 198
      &:hover {
        background: rgb(245,245,245);
199 200
        border-color: rgb(170,170,170);
        @include box-shadow(0 1px 16px 0 rgba($blue, 0.4));
201

202
        .info {
203
          top: -150px;
204
        }
205

206 207
        .meta-info {
          opacity: 0;
208 209 210 211
        }
      }
    }
  }
212 213 214 215 216 217 218 219 220 221 222

  .university-courses {
    .course {
      width: flex-grid(4);
      margin-right: flex-gutter();
      float: left;
      &:nth-child(3n+3) {
        margin-right: 0;
      }
    }
  }
223
}