_modal.scss 7.36 KB
Newer Older
1 2
#lean_overlay {
    background: transparent;
3
    @include background-image(radial-gradient(circle at 50% 30%, $shadow-d1, $shadow-d2));
4 5
    display: none;
    height:100%;
6
    left: 0;
7
    position: fixed;
8
    top: 0;
9
    width:100%;
10
    z-index: 100;
Galen Frechette committed
11 12 13
}

.modal {
14
  @extend %ui-depth1;
Galen Frechette committed
15
  display: none;
Chris Rodriguez committed
16
  position: absolute;
17
  left: 50%;
Galen Frechette committed
18
  padding: 8px;
19
  width: grid-width(5);
Chris Rodriguez committed
20 21 22 23
  border-radius: 3px;
  box-shadow: 0 0px 5px 0 $shadow-d1;
  background: $gray-d2;
  color: $base-font-color;
Galen Frechette committed
24

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

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

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

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

Galen Frechette committed
53
  .inner-wrapper {
54
    @extend %ui-depth1;
55
    background: $modal-bg-color;
56
    border-radius: 0;
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 62
    padding-left: ($baseline/2);
    padding-right: ($baseline/2);
    padding-bottom: ($baseline/2);
Galen Frechette committed
63 64
    position: relative;

Chris Rodriguez committed
65 66 67 68 69
    p {
      font-size: .9em;
      line-height: 1.4;
    }

Galen Frechette committed
70
    header {
71 72
      @extend %ui-depth1;
      margin-bottom: ($baseline*1.5);
Galen Frechette committed
73
      overflow: hidden;
74
      padding: 28px $baseline 0;
Galen Frechette committed
75 76 77 78 79 80 81
      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%));
        content: "";
        display: block;
        height: 400px;
82
        left: 0;
Galen Frechette committed
83 84 85 86 87 88 89 90
        margin: 0 auto;
        position: absolute;
        top: -140px;
        width: 100%;
        z-index: 1;
      }

      hr {
91
        @extend %faded-hr-divider-light;
Galen Frechette committed
92
        border: none;
93
        margin: 0;
Galen Frechette committed
94 95 96 97
        position: relative;
        z-index: 2;

        &::after {
98
          @extend %faded-hr-divider;
99
          bottom: 0;
Galen Frechette committed
100 101 102 103 104 105 106
          content: "";
          display: block;
          position: absolute;
          top: -1px;
        }
      }

107
      h2 {
Galen Frechette committed
108
        position: relative;
Galen Frechette committed
109 110 111 112 113 114
        text-align: center;
        text-shadow: 0 1px rgba(255,255,255, 0.4);
        z-index: 2;
      }
    }

115
    .modal-form-error {
116 117
      background: tint($red,90%);
      border: 1px solid rgb(143, 14, 14);
118 119
      color: rgb(143, 14, 14);
      display: none;
120
      margin-bottom: $baseline;
121 122
      padding: 12px;
    }
123

124
    .notice {
Matthew Mongeau committed
125 126 127 128
      background: $yellow;
      border: 1px solid darken($yellow, 60%);
      color: darken($yellow, 60%);
      display: none;
129
      margin-bottom: $baseline;
Matthew Mongeau committed
130 131 132
      padding: 12px;
    }

133
    .activation-message, .message {
134
      padding: 0 ($baseline*2) ($baseline/2);
135 136

      p {
137
        margin-bottom: ($baseline/2);
138
      }
139
    }
140

Galen Frechette committed
141 142
    form {
      margin-bottom: 12px;
143
      padding: 0 ($baseline*2) $baseline;
Galen Frechette committed
144 145 146
      position: relative;
      z-index: 2;

147
      .input-group {
148
        @include clearfix();
149
        border-bottom: 1px solid rgb(210,210,210);
150
        box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6);
151 152
        margin-bottom: ($baseline*1.5);
        padding-bottom: ($baseline/2);
153 154
      }

Galen Frechette committed
155
      label {
156
        color: $text-color;
Kyle Fiedler committed
157 158

        &.field-error {
159
          display: block;
Kyle Fiedler committed
160 161
          color: #8F0E0E;

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

      input[type="checkbox"] {
170
        margin-right: ($baseline/4);
Galen Frechette committed
171 172
      }

173 174 175 176
      textarea {
        background: rgb(255,255,255);
        display: block;
        height: 45px;
177
        margin-bottom: $baseline;
178 179 180
        width: 100%;
      }

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

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

202
        &:hover, &:focus {
Galen Frechette committed
203 204 205
          background: rgb(230,230,230);
        }

Kyle Fiedler committed
206 207 208 209
        &.field-error {
          border: 1px solid #CA1111;
        }

Galen Frechette committed
210
        a {
211 212
          font-family: $serif;
          font-style: italic;
Galen Frechette committed
213 214 215
        }
      }

216
      .citizenship, .gender, .date-of-birth {
217
        margin-bottom: $baseline;
218 219
        float: left;
        width: flex-grid(4);
220 221 222 223 224 225 226

        label {
          display: block;
        }

        select {
          width: 100%;
227 228
          @include box-sizing(border-box);
          display: block;
229 230 231 232 233 234 235
        }
      }

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

Galen Frechette committed
236
      .submit {
237
        padding-top: ($baseline/2);
Galen Frechette committed
238 239 240

        input[type="submit"] {
          display: block;
241
          height: auto;
Galen Frechette committed
242
          margin: 0 auto;
243
          width: 100%;
244
          white-space: normal;
Galen Frechette committed
245 246 247 248 249 250 251 252 253 254
        }
      }
    }

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

      p {
        color: $lighter-base-font-color;
255
        font-style: italic;
Galen Frechette committed
256 257
        text-align: center;

258 259
        span {
          color: $lighter-base-font-color;
260 261
          font-family: $serif;
          font-style: italic;
262 263
        }

Galen Frechette committed
264 265
        a {
          color: $lighter-base-font-color;
266 267
          font-family: $serif;
          font-style: italic;
Galen Frechette committed
268 269
          text-decoration: underline;

270
          &:hover, &:focus {
Galen Frechette committed
271 272 273 274 275
            color: $base-font-color;
          }
        }

        span + a {
276
          margin-left: ($baseline*0.75);
Galen Frechette committed
277 278 279 280 281
        }
      }
    }

    .close-modal {
282
      border-radius: 2px;
Galen Frechette committed
283
      cursor: pointer;
284
      display: inline-block;
Galen Frechette committed
285 286 287 288
      padding: 10px;
      position: absolute;
      right: 2px;
      top: 0px;
Kyle Boots committed
289
      z-index: 100;
290 291 292 293 294
      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
295

296
      &:hover, &:focus {
297 298
        color: $base-font-color;
        text-decoration: none;
Galen Frechette committed
299 300 301
      }
    }
  }
302

303
  #help_wrapper, #feedback_form_wrapper, .discussion-alert-wrapper {
304 305 306 307 308 309 310 311
    padding: 0 ($baseline*1.5) ($baseline*1.5) ($baseline*1.5);

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

312 313 314 315 316 317
    .note {
      @include font-size(12);
      @include line-height(12);
      margin-top: ($baseline/2);
      color: $lighter-base-font-color;
    }
318 319
  }

320 321 322 323 324
  .discussion-alert-wrapper button {
    display: block;
    margin: 0 auto;
  }

325 326 327 328 329 330 331
  .tip {
    font-size: 12px;
    display: block;
    color: $dark-gray;
  }


Galen Frechette committed
332
}
333 334 335 336

.leanModal_box {
  @extend .modal;
}
337

338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354
// --------------------

// 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;
  }
355 356 357 358 359 360 361 362 363 364 365 366 367 368 369

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

    .list-actions-item {
      @extend %t-copy-sub1;
      color: $base-font-color;
      text-align: center;
    }

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