_forms.scss 1.55 KB
Newer Older
Matthew Mongeau committed
1
form {
2
  font-size: 1em;
3
}
Matthew Mongeau committed
4

5 6 7
label {
  color: $base-font-color;
  font: italic 300 1rem/1.6rem $serif;
8
  margin-bottom: ($baseline/4);
9 10
  text-shadow: 0 1px rgba(255,255,255, 0.4);
  -webkit-font-smoothing: antialiased;
11 12 13 14 15 16 17 18 19 20 21 22 23

  &.register-emails {
    font-family: $sans-serif;
    font-style: normal;
    font-size: 12px;
    line-height: 1.5em;
    font-weight: normal;
    width: calc( 100% - 25px );
    padding-top: 2px;
    position: relative;
    float: right;
    clear: both;
  }
24
}
Matthew Mongeau committed
25

26 27 28
textarea,
input[type="text"],
input[type="email"],
29 30
input[type="password"],
input[type="tel"] {
31 32
  background: $form-bg-color;
  border: 1px solid $border-color-2;
33
  border-radius: 3px;
34
  box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6), inset 0 0 3px 0 $shadow-l1;
35 36 37
  @include box-sizing(border-box);
  font: italic 300 1rem/1.6rem $serif;
  height: 35px;
38
  padding: ($baseline/4) 12px;
39 40
  vertical-align: top;
  -webkit-font-smoothing: antialiased;
Matthew Mongeau committed
41

42
  &:last-child {
43
    margin-right: 0;
Matthew Mongeau committed
44 45
  }

46
  &:focus {
47
    border-color: darken($button-archive-color, 50%);
48
    box-shadow: 0 0 6px 0 darken($button-archive-color, 50%), inset 0 0 4px 0 rgba(0,0,0, 0.15);
49
  }
50
}
51

52 53 54 55 56 57
textarea {
  height: 60px;
}

input[type="submit"],
input[type="button"],
58
button,.button {
59
  border-radius: 3px;
60
  @include button(shiny, $button-color);
61 62 63 64 65 66
  font: normal 1.2rem/1.6rem $sans-serif;
  letter-spacing: 1px;
  padding: 4px 20px;
  text-transform: uppercase;
  vertical-align: top;
  -webkit-font-smoothing: antialiased;
67 68 69 70 71 72

  &:disabled, &.is-disabled, &.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
  }
Matthew Mongeau committed
73
}