Sha256: 94a89a82ee94720c0e761f246825db0ed881ea92a5f88dfdff770b7bce3220b0
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
// Container clear fix for floats @mixin clear-fix { &:after { content: ""; display: block; height: 0; line-height: 0; clear: both; visibility: hidden; } } // Reset an inline-block element to defaults @mixin reset-inline-block { display: inline-block; border: 0; margin: 0; padding: 0; position: relative; text-decoration: none; vertical-align: middle; } // Remove the top and bottom margin from content elements // Allows for perfect spacing within content blocks @mixin content-spacing { p, ul, ol, hr, blockquote { &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } } //-------------------- Sizes --------------------// @mixin size-small { font-size: $small-size; padding: $small-padding; } @mixin size-medium { font-size: $medium-size; padding: $medium-padding; } @mixin size-large { font-size: $large-size; padding: $large-padding; } //-------------------- States --------------------// // Contains active styles (on self or inherited from parent) @mixin active-state { .is-active > &, .is-active > li > &, &.is-active, &.is-active:hover { @content; } } // Contains disabled styles (on self or inherited from parent) @mixin disabled-state { .is-disabled > &, .is-disabled > li > &, &.is-disabled, &.is-disabled:hover, &[disabled], &[disabled]:hover { @content; } } //-------------------- Helpers --------------------// @function black($opacity){ @return rgba(0, 0, 0, $opacity); } @function white($opacity){ @return rgba(255, 255, 255, $opacity); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
titon-toolkit-1.0.0.rc1 | scss/toolkit/mixins/_layout.scss |