File tree Expand file tree Collapse file tree 3 files changed +59
-5
lines changed
src/material-experimental/mdc-progress-spinner Expand file tree Collapse file tree 3 files changed +59
-5
lines changed Original file line number Diff line number Diff line change 1
- @mixin mat-mdc-progress-spinner-color ($config-or-theme ) {}
1
+ @import ' @material/linear-progress/mixins.import' ;
2
+ @import ' @material/theme/functions.import' ;
3
+ @import ' ../mdc-helpers/mdc-helpers' ;
2
4
3
- @mixin mat-mdc--progress-spinner-typography ($config-or-theme ) {}
5
+ @mixin mat-mdc-progress-spinner-color ($config-or-theme ) {
6
+ $config : mat-get-color-config ($config-or-theme );
7
+ @include mat-using-mdc-theme ($config ) {
8
+ @include mdc-circular-progress-core-styles ($query : $mat-base-styles-without-animation-query );
9
+ }
10
+ }
4
11
5
- @mixin _mat -mdc-progress-spinner-density ($config-or-theme ) {}
12
+ @mixin mat -mdc-progress-spinner-typography ($config-or-theme ) {}
6
13
7
- @mixin mat-mdc-progress-spinner-theme ($theme-or-color-config ) {}
14
+ @mixin mat-mdc-progress-spinner-density ($config-or-theme ) {}
15
+
16
+ @mixin mat-mdc-progress-spinner-theme ($theme-or-color-config ) {
17
+ $theme : _mat-legacy-get-theme ($theme-or-color-config );
18
+ @include _mat-check-duplicate-theme-styles ($theme , ' mat-mdc-progress-spinner' ) {
19
+ $color : mat-get-color-config ($theme );
20
+ $density : mat-get-density-config ($theme );
21
+ $typography : mat-get-typography-config ($theme );
22
+
23
+ @if $color != null {
24
+ @include mat-mdc-progress-spinner-color ($color );
25
+ }
26
+ @if $density != null {
27
+ @include mat-mdc-progress-spinner-density ($density );
28
+ }
29
+ @if $typography != null {
30
+ @include mat-mdc-progress-spinner-typography ($typography );
31
+ }
32
+ }
33
+ }
Original file line number Diff line number Diff line change 1
- WIP: MDC-based progress spinner
1
+ < div class ="mdc-circular-progress " style ="width:48px;height:48px; " role ="progressbar " aria-label ="Example Progress Bar " aria-valuemin ="0 " aria-valuemax ="1 ">
2
+ < div class ="mdc-circular-progress__determinate-container ">
3
+ < svg class ="mdc-circular-progress__determinate-circle-graphic " viewBox ="0 0 48 48 " xmlns ="http://www.w3.org/2000/svg ">
4
+ < circle class ="mdc-circular-progress__determinate-circle " cx ="24 " cy ="24 " r ="18 " stroke-dasharray ="113.097 " stroke-dashoffset ="113.097 " stroke-width ="4 "/>
5
+ </ svg >
6
+ </ div >
7
+ < div class ="mdc-circular-progress__indeterminate-container ">
8
+ < div class ="mdc-circular-progress__spinner-layer ">
9
+ < div class ="mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left ">
10
+ < svg class ="mdc-circular-progress__indeterminate-circle-graphic " viewBox ="0 0 48 48 " xmlns ="http://www.w3.org/2000/svg ">
11
+ < circle cx ="24 " cy ="24 " r ="18 " stroke-dasharray ="113.097 " stroke-dashoffset ="56.549 " stroke-width ="4 "/>
12
+ </ svg >
13
+ </ div > < div class ="mdc-circular-progress__gap-patch ">
14
+ < svg class ="mdc-circular-progress__indeterminate-circle-graphic " viewBox ="0 0 48 48 " xmlns ="http://www.w3.org/2000/svg ">
15
+ < circle cx ="24 " cy ="24 " r ="18 " stroke-dasharray ="113.097 " stroke-dashoffset ="56.549 " stroke-width ="3.2 "/>
16
+ </ svg >
17
+ </ div > < div class ="mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right ">
18
+ < svg class ="mdc-circular-progress__indeterminate-circle-graphic " viewBox ="0 0 48 48 " xmlns ="http://www.w3.org/2000/svg ">
19
+ < circle cx ="24 " cy ="24 " r ="18 " stroke-dasharray ="113.097 " stroke-dashoffset ="56.549 " stroke-width ="4 "/>
20
+ </ svg >
21
+ </ div >
22
+ </ div >
23
+ </ div >
24
+ </ div >
Original file line number Diff line number Diff line change
1
+ @import ' @material/circular-progress/mixins.import' ;
2
+ @import ' ../mdc-helpers/mdc-helpers' ;
3
+
4
+
5
+ @include mdc-circular-progress-core-styles ($query : $mat-base-styles-without-animation-query );
You can’t perform that action at this time.
0 commit comments