hardpixel/action-admin

View on GitHub
app/assets/stylesheets/action_admin/action-admin.scss

Summary

Maintainability
Test Coverage
@import "foundation-components";
@import "bedrock-components";


// Panels

.panel {

  .input:last-child:not(.error) {

    input, textarea, select, .select2, .switch {
      margin-bottom: 0;
    }
  }

  .input.error:last-child {

    .form-error {
      margin-bottom: 0;
    }
  }

  .place-map:last-child {
    margin-bottom: 0;
  }
}


// Invalid Inputs

.input.error {

  input, textarea, select {
    @include form-input-error;
  }

  &.attachment {
    @include form-input-error;
    border: 1px solid;
    color: $alert-color;
    position: relative;
    padding-bottom: $global-padding * 2;

    .no-content {
      color: $alert-color;
    }

    .form-error {
      text-align: center;
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background: $alert-color;
      color: $white;
      margin: 0;
      padding: ($global-padding / 4) ($global-padding / 2);
    }
  }

}

.input-group-list {

  .input.error {

    .form-error {
      margin: 0;
      background: $alert-color;
      color: $white;
      padding: ($global-padding / 4) ($global-padding / 2);
    }
  }
}


// Table elements

table {

  .avatar:not(:only-child) {
    margin-right: 5px;
  }

  .thumbnail {
    margin: 0;
    max-width: 2.5rem;
  }

  .label {
    margin-right: 5px;

    a {
      color: inherit;
    }
  }

  .block-label {

    .label {
      width: 100%;
      margin: 0;
    }
  }
}