|
2 | 2 | // Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license
|
3 | 3 |
|
4 | 4 | /**
|
5 |
| - * @name base |
6 |
| - * @selector .slds-progress-bar |
7 |
| - * @restrict div |
8 |
| - * @support dev-ready |
9 |
| - * @variant |
| 5 | + * @name base |
| 6 | + * @selector .slds-progress-bar |
| 7 | + * @restrict div |
| 8 | + * @support dev-ready |
| 9 | + * @variant |
10 | 10 | */
|
11 | 11 | .slds-progress-bar {
|
12 | 12 | @include appearance(none);
|
|
16 | 16 | background: $progress-bar-color-background;
|
17 | 17 | border: 0;
|
18 | 18 | position: relative;
|
| 19 | +} |
19 | 20 |
|
20 |
| - /** |
21 |
| - * @summary Creates a progress bar height at the smaller .125rem (2px) size |
22 |
| - * |
23 |
| - * @selector .slds-progress-bar_x-small |
24 |
| - * @restrict .slds-progress-bar |
25 |
| - * @modifier |
26 |
| - * @group thickness |
27 |
| - */ |
28 |
| - &_x-small, |
29 |
| - &--x-small { |
30 |
| - height: $progress-bar-height; |
31 |
| - } |
| 21 | +/** |
| 22 | + * @summary Creates a progress bar height at the smaller .125rem (2px) size |
| 23 | + * |
| 24 | + * @selector .slds-progress-bar_x-small |
| 25 | + * @restrict .slds-progress-bar |
| 26 | + * @modifier |
| 27 | + * @group thickness |
| 28 | +*/ |
| 29 | +.slds-progress-bar_x-small, |
| 30 | +.slds-progress-bar--x-small { |
| 31 | + height: $progress-bar-height; |
| 32 | +} |
32 | 33 |
|
33 |
| - /** |
34 |
| - * @summary Creates a progress bar height at the smaller .25rem (4px) size |
35 |
| - * |
36 |
| - * @selector .slds-progress-bar_small |
37 |
| - * @restrict .slds-progress-bar |
38 |
| - * @modifier |
39 |
| - * @group thickness |
40 |
| - */ |
41 |
| - &_small, |
42 |
| - &--small { |
43 |
| - height: ($progress-bar-height * 2); |
44 |
| - } |
| 34 | +/** |
| 35 | + * @summary Creates a progress bar height at the smaller .25rem (4px) size |
| 36 | + * |
| 37 | + * @selector .slds-progress-bar_small |
| 38 | + * @restrict .slds-progress-bar |
| 39 | + * @modifier |
| 40 | + * @group thickness |
| 41 | +*/ |
| 42 | +.slds-progress-bar_small, |
| 43 | +.slds-progress-bar--small { |
| 44 | + height: ($progress-bar-height * 2); |
| 45 | +} |
45 | 46 |
|
46 |
| - /** |
47 |
| - * @summary Creates a progress bar height at the smaller .5rem (8px) size |
48 |
| - * |
49 |
| - * @selector .slds-progress-bar_medium |
50 |
| - * @restrict .slds-progress-bar |
51 |
| - * @modifier |
52 |
| - * @group thickness |
53 |
| - */ |
54 |
| - &_medium, |
55 |
| - &--medium { |
56 |
| - height: ($progress-bar-height * 4); |
57 |
| - } |
| 47 | +/** |
| 48 | + * @summary Creates a progress bar height at the smaller .5rem (8px) size |
| 49 | + * |
| 50 | + * @selector .slds-progress-bar_medium |
| 51 | + * @restrict .slds-progress-bar |
| 52 | + * @modifier |
| 53 | + * @group thickness |
| 54 | +*/ |
| 55 | +.slds-progress-bar_medium, |
| 56 | +.slds-progress-bar--medium { |
| 57 | + height: ($progress-bar-height * 4); |
| 58 | +} |
58 | 59 |
|
59 |
| - /** |
60 |
| - * @summary Creates a progress bar height at the smaller .75rem (12px) size |
61 |
| - * |
62 |
| - * @selector .slds-progress-bar_large |
63 |
| - * @restrict .slds-progress-bar |
64 |
| - * @modifier |
65 |
| - * @group thickness |
66 |
| - */ |
67 |
| - &_large, |
68 |
| - &--large { |
69 |
| - height: ($progress-bar-height * 6); |
70 |
| - } |
| 60 | +/** |
| 61 | + * @summary Creates a progress bar height at the smaller .75rem (12px) size |
| 62 | + * |
| 63 | + * @selector .slds-progress-bar_large |
| 64 | + * @restrict .slds-progress-bar |
| 65 | + * @modifier |
| 66 | + * @group thickness |
| 67 | +*/ |
| 68 | +.slds-progress-bar_large, |
| 69 | +.slds-progress-bar--large { |
| 70 | + height: ($progress-bar-height * 6); |
| 71 | +} |
71 | 72 |
|
72 |
| - /** |
73 |
| - * @summary Adds a border radius to the progress bar to give it a circular look |
74 |
| - * |
75 |
| - * @selector .slds-progress-bar_circular |
76 |
| - * @restrict .slds-progress-bar |
77 |
| - * @modifier |
78 |
| - * @group radius |
79 |
| - */ |
80 |
| - &_circular, |
81 |
| - &--circular { |
82 |
| - border-radius: $border-radius-large; |
| 73 | +/** |
| 74 | + * @summary Adds a border radius to the progress bar to give it a circular look |
| 75 | + * |
| 76 | + * @selector .slds-progress-bar_circular |
| 77 | + * @restrict .slds-progress-bar |
| 78 | + * @modifier |
| 79 | + * @group radius |
| 80 | +*/ |
| 81 | +.slds-progress-bar_circular, |
| 82 | +.slds-progress-bar--circular { |
| 83 | + border-radius: $border-radius-large; |
83 | 84 |
|
84 |
| - .slds-progress-bar__value { |
85 |
| - border-radius: $border-radius-large; |
86 |
| - } |
| 85 | + .slds-progress-bar__value { |
| 86 | + border-radius: $border-radius-large; |
87 | 87 | }
|
88 | 88 | }
|
89 | 89 |
|
90 | 90 | /**
|
91 |
| - * @summary Fill up blue bar inside of the progress bar |
92 |
| - * |
93 |
| - * @selector .slds-progress-bar__value |
94 |
| - * @restrict .slds-progress-bar span |
95 |
| - */ |
| 91 | + * @summary Fill up blue bar inside of the progress bar |
| 92 | + * |
| 93 | + * @selector .slds-progress-bar__value |
| 94 | + * @restrict .slds-progress-bar span |
| 95 | +*/ |
96 | 96 | .slds-progress-bar__value {
|
97 | 97 | display: block;
|
98 | 98 | background: $progress-bar-color-background-fill;
|
99 | 99 | height: 100%;
|
100 | 100 | }
|
101 | 101 |
|
102 | 102 | /**
|
103 |
| - * @summary Create a green progress bar |
104 |
| - * |
105 |
| - * @selector .slds-progress-bar__value_success |
106 |
| - * @restrict .slds-progress-bar__value |
107 |
| - * @modifier |
108 |
| - * @group color |
109 |
| - */ |
| 103 | + * @summary Create a green progress bar |
| 104 | + * |
| 105 | + * @selector .slds-progress-bar__value_success |
| 106 | + * @restrict .slds-progress-bar__value |
| 107 | + * @modifier |
| 108 | + * @group color |
| 109 | +*/ |
110 | 110 | .slds-progress-bar__value_success {
|
111 | 111 | background: $progress-bar-color-background-fill-success;
|
112 | 112 | }
|
0 commit comments