Sha256: bcf3c3be736beda36f63d02a0fd8995826e4d4c536eccf700bf0912b3466f2a9

Contents?: true

Size: 1.4 KB

Versions: 8

Compression:

Stored size: 1.4 KB

Contents

// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group forms
////

/// Color of labels prefixed to an input.
/// @type Color
$input-prefix-color: $black !default;

/// Background color of labels prefixed to an input.
/// @type Color
$input-prefix-background: $light-gray !default;

/// Border around labels prefixed to an input.
/// @type Border
$input-prefix-border: 1px solid $medium-gray !default;

/// Left/right padding of an pre/postfixed input label
$input-prefix-padding: 1rem !default;

@mixin foundation-form-prepostfix {
  .input-group {
    display: table;
    width: 100%;
    margin-bottom: $form-spacing;
  }

  %input-group-child {
    display: table-cell;
    margin: 0;
    vertical-align: middle;
  }

  .input-group-label {
    @extend %input-group-child;
    text-align: center;
    width: 1%;
    height: 100%;
    padding: 0 $input-prefix-padding;
    background: $input-prefix-background;
    color: $input-prefix-color;
    border: $input-prefix-border;

    @if hasvalue($input-prefix-border) {
      &:first-child {
        border-#{$global-right}: 0;
      }

      &:last-child {
        border-#{$global-left}: 0;
      }
    }
  }

  .input-group-field {
    @extend %input-group-child;
  }

  .input-group-button {
    @extend %input-group-child;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
    width: 1%;
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotivecms_wagon-2.4.0.rc2 generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss
locomotivecms_wagon-2.4.0.rc1 generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss
locomotivecms_wagon-2.3.0 generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss
locomotivecms_wagon-2.3.0.rc1 generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss
locomotivecms_wagon-2.2.0 generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss
locomotivecms_wagon-2.2.0.rc3 generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss
locomotivecms_wagon-2.2.0.rc2 generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss
locomotivecms_wagon-2.2.0.rc1 generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss