|
|
/* * # Semantic Steps * http://github.com/quirkyinc/semantic * * * Copyright 2013 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * * Released: April 17 2013 */ /******************************* Step *******************************/ .ui.step, .ui.steps .step { display: inline-block; position: relative; padding: 1em 2em 1em 3em; background-color: #FFFFFF; -webkit-transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease; -moz-transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease; -o-transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease; -ms-transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease; transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease; color: #888888; } .ui.step:after, .ui.steps .step:after { position: absolute; z-index: 2; content: ''; top: 0em; right: -1.48em; border-bottom: 1.5em solid transparent; border-left: 1.5em solid #FFFFFF; border-top: 1.5em solid transparent; width: 0em; height: 0em; } /******************************* Group *******************************/ .ui.steps { cursor: pointer; display: inline-block; font-size: 0em; -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1); line-height: 1; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; -moz-border-radius: 0.3125rem; -webkit-border-radius: 0.3125rem; border-radius: 0.3125rem; } .ui.steps .step:first-child { padding-left: 1.35em; -webkit-border-radius: 0.3125em 0em 0em 0.3125em; -moz-border-radius: 0.3125em 0em 0em 0.3125em; border-radius: 0.3125em 0em 0em 0.3125em; } .ui.steps .step:last-child { -webkit-border-radius: 0em 0.3125em 0.3125em 0em; -moz-border-radius: 0em 0.3125em 0.3125em 0em; border-radius: 0em 0.3125em 0.3125em 0em; } .ui.steps .step:only-child { -webkit-border-radius: 0.3125em; -moz-border-radius: 0.3125em; border-radius: 0.3125em; } .ui.steps .step:last-child { margin-right: 0em; } .ui.steps .step:last-child:after { display: none; } /******************************* States *******************************/ /* Hover */ .ui.step:hover, .ui.step.hover { background-color: #F7F7F7; color: rgba(0, 0, 0, 0.8); } .ui.steps .step.hover:after, .ui.steps .step:hover:after, .ui.step:hover, .ui.step.hover::after { border-left-color: #F7F7F7; } /* Hover */ .ui.steps .step.down, .ui.steps .step:active, .ui.step.down, .ui.step:active { background-color: #F0F0F0; } .ui.steps .step.down:after, .ui.steps .step:active:after, .ui.steps.down::after, .ui.steps:active::after { border-left-color: #F0F0F0; } /* Active */ .ui.steps .step.active, .ui.active.step { cursor: auto; background-color: #555555; color: #FFFFFF; font-weight: bold; } .ui.steps .step.active:after, .ui.active.step:after { border-left-color: #555555; } /* Disabled */ .ui.steps .disabled.step, .ui.disabled.step { cursor: auto; background-color: #FFFFFF; color: #CBCBCB; } .ui.steps .disabled.step:after, .ui.disabled.step:after { border-left-color: #FFFFFF; } /******************************* Variations *******************************/ /* Attached */ .attached.ui.steps { margin: 0em; -webkit-border-radius: 0.3125em 0.3125em 0em 0em; -moz-border-radius: 0.3125em 0.3125em 0em 0em; border-radius: 0.3125em 0.3125em 0em 0em; } .attached.ui.steps .step:first-child { -webkit-border-radius: 0.3125em 0em 0em 0em; -moz-border-radius: 0.3125em 0em 0em 0em; border-radius: 0.3125em 0em 0em 0em; } .attached.ui.steps .step:last-child { -webkit-border-radius: 0em 0.3125em 0em 0em; -moz-border-radius: 0em 0.3125em 0em 0em; border-radius: 0em 0.3125em 0em 0em; } /* Bottom Side */ .bottom.attached.ui.steps { margin-top: -1px; -webkit-border-radius: 0em 0em 0.3125em 0.3125em; -moz-border-radius: 0em 0em 0.3125em 0.3125em; border-radius: 0em 0em 0.3125em 0.3125em; } .bottom.attached.ui.steps .step:first-child { -webkit-border-radius: 0em 0em 0em 0.3125em; -moz-border-radius: 0em 0em 0em 0.3125em; border-radius: 0em 0em 0em 0.3125em; } .bottom.attached.ui.steps .step:last-child { -webkit-border-radius: 0em 0em 0.3125em 0em; -moz-border-radius: 0em 0em 0.3125em 0em; border-radius: 0em 0em 0.3125em 0em; } /* Fluid */ .ui.steps.fluid, .ui.steps.fluid > .step { width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } .ui.steps.two.fluid > .step { width: 50%; } .ui.steps.three.fluid > .step { width: 33.333%; } .ui.steps.four.fluid > .step { width: 25%; } .ui.steps.five.fluid > .step { width: 20%; } .ui.steps.six.fluid > .step { width: 16.666%; } .ui.steps.seven.fluid > .step { width: 14.285%; } .ui.steps.eight.fluid > .step { width: 12.500%; } /******************************* Sizes *******************************/ .ui.small.step, .ui.small.steps .step { font-size: 0.8rem; } .ui.step, .ui.steps .step { font-size: 1rem; } .ui.large.step, .ui.large.steps .step { font-size: 1.25rem; }
|