@mixin extjs-progress-ui(
$ui: null,
$ui-border-color: $progress-border-color,
$ui-background-color: $progress-background-color,
$ui-bar-background-color: $progress-bar-background-color,
$ui-bar-background-gradient: $progress-bar-background-gradient,
$ui-color-front: $progress-text-front-color,
$ui-color-back: $progress-text-back-color,
$ui-height: $progress-height,
$ui-border-style: $progress-border-style,
$ui-border-width: $progress-border-width,
$ui-border-radius: $progress-border-radius,
$ui-focus-border-color: $progress-focus-border-color,
$ui-focus-border-style: $progress-focus-border-style,
$ui-focus-border-width: $progress-focus-border-width,
$ui-text-text-align: $progress-text-text-align,
$ui-text-font-size: $progress-text-font-size,
$ui-text-font-weight: $progress-text-font-weight,
$ui-text-font-family: $progress-text-font-family,
$ui-label: null
){
@if $ui == null {
@if $ui-label != null {
@warn '$ui-label is deprecated. Use $ui instead';
$ui: $ui-label;
} @else {
@warn "#{error("$ui is required")}";
}
}
$progress-content-height: $ui-height - vertical($ui-border-width);
.#{$prefix}progress-#{$ui} {
background-color: $ui-background-color;
border-width: $ui-border-width;
height: $ui-height;
@if $ui-border-radius != 0 {
@include border-radius($ui-border-radius);
}
@if not is-null($ui-border-color) {
border-color: $ui-border-color;
}
@if not is-null($ui-border-style) {
border-style: $ui-border-style;
}
.#{$prefix}progress-bar-#{$ui} {
@if $ui-border-radius != 0 {
@include border-radius($ui-border-radius);
}
@if not is-null($ui-bar-background-color) {
@include background-gradient($ui-bar-background-color, $ui-bar-background-gradient);
}
@if $include-slicer-gradient and not is-null($ui-bar-background-gradient) {
.#{$prefix}nlg & {
background: repeat-x;
background-image: slicer-background-image(progress-bar-#{$ui}, 'progress/progress-#{$ui}-bg');
}
}
}
.#{$prefix}progress-text {
color: $ui-color-front;
font-weight: $ui-text-font-weight;
font-size: $ui-text-font-size;
font-family: $ui-text-font-family;
text-align: $ui-text-text-align;
line-height: $progress-content-height;
}
.#{$prefix}progress-text-back {
color: $ui-color-back;
line-height: $progress-content-height;
}
&.#{$prefix}progress-focus {
.#{$prefix}keyboard-mode & {
@include css-outline(
$width: $ui-focus-border-width,
$style: $ui-focus-border-style,
$color: $ui-focus-border-color,
$offset: -$ui-focus-border-width,
$pseudo: true
);
}
}
}
$stretch: slicer-background-stretch(progress-bar-#{$ui}, bottom);
@include x-slicer(progress-bar-#{$ui});
@if $include-ext-view-table {
.#{$prefix}progressbar-#{$ui}-cell,
.#{$prefix}progress-#{$ui}-cell,
.#{$prefix}progressbarwidget-#{$ui}-cell {
> .#{$prefix}grid-cell-inner {
padding-top: max(ceil(($grid-row-height - $ui-height) / 2), 0);
padding-bottom: max(floor(($grid-row-height - $ui-height) / 2), 0);
.#{$prefix}progress-#{$ui} {
height: min($progress-height, $grid-row-height - 2);
}
}
}
}
}
@if $include-progress-default-ui {
@include extjs-progress-ui(
$ui: 'default'
);
}