Sha256: f5426b81d6f35679138cee9190dfbc4259b8ea4e4645cecb1a4eaae2457871d1
Contents?: true
Size: 1.95 KB
Versions: 2
Compression:
Stored size: 1.95 KB
Contents
// @page Pattern Library/Utilities // @name General // // @description // These utility classes allow for some basic CSS properties to be applied across elements. The classname applies to the property that is getting set, with the value as the modifier. // // @state .us-clearfix - Clear floats // @state .us-float--left - Float element to the left // @state .us-float--right - Float element to the right // @state .us-align--left - Align content of the element to the left // @state .us-align--center - Align content of the element to the center // @state .us-align--right - Align content of the element to the right // @state .us-block - Display element as a block // @state .us-color--cyan - Change content color to blue, navy, typecyan, cyan, red, green // @state .us-list--reset - Reset list style // // @markup // <div class='{$modifiers}'> // <p>content</p> // </div> // Clear floats .us-clearfix { @extend %clearfix; } // Reset list styling .us-list--reset { @extend %reset-box-model; list-style: none; } // Blocked element .us-blocked { display: block; } // Margins .us-trailered { margin-bottom: 1em; } .us-trailered--large { margin-bottom: 1.5em; } .us-trailered--small { margin-bottom: .5em; } // Floats .us-float--left { @extend %float-left; } .us-float--right { @extend %float-right; } .us-align--left { text-align: left; } .us-align--right { text-align: right; } .us-align--center { text-align: center; } // Colors $colors: ( "blue" $c-blue, "navy" $c-navy, "typecyan" $c-typecyan, "cyan" $c-cyan, "red" $c-red, "green" $c-green, "typegrey" $c-typegrey, "typegrey-2" $c-typegrey-2, "inputgrey" $c-inputgrey, "bordergrey" $c-bordergrey, "keylinegrey" $c-keylinegrey ); @each $color in $colors { .us-color--#{nth($color, 1)} { color: nth($color, 2); } } // Fonts .us-font--normal { @include normal-font; } .us-font--heading-p { @include heading-font; } .us-font--heading-s { @include heading-font; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ustyle-1.3.12 | vendor/assets/stylesheets/ustyle/utilities/_general.scss |
ustyle-1.3.6 | vendor/assets/stylesheets/ustyle/utilities/_general.scss |