Browse Source

Beginning progress bar variables

pull/1129/head
jlukic 10 years ago
parent
commit
2a6c61330a
2 changed files with 29 additions and 22 deletions
  1. 34
      src/definitions/elements/progress.less
  2. 17
      src/themes/packages/default/elements/progress.variables

34
src/definitions/elements/progress.less

@ -19,29 +19,23 @@
@import '../../semantic.config';
.ui.progress {
border: 1px solid rgba(0, 0, 0, 0.1);
display: block;
width: 100%;
height: 35px;
background-color: #FAFAFA;
padding: 5px;
border-radius: 0.3125em;
border: @border;
box-shadow: @boxShadow;
background: @background;
padding: @padding;
border-radius: @borderRadius;
}
.ui.progress .bar {
display: inline-block;
display: block;
width: 0%;
height: 100%;
background-color: #CCCCCC;
border-radius: 3px;
transition:
width 1s ease-in-out,
background-color 1s ease-out
;
height: @barHeight;
background: @barBackground;
border-radius: @barBorderRadius;
transition: @barTransition;
}
@ -98,11 +92,9 @@
left: 0px;
right: 0px;
bottom: 0px;
background: #FFFFFF;
background: @activePulseColor;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
border-radius: @barBorderRadius;
animation: progress-active 2s ease-out infinite;
}

17
src/themes/packages/default/elements/progress.variables

@ -6,12 +6,27 @@
Element
--------------------*/
@background: @darkWhite;
@border: 1px solid @borderColor;
@boxShadow: none;
@padding: 0.25em;
@borderRadius: 0.325em;
/* Bar */
@barHeight: 1.5em;
@barBackground: #CCCCCC;
@barBorderRadius: @borderRadius;
@barTransition:
width 1s ease-in-out,
background-color 1s ease-out
;
/*-------------------
States
--------------------*/
@activePulseColor: @white;
/*-------------------
Types

Loading…
Cancel
Save