Sha256: 164372531ec0690da476c457822156bbc1ad4c2e9fc7caae602028b64da2a0ed

Contents?: true

Size: 1.97 KB

Versions: 2

Compression:

Stored size: 1.97 KB

Contents

// stylelint-disable declaration-no-important

// Alignment

.text-justify {
  text-align: justify !important;
}

.text-nowrap {
  white-space: nowrap !important;
}

.text-truncate {
  @include text-truncate;
}

@each $breakpoint in map-keys($grid-breakpoints) {
  @include media-breakpoint-up($breakpoint) {
    $infix: breakpoint-infix($breakpoint);

    .text#{$infix}-center {
      text-align: center !important;
    }

    .text#{$infix}-left {
      text-align: left !important;
    }

    .text#{$infix}-right {
      text-align: right !important;
    }
  }
}

// Color

@include text-emphasis-variant('.text-black', $black);
@include text-emphasis-variant('.text-black-primary', $black-primary);
@include text-emphasis-variant('.text-black-secondary', $black-secondary);
@include text-emphasis-variant('.text-black-hint', $black-hint);
@include text-emphasis-variant('.text-black-divider', $black-divider);
@include text-emphasis-variant('.text-white', $white);
@include text-emphasis-variant('.text-white-primary', $white-primary);
@include text-emphasis-variant('.text-white-secondary', $white-secondary);
@include text-emphasis-variant('.text-white-hint', $white-hint);
@include text-emphasis-variant('.text-white-divider', $white-divider);
@include text-emphasis-variant('.text-muted', $text-muted);

@each $color, $values in $theme-colors {
  @include text-emphasis-variant('.text-#{$color}', map-get(theme-color($color), color), map-get(theme-color($color), darker));
}

// Italcs and weight

.font-italic {
  font-style: italic;
}

.font-weight-bold,
.font-weight-medium {
  font-weight: $font-weight-medium;
}

.font-weight-light {
  font-weight: $font-weight-light;
}

.font-weight-normal,
.font-weight-regular {
  font-weight: $font-weight-regular;
}

// Misc

.text-hide {
  @include text-hide;
}

// Transformation

.text-capitalize {
  text-transform: capitalize !important;
}

.text-lowercase {
  text-transform: lowercase !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
material-sass-4.0.0.beta3 assets/stylesheets/material/utilities/_text.scss
material-sass-4.0.0.beta2 assets/stylesheets/material/utilities/_text.scss