_modal.scss 7.36 KB
Newer Older
1
#lean_overlay {
2 3 4 5 6 7 8 9 10 11 12
  background: transparent;

  @include background-image(radial-gradient(circle at 50% 30%, $shadow-d1, $shadow-d2));

  display: none;
  height:100%;
  left: 0;
  position: fixed;
  top: 0;
  width:100%;
  z-index: 100;
Galen Frechette committed
13 14 15
}

.modal {
16
  @extend %ui-depth1;
17

Galen Frechette committed
18
  display: none;
Chris Rodriguez committed
19
  position: absolute;
20
  left: 50%;
Galen Frechette committed
21
  padding: 8px;
22
  width: grid-width(5);
Chris Rodriguez committed
23
  border-radius: 3px;
24
  box-shadow: 0 0 5px 0 $shadow-d1;
Chris Rodriguez committed
25 26
  background: $gray-d2;
  color: $base-font-color;
Galen Frechette committed
27

28 29
  &.video-modal {
    left: 50%;
30
    padding: ($baseline/2);
31
    width: 582px;
32 33

    .inner-wrapper {
34
      background: $black;
35
      box-shadow: none;
36
      height: 315px;
37
      padding: ($baseline/2);
38
      width: 560px;
39 40 41
    }
  }

42 43
  &.home-page-video-modal {
    left: 50%;
44
    padding: ($baseline/2);
45
    width: 662px;
46 47

    .inner-wrapper {
48
      background: $black;
49
      box-shadow: none;
50
      height: 360px;
51
      padding: ($baseline/2);
52 53 54 55
      width: 640px;
    }
  }

Galen Frechette committed
56
  .inner-wrapper {
57
    @extend %ui-depth1;
58

59
    background: $modal-bg-color;
60
    border-radius: 0;
Galen Frechette committed
61
    border: 1px solid rgba(0, 0, 0, 0.9);
62
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
Galen Frechette committed
63
    overflow: hidden;
64 65 66
    padding-left: ($baseline/2);
    padding-right: ($baseline/2);
    padding-bottom: ($baseline/2);
Galen Frechette committed
67 68
    position: relative;

Chris Rodriguez committed
69 70 71 72 73
    p {
      font-size: .9em;
      line-height: 1.4;
    }

Galen Frechette committed
74
    header {
75
      @extend %ui-depth1;
76

77
      margin-bottom: ($baseline*1.5);
Galen Frechette committed
78
      overflow: hidden;
79
      padding: 28px $baseline 0;
Galen Frechette committed
80 81 82 83
      position: relative;

      &::before {
        @include background-image(radial-gradient(50% 50%, circle closest-side, rgba(255,255,255, 0.8) 0%, rgba(255,255,255, 0) 100%));
84

Galen Frechette committed
85 86 87
        content: "";
        display: block;
        height: 400px;
88
        left: 0;
Galen Frechette committed
89 90 91 92 93 94 95 96
        margin: 0 auto;
        position: absolute;
        top: -140px;
        width: 100%;
        z-index: 1;
      }

      hr {
97
        @extend %faded-hr-divider-light;
98

Galen Frechette committed
99
        border: none;
100
        margin: 0;
Galen Frechette committed
101 102 103 104
        position: relative;
        z-index: 2;

        &::after {
105
          @extend %faded-hr-divider;
106

107
          bottom: 0;
Galen Frechette committed
108 109 110 111 112 113 114
          content: "";
          display: block;
          position: absolute;
          top: -1px;
        }
      }

115
      h2 {
Galen Frechette committed
116
        position: relative;
Galen Frechette committed
117 118 119 120 121 122
        text-align: center;
        text-shadow: 0 1px rgba(255,255,255, 0.4);
        z-index: 2;
      }
    }

123
    .modal-form-error {
124 125
      background: tint($red,90%);
      border: 1px solid rgb(143, 14, 14);
126 127
      color: rgb(143, 14, 14);
      display: none;
128
      margin-bottom: $baseline;
129 130
      padding: 12px;
    }
131

132
    .notice {
Matthew Mongeau committed
133 134 135 136
      background: $yellow;
      border: 1px solid darken($yellow, 60%);
      color: darken($yellow, 60%);
      display: none;
137
      margin-bottom: $baseline;
Matthew Mongeau committed
138 139 140
      padding: 12px;
    }

141
    .activation-message, .message {
142
      padding: 0 ($baseline*2) ($baseline/2);
143 144

      p {
145
        margin-bottom: ($baseline/2);
146
      }
147
    }
148

Galen Frechette committed
149 150
    form {
      margin-bottom: 12px;
151
      padding: 0 ($baseline*2) $baseline;
Galen Frechette committed
152 153 154
      position: relative;
      z-index: 2;

155
      .input-group {
156
        @include clearfix();
157

158
        border-bottom: 1px solid rgb(210,210,210);
159
        box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6);
160 161
        margin-bottom: ($baseline*1.5);
        padding-bottom: ($baseline/2);
162 163
      }

Galen Frechette committed
164
      label {
165
        color: $text-color;
Kyle Fiedler committed
166 167

        &.field-error {
168
          display: block;
169
          color: #8f0e0e;
Kyle Fiedler committed
170

171
          + input, + textarea {
172 173
            border: 1px solid #ca1111;
            color: #8f0e0e;
Kyle Fiedler committed
174 175
          }
        }
Galen Frechette committed
176 177 178
      }

      input[type="checkbox"] {
179
        margin-right: ($baseline/4);
Galen Frechette committed
180 181
      }

182 183 184 185
      textarea {
        background: rgb(255,255,255);
        display: block;
        height: 45px;
186
        margin-bottom: $baseline;
187 188 189
        width: 100%;
      }

Galen Frechette committed
190 191 192 193 194 195
      input[type="email"],
      input[type="text"],
      input[type="password"] {
        background: rgb(255,255,255);
        display: block;
        height: 45px;
196
        margin-bottom: $baseline;
Galen Frechette committed
197 198 199 200 201 202 203 204
        width: 100%;
      }

      label.remember-me,
      label.terms-of-service,
      label.honor-code {
        background: rgb(233,233,233);
        border: 1px solid rgb(200,200,200);
205
        border-radius: 3px;
206
        box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6);
Galen Frechette committed
207
        display: block;
208 209
        margin-bottom: $baseline;
        padding: 8px ($baseline/2);
Galen Frechette committed
210

211
        &:hover, &:focus {
Galen Frechette committed
212 213 214
          background: rgb(230,230,230);
        }

Kyle Fiedler committed
215
        &.field-error {
216
          border: 1px solid #ca1111;
Kyle Fiedler committed
217 218
        }

Galen Frechette committed
219
        a {
220 221
          font-family: $serif;
          font-style: italic;
Galen Frechette committed
222 223 224
        }
      }

225
      .citizenship, .gender, .date-of-birth {
226
        margin-bottom: $baseline;
227 228
        float: left;
        width: flex-grid(4);
229 230 231 232 233 234 235

        label {
          display: block;
        }

        select {
          width: 100%;
236

237
          @include box-sizing(border-box);
238

239
          display: block;
240 241 242 243 244 245 246
        }
      }

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

Galen Frechette committed
247
      .submit {
248
        padding-top: ($baseline/2);
Galen Frechette committed
249 250 251

        input[type="submit"] {
          display: block;
252
          height: auto;
Galen Frechette committed
253
          margin: 0 auto;
254
          width: 100%;
255
          white-space: normal;
Galen Frechette committed
256 257 258 259 260 261 262 263 264 265
        }
      }
    }

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

      p {
        color: $lighter-base-font-color;
266
        font-style: italic;
Galen Frechette committed
267 268
        text-align: center;

269 270
        span {
          color: $lighter-base-font-color;
271 272
          font-family: $serif;
          font-style: italic;
273 274
        }

Galen Frechette committed
275 276
        a {
          color: $lighter-base-font-color;
277 278
          font-family: $serif;
          font-style: italic;
Galen Frechette committed
279 280
          text-decoration: underline;

281
          &:hover, &:focus {
Galen Frechette committed
282 283 284 285 286
            color: $base-font-color;
          }
        }

        span + a {
287
          margin-left: ($baseline*0.75);
Galen Frechette committed
288 289 290 291 292
        }
      }
    }

    .close-modal {
293
      border-radius: 2px;
Galen Frechette committed
294
      cursor: pointer;
295
      display: inline-block;
Galen Frechette committed
296 297 298
      padding: 10px;
      position: absolute;
      right: 2px;
299
      top: 0;
Kyle Boots committed
300
      z-index: 100;
301 302 303 304
      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);
305

306
      @include transition(all 0.15s ease-out 0s);
Galen Frechette committed
307

308
      &:hover, &:focus {
309 310
        color: $base-font-color;
        text-decoration: none;
Galen Frechette committed
311 312 313
      }
    }
  }
314

315
  #help_wrapper, #feedback_form_wrapper, .discussion-alert-wrapper {
316 317 318 319 320 321 322 323
    padding: 0 ($baseline*1.5) ($baseline*1.5) ($baseline*1.5);

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

324 325 326
    .note {
      @include font-size(12);
      @include line-height(12);
327

328 329 330
      margin-top: ($baseline/2);
      color: $lighter-base-font-color;
    }
331 332
  }

333 334 335 336 337
  .discussion-alert-wrapper button {
    display: block;
    margin: 0 auto;
  }

338 339 340 341 342 343 344
  .tip {
    font-size: 12px;
    display: block;
    color: $dark-gray;
  }


Galen Frechette committed
345
}
346 347 348 349

.leanModal_box {
  @extend .modal;
}
350

351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
// --------------------

// CASE: language settings
.modal-settings-language {

  // general reset
  .list-input, .list-actions {
    @extend %ui-no-list;
  }

  .settings-language-select .select {
    width: 100%;
  }

  .list-input {
    margin-bottom: $baseline;
  }
368 369 370 371 372 373

  .actions-supplemental {
    padding: 0 ($baseline*2) $baseline ($baseline*2);

    .list-actions-item {
      @extend %t-copy-sub1;
374

375 376 377 378 379 380 381 382 383
      color: $base-font-color;
      text-align: center;
    }

    .action {
      display: block;
      margin-top: ($baseline/4);
    }
  }
384 385
}