openaustralia/planningalerts

View on GitHub
app/assets/stylesheets/standard/partials/special_forms/_comment_form.scss

Summary

Maintainability
Test Coverage
.formtastic#new_comment, .formtastic#new_report {
  @include float-form(100%, 100%, 100%, 0, "buttons-left", left, "select-auto");
  margin-top: 0;

  label {
    margin: .75em 0 .25em;
    padding: 0;
    font-size: 1em;
  }

  textarea {
    padding: 0.5em;
  }

  textarea, input {
    font-family: $blueprint-font-family;
    font-size: 100%;
  }

  .inline-hints,
  .inline-errors {
    margin: 0;
  }

  .actions {
    padding: 0;
    // Formtastic overrides
    width: 100%;

    li {
      text-align: left !important;
    }
  }

  [aria-hidden="true"] {
    display: none;
  }

  #comment_text_input label {
    display: none;
  }
}

#comment-base-inputgroup {
  h4 {
    margin: 0;
  }

  label p {
    margin: .5em 0 !important;
  }
}

#comment-receiver-inputgroup {
  margin-top: 1em !important;

  legend {
    display: block;
    margin-bottom: 1em !important;
    font-weight: 500;
  }

  // Nasty formtastic overrides
  .receiver-select-radio {
    width: auto !important;
    float: left !important;
    clear: left !important;
  }
}

.receiver-type-option {
  + label {
    margin-top: 0 !important;
    padding: 0 0 .5em .5em !important;
    width: 80% !important;
  }
}