Sha256: 7b7cc8febc66d25a1c9adb80df112225a3c43f3eb9f4b2715bc7a304c2d826f5
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
.floating-label { color: $black-hint; cursor: text; font-size: $font-size; line-height: 1; margin: 0; padding: 0; position: absolute; top: (($input-height - $font-size) / 2); left: 0; @include transition(color 0.3s $timing, font-size 0.3s $timing, top 0.3s $timing); .form-group-label [class*="col-"] & { // position left: $grid-gutter; } .form-group-label.control-focus &, .form-group-label.control-highlight & { color: $black-sec; font-size: ($input-height - $line-height); // position top: (($input-height - $line-height) * -1); } .form-group-label.control-focus & { color: $link-color; } } .form-group-label { margin-top: ($line-height * 1.5); margin-bottom: ($line-height * 1.5); position: relative; .form-control { position: relative; z-index: 1; @include placeholder(transparent); } } // colour @each $color in $palette-list { $i: index($palette-list, $color); .form-group-label.form-group-#{$color} .floating-label { color: nth($palette-color, $i); } } .form-icon-label { cursor: pointer; display: block; padding: (($input-height - $line-height) / 2) 0; .form-group-icon.control-focus & { color: $link-color; } } // colour @each $color in $palette-list { $i: index($palette-list, $color); .form-group-icon.form-group-#{$color} .form-icon-label { color: nth($palette-color, $i); } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
material-sass-0.0.3 | app/assets/stylesheets/material/element/_form-adv-label.scss |
material-sass-0.0.2 | app/assets/stylesheets/material/element/_form-adv-label.scss |