material-sass 1.4.1 → 4.0.0.alpha5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Rakefile +61 -0
  4. data/app/assets/fonts/{MaterialIcons-Regular.eot → material-icons/MaterialIcons-Regular.eot} +0 -0
  5. data/app/assets/fonts/{MaterialIcons-Regular.ijmap → material-icons/MaterialIcons-Regular.ijmap} +0 -0
  6. data/app/assets/fonts/{MaterialIcons-Regular.svg → material-icons/MaterialIcons-Regular.svg} +0 -0
  7. data/app/assets/fonts/{MaterialIcons-Regular.ttf → material-icons/MaterialIcons-Regular.ttf} +0 -0
  8. data/app/assets/fonts/{MaterialIcons-Regular.woff → material-icons/MaterialIcons-Regular.woff} +0 -0
  9. data/app/assets/fonts/{MaterialIcons-Regular.woff2 → material-icons/MaterialIcons-Regular.woff2} +0 -0
  10. data/app/assets/fonts/{README.md → material-icons/README.md} +0 -0
  11. data/app/assets/fonts/{codepoints → material-icons/codepoints} +0 -0
  12. data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
  13. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  14. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  15. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  16. data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
  17. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  18. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  19. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  20. data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
  21. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  22. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  23. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  24. data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
  25. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  26. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  27. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  28. data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
  29. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  30. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  31. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  32. data/app/assets/javascripts/material.js +739 -798
  33. data/app/assets/javascripts/material/addons-materialise/pickadate.js +139 -0
  34. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +9 -0
  35. data/app/assets/javascripts/material/addons-materialise/wave.js +12 -0
  36. data/app/assets/javascripts/material/addons/pickadate.js +7 -0
  37. data/app/assets/javascripts/material/addons/textarea-autosize.js +5 -0
  38. data/app/assets/javascripts/material/{wave.js → addons/wave.js} +0 -10
  39. data/app/assets/javascripts/material/src/floating-label.js +91 -0
  40. data/app/assets/javascripts/material/src/navdrawer.js +352 -0
  41. data/app/assets/javascripts/material/src/tab-switch.js +136 -0
  42. data/app/assets/javascripts/material/src/util.js +138 -0
  43. data/app/assets/stylesheets/material.min.css +2 -2
  44. data/app/assets/stylesheets/material.scss +1 -1
  45. data/app/assets/stylesheets/material/_mixins.scss +21 -0
  46. data/app/assets/stylesheets/material/_utilities.scss +15 -0
  47. data/app/assets/stylesheets/material/_variables.scss +25 -0
  48. data/app/assets/stylesheets/material/base/_base.scss +482 -0
  49. data/app/assets/stylesheets/material/base/_grid.scss +28 -40
  50. data/app/assets/stylesheets/material/base/_typography.scss +208 -0
  51. data/app/assets/stylesheets/material/bootstrap/_alert.scss +55 -0
  52. data/app/assets/stylesheets/material/bootstrap/_animation.scss +26 -0
  53. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +39 -0
  54. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +155 -0
  55. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +234 -0
  56. data/app/assets/stylesheets/material/bootstrap/_close.scss +31 -0
  57. data/app/assets/stylesheets/material/bootstrap/_code.scss +50 -0
  58. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +69 -0
  59. data/app/assets/stylesheets/material/bootstrap/_form.scss +116 -0
  60. data/app/assets/stylesheets/material/bootstrap/_image.scss +25 -0
  61. data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +12 -0
  62. data/app/assets/stylesheets/material/bootstrap/_media.scss +69 -0
  63. data/app/assets/stylesheets/material/bootstrap/_nav.scss +118 -0
  64. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +68 -0
  65. data/app/assets/stylesheets/material/bootstrap/_popover.scss +84 -0
  66. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +37 -0
  67. data/app/assets/stylesheets/material/material.scss +62 -0
  68. data/app/assets/stylesheets/material/material/_button-flat.scss +53 -0
  69. data/app/assets/stylesheets/material/material/_button-float.scss +29 -0
  70. data/app/assets/stylesheets/material/material/_button.scss +241 -0
  71. data/app/assets/stylesheets/material/material/_card.scss +286 -0
  72. data/app/assets/stylesheets/material/material/_chip.scss +93 -0
  73. data/app/assets/stylesheets/material/material/_data-table.scss +138 -0
  74. data/app/assets/stylesheets/material/material/_dialog.scss +147 -0
  75. data/app/assets/stylesheets/material/material/_expansion-panel.scss +292 -0
  76. data/app/assets/stylesheets/material/material/_menu.scss +281 -0
  77. data/app/assets/stylesheets/material/material/_navdrawer.scss +289 -0
  78. data/app/assets/stylesheets/material/material/_picker.scss +272 -0
  79. data/app/assets/stylesheets/material/material/_progress-circular.scss +144 -0
  80. data/app/assets/stylesheets/material/material/_progress.scss +174 -0
  81. data/app/assets/stylesheets/material/material/_selection-control.scss +221 -0
  82. data/app/assets/stylesheets/material/material/_stepper.scss +135 -0
  83. data/app/assets/stylesheets/material/material/_tab.scss +196 -0
  84. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +51 -0
  85. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +76 -0
  86. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +31 -0
  87. data/app/assets/stylesheets/material/material/_text-field.scss +179 -0
  88. data/app/assets/stylesheets/material/material/_toolbar.scss +516 -0
  89. data/app/assets/stylesheets/material/material/_tooltip.scss +86 -0
  90. data/app/assets/stylesheets/material/mixins/_background-variant.scss +14 -0
  91. data/app/assets/stylesheets/material/mixins/_border-radius.scss +34 -0
  92. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +38 -0
  93. data/app/assets/stylesheets/material/mixins/_clearfix.scss +7 -0
  94. data/app/assets/stylesheets/material/mixins/_form.scss +60 -0
  95. data/app/assets/stylesheets/material/mixins/_grid.scss +149 -0
  96. data/app/assets/stylesheets/material/mixins/_hex-to-rgba.scss +3 -0
  97. data/app/assets/stylesheets/material/mixins/_hover.scss +70 -0
  98. data/app/assets/stylesheets/material/mixins/_image.scss +4 -0
  99. data/app/assets/stylesheets/material/mixins/_list.scss +4 -0
  100. data/app/assets/stylesheets/material/mixins/_nav-divider.scss +6 -0
  101. data/app/assets/stylesheets/material/mixins/_pull.scss +7 -0
  102. data/app/assets/stylesheets/material/mixins/_reset-text.scss +35 -0
  103. data/app/assets/stylesheets/material/mixins/_screenreader.scss +23 -0
  104. data/app/assets/stylesheets/material/mixins/_strip-unit.scss +3 -0
  105. data/app/assets/stylesheets/material/mixins/_tab-focus.scss +5 -0
  106. data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +14 -0
  107. data/app/assets/stylesheets/material/mixins/_text-hide.scss +7 -0
  108. data/app/assets/stylesheets/material/mixins/_text-truncate.scss +5 -0
  109. data/app/assets/stylesheets/material/mixins/_transition.scss +55 -0
  110. data/app/assets/stylesheets/material/mixins/_typography.scss +69 -0
  111. data/app/assets/stylesheets/material/utilities/_align.scss +23 -0
  112. data/app/assets/stylesheets/material/utilities/_background.scss +23 -0
  113. data/app/assets/stylesheets/material/utilities/_border.scss +27 -0
  114. data/app/assets/stylesheets/material/utilities/_clearfix.scss +3 -0
  115. data/app/assets/stylesheets/material/utilities/_display.scss +11 -0
  116. data/app/assets/stylesheets/material/utilities/_float.scss +15 -0
  117. data/app/assets/stylesheets/material/utilities/_material-icons.scss +10 -0
  118. data/app/assets/stylesheets/material/utilities/_screenreader.scss +7 -0
  119. data/app/assets/stylesheets/material/utilities/_spacing.scss +65 -0
  120. data/app/assets/stylesheets/material/utilities/_text.scss +95 -0
  121. data/app/assets/stylesheets/material/utilities/_visibility.scss +50 -0
  122. data/app/assets/stylesheets/material/utilities/_waves.scss +48 -0
  123. data/app/assets/stylesheets/material/variables/_animation.scss +22 -0
  124. data/app/assets/stylesheets/material/variables/_colour.scss +389 -0
  125. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +84 -0
  126. data/app/assets/stylesheets/material/variables/_grid.scss +32 -0
  127. data/app/assets/stylesheets/material/variables/_spacer.scss +73 -0
  128. data/app/assets/stylesheets/material/variables/_typography.scss +72 -0
  129. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +129 -0
  130. data/app/assets/stylesheets/material/variables/_variable-material.scss +434 -0
  131. data/lib/material-sass/engine.rb +3 -2
  132. data/lib/material-sass/version.rb +1 -1
  133. metadata +128 -70
  134. data/app/assets/javascripts/material.min.js +0 -2
  135. data/app/assets/javascripts/material/_.js +0 -6
  136. data/app/assets/javascripts/material/bootstrap.js +0 -6
  137. data/app/assets/javascripts/material/form-floating-label.js +0 -49
  138. data/app/assets/javascripts/material/form-textarea.js +0 -13
  139. data/app/assets/javascripts/material/header.js +0 -12
  140. data/app/assets/javascripts/material/menu.js +0 -200
  141. data/app/assets/javascripts/material/modal.js +0 -12
  142. data/app/assets/javascripts/material/picker.js +0 -141
  143. data/app/assets/javascripts/material/snackbar.js +0 -116
  144. data/app/assets/javascripts/material/tab.js +0 -51
  145. data/app/assets/javascripts/material/tile.js +0 -181
  146. data/app/assets/stylesheets/material/addons/_material-icons.scss +0 -9
  147. data/app/assets/stylesheets/material/addons/_waves.scss +0 -44
  148. data/app/assets/stylesheets/material/addons/material-icons/_core.scss +0 -20
  149. data/app/assets/stylesheets/material/addons/material-icons/_larger.scss +0 -23
  150. data/app/assets/stylesheets/material/addons/material-icons/_path.scss +0 -11
  151. data/app/assets/stylesheets/material/addons/material-icons/_variables.scss +0 -3
  152. data/app/assets/stylesheets/material/base.scss +0 -50
  153. data/app/assets/stylesheets/material/base/_reset.scss +0 -421
  154. data/app/assets/stylesheets/material/components/_avatar.scss +0 -59
  155. data/app/assets/stylesheets/material/components/_breadcrumb.scss +0 -26
  156. data/app/assets/stylesheets/material/components/_button-flat.scss +0 -22
  157. data/app/assets/stylesheets/material/components/_button-float.scss +0 -183
  158. data/app/assets/stylesheets/material/components/_button.scss +0 -81
  159. data/app/assets/stylesheets/material/components/_card.scss +0 -175
  160. data/app/assets/stylesheets/material/components/_code.scss +0 -53
  161. data/app/assets/stylesheets/material/components/_dropdown.scss +0 -99
  162. data/app/assets/stylesheets/material/components/_form-checkbox.scss +0 -161
  163. data/app/assets/stylesheets/material/components/_form-floating-label.scss +0 -64
  164. data/app/assets/stylesheets/material/components/_form-switch.scss +0 -96
  165. data/app/assets/stylesheets/material/components/_form-textarea.scss +0 -4
  166. data/app/assets/stylesheets/material/components/_form.scss +0 -217
  167. data/app/assets/stylesheets/material/components/_label.scss +0 -23
  168. data/app/assets/stylesheets/material/components/_modal.scss +0 -164
  169. data/app/assets/stylesheets/material/components/_nav.scss +0 -53
  170. data/app/assets/stylesheets/material/components/_picker.scss +0 -298
  171. data/app/assets/stylesheets/material/components/_progress-circular.scss +0 -169
  172. data/app/assets/stylesheets/material/components/_progress-loadbar.scss +0 -97
  173. data/app/assets/stylesheets/material/components/_progress.scss +0 -132
  174. data/app/assets/stylesheets/material/components/_snackbar.scss +0 -59
  175. data/app/assets/stylesheets/material/components/_stepper.scss +0 -201
  176. data/app/assets/stylesheets/material/components/_tab.scss +0 -84
  177. data/app/assets/stylesheets/material/components/_table.scss +0 -82
  178. data/app/assets/stylesheets/material/components/_tile.scss +0 -156
  179. data/app/assets/stylesheets/material/elements/_content.scss +0 -42
  180. data/app/assets/stylesheets/material/elements/_header.scss +0 -141
  181. data/app/assets/stylesheets/material/elements/_menu.scss +0 -267
  182. data/app/assets/stylesheets/material/mixin/_grid.scss +0 -78
  183. data/app/assets/stylesheets/material/mixin/_responsive.scss +0 -32
  184. data/app/assets/stylesheets/material/mixin/_utilities.scss +0 -69
  185. data/app/assets/stylesheets/material/utilities/_print.scss +0 -95
  186. data/app/assets/stylesheets/material/utilities/_utilities-responsive.scss +0 -97
  187. data/app/assets/stylesheets/material/utilities/_utilities.scss +0 -393
  188. data/app/assets/stylesheets/material/var/_colours.scss +0 -336
  189. data/app/assets/stylesheets/material/var/_variables.scss +0 -78
@@ -0,0 +1,272 @@
1
+ //
2
+ // todo: landscape picker
3
+ //
4
+
5
+ .picker {
6
+ position: absolute;
7
+ z-index: map-get($picker-elevation-shadow, elevation);
8
+ user-select: none;
9
+ }
10
+
11
+ .picker__box {
12
+ background-color: $picker-content-bg;
13
+ overflow: hidden;
14
+ @include border-bottom-radius($border-radius);
15
+ }
16
+
17
+ .picker__frame {
18
+ background-color: $picker-holder-bg;
19
+ opacity: 0;
20
+ position: absolute;
21
+ top: 0;
22
+ right: 0;
23
+ bottom: 0;
24
+ left: 0;
25
+ text-align: center;
26
+ vertical-align: middle;
27
+ white-space: nowrap;
28
+ @include transition-acceleration(opacity);
29
+
30
+ &::after {
31
+ content: "";
32
+ display: inline-block;
33
+ height: 100%;
34
+ vertical-align: middle;
35
+ width: 1px;
36
+ }
37
+
38
+ .picker--opened & {
39
+ opacity: 1;
40
+ @include transition-deceleration(opacity);
41
+ }
42
+ }
43
+
44
+ .picker__holder {
45
+ outline: 0;
46
+ overflow-x: hidden;
47
+ overflow-y: auto;
48
+ position: fixed;
49
+ top: 0;
50
+ right: 0;
51
+ bottom: 0;
52
+ left: 0;
53
+ transform: translate3d(0, 100%, 0);
54
+ transition-delay: $transition-duration-sm;
55
+ transition-duration: 0;
56
+ transition-property: transform;
57
+ -webkit-overflow-scrolling: touch;
58
+
59
+ @include media-breakpoint-up(sm) {
60
+ transition-delay: $transition-duration-tablet-sm;
61
+ }
62
+
63
+ @include media-breakpoint-up(lg) {
64
+ transition-delay: $transition-duration-desktop-sm;
65
+ }
66
+
67
+ .picker--opened & {
68
+ opacity: 1;
69
+ overflow-x: hidden;
70
+ overflow-y: auto;
71
+ transform: translate3d(0, 0, 0);
72
+ transition: none;
73
+
74
+ &::before {
75
+ opacity: 1;
76
+ }
77
+ }
78
+ }
79
+
80
+ .picker__input {
81
+ &.form-control[readonly] {
82
+ border-bottom-style: solid;
83
+ color: inherit;
84
+ cursor: text;
85
+ }
86
+
87
+ &.picker__input--active {
88
+ border-bottom-color: $textfield-border-color-focus;
89
+ }
90
+ }
91
+
92
+ .picker__wrap {
93
+ box-shadow: map-get($picker-elevation-shadow, shadow);
94
+ display: inline-block;
95
+ margin: $picker-margin-y $picker-margin-x;
96
+ max-width: ($picker-cell-size * 7 + $picker-inner-spacer-x * 2);
97
+ outline: 0;
98
+ position: relative;
99
+ transform: scale(0.87);
100
+ vertical-align: middle;
101
+ @include border-radius($border-radius);
102
+ @include transition-acceleration(transform);
103
+
104
+ .picker--opened & {
105
+ transform: scale(1);
106
+ @include transition-deceleration(transform);
107
+ }
108
+ }
109
+
110
+ //
111
+ // footer
112
+ //
113
+ .picker__footer {
114
+ padding: $picker-inner-spacer-y $picker-inner-spacer-x;
115
+ text-align: right;
116
+
117
+ button {
118
+ margin-left: $picker-inner-spacer-x;
119
+ min-width: 0;
120
+
121
+ &:first-child {
122
+ margin-left: 0;
123
+ }
124
+ }
125
+ }
126
+
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
+ }
138
+
139
+ .picker__month,
140
+ .picker__year {
141
+ display: inline;
142
+ margin-left: $picker-inner-spacer-x;
143
+
144
+ &:first-child {
145
+ margin-left: 0;
146
+ }
147
+ }
148
+
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
+
164
+ .picker__nav--next {
165
+ // position
166
+ right: 0;
167
+
168
+ &:before {
169
+ content: $picker-nav-next-icon;
170
+ }
171
+ }
172
+
173
+ .picker__nav--prev {
174
+ // position
175
+ left: 0;
176
+
177
+ &:before {
178
+ content: $picker-nav-prev-icon;
179
+ }
180
+ }
181
+
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);
191
+ }
192
+
193
+ .picker__date-display-bottom {
194
+ @include text-truncate;
195
+ @include typography-display-1;
196
+ }
197
+
198
+ .picker__day-display {
199
+ margin-right: $picker-inner-spacer-x;
200
+ }
201
+
202
+ .picker__weekday-display {
203
+ margin-right: $picker-inner-spacer-x;
204
+
205
+ &:after {
206
+ content: ",";
207
+ }
208
+ }
209
+
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;
221
+
222
+ &.picker__day--selected {
223
+ background-color: $picker-day-bg-selected;
224
+ color: $picker-day-color-selected;
225
+ }
226
+ }
227
+
228
+ .picker__day--disabled {
229
+ color: $picker-day-color-disabled;
230
+ cursor: $cursor-disabled;
231
+ }
232
+
233
+ .picker__day--outfocus {
234
+ display: none;
235
+ }
236
+
237
+ .picker__day--today {
238
+ color: $picker-day-color-today;
239
+ font-weight: bolder;
240
+ }
241
+
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
+ }
256
+ }
257
+
258
+ .picker__weekday {
259
+ color: $picker-weekday-color;
260
+ height: $picker-cell-size;
261
+ vertical-align: middle;
262
+ width: $picker-cell-size;
263
+ }
264
+
265
+ // .picker__select--month,
266
+ // .picker__select--year {
267
+ // // @extend .form-control;
268
+ // // @extend .form-control-sm;
269
+ // display: inline-block !important;
270
+ // margin: 0 $spacer-sm-x !important;
271
+ // width: auto !important;
272
+ // }
@@ -0,0 +1,144 @@
1
+ .progress-circular {
2
+ height: $progress-circular-height;
3
+ position: relative;
4
+ width: $progress-circular-height;
5
+ }
6
+
7
+ .progress-circular-gap {
8
+ border-top: ($progress-circular-spinner-width / 2) solid $progress-circular-color;
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);
14
+ }
15
+
16
+ .progress-circular-inner {
17
+ animation: progress-circular-inner-rotate 5.332s $transition-timing-function-standard infinite;
18
+ height: $progress-circular-height;
19
+ position: relative;
20
+ width: $progress-circular-height;
21
+ }
22
+
23
+ .progress-circular-left,
24
+ .progress-circular-right {
25
+ height: $progress-circular-height;
26
+ overflow: hidden;
27
+ position: absolute;
28
+ top: 0;
29
+ width: ($progress-circular-height / 2);
30
+ }
31
+
32
+ .progress-circular-left {
33
+ // position
34
+ left: 0;
35
+ }
36
+
37
+ .progress-circular-right {
38
+ // position
39
+ right: 0;
40
+ }
41
+
42
+ .progress-circular-spinner {
43
+ border: $progress-circular-spinner-width solid $progress-circular-color;
44
+ border-bottom-color: transparent;
45
+ border-radius: 50%;
46
+ height: $progress-circular-height;
47
+ position: absolute;
48
+ top: 0;
49
+ width: $progress-circular-height;
50
+
51
+ .progress-circular-left & {
52
+ animation: progress-circular-spinner-left 1.333s $transition-timing-function-standard infinite;
53
+ border-right-color: transparent;
54
+ // position
55
+ left: 0;
56
+ }
57
+
58
+ .progress-circular-right & {
59
+ animation: progress-circular-spinner-right 1.333s $transition-timing-function-standard infinite;
60
+ border-left-color: transparent;
61
+ // position
62
+ right: 0;
63
+ }
64
+ }
65
+
66
+ .progress-circular-wrapper {
67
+ animation: progress-circular-wrapper-rotate 2.666s linear infinite;
68
+ }
69
+
70
+ // colour
71
+ @each $color in $palettes {
72
+ $i: index($palettes, $color);
73
+
74
+ .progress-circular-#{$color} {
75
+ .progress-circular-gap,
76
+ .progress-circular-spinner {
77
+ border-top-color: nth($palettes-color, $i);
78
+ }
79
+
80
+ .progress-circular-left .progress-circular-spinner {
81
+ border-left-color: nth($palettes-color, $i);
82
+ }
83
+
84
+ .progress-circular-right .progress-circular-spinner {
85
+ border-right-color: nth($palettes-color, $i);
86
+ }
87
+ }
88
+ }
89
+
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
+ }
118
+ }
119
+
120
+ @keyframes progress-circular-spinner-left {
121
+ 0%,
122
+ 100% {
123
+ transform: rotate(130deg);
124
+ }
125
+ 50% {
126
+ transform: rotate(-5deg);
127
+ }
128
+ }
129
+
130
+ @keyframes progress-circular-spinner-right {
131
+ 0%,
132
+ 100% {
133
+ transform: rotate(-130deg);
134
+ }
135
+ 50% {
136
+ transform: rotate(5deg);
137
+ }
138
+ }
139
+
140
+ @keyframes progress-circular-wrapper-rotate {
141
+ 100% {
142
+ transform: rotate(360deg);
143
+ }
144
+ }
@@ -0,0 +1,174 @@
1
+ //
2
+ // todo: material design guidelines do not have specs for striped progress bars
3
+ // maybe striped progress bars should be the "buffer" variation of linear indicator
4
+ // (https://material.google.com/components/progress-activity.html#progress-activity-types-of-indicators)
5
+ //
6
+
7
+ .progress {
8
+ appearance: none;
9
+ background-color: transparent;
10
+ background-image: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), linear-gradient(to right, #{$progress-bar-color} ,#{$progress-bar-color});
11
+ border: 0;
12
+ display: block;
13
+ height: $progress-height;
14
+ margin-bottom: $progress-margin-bottom;
15
+ overflow: hidden;
16
+ position: relative;
17
+ width: 100%;
18
+ }
19
+
20
+ .progress::-webkit-progress-bar {
21
+ background-color: transparent;
22
+ background-image: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), linear-gradient(to right, #{$progress-bar-color} ,#{$progress-bar-color});
23
+ }
24
+
25
+ // bar
26
+ .progress[value]::-ms-fill {
27
+ background-color: $progress-bar-color;
28
+ border: 0;
29
+ @include border-right-radius($border-radius);
30
+ }
31
+
32
+ .progress[value]::-moz-progress-bar {
33
+ background-color: $progress-bar-color;
34
+ @include border-right-radius($border-radius);
35
+ }
36
+
37
+ .progress[value]::-webkit-progress-value {
38
+ background-color: $progress-bar-color;
39
+ @include border-right-radius($border-radius);
40
+ }
41
+
42
+ .progress[value="100"]::-moz-progress-bar {
43
+ border-right-radius: 0;
44
+ }
45
+
46
+ .progress[value="100"]::-webkit-progress-value {
47
+ border-right-radius: 0;
48
+ }
49
+
50
+ // colour
51
+ @each $color in $palettes {
52
+ $i: index($palettes, $color);
53
+
54
+ .progress-#{$color} {
55
+ background-color: transparent;
56
+ background-image: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), linear-gradient(to right, #{nth($palettes-color, $i)} ,#{nth($palettes-color, $i)});
57
+
58
+ &::-webkit-progress-bar {
59
+ background-color: transparent;
60
+ background-image: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), linear-gradient(to right, #{nth($palettes-color, $i)} ,#{nth($palettes-color, $i)});
61
+ }
62
+ }
63
+
64
+ .progress-#{$color}[value] {
65
+ // filled-in portion of the bar
66
+ &::-ms-fill {
67
+ background-color: nth($palettes-color, $i);
68
+ }
69
+ &::-moz-progress-bar {
70
+ background-color: nth($palettes-color, $i);
71
+ }
72
+ &::-webkit-progress-value {
73
+ background-color: nth($palettes-color, $i);
74
+ }
75
+ }
76
+ }
77
+
78
+ //
79
+ // indeterminate
80
+ //
81
+ .progress-animated,
82
+ .progress-indeterminate {
83
+ &::after,
84
+ &::before {
85
+ animation-duration: 2s;
86
+ animation-iteration-count: infinite;
87
+ animation-timing-function: linear;
88
+ background-color: $progress-bar-color;
89
+ content: "";
90
+ display: block;
91
+ position: absolute;
92
+ top: 0;
93
+ bottom: 0;
94
+ left: 0;
95
+ width: 0%;
96
+ @include border-radius($border-radius);
97
+ }
98
+ &::after {
99
+ animation-name: progress-indeterminate-after;
100
+ }
101
+ &::before {
102
+ animation-name: progress-indeterminate-before;
103
+ }
104
+ }
105
+
106
+ @keyframes progress-indeterminate-after {
107
+ 0% {
108
+ // position
109
+ left: 0%;
110
+ width: 0%;
111
+ }
112
+ 50% {
113
+ // position
114
+ left: 25%;
115
+ width: 75%;
116
+ }
117
+ 75% {
118
+ // position
119
+ left: 100%;
120
+ width: 0%;
121
+ }
122
+ }
123
+
124
+ @keyframes progress-indeterminate-before {
125
+ 0%,
126
+ 62.5% {
127
+ // position
128
+ left: 0%;
129
+ width: 0%;
130
+ }
131
+ 71.875% {
132
+ // position
133
+ left: 0%;
134
+ width: 25%;
135
+ }
136
+ 81.25% {
137
+ // position
138
+ left: 25%;
139
+ width: 50%;
140
+ }
141
+ 100% {
142
+ // position
143
+ left: 100%;
144
+ width: 25%;
145
+ }
146
+ }
147
+
148
+ .progress-animated[value],
149
+ .progress-indeterminate[value] {
150
+ &::-ms-fill {
151
+ background-color: transparent;
152
+ }
153
+ &::-moz-progress-bar {
154
+ background-color: transparent;
155
+ }
156
+ &::-webkit-progress-value {
157
+ background-color: transparent;
158
+ }
159
+ }
160
+
161
+ // colour
162
+ @each $color in $palettes {
163
+ $i: index($palettes, $color);
164
+
165
+ .progress-animated,
166
+ .progress-indeterminate {
167
+ &.progress-#{$color} {
168
+ &::after,
169
+ &::before {
170
+ background-color: nth($palettes-color, $i);
171
+ }
172
+ }
173
+ }
174
+ }