Sha256: d744c4eb2be1d1478b862c4d7f4afc13f6913e176a9d508230cb9a9ea076c501

Contents?: true

Size: 1.8 KB

Versions: 10

Compression:

Stored size: 1.8 KB

Contents

/**
 * @copyright   2010-2015, The Titon Project
 * @license     http://opensource.org/licenses/BSD-3-Clause
 * @link        http://titon.io
 */

@import "../common";

@include export("step") {
    #{$step-class-wrapper} {
        margin: $margin 0;
        font-size: $medium-size;

        ol {
            @include reset-list;
            display: inline-block;
            overflow: hidden;
            @include clear-fix;
        }

        // Use em's to scale against the size defined on .steps
        #{$step-class} {
            padding-#{$align-direction}: 3.5em;
            padding-#{$align-opposite-direction}: 2em;
            position: relative;
            display: block;
            line-height: 3em;
            height: 3em;

            // Golden ratio? Seems to work for all font sizes in *most* browsers
            &::after {
                height: 2.165em;
                width: 2.165em;
                top: 0.425em;
                #{$align-opposite-direction}: -1.1em;
                position: absolute;
                z-index: 2;
                content: "";
                @if $text-direction == ltr {
                    transform: rotate(315deg);
                } @else {
                    transform: rotate(135deg);
                }
            }
        }

        li {
            @include reset-inline-block;
            float: $align-direction;

            &:first-child {
                #{$step-class} {
                    padding-#{$align-direction}: 2em;
                }
            }

            &:last-child {
                #{$step-class} {
                    &::after { display: none; }
                }
            }
        }

        @include is-small {
            font-size: $small-size;
        }

        @include is-large {
            font-size: $large-size;
        }
    }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
titon-toolkit-2.1.9 scss/toolkit/components/step.scss
titon-toolkit-2.1.8 scss/toolkit/components/step.scss
titon-toolkit-2.1.7 scss/toolkit/components/step.scss
titon-toolkit-2.1.6 scss/toolkit/components/step.scss
titon-toolkit-2.1.5 scss/toolkit/components/step.scss
titon-toolkit-2.1.4 scss/toolkit/components/step.scss
titon-toolkit-2.1.3 scss/toolkit/components/step.scss
titon-toolkit-2.1.2 scss/toolkit/components/step.scss
titon-toolkit-2.1.1 scss/toolkit/components/step.scss
titon-toolkit-2.1.0 scss/toolkit/components/step.scss