material-sass 4.0.0.alpha6 → 4.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +36 -8
  4. data/Rakefile +16 -3
  5. data/app/assets/javascripts/material-sprockets.js +6 -1
  6. data/app/assets/javascripts/material.js +654 -417
  7. data/app/assets/javascripts/material.min.js +1 -0
  8. data/app/assets/javascripts/material/addons/picker.date.js +234 -0
  9. data/app/assets/javascripts/material/addons/picker.js +172 -0
  10. data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
  11. data/app/assets/javascripts/material/addons/waves.js +127 -0
  12. data/app/assets/javascripts/material/components/floating-label.js +92 -0
  13. data/app/assets/javascripts/material/components/navdrawer.js +353 -0
  14. data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
  15. data/app/assets/javascripts/material/components/tab-switch.js +148 -0
  16. data/app/assets/javascripts/material/components/util.js +133 -0
  17. data/app/assets/javascripts/material/initializers/picker.js +171 -0
  18. data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
  19. data/app/assets/javascripts/material/initializers/waves.js +13 -0
  20. data/app/assets/stylesheets/material/_colours.scss +324 -0
  21. data/app/assets/stylesheets/material/_functions.scss +65 -0
  22. data/app/assets/stylesheets/material/_mixins.scss +23 -23
  23. data/app/assets/stylesheets/material/_print.scss +102 -0
  24. data/app/assets/stylesheets/material/_utilities.scss +21 -17
  25. data/app/assets/stylesheets/material/_variables.scss +13 -42
  26. data/app/assets/stylesheets/material/base/_base.scss +420 -5
  27. data/app/assets/stylesheets/material/base/_grid.scss +34 -33
  28. data/app/assets/stylesheets/material/base/_typography.scss +165 -174
  29. data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
  30. data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
  31. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
  32. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
  33. data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
  34. data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
  35. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
  36. data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
  37. data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
  38. data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
  39. data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
  40. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
  41. data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
  42. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
  43. data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
  44. data/app/assets/stylesheets/material/material.scss +75 -62
  45. data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
  46. data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
  47. data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
  48. data/app/assets/stylesheets/material/material/_button.scss +133 -189
  49. data/app/assets/stylesheets/material/material/_card.scss +300 -248
  50. data/app/assets/stylesheets/material/material/_chip.scss +65 -64
  51. data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
  52. data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
  53. data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
  54. data/app/assets/stylesheets/material/material/_menu.scss +308 -228
  55. data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
  56. data/app/assets/stylesheets/material/material/_picker.scss +157 -155
  57. data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
  58. data/app/assets/stylesheets/material/material/_progress.scss +180 -115
  59. data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
  60. data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
  61. data/app/assets/stylesheets/material/material/_tab.scss +74 -93
  62. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
  63. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
  64. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
  65. data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
  66. data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
  67. data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
  68. data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
  69. data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
  70. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
  71. data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
  72. data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
  73. data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
  74. data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
  75. data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
  76. data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
  77. data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
  78. data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
  79. data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
  80. data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
  81. data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
  82. data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
  83. data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
  84. data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
  85. data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
  86. data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
  87. data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
  88. data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
  89. data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
  90. data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
  91. data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
  92. data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
  93. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
  94. data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
  95. data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
  96. data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
  97. data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
  98. data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
  99. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
  100. data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
  101. data/lib/material-sass/version.rb +1 -1
  102. data/material-sass.gemspec +3 -3
  103. metadata +26 -21
  104. data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
  105. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
  106. data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
  107. data/app/assets/javascripts/material/addons/pickadate.js +0 -7
  108. data/app/assets/javascripts/material/addons/wave.js +0 -5
  109. data/app/assets/javascripts/material/src/floating-label.js +0 -91
  110. data/app/assets/javascripts/material/src/navdrawer.js +0 -352
  111. data/app/assets/javascripts/material/src/tab-switch.js +0 -133
  112. data/app/assets/javascripts/material/src/util.js +0 -138
  113. data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
  114. data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
  115. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
  116. data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
  117. data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
  118. data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
  119. data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -1,70 +1,68 @@
1
- //
2
- // todo: landscape picker
3
- //
1
+ // Todo: landscape picker
4
2
 
5
3
  .picker {
6
4
  position: absolute;
7
- z-index: map-get($picker-elevation-shadow, elevation);
8
5
  user-select: none;
6
+ z-index: map-get($picker-elevation-shadow, elevation);
9
7
  }
10
8
 
11
- .picker__box {
9
+ .picker-box {
10
+ @include border-bottom-radius($border-radius);
11
+
12
12
  background-color: $picker-content-bg;
13
13
  overflow: hidden;
14
- @include border-bottom-radius($border-radius);
15
14
  }
16
15
 
17
- .picker__frame {
16
+ .picker-frame {
17
+ @include transition-standard-complex(opacity);
18
+
18
19
  background-color: $picker-holder-bg;
19
20
  opacity: 0;
20
21
  position: absolute;
21
- top: 0;
22
- right: 0;
23
- bottom: 0;
24
- left: 0;
22
+ top: 0;
23
+ right: 0;
24
+ bottom: 0;
25
+ left: 0;
25
26
  text-align: center;
26
27
  vertical-align: middle;
27
28
  white-space: nowrap;
28
- @include transition-acceleration(opacity);
29
29
 
30
30
  &::after {
31
- content: "";
31
+ content: '';
32
32
  display: inline-block;
33
33
  height: 100%;
34
34
  vertical-align: middle;
35
35
  width: 1px;
36
36
  }
37
37
 
38
- .picker--opened & {
38
+ .picker-opened & {
39
39
  opacity: 1;
40
- @include transition-deceleration(opacity);
41
40
  }
42
41
  }
43
42
 
44
- .picker__holder {
43
+ .picker-holder {
45
44
  outline: 0;
46
45
  overflow-x: hidden;
47
46
  overflow-y: auto;
48
47
  position: fixed;
49
- top: 0;
50
- right: 0;
51
- bottom: 0;
52
- left: 0;
48
+ top: 0;
49
+ right: 0;
50
+ bottom: 0;
51
+ left: 0;
53
52
  transform: translate3d(0, 100%, 0);
54
- transition-delay: $transition-duration-sm;
53
+ transition-delay: $transition-duration-mobile-complex;
55
54
  transition-duration: 0;
56
55
  transition-property: transform;
57
- -webkit-overflow-scrolling: touch;
58
56
 
59
57
  @include media-breakpoint-up(sm) {
60
- transition-delay: $transition-duration-tablet-sm;
58
+ transition-delay: $transition-duration-tablet-complex;
61
59
  }
62
60
 
63
61
  @include media-breakpoint-up(lg) {
64
- transition-delay: $transition-duration-desktop-sm;
62
+ transition-delay: $transition-duration-desktop-complex;
65
63
  }
66
64
 
67
- .picker--opened & {
65
+ .picker-opened & {
68
66
  opacity: 1;
69
67
  overflow-x: hidden;
70
68
  overflow-y: auto;
@@ -77,196 +75,200 @@
77
75
  }
78
76
  }
79
77
 
80
- .picker__input {
78
+ .picker-input {
81
79
  &.form-control[readonly] {
82
80
  border-bottom-style: solid;
83
81
  color: inherit;
84
82
  cursor: text;
85
83
  }
86
84
 
87
- &.picker__input--active {
85
+ &.picker-input-active {
88
86
  border-bottom-color: $textfield-border-color-focus;
89
87
  }
90
88
  }
91
89
 
92
- .picker__wrap {
90
+ .picker-wrap {
91
+ @include border-radius($border-radius);
92
+ @include transition-standard-complex(transform);
93
+
93
94
  box-shadow: map-get($picker-elevation-shadow, shadow);
94
95
  display: inline-block;
95
96
  margin: $picker-margin-y $picker-margin-x;
96
97
  max-width: ($picker-cell-size * 7 + $picker-inner-spacer-x * 2);
97
98
  outline: 0;
98
99
  position: relative;
99
- transform: scale(0.87);
100
+ transform: scale(.87);
100
101
  vertical-align: middle;
101
- @include border-radius($border-radius);
102
- @include transition-acceleration(transform);
103
102
 
104
- .picker--opened & {
103
+ .picker-opened & {
105
104
  transform: scale(1);
106
- @include transition-deceleration(transform);
107
105
  }
108
106
  }
109
107
 
110
- //
111
- // footer
112
- //
113
- .picker__footer {
114
- padding: $picker-inner-spacer-y $picker-inner-spacer-x;
115
- text-align: right;
116
108
 
117
- button {
118
- margin-left: $picker-inner-spacer-x;
119
- min-width: 0;
120
109
 
121
- &:first-child {
122
- margin-left: 0;
123
- }
124
- }
125
- }
110
+ // Footer
126
111
 
127
- //
128
- // header
129
- //
130
- .picker__header {
131
- height: $picker-cell-size;
132
- line-height: $picker-cell-size;
133
- margin-right: $picker-inner-spacer-x;
134
- margin-left: $picker-inner-spacer-x;
135
- position: relative;
136
- vertical-align: middle;
137
- }
112
+ .picker-footer {
113
+ display: flex;
114
+ justify-content: flex-end;
115
+ padding: $picker-inner-spacer-y $picker-inner-spacer-x;
138
116
 
139
- .picker__month,
140
- .picker__year {
141
- display: inline;
117
+ button {
118
+ flex: 0 1 auto;
142
119
  margin-left: $picker-inner-spacer-x;
120
+ min-width: 0;
143
121
 
144
122
  &:first-child {
145
123
  margin-left: 0;
146
124
  }
147
125
  }
126
+ }
148
127
 
149
- .picker__nav--next,
150
- .picker__nav--prev {
151
- cursor: pointer;
152
- height: $picker-cell-size;
153
- margin-top: ($picker-cell-size / -2);
154
- position: absolute;
155
- top: 50%;
156
- width: $picker-cell-size;
157
-
158
- &,
159
- &.material-icons {
160
- line-height: $picker-cell-size;
161
- }
162
- }
163
128
 
164
- .picker__nav--next {
165
- // position
166
- right: 0;
167
129
 
168
- &:before {
169
- content: $picker-nav-next-icon;
170
- }
171
- }
130
+ // Header
172
131
 
173
- .picker__nav--prev {
174
- // position
175
- left: 0;
132
+ .picker-header {
133
+ height: $picker-cell-size;
134
+ line-height: $picker-cell-size;
135
+ margin-right: $picker-inner-spacer-x;
136
+ margin-left: $picker-inner-spacer-x;
137
+ position: relative;
138
+ vertical-align: middle;
139
+ }
176
140
 
177
- &:before {
178
- content: $picker-nav-prev-icon;
179
- }
180
- }
141
+ .picker-month,
142
+ .picker-year {
143
+ display: inline;
144
+ margin-left: $picker-inner-spacer-x;
181
145
 
182
- //
183
- // material date display
184
- //
185
- .picker__date-display {
186
- background-color: $picker-header-bg;
187
- color: $picker-header-color;
188
- padding: $picker-header-padding;
189
- text-align: left;
190
- @include border-top-radius($border-radius);
146
+ &:first-child {
147
+ margin-left: 0;
191
148
  }
149
+ }
192
150
 
193
- .picker__date-display-bottom {
194
- @include text-truncate;
195
- @include typography-display-1;
196
- }
151
+ .picker-nav-next,
152
+ .picker-nav-prev {
153
+ height: $picker-cell-size;
154
+ margin-top: ($picker-cell-size / -2);
155
+ position: absolute;
156
+ top: 50%;
157
+ width: $picker-cell-size;
197
158
 
198
- .picker__day-display {
199
- margin-right: $picker-inner-spacer-x;
159
+ &,
160
+ &.material-icons {
161
+ line-height: $picker-cell-size;
200
162
  }
163
+ }
201
164
 
202
- .picker__weekday-display {
203
- margin-right: $picker-inner-spacer-x;
165
+ .picker-nav-next {
166
+ right: 0;
204
167
 
205
- &:after {
206
- content: ",";
207
- }
168
+ &::before {
169
+ content: $picker-nav-next-icon;
208
170
  }
171
+ }
209
172
 
210
- //
211
- // table
212
- //
213
- .picker__day {
214
- border-radius: 50%;
215
- cursor: pointer;
216
- height: $picker-cell-size;
217
- line-height: $picker-cell-size;
218
- margin: auto;
219
- vertical-align: middle;
220
- width: $picker-cell-size;
173
+ .picker-nav-prev {
174
+ left: 0;
221
175
 
222
- &.picker__day--selected {
223
- background-color: $picker-day-bg-selected;
224
- color: $picker-day-color-selected;
225
- }
176
+ &::before {
177
+ content: $picker-nav-prev-icon;
226
178
  }
179
+ }
227
180
 
228
- .picker__day--disabled {
229
- color: $picker-day-color-disabled;
230
- cursor: $cursor-disabled;
231
- }
232
181
 
233
- .picker__day--outfocus {
234
- display: none;
235
- }
236
182
 
237
- .picker__day--today {
238
- color: $picker-day-color-today;
239
- font-weight: bolder;
183
+ // Material date display
184
+
185
+ .picker-date-display {
186
+ @include border-top-radius($border-radius);
187
+ @include color-yiq($picker-header-bg);
188
+ @include text-align(left);
189
+
190
+ background-color: $picker-header-bg;
191
+ padding: $picker-header-padding-y $picker-header-padding-x;
192
+ }
193
+
194
+ .picker-date-display-bottom {
195
+ @include text-truncate;
196
+ @include typography-display-1;
197
+ }
198
+
199
+ .picker-day-display {
200
+ margin-right: $picker-inner-spacer-x;
201
+ }
202
+
203
+ .picker-weekday-display {
204
+ margin-right: $picker-inner-spacer-x;
205
+
206
+ &::after {
207
+ content: ',';
240
208
  }
209
+ }
241
210
 
242
- .picker__table {
243
- border-collapse: collapse;
244
- border-spacing: 0;
245
- margin: 0 $picker-inner-spacer-x;
246
- table-layout: fixed;
247
-
248
- td,
249
- th {
250
- border: 0;
251
- font-weight: normal;
252
- padding: 0;
253
- text-align: center;
254
- vertical-align: middle;
255
- }
211
+
212
+
213
+ // Table
214
+
215
+ .picker-day {
216
+ border-radius: 50%;
217
+ cursor: default;
218
+ height: $picker-cell-size;
219
+ line-height: $picker-cell-size;
220
+ margin: auto;
221
+ vertical-align: middle;
222
+ width: $picker-cell-size;
223
+
224
+ &.picker-day-selected {
225
+ @include color-yiq($picker-day-bg-selected);
226
+
227
+ background-color: $picker-day-bg-selected;
256
228
  }
229
+ }
230
+
231
+ .picker-day-disabled {
232
+ color: $picker-day-color-disabled;
233
+ }
257
234
 
258
- .picker__weekday {
259
- color: $picker-weekday-color;
260
- height: $picker-cell-size;
235
+ .picker-day-outfocus {
236
+ display: none;
237
+ }
238
+
239
+ .picker-day-today {
240
+ color: $picker-day-color-today;
241
+ font-weight: bolder;
242
+ }
243
+
244
+ .picker-table {
245
+ border-collapse: collapse;
246
+ border-spacing: 0;
247
+ margin: 0 $picker-inner-spacer-x;
248
+ table-layout: fixed;
249
+
250
+ td,
251
+ th {
252
+ border: 0;
253
+ font-weight: normal;
254
+ padding: 0;
255
+ text-align: center;
261
256
  vertical-align: middle;
262
- width: $picker-cell-size;
263
257
  }
258
+ }
259
+
260
+ .picker-weekday {
261
+ color: $picker-weekday-color;
262
+ height: $picker-cell-size;
263
+ vertical-align: middle;
264
+ width: $picker-cell-size;
265
+ }
264
266
 
265
- // .picker__select--month,
266
- // .picker__select--year {
267
+ // .picker-select-month,
268
+ // .picker-select-year {
267
269
  // // @extend .form-control;
268
270
  // // @extend .form-control-sm;
269
271
  // display: inline-block !important;
270
- // margin: 0 $spacer-sm-x !important;
272
+ // margin: 0 $spacer-sm !important;
271
273
  // width: auto !important;
272
274
  // }
@@ -7,14 +7,14 @@
7
7
  .progress-circular-gap {
8
8
  border-top: ($progress-circular-spinner-width / 2) solid $progress-circular-bg;
9
9
  position: absolute;
10
- top: 0;
11
- right: ($progress-circular-height / 2 - $progress-circular-spinner-width / 4);
12
- bottom: 0;
13
- left: ($progress-circular-height / 2 - $progress-circular-spinner-width / 4);
10
+ top: 0;
11
+ right: ($progress-circular-height / 2 - $progress-circular-spinner-width / 4);
12
+ bottom: 0;
13
+ left: ($progress-circular-height / 2 - $progress-circular-spinner-width / 4);
14
14
  }
15
15
 
16
16
  .progress-circular-inner {
17
- animation: progress-circular-inner-rotate 5.332s $transition-timing-function-standard infinite;
17
+ animation: progress-circular-inner-rotate $progress-circular-animation-duration $transition-timing-function-standard infinite;
18
18
  height: $progress-circular-height;
19
19
  position: relative;
20
20
  width: $progress-circular-height;
@@ -25,18 +25,16 @@
25
25
  height: $progress-circular-height;
26
26
  overflow: hidden;
27
27
  position: absolute;
28
- top: 0;
28
+ top: 0;
29
29
  width: ($progress-circular-height / 2);
30
30
  }
31
31
 
32
32
  .progress-circular-left {
33
- // position
34
- left: 0;
33
+ left: 0;
35
34
  }
36
35
 
37
36
  .progress-circular-right {
38
- // position
39
- right: 0;
37
+ right: 0;
40
38
  }
41
39
 
42
40
  .progress-circular-spinner {
@@ -45,100 +43,102 @@
45
43
  border-radius: 50%;
46
44
  height: $progress-circular-height;
47
45
  position: absolute;
48
- top: 0;
46
+ top: 0;
49
47
  width: $progress-circular-height;
50
48
 
51
49
  .progress-circular-left & {
52
- animation: progress-circular-spinner-left 1.333s $transition-timing-function-standard infinite;
50
+ animation: progress-circular-spinner-left ($progress-circular-animation-duration / 4) $transition-timing-function-standard infinite;
53
51
  border-right-color: transparent;
54
- // position
55
- left: 0;
52
+ left: 0;
56
53
  }
57
54
 
58
55
  .progress-circular-right & {
59
- animation: progress-circular-spinner-right 1.333s $transition-timing-function-standard infinite;
56
+ animation: progress-circular-spinner-right ($progress-circular-animation-duration / 4) $transition-timing-function-standard infinite;
60
57
  border-left-color: transparent;
61
- // position
62
- right: 0;
58
+ right: 0;
63
59
  }
64
60
  }
65
61
 
66
62
  .progress-circular-wrapper {
67
- animation: progress-circular-wrapper-rotate 2.666s linear infinite;
63
+ animation: progress-circular-wrapper-rotate ($progress-circular-animation-duration / 2) linear infinite;
68
64
  }
69
65
 
70
- // colour
71
- @each $color in $palettes {
72
- $i: index($palettes, $color);
66
+ @keyframes progress-circular-inner-rotate {
67
+ 12.5% {
68
+ transform: rotate(135deg);
69
+ }
73
70
 
74
- .progress-circular-#{$color} {
75
- .progress-circular-gap,
76
- .progress-circular-spinner {
77
- border-top-color: nth($palettes-color, $i);
78
- }
71
+ 25% {
72
+ transform: rotate(270deg);
73
+ }
79
74
 
80
- .progress-circular-left .progress-circular-spinner {
81
- border-left-color: nth($palettes-color, $i);
82
- }
75
+ 37.5% {
76
+ transform: rotate(405deg);
77
+ }
83
78
 
84
- .progress-circular-right .progress-circular-spinner {
85
- border-right-color: nth($palettes-color, $i);
86
- }
87
- }
79
+ 50% {
80
+ transform: rotate(540deg);
88
81
  }
89
82
 
90
- //
91
- // animation
92
- //
93
- @keyframes progress-circular-inner-rotate {
94
- 12.5% {
95
- transform: rotate(135deg);
96
- }
97
- 25% {
98
- transform: rotate(270deg);
99
- }
100
- 37.5% {
101
- transform: rotate(405deg);
102
- }
103
- 50% {
104
- transform: rotate(540deg);
105
- }
106
- 62.5% {
107
- transform: rotate(675deg);
108
- }
109
- 75% {
110
- transform: rotate(810deg);
111
- }
112
- 87.5% {
113
- transform: rotate(945deg);
114
- }
115
- 100% {
116
- transform: rotate(1080deg);
117
- }
83
+ 62.5% {
84
+ transform: rotate(675deg);
118
85
  }
119
86
 
120
- @keyframes progress-circular-spinner-left {
121
- 0%,
122
- 100% {
123
- transform: rotate(130deg);
124
- }
125
- 50% {
126
- transform: rotate(-5deg);
127
- }
87
+ 75% {
88
+ transform: rotate(810deg);
89
+ }
90
+
91
+ 87.5% {
92
+ transform: rotate(945deg);
128
93
  }
129
94
 
130
- @keyframes progress-circular-spinner-right {
131
- 0%,
132
- 100% {
133
- transform: rotate(-130deg);
95
+ 100% {
96
+ transform: rotate(1080deg);
97
+ }
98
+ }
99
+
100
+ @keyframes progress-circular-spinner-left {
101
+ 0%,
102
+ 100% {
103
+ transform: rotate(130deg);
104
+ }
105
+
106
+ 50% {
107
+ transform: rotate(-5deg);
108
+ }
109
+ }
110
+
111
+ @keyframes progress-circular-spinner-right {
112
+ 0%,
113
+ 100% {
114
+ transform: rotate(-130deg);
115
+ }
116
+
117
+ 50% {
118
+ transform: rotate(5deg);
119
+ }
120
+ }
121
+
122
+ @keyframes progress-circular-wrapper-rotate {
123
+ 100% {
124
+ transform: rotate(360deg);
125
+ }
126
+ }
127
+
128
+ // Colour
129
+ @each $color, $values in $theme-colors {
130
+ .progress-circular-#{$color} {
131
+ .progress-circular-gap,
132
+ .progress-circular-spinner {
133
+ border-top-color: map-get(theme-color($color), color);
134
134
  }
135
- 50% {
136
- transform: rotate(5deg);
135
+
136
+ .progress-circular-left .progress-circular-spinner {
137
+ border-left-color: map-get(theme-color($color), color);
137
138
  }
138
- }
139
139
 
140
- @keyframes progress-circular-wrapper-rotate {
141
- 100% {
142
- transform: rotate(360deg);
140
+ .progress-circular-right .progress-circular-spinner {
141
+ border-right-color: map-get(theme-color($color), color);
143
142
  }
144
- }
143
+ }
144
+ }