/*! UIkit 2.27.4 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ /* ======================================================================== Component: Progress ========================================================================== */ /* * 1. Clearing * 2. Vertical alignment if text is used */ .cw-progress { box-sizing: border-box; height: 20px; margin-bottom: 15px; background: #eee; /* 1 */ overflow: hidden; /* 2 */ line-height: 20px; } /* * Add margin if adjacent element */ * + .cw-progress { margin-top: 15px; } /* Sub-object: `cw-progress-bar` ========================================================================== */ /* * 1. Transition * 2. Needed for text */ .cw-progress-bar { width: 0; height: 100%; background: #00a8e6; float: left; /* 1 */ -webkit-transition: width 0.6s ease; transition: width 0.6s ease; /* 2 */ font-size: 12px; color: #fff; text-align: center; } /* Size modifiers ========================================================================== */ /* Mini */ .cw-progress-mini { height: 6px; } /* Small */ .cw-progress-small { height: 12px; } /* Color modifiers ========================================================================== */ .cw-progress-success .cw-progress-bar { background-color: #8cc14c; } .cw-progress-warning .cw-progress-bar { background-color: #faa732; } .cw-progress-danger .cw-progress-bar { background-color: #da314b; } /* Modifier: `cw-progress-striped` ========================================================================== */ .cw-progress-striped .cw-progress-bar { background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 30px 30px; } /* * Animation */ .cw-progress-striped.cw-active .cw-progress-bar { -webkit-animation: cw-progress-bar-stripes 2s linear infinite; animation: cw-progress-bar-stripes 2s linear infinite; } @-webkit-keyframes cw-progress-bar-stripes { 0% { background-position: 0 0; } 100% { background-position: 30px 0; } } @keyframes cw-progress-bar-stripes { 0% { background-position: 0 0; } 100% { background-position: 30px 0; } }