Sha256: 5253387f3368302fe9d32a455a3e04fdbdcc0a595b6cdebf47253a35c60350ee

Contents?: true

Size: 1.28 KB

Versions: 14

Compression:

Stored size: 1.28 KB

Contents

%form-control {
  border-color: rgba($gray-darker, .1);
  box-shadow: none;
  border-radius: $border-radius-base;
  background-clip: padding-box;

  &:hover,
  &:focus,
  &.focus,
  &:active,
  &.active {
    border: 1px solid rgba($brand-primary, .6);
    box-shadow: none;
  }
}

.form-control {
  @extend %form-control;
}

.has-error {
  .form-control {
    @extend %form-control;
    outline: 1px dashed $brand-danger;

    &:hover,
    &:focus,
    &.focus,
    &:active,
    &.active {
      @extend %form-control:focus;
      outline: 1px dashed $brand-danger;
    }
  }
}

.form-inline .control-label {
  margin-right: $padding-small;
}

// Chosen select

.chosen-container {

  .chosen-single {
    @extend %form-control;
    cursor: pointer;
  }

  &.chosen-container-active .chosen-single {
    @extend %form-control:focus;
  }

  .chosen-drop {
    border-radius: 0 0 $border-radius-base $border-radius-base;
    border-top: 0;
    background-clip: padding-box;
    box-shadow: $shadow-base;
    margin-top: -2px;
  }

  &.chosen-container-single .chosen-search input {
    border-radius: $border-radius-base;
    box-shadow: none;
    outline: none;
  }

  &.chosen-container-single .chosen-results .highlighted {
    background-color: $brand-primary;
    border-radius: $border-radius-base;
  }
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ad2games-ui_components-2.1.0 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.14 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.12 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.11 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.10 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.9 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.8 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.7 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.5 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.4 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.3 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.2 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.1 app/assets/stylesheets/default_theme/form.scss
ad2games-ui_components-2.0.0 app/assets/stylesheets/default_theme/form.scss