_modal.scss 6.26 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
#lean_overlay {
    background: transparent;
    @include background-image(radial-gradient(50% 30%, circle cover, rgba(0,0,0, 0.3), rgba(0,0,0, 0.8)));
    display: none;
    height:100%;
    left: 0px;
    position: fixed;
    top: 0px;
    width:100%;
    z-index:100;
Galen Frechette committed
11 12 13 14 15
}

.modal {
  background: rgba(0,0,0, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.9);
16
  border-radius: 0px;
17
  box-shadow: 0 15px 80px 15px rgba(0,0,0, 0.5);
Galen Frechette committed
18 19
  color: #fff;
  display: none;
20
  left: 50%;
Galen Frechette committed
21
  padding: 8px;
22
  position: absolute;
23
  width: grid-width(5);
24
  z-index: 12;
Galen Frechette committed
25

26 27
  &.video-modal {
    left: 50%;
28 29
    padding: 10px;
    width: 582px;
30 31

    .inner-wrapper {
32
      background: #000;
33
      box-shadow: none;
34
      height: 315px;
35
      padding: 10px;
36
      width: 560px;
37 38 39
    }
  }

40 41
  &.home-page-video-modal {
    left: 50%;
42 43
    padding: 10px;
    width: 662px;
44 45

    .inner-wrapper {
46
      background: #000;
47
      box-shadow: none;
48
      height: 360px;
49
      padding: 10px;
50 51 52 53
      width: 640px;
    }
  }

Galen Frechette committed
54
  .inner-wrapper {
55
    background: $modal-bg-color;
56
    border-radius: 0px;
Galen Frechette committed
57
    border: 1px solid rgba(0, 0, 0, 0.9);
58
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
Galen Frechette committed
59
    overflow: hidden;
60 61
    padding-left: 10px;
    padding-right: 10px;
62
    padding-bottom: 30px;
Galen Frechette committed
63
    position: relative;
64
    z-index: 2;
Galen Frechette committed
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

    header {
      margin-bottom: 30px;
      overflow: hidden;
      padding: 28px 20px 0px;
      position: relative;
      z-index: 2;

      &::before {
        @include background-image(radial-gradient(50% 50%, circle closest-side, rgba(255,255,255, 0.8) 0%, rgba(255,255,255, 0) 100%));
        content: "";
        display: block;
        height: 400px;
        left: 0px;
        margin: 0 auto;
        position: absolute;
        top: -140px;
        width: 100%;
        z-index: 1;
      }

      hr {
        @extend .faded-hr-divider-light;
        border: none;
        margin: 0px;
        position: relative;
        z-index: 2;

        &::after {
          @extend .faded-hr-divider;
          bottom: 0px;
          content: "";
          display: block;
          position: absolute;
          top: -1px;
        }
      }

103
      h2 {
Galen Frechette committed
104
        position: relative;
Galen Frechette committed
105 106 107 108 109 110
        text-align: center;
        text-shadow: 0 1px rgba(255,255,255, 0.4);
        z-index: 2;
      }
    }

111
    .modal-form-error {
112
      background: $error-red;
113 114 115 116 117 118
      border: 1px solid rgb(202, 17, 17);
      color: rgb(143, 14, 14);
      display: none;
      margin-bottom: 20px;
      padding: 12px;
    }
119

120
    .notice {
Matthew Mongeau committed
121 122 123 124 125 126 127 128
      background: $yellow;
      border: 1px solid darken($yellow, 60%);
      color: darken($yellow, 60%);
      display: none;
      margin-bottom: 20px;
      padding: 12px;
    }

129
    .activation-message, .message {
130
      padding: 0 40px 10px;
131 132 133 134

      p {
        margin-bottom: 10px;
      }
135
    }
136

Galen Frechette committed
137 138
    form {
      margin-bottom: 12px;
139
      padding: 0px 40px;
Galen Frechette committed
140 141 142
      position: relative;
      z-index: 2;

143 144 145
      .input-group {
        @include clearfix;
        border-bottom: 1px solid rgb(210,210,210);
146
        box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6);
147 148 149 150
        margin-bottom: 30px;
        padding-bottom: 10px;
      }

Galen Frechette committed
151
      label {
152
        color: $text-color;
Kyle Fiedler committed
153 154

        &.field-error {
155
          display: block;
Kyle Fiedler committed
156 157
          color: #8F0E0E;

158
          + input, + textarea {
Kyle Fiedler committed
159 160 161 162
            border: 1px solid #CA1111;
            color: #8F0E0E;
          }
        }
Galen Frechette committed
163 164 165 166 167 168
      }

      input[type="checkbox"] {
        margin-right: 5px;
      }

169 170 171 172 173 174 175 176
      textarea {
        background: rgb(255,255,255);
        display: block;
        height: 45px;
        margin-bottom: 20px;
        width: 100%;
      }

Galen Frechette committed
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
      input[type="email"],
      input[type="text"],
      input[type="password"] {
        background: rgb(255,255,255);
        display: block;
        height: 45px;
        margin-bottom: 20px;
        width: 100%;
      }

      label.remember-me,
      label.terms-of-service,
      label.honor-code {
        background: rgb(233,233,233);
        border: 1px solid rgb(200,200,200);
192
        border-radius: 3px;
193
        box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6);
Galen Frechette committed
194 195 196 197 198 199 200 201
        display: block;
        margin-bottom: 20px;
        padding: 8px 10px;

        &:hover {
          background: rgb(230,230,230);
        }

Kyle Fiedler committed
202 203 204 205
        &.field-error {
          border: 1px solid #CA1111;
        }

Galen Frechette committed
206
        a {
207 208
          font-family: $serif;
          font-style: italic;
Galen Frechette committed
209 210 211
        }
      }

212 213
      .citizenship, .gender, .date-of-birth {
        margin-bottom: 20px;
214 215
        float: left;
        width: flex-grid(4);
216 217 218 219 220 221 222

        label {
          display: block;
        }

        select {
          width: 100%;
223 224
          @include box-sizing(border-box);
          display: block;
225 226 227 228 229 230 231
        }
      }

      .citizenship, .gender {
        margin-right: flex-gutter();
      }

Galen Frechette committed
232
      .submit {
233
        padding-top: 10px;
Galen Frechette committed
234 235 236 237 238

        input[type="submit"] {
          display: block;
          height: 45px;
          margin: 0 auto;
239
          width: 100%;
Galen Frechette committed
240 241 242 243 244 245 246 247 248 249
        }
      }
    }

    .login-extra {
      position: relative;
      z-index: 2;

      p {
        color: $lighter-base-font-color;
250
        font-style: italic;
Galen Frechette committed
251 252
        text-align: center;

253 254
        span {
          color: $lighter-base-font-color;
255 256
          font-family: $serif;
          font-style: italic;
257 258
        }

Galen Frechette committed
259 260
        a {
          color: $lighter-base-font-color;
261 262
          font-family: $serif;
          font-style: italic;
Galen Frechette committed
263 264 265 266 267 268 269 270 271 272 273 274 275 276
          text-decoration: underline;

          &:hover {
            color: $base-font-color;
          }
        }

        span + a {
          margin-left: 15px;
        }
      }
    }

    .close-modal {
277
      border-radius: 2px;
Galen Frechette committed
278 279 280 281 282 283 284
      cursor: pointer;
      @include inline-block;
      padding: 10px;
      position: absolute;
      right: 2px;
      top: 0px;
      z-index: 3;
285 286 287 288 289
      color: $lighter-base-font-color;
      font: normal 1.2rem/1.2rem $sans-serif;
      text-align: center;
      text-shadow: 0 1px rgba(255,255,255, 0.8);
      @include transition(all 0.15s ease-out 0s);
Galen Frechette committed
290 291

      &:hover {
292 293
        color: $base-font-color;
        text-decoration: none;
Galen Frechette committed
294 295 296
      }
    }
  }
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316

  #help_wrapper {
    padding: 0 ($baseline*1.5) ($baseline*1.5) ($baseline*1.5);

    header {
      margin-bottom: $baseline;
      padding-right: 0;
      padding-left: 0;
    }


  }

  .tip {
    font-size: 12px;
    display: block;
    color: $dark-gray;
  }


Galen Frechette committed
317
}
318 319 320 321

.leanModal_box {
  @extend .modal;
}
322