material-ui 0.7.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +31 -0
  6. data/Rakefile +20 -0
  7. data/lib/material-ui.rb +4 -0
  8. data/material-ui-gem.gemspec +33 -0
  9. data/vendor/assets/javascripts/material-ui.js +1 -0
  10. data/vendor/assets/javascripts/material-ui/components/app-bar.jsx +93 -0
  11. data/vendor/assets/javascripts/material-ui/components/app-canvas.jsx +27 -0
  12. data/vendor/assets/javascripts/material-ui/components/checkbox.jsx +60 -0
  13. data/vendor/assets/javascripts/material-ui/components/date-picker/calendar-month.jsx +59 -0
  14. data/vendor/assets/javascripts/material-ui/components/date-picker/calendar-toolbar.jsx +64 -0
  15. data/vendor/assets/javascripts/material-ui/components/date-picker/calendar.jsx +194 -0
  16. data/vendor/assets/javascripts/material-ui/components/date-picker/date-display.jsx +79 -0
  17. data/vendor/assets/javascripts/material-ui/components/date-picker/date-picker-dialog.jsx +118 -0
  18. data/vendor/assets/javascripts/material-ui/components/date-picker/date-picker.jsx +116 -0
  19. data/vendor/assets/javascripts/material-ui/components/date-picker/day-button.jsx +49 -0
  20. data/vendor/assets/javascripts/material-ui/components/dialog-window.jsx +183 -0
  21. data/vendor/assets/javascripts/material-ui/components/dialog.jsx +54 -0
  22. data/vendor/assets/javascripts/material-ui/components/drop-down-icon.jsx +68 -0
  23. data/vendor/assets/javascripts/material-ui/components/drop-down-menu.jsx +94 -0
  24. data/vendor/assets/javascripts/material-ui/components/enhanced-button.jsx +147 -0
  25. data/vendor/assets/javascripts/material-ui/components/enhanced-switch.jsx +296 -0
  26. data/vendor/assets/javascripts/material-ui/components/enhanced-textarea.jsx +113 -0
  27. data/vendor/assets/javascripts/material-ui/components/flat-button.jsx +46 -0
  28. data/vendor/assets/javascripts/material-ui/components/floating-action-button.jsx +123 -0
  29. data/vendor/assets/javascripts/material-ui/components/font-icon.jsx +23 -0
  30. data/vendor/assets/javascripts/material-ui/components/icon-button.jsx +123 -0
  31. data/vendor/assets/javascripts/material-ui/components/ink-bar.jsx +25 -0
  32. data/vendor/assets/javascripts/material-ui/components/input.jsx +143 -0
  33. data/vendor/assets/javascripts/material-ui/components/left-nav.jsx +105 -0
  34. data/vendor/assets/javascripts/material-ui/components/menu/link-menu-item.jsx +42 -0
  35. data/vendor/assets/javascripts/material-ui/components/menu/menu-item.jsx +105 -0
  36. data/vendor/assets/javascripts/material-ui/components/menu/menu.jsx +325 -0
  37. data/vendor/assets/javascripts/material-ui/components/menu/subheader-menu-item.jsx +18 -0
  38. data/vendor/assets/javascripts/material-ui/components/mixins/classable.js +42 -0
  39. data/vendor/assets/javascripts/material-ui/components/mixins/click-awayable.js +35 -0
  40. data/vendor/assets/javascripts/material-ui/components/mixins/window-listenable.js +23 -0
  41. data/vendor/assets/javascripts/material-ui/components/overlay.jsx +58 -0
  42. data/vendor/assets/javascripts/material-ui/components/paper.jsx +58 -0
  43. data/vendor/assets/javascripts/material-ui/components/radio-button-group.jsx +112 -0
  44. data/vendor/assets/javascripts/material-ui/components/radio-button.jsx +65 -0
  45. data/vendor/assets/javascripts/material-ui/components/raised-button.jsx +102 -0
  46. data/vendor/assets/javascripts/material-ui/components/ripples/circle.jsx +35 -0
  47. data/vendor/assets/javascripts/material-ui/components/ripples/focus-ripple.jsx +40 -0
  48. data/vendor/assets/javascripts/material-ui/components/ripples/touch-ripple.jsx +174 -0
  49. data/vendor/assets/javascripts/material-ui/components/slider.jsx +178 -0
  50. data/vendor/assets/javascripts/material-ui/components/snackbar.jsx +76 -0
  51. data/vendor/assets/javascripts/material-ui/components/svg-icons/drop-down-arrow.jsx +16 -0
  52. data/vendor/assets/javascripts/material-ui/components/svg-icons/navigation-chevron-left.jsx +16 -0
  53. data/vendor/assets/javascripts/material-ui/components/svg-icons/navigation-chevron-right.jsx +17 -0
  54. data/vendor/assets/javascripts/material-ui/components/svg-icons/navigation-menu.jsx +16 -0
  55. data/vendor/assets/javascripts/material-ui/components/svg-icons/svg-icon.jsx +23 -0
  56. data/vendor/assets/javascripts/material-ui/components/svg-icons/toggle-check-box-checked.jsx +16 -0
  57. data/vendor/assets/javascripts/material-ui/components/svg-icons/toggle-check-box-outline-blank.jsx +16 -0
  58. data/vendor/assets/javascripts/material-ui/components/svg-icons/toggle-radio-button-off.jsx +16 -0
  59. data/vendor/assets/javascripts/material-ui/components/svg-icons/toggle-radio-button-on.jsx +16 -0
  60. data/vendor/assets/javascripts/material-ui/components/table-header.jsx +50 -0
  61. data/vendor/assets/javascripts/material-ui/components/table-rows-item.jsx +31 -0
  62. data/vendor/assets/javascripts/material-ui/components/table-rows.jsx +57 -0
  63. data/vendor/assets/javascripts/material-ui/components/tabs/tab.jsx +38 -0
  64. data/vendor/assets/javascripts/material-ui/components/tabs/tabTemplate.jsx +15 -0
  65. data/vendor/assets/javascripts/material-ui/components/tabs/tabs.jsx +96 -0
  66. data/vendor/assets/javascripts/material-ui/components/text-field.jsx +215 -0
  67. data/vendor/assets/javascripts/material-ui/components/toggle.jsx +62 -0
  68. data/vendor/assets/javascripts/material-ui/components/toolbar-group.jsx +28 -0
  69. data/vendor/assets/javascripts/material-ui/components/toolbar.jsx +21 -0
  70. data/vendor/assets/javascripts/material-ui/components/tooltip.jsx +58 -0
  71. data/vendor/assets/javascripts/material-ui/components/transition-groups/slide-in.jsx +48 -0
  72. data/vendor/assets/javascripts/material-ui/components/utils/css-event.js +52 -0
  73. data/vendor/assets/javascripts/material-ui/components/utils/date-time.js +132 -0
  74. data/vendor/assets/javascripts/material-ui/components/utils/dom.js +71 -0
  75. data/vendor/assets/javascripts/material-ui/components/utils/events.js +34 -0
  76. data/vendor/assets/javascripts/material-ui/components/utils/key-code.js +10 -0
  77. data/vendor/assets/javascripts/material-ui/components/utils/key-line.js +13 -0
  78. data/vendor/assets/javascripts/material-ui/components/utils/unique-id.js +7 -0
  79. data/vendor/assets/stylesheets/material-ui.less +2 -0
  80. data/vendor/assets/stylesheets/material-ui/components.less +5 -0
  81. data/vendor/assets/stylesheets/material-ui/components/app-bar.less +37 -0
  82. data/vendor/assets/stylesheets/material-ui/components/card.less +20 -0
  83. data/vendor/assets/stylesheets/material-ui/components/checkbox.less +66 -0
  84. data/vendor/assets/stylesheets/material-ui/components/components.less +37 -0
  85. data/vendor/assets/stylesheets/material-ui/components/date-picker/calendar-month.less +11 -0
  86. data/vendor/assets/stylesheets/material-ui/components/date-picker/calendar-toolbar.less +23 -0
  87. data/vendor/assets/stylesheets/material-ui/components/date-picker/calendar.less +59 -0
  88. data/vendor/assets/stylesheets/material-ui/components/date-picker/date-display.less +84 -0
  89. data/vendor/assets/stylesheets/material-ui/components/date-picker/date-picker-dialog.less +18 -0
  90. data/vendor/assets/stylesheets/material-ui/components/date-picker/date-picker.less +9 -0
  91. data/vendor/assets/stylesheets/material-ui/components/date-picker/day-button.less +35 -0
  92. data/vendor/assets/stylesheets/material-ui/components/dialog-window.less +42 -0
  93. data/vendor/assets/stylesheets/material-ui/components/dialog.less +10 -0
  94. data/vendor/assets/stylesheets/material-ui/components/drop-down-icon.less +43 -0
  95. data/vendor/assets/stylesheets/material-ui/components/drop-down-menu.less +77 -0
  96. data/vendor/assets/stylesheets/material-ui/components/enhanced-button.less +24 -0
  97. data/vendor/assets/stylesheets/material-ui/components/enhanced-switch.less +52 -0
  98. data/vendor/assets/stylesheets/material-ui/components/enhanced-textarea.less +16 -0
  99. data/vendor/assets/stylesheets/material-ui/components/flat-button.less +93 -0
  100. data/vendor/assets/stylesheets/material-ui/components/floating-action-button.less +95 -0
  101. data/vendor/assets/stylesheets/material-ui/components/font-icon.less +6 -0
  102. data/vendor/assets/stylesheets/material-ui/components/icon-button.less +46 -0
  103. data/vendor/assets/stylesheets/material-ui/components/ink-bar.less +9 -0
  104. data/vendor/assets/stylesheets/material-ui/components/input.less +186 -0
  105. data/vendor/assets/stylesheets/material-ui/components/left-nav.less +31 -0
  106. data/vendor/assets/stylesheets/material-ui/components/menu-item.less +69 -0
  107. data/vendor/assets/stylesheets/material-ui/components/menu.less +50 -0
  108. data/vendor/assets/stylesheets/material-ui/components/overlay.less +21 -0
  109. data/vendor/assets/stylesheets/material-ui/components/paper.less +59 -0
  110. data/vendor/assets/stylesheets/material-ui/components/radio-button.less +67 -0
  111. data/vendor/assets/stylesheets/material-ui/components/raised-button.less +132 -0
  112. data/vendor/assets/stylesheets/material-ui/components/ripples/circle.less +31 -0
  113. data/vendor/assets/stylesheets/material-ui/components/ripples/focus-ripple.less +30 -0
  114. data/vendor/assets/stylesheets/material-ui/components/ripples/touch-ripple.less +9 -0
  115. data/vendor/assets/stylesheets/material-ui/components/slider.less +163 -0
  116. data/vendor/assets/stylesheets/material-ui/components/snackbar.less +44 -0
  117. data/vendor/assets/stylesheets/material-ui/components/subheader.less +17 -0
  118. data/vendor/assets/stylesheets/material-ui/components/svg-icon.less +11 -0
  119. data/vendor/assets/stylesheets/material-ui/components/table.less +46 -0
  120. data/vendor/assets/stylesheets/material-ui/components/tabs.less +41 -0
  121. data/vendor/assets/stylesheets/material-ui/components/text-field.less +168 -0
  122. data/vendor/assets/stylesheets/material-ui/components/toggle.less +83 -0
  123. data/vendor/assets/stylesheets/material-ui/components/toolbar.less +95 -0
  124. data/vendor/assets/stylesheets/material-ui/components/tooltip.less +73 -0
  125. data/vendor/assets/stylesheets/material-ui/components/transition-groups/slide-in.less +92 -0
  126. data/vendor/assets/stylesheets/material-ui/core/base.less +31 -0
  127. data/vendor/assets/stylesheets/material-ui/core/core.less +4 -0
  128. data/vendor/assets/stylesheets/material-ui/core/keylines.less +29 -0
  129. data/vendor/assets/stylesheets/material-ui/core/layouts.less +12 -0
  130. data/vendor/assets/stylesheets/material-ui/core/typography.less +158 -0
  131. data/vendor/assets/stylesheets/material-ui/mixins/clearfix.less +22 -0
  132. data/vendor/assets/stylesheets/material-ui/mixins/mixins.less +3 -0
  133. data/vendor/assets/stylesheets/material-ui/mixins/no-wrap.less +3 -0
  134. data/vendor/assets/stylesheets/material-ui/mixins/transitions.less +17 -0
  135. data/vendor/assets/stylesheets/material-ui/resets/normalize.css +430 -0
  136. data/vendor/assets/stylesheets/material-ui/resets/typography-resets.less +34 -0
  137. data/vendor/assets/stylesheets/material-ui/scaffolding.less +10 -0
  138. data/vendor/assets/stylesheets/material-ui/variables/colors.less +285 -0
  139. data/vendor/assets/stylesheets/material-ui/variables/custom-variables.less +163 -0
  140. data/vendor/assets/stylesheets/material-ui/variables/media-queries.less +4 -0
  141. data/vendor/assets/stylesheets/material-ui/variables/spacing.less +16 -0
  142. metadata +268 -0
@@ -0,0 +1,132 @@
1
+ module.exports = {
2
+
3
+ addDays: function(d, days) {
4
+ var newDate = this.clone(d);
5
+ newDate.setDate(d.getDate() + days);
6
+ return newDate;
7
+ },
8
+
9
+ addMonths: function(d, months) {
10
+ var newDate = this.clone(d);
11
+ newDate.setMonth(d.getMonth() + months);
12
+ return newDate;
13
+ },
14
+
15
+ clone: function(d) {
16
+ return new Date(d.getTime());
17
+ },
18
+
19
+ getDaysInMonth: function(d) {
20
+ var resultDate = this.getFirstDayOfMonth(d);
21
+
22
+ resultDate.setMonth(resultDate.getMonth() + 1);
23
+ resultDate.setDate(resultDate.getDate() - 1);
24
+
25
+ return resultDate.getDate();
26
+ },
27
+
28
+ getFirstDayOfMonth: function(d) {
29
+ return new Date(d.getFullYear(), d.getMonth(), 1);
30
+ },
31
+
32
+ getFullMonth: function(d) {
33
+ var month = d.getMonth();
34
+ switch (month) {
35
+ case 0: return 'January';
36
+ case 1: return 'February';
37
+ case 2: return 'March';
38
+ case 3: return 'April';
39
+ case 4: return 'May';
40
+ case 5: return 'June';
41
+ case 6: return 'July';
42
+ case 7: return 'August';
43
+ case 8: return 'September';
44
+ case 9: return 'October';
45
+ case 10: return 'November';
46
+ case 11: return 'December';
47
+ }
48
+ },
49
+
50
+ getShortMonth: function(d) {
51
+ var month = d.getMonth();
52
+ switch (month) {
53
+ case 0: return 'Jan';
54
+ case 1: return 'Feb';
55
+ case 2: return 'Mar';
56
+ case 3: return 'Apr';
57
+ case 4: return 'May';
58
+ case 5: return 'Jun';
59
+ case 6: return 'Jul';
60
+ case 7: return 'Aug';
61
+ case 8: return 'Sep';
62
+ case 9: return 'Oct';
63
+ case 10: return 'Nov';
64
+ case 11: return 'Dec';
65
+ }
66
+ },
67
+
68
+ getDayOfWeek: function(d) {
69
+ var dow = d.getDay();
70
+ switch (dow) {
71
+ case 0: return 'Sunday';
72
+ case 1: return 'Monday';
73
+ case 2: return 'Tuesday';
74
+ case 3: return 'Wednesday';
75
+ case 4: return 'Thursday';
76
+ case 5: return 'Friday';
77
+ case 6: return 'Saturday';
78
+ }
79
+ },
80
+
81
+ getWeekArray: function(d) {
82
+ var dayArray = [];
83
+ var daysInMonth = this.getDaysInMonth(d);
84
+ var daysInWeek;
85
+ var emptyDays;
86
+ var firstDayOfWeek;
87
+ var week;
88
+ var weekArray = [];
89
+
90
+ for (var i = 1; i <= daysInMonth; i++) {
91
+ dayArray.push(new Date(d.getFullYear(), d.getMonth(), i));
92
+ };
93
+
94
+ while (dayArray.length) {
95
+ firstDayOfWeek = dayArray[0].getDay();
96
+ daysInWeek = 7 - firstDayOfWeek;
97
+ emptyDays = 7 - daysInWeek;
98
+ week = dayArray.splice(0, daysInWeek);
99
+
100
+ for (var i = 0; i < emptyDays; i++) {
101
+ week.unshift(null);
102
+ };
103
+
104
+ weekArray.push(week);
105
+ }
106
+
107
+ return weekArray;
108
+ },
109
+
110
+ format: function(date) {
111
+ var m = date.getMonth() + 1;
112
+ var d = date.getDate();
113
+ var y = date.getFullYear();
114
+ return m + '/' + d + '/' + y;
115
+ },
116
+
117
+ isEqualDate: function(d1, d2) {
118
+ return d1 && d2 &&
119
+ (d1.getFullYear() === d2.getFullYear()) &&
120
+ (d1.getMonth() === d2.getMonth()) &&
121
+ (d1.getDate() === d2.getDate());
122
+ },
123
+
124
+ monthDiff: function(d1, d2) {
125
+ var m;
126
+ m = (d1.getFullYear() - d2.getFullYear()) * 12;
127
+ m += d1.getMonth();
128
+ m -= d2.getMonth();
129
+ return m;
130
+ }
131
+
132
+ }
@@ -0,0 +1,71 @@
1
+ module.exports = {
2
+
3
+ isDescendant: function(parent, child) {
4
+ var node = child.parentNode;
5
+
6
+ while (node != null) {
7
+ if (node == parent) return true;
8
+ node = node.parentNode;
9
+ }
10
+
11
+ return false;
12
+ },
13
+
14
+ offset: function(el) {
15
+ var rect = el.getBoundingClientRect();
16
+ return {
17
+ top: rect.top + document.body.scrollTop,
18
+ left: rect.left + document.body.scrollLeft
19
+ };
20
+ },
21
+
22
+ addClass: function(el, className) {
23
+ if (el.classList)
24
+ el.classList.add(className);
25
+ else
26
+ el.className += ' ' + className;
27
+ },
28
+
29
+ removeClass: function(el, className) {
30
+ if (el.classList)
31
+ el.classList.remove(className);
32
+ else
33
+ el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
34
+ },
35
+
36
+ hasClass: function(el, className) {
37
+ if (el.classList)
38
+ return el.classList.contains(className);
39
+ else
40
+ return new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className);
41
+ },
42
+
43
+ toggleClass: function(el, className) {
44
+ if (this.hasClass(el, className))
45
+ this.removeClass(el, className);
46
+ else
47
+ this.addClass(el, className);
48
+ },
49
+
50
+ forceRedraw: function(el) {
51
+ var originalDisplay = el.style.display;
52
+
53
+ el.style.display = 'none';
54
+ el.offsetHeight;
55
+ el.style.display = originalDisplay;
56
+ },
57
+
58
+ withoutTransition: function(el, callback) {
59
+ //turn off transition
60
+ el.style.transition = 'none';
61
+
62
+ callback();
63
+
64
+ //force a redraw
65
+ this.forceRedraw(el);
66
+
67
+ //put the transition back
68
+ el.style.transition = '';
69
+ }
70
+
71
+ }
@@ -0,0 +1,34 @@
1
+ module.exports = {
2
+
3
+ once: function(el, type, callback) {
4
+ var typeArray = type.split(' ');
5
+ var recursiveFunction = function(e){
6
+ e.target.removeEventListener(e.type, recursiveFunction);
7
+ return callback(e);
8
+ };
9
+
10
+ for (var i = typeArray.length - 1; i >= 0; i--) {
11
+ this.on(el, typeArray[i], recursiveFunction);
12
+ }
13
+ },
14
+
15
+ // IE8+ Support
16
+ on: function(el, type, callback) {
17
+ if(el.addEventListener) {
18
+ el.addEventListener(type, callback);
19
+ } else {
20
+ el.attachEvent('on' + type, function() {
21
+ callback.call(el);
22
+ });
23
+ }
24
+ },
25
+
26
+ // IE8+ Support
27
+ off: function(el, type, callback) {
28
+ if(el.removeEventListener) {
29
+ el.removeEventListener(type, callback);
30
+ } else {
31
+ el.detachEvent('on' + type, callback);
32
+ }
33
+ }
34
+ };
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ DOWN: 40,
3
+ ESC: 27,
4
+ ENTER: 13,
5
+ LEFT: 37,
6
+ RIGHT: 39,
7
+ SPACE: 32,
8
+ TAB: 9,
9
+ UP: 38
10
+ }
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+
3
+ Desktop: {
4
+ GUTTER: 24,
5
+ GUTTER_LESS: 16,
6
+ INCREMENT: 64,
7
+ MENU_ITEM_HEIGHT: 32
8
+ },
9
+
10
+ getIncrementalDim: function(dim) {
11
+ return Math.ceil(dim / this.Desktop.INCREMENT) * this.Desktop.INCREMENT;
12
+ }
13
+ }
@@ -0,0 +1,7 @@
1
+ var index = 0;
2
+
3
+ module.exports = {
4
+ generate: function() {
5
+ return "mui-id-" + (index++);
6
+ }
7
+ };
@@ -0,0 +1,2 @@
1
+ @import "./material-ui/scaffolding"
2
+ @import "./material-ui/components"
@@ -0,0 +1,5 @@
1
+ // Core CSS
2
+ @import "core/core.less";
3
+
4
+ // Components
5
+ @import "components/components.less";
@@ -0,0 +1,37 @@
1
+ .mui-app-bar {
2
+ width: 100%;
3
+ min-height: @desktop-keyline-increment;
4
+
5
+ background-color: @app-bar-color;
6
+ z-index: 5;
7
+
8
+ .mui-paper-container {
9
+ padding-left: @desktop-gutter;
10
+ padding-right: @desktop-gutter;
11
+ }
12
+
13
+ .mui-icon-button {
14
+ margin-top: ((@app-bar-height - @icon-button-size) / 2);
15
+ * {
16
+ fill: @app-bar-text-color;
17
+ color: @app-bar-text-color;
18
+ }
19
+ }
20
+
21
+ .mui-app-bar-title {
22
+ .mui-font-style-headline;
23
+ color: @app-bar-text-color;
24
+ padding-top: 0;
25
+ line-height: @desktop-keyline-increment;
26
+ float: left;
27
+ }
28
+
29
+ .mui-app-bar-navigation-icon-button {
30
+ float: left;
31
+
32
+ margin-right: 8px;
33
+
34
+ margin-left: -16px;
35
+ }
36
+
37
+ }
@@ -0,0 +1,20 @@
1
+ .mui-card {
2
+ @card-padding: 24px;
3
+
4
+ background-color: @white;
5
+ padding: @card-padding;
6
+ //.border-radius;
7
+
8
+ .mui-card-toolbar {
9
+ margin-top: (@card-padding * -1);
10
+ margin-left: (@card-padding * -1);
11
+ margin-right: (@card-padding * -1);
12
+ margin-bottom: @card-padding;
13
+ //border-bottom: solid 1px @border-color;
14
+ line-height: 56px;
15
+ height: 56px;
16
+ padding-left: @card-padding;
17
+ padding-right: @card-padding;
18
+ .mui-font-style-menu;
19
+ }
20
+ }
@@ -0,0 +1,66 @@
1
+ .mui-checkbox {
2
+ .mui-checkbox-icon {
3
+ @checkbox-size: 24px;
4
+
5
+ height: @checkbox-size;
6
+ width: @checkbox-size;
7
+ margin-right: @desktop-gutter-less;
8
+
9
+ .mui-checkbox-check {
10
+ position: absolute;
11
+ opacity: 0;
12
+ transform: scale(0);
13
+ transform-origin: 50% 50%;
14
+
15
+ transition:
16
+ opacity 450ms @ease-out-function 0ms,
17
+ transform 0ms @ease-out-function 450ms;
18
+
19
+ * { fill: @checkbox-checked-color; }
20
+ }
21
+
22
+ .mui-checkbox-box {
23
+ position: absolute;
24
+ * {
25
+ fill: @checkbox-box-color;
26
+ .ease-out(@duration: 2s; @delay: 200ms);
27
+ }
28
+ }
29
+ }
30
+
31
+ &.mui-is-switched {
32
+ .mui-checkbox-icon {
33
+ .mui-checkbox-check {
34
+ .ease-out(@duration: .45s; @delay: 0s);
35
+ opacity: 1;
36
+ transform: scale(1);
37
+ transform-origin: 50% 50%;
38
+
39
+ transition:
40
+ opacity 0ms @ease-out-function 0ms,
41
+ transform 800ms @ease-out-function 0ms;
42
+ }
43
+ .mui-checkbox-box {
44
+ .ease-out(@duration: 100s; @delay: 0ms);
45
+ * { fill: @checkbox-checked-color; }
46
+ }
47
+ }
48
+ }
49
+
50
+ &.mui-is-disabled {
51
+ .mui-checkbox-icon {
52
+ .mui-checkbox-check,
53
+ .mui-checkbox-box {
54
+ * { fill: @checkbox-disabled-color; }
55
+ }
56
+ }
57
+ }
58
+
59
+ &.mui-is-required {
60
+ .mui-checkbox-icon {
61
+ .mui-checkbox-box {
62
+ * { fill: @checkbox-required-color; }
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,37 @@
1
+ @import "app-bar.less";
2
+ @import "card.less";
3
+ @import "checkbox.less";
4
+ @import "date-picker/date-picker.less";
5
+ @import "dialog-window.less";
6
+ @import "dialog.less";
7
+ @import "drop-down-icon.less";
8
+ @import "drop-down-menu.less";
9
+ @import "enhanced-button.less";
10
+ @import "enhanced-switch.less";
11
+ @import "enhanced-textarea.less";
12
+ @import "flat-button.less";
13
+ @import "floating-action-button.less";
14
+ @import "font-icon.less";
15
+ @import "icon-button.less";
16
+ @import "ink-bar.less";
17
+ @import "input.less";
18
+ @import "left-nav.less";
19
+ @import "menu.less";
20
+ @import "menu-item.less";
21
+ @import "overlay.less";
22
+ @import "paper.less";
23
+ @import "radio-button.less";
24
+ @import "raised-button.less";
25
+ @import "ripples/focus-ripple.less";
26
+ @import "ripples/touch-ripple.less";
27
+ @import "slider.less";
28
+ @import "snackbar.less";
29
+ @import "subheader.less";
30
+ @import "svg-icon.less";
31
+ @import "table.less";
32
+ @import "tabs.less";
33
+ @import "text-field.less";
34
+ @import "toggle.less";
35
+ @import "toolbar.less";
36
+ @import "tooltip.less";
37
+ @import "transition-groups/slide-in.less";