Sha256: c2de5372af0ada97da1cc3bcd8ea02b265ad3d10e0be08d49054732e6285f221

Contents?: true

Size: 1.56 KB

Versions: 12

Compression:

Stored size: 1.56 KB

Contents

//
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

@import "@material/rtl/mixins";
@import "@material/theme/mixins";
@import "@material/typography/mixins";

$mdc-form-field-item-spacing: 4px;

/* stylelint-disable selector-no-type */
.mdc-form-field {
  @include mdc-typography(body1);
  @include mdc-theme-prop(color, text-primary-on-light);

  display: inline-flex;
  align-items: center;
  vertical-align: middle;

  @include mdc-theme-dark {
    @include mdc-theme-prop(color, text-primary-on-dark);
  }

  > label {
    order: 0;
    margin-right: auto;
    padding-left: $mdc-form-field-item-spacing;
  }

  @include mdc-rtl {
    > label {
      margin-left: auto;
      padding-right: $mdc-form-field-item-spacing;
    }
  }
}

.mdc-form-field--align-end {
  > label {
    order: -1;
    margin-left: auto;
    padding-right: $mdc-form-field-item-spacing;
  }

  @include mdc-rtl {
    > label {
      margin-right: auto;
      padding-left: $mdc-form-field-item-spacing;
    }
  }
}
/* stylelint-enable selector-no-type */

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
material_components_web-sass-0.15.0 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.14.0.1 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.14.0 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.13.0 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.12.1 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.12.0 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.11.1 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.11.0 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.10.0.1 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.10.0 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.9.1 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss
material_components_web-sass-0.9.0 vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss