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,30 @@
1
+ .mui-focus-ripple {
2
+ position: absolute;
3
+ height: 100%;
4
+ width: 100%;
5
+ top: 0;
6
+ left: 0;
7
+
8
+ .ease-out();
9
+ transform: scale(0);
10
+ opacity: 0;
11
+
12
+ .mui-focus-ripple-inner {
13
+ position: absolute;
14
+ height: 100%;
15
+ width: 100%;
16
+ border-radius: 50%;
17
+ background-color: rgba(0,0,0,0.1);
18
+
19
+ .pulsate(
20
+ @animation-name: focus-ripple-pulsate;
21
+ @start-size: 0.75;
22
+ @end-size: 0.85;
23
+ );
24
+ }
25
+
26
+ &.mui-is-shown {
27
+ transform: scale(1);
28
+ opacity: 1;
29
+ }
30
+ }
@@ -0,0 +1,9 @@
1
+ @import "circle.less";
2
+
3
+ .mui-touch-ripple {
4
+ height: 100%;
5
+ width: 100%;
6
+ position: absolute;
7
+ top: 0;
8
+ left: 0;
9
+ }
@@ -0,0 +1,163 @@
1
+ .react-draggable-dragging {
2
+ user-select: none;
3
+ }
4
+
5
+ .mui-slider {
6
+ @fill-gutter: @slider-handle-size-disabled - @slider-track-size;
7
+
8
+ -webkit-touch-callout: none;
9
+ cursor: default;
10
+ height: @slider-handle-size-active;
11
+ position: relative;
12
+
13
+ .handle-size(@size) {
14
+ width: @size;
15
+ height: @size;
16
+ }
17
+
18
+ .mui-slider-track {
19
+ position: absolute;
20
+ top: (@slider-handle-size-active - @slider-track-size) / 2;
21
+ left: 0;
22
+ width: 100%;
23
+ height: @slider-track-size;
24
+ }
25
+
26
+ .mui-slider-selection {
27
+ position: absolute;
28
+ top: 0;
29
+ height: 100%;
30
+
31
+ .mui-slider-selection-fill {
32
+ height: 100%;
33
+ .ease-out(@property: margin);
34
+ }
35
+ }
36
+
37
+ .mui-slider-selection-low {
38
+ left: 0;
39
+
40
+ .mui-slider-selection-fill {
41
+ background-color: @slider-selection-color;
42
+ margin-right: @fill-gutter;
43
+ }
44
+ }
45
+
46
+ .mui-slider-selection-high {
47
+ right: 0;
48
+
49
+ .mui-slider-selection-fill {
50
+ background-color: @slider-track-color;
51
+ margin-left: @fill-gutter;
52
+ }
53
+ }
54
+
55
+ .mui-slider-handle {
56
+ cursor: pointer;
57
+ position: absolute;
58
+ top: 0;
59
+ left: 0%;
60
+ z-index: 1;
61
+ margin: (@slider-track-size / 2) 0 0 0;
62
+
63
+ background-clip: padding-box;
64
+ border-radius: 50%;
65
+ transform: translate(-50%, -50%);
66
+ transition:
67
+ border 450ms @ease-out-function,
68
+ width 450ms @ease-out-function,
69
+ height 450ms @ease-out-function;
70
+
71
+ .handle-size(@slider-handle-size);
72
+
73
+ &:focus {
74
+ outline: none;
75
+ }
76
+ }
77
+
78
+ &:not(.mui-disabled) {
79
+ .mui-slider-handle {
80
+ border: 0px solid transparent;
81
+ background-color: @slider-selection-color;
82
+ &:active {
83
+ .handle-size(@slider-handle-size-active);
84
+ }
85
+ }
86
+
87
+ &:hover, &:focus {
88
+ .mui-slider-selection-high {
89
+ .mui-slider-selection-fill {
90
+ background: @slider-track-color-selected;
91
+ }
92
+ }
93
+
94
+ &:not(.mui-slider-zero) {
95
+ .mui-slider-handle:not(:active) {
96
+ border: @slider-handle-size solid fade(@slider-selection-color, 20%);
97
+ .handle-size(@slider-handle-size-active + @slider-handle-size);
98
+ }
99
+ }
100
+ }
101
+
102
+ &.mui-slider-zero {
103
+ .mui-slider-handle {
104
+ border: @slider-track-size solid @slider-track-color;
105
+ background-color: transparent;
106
+ box-shadow: none;
107
+
108
+ &:active {
109
+ border-color: @slider-track-color-selected;
110
+ width: @slider-handle-size-active !important;
111
+ height: @slider-handle-size-active !important;
112
+ transition:
113
+ background-color 450ms @ease-out-function,
114
+ width 450ms @ease-out-function,
115
+ height 450ms @ease-out-function;
116
+
117
+ & ~ .mui-slider-selection-high .mui-slider-selection-fill {
118
+ margin-left: @slider-handle-size !important;
119
+ .ease-out(@property: margin);
120
+ }
121
+ }
122
+ }
123
+
124
+ &:hover, &:focus {
125
+ .mui-slider-handle {
126
+ @size: @slider-handle-size + @slider-track-size;
127
+ border: @slider-track-size solid @slider-handle-color-zero;
128
+ width: @size;
129
+ height: @size;
130
+ }
131
+ }
132
+ }
133
+ }
134
+
135
+ &.mui-disabled {
136
+ @gutter: (@slider-handle-size-disabled + @slider-track-size) / 2;
137
+
138
+ cursor: not-allowed;
139
+
140
+ .mui-slider-selection-fill {
141
+ background-color: @slider-track-color;
142
+ }
143
+
144
+ .mui-slider-handle {
145
+ cursor: not-allowed;
146
+ background-color: @slider-track-color;
147
+ .handle-size(@slider-handle-size-disabled);
148
+ }
149
+
150
+ &.mui-slider-zero {
151
+ .mui-slider-selection-low .mui-slider-selection-fill {
152
+ margin-right: @gutter;
153
+ }
154
+ .mui-slider-selection-high .mui-slider-selection-fill {
155
+ margin-left: @gutter;
156
+ }
157
+ .mui-slider-handle {
158
+ border: @slider-track-size solid @slider-track-color;
159
+ background-color: transparent;
160
+ }
161
+ }
162
+ }
163
+ }
@@ -0,0 +1,44 @@
1
+ .mui-snackbar {
2
+
3
+ color: @mui-snackbar-text-color;
4
+ background-color: @mui-snackbar-background-color;
5
+ border-radius: 2px;
6
+ padding: 0 @desktop-gutter;
7
+ height: @desktop-subheader-height;
8
+ line-height: @desktop-subheader-height;
9
+ min-width: 288px;
10
+ max-width: 568px;
11
+
12
+ position: fixed;
13
+ z-index: 10;
14
+ bottom: @desktop-gutter;
15
+ margin-left: @desktop-gutter;
16
+
17
+ left: -10000px;
18
+ opacity: 0;
19
+ transform: translate3d(0, 20px, 0);
20
+ transition:
21
+ left 0ms @ease-out-function 400ms,
22
+ opacity 400ms @ease-out-function 0ms,
23
+ transform 400ms @ease-out-function 0ms;
24
+
25
+ .mui-snackbar-action {
26
+ color: @mui-snackbar-action-color;
27
+ float: right;
28
+ margin-top: 6px;
29
+ margin-right: -16px;
30
+ margin-left: @desktop-gutter;
31
+ background-color: transparent;
32
+ }
33
+
34
+ &.mui-is-open {
35
+ left: 0;
36
+ opacity: 1;
37
+ transform: translate3d(0, 0, 0);
38
+ transition:
39
+ left 0ms @ease-out-function 0ms,
40
+ opacity 400ms @ease-out-function 0ms,
41
+ transform 400ms @ease-out-function 0ms;
42
+ }
43
+
44
+ }
@@ -0,0 +1,17 @@
1
+ .mui-subheader {
2
+ .mui-font-style-body-2;
3
+ margin: 0;
4
+ height: @desktop-subheader-height + @desktop-gutter-mini;
5
+ line-height: @desktop-subheader-height;
6
+ color: @subheader-text-color;
7
+ border-top: solid 1px @subheader-border-color;
8
+ padding-top: @desktop-gutter-mini;
9
+ margin-top: @desktop-gutter-mini;
10
+
11
+ &:first-child {
12
+ height: @desktop-subheader-height;
13
+ border-top: none;
14
+ padding-top: 0;
15
+ margin-top: 0;
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ .mui-svg-icon {
2
+ position: relative;
3
+ height: @icon-size;
4
+ width: @icon-size;
5
+ display: inline-block;
6
+ user-select: none;
7
+
8
+ * {
9
+ fill: @body-text-color;
10
+ }
11
+ }
@@ -0,0 +1,46 @@
1
+ @column-width: 200px;
2
+
3
+ .mui-table {
4
+ //background-color: darken(green, 10%);
5
+ padding: 0 @desktop-gutter;
6
+
7
+ .mui-table-header {
8
+ //background-color: green;
9
+
10
+ .mui-table-header-column {
11
+ display: inline-block;
12
+ height: 48px;
13
+ line-height: 48px;
14
+ //background-color: lighten(green, 10%);
15
+ width: @column-width;
16
+ }
17
+
18
+ .mui-table-header-pagify {
19
+ display: inline-block;
20
+ //background-color: lighten(green, 25%);
21
+ height: 48px;
22
+ line-height: 48px;
23
+ float: right;
24
+ }
25
+ }
26
+
27
+ .mui-table-rows {
28
+ //background-color: lighten(green, 20%);
29
+
30
+ .mui-table-rows-item {
31
+ height: 48px;
32
+ line-height: 48px;
33
+ //background-color: lighten(green, 30%);
34
+ display: block;
35
+ width: 100%;
36
+ }
37
+
38
+ .mui-table-rows-actions {
39
+ height: 48px;
40
+ line-height: 48px;
41
+ display: inline-block;
42
+ //background-color: lighten(green, 25%);
43
+ float: right;
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,41 @@
1
+ .mui-tabs-container {
2
+ position: relative;
3
+
4
+ .mui-tab-item-container {
5
+ margin: 0;
6
+ padding: 0;
7
+ width: 100%;
8
+ height: 48px;
9
+ background-color: #00bcd4;
10
+ white-space: nowrap;
11
+ display: block;
12
+
13
+
14
+ .mui-tab-item {
15
+ display: inline-block;
16
+ height: 100%;
17
+ cursor: pointer;
18
+ text-align: center;
19
+ line-height: 48px;
20
+ color: #fff;
21
+ opacity: .6;
22
+ font-size: 14sp;
23
+ font-weight: 500;
24
+ font: @headingFontFamily;
25
+
26
+
27
+ &.mui-tab-is-active {
28
+ color: #fff;
29
+ opacity: 1;
30
+ font: @headingFontFamily;
31
+ }
32
+
33
+ .mui-tab-template {
34
+ display: block;
35
+ width: 100%;
36
+ position: relative;
37
+ text-align: initial;
38
+ }
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,168 @@
1
+ .mui-text-field {
2
+ @disabled-text-color: fade(@body-text-color, 30%);
3
+ @error-color: @red-500;
4
+
5
+ font-size: 16px;
6
+ line-height: 24px;
7
+
8
+ width: (64px * 4);
9
+ height: 48px;
10
+ display: inline-block;
11
+ position: relative;
12
+ .ease-out(@property: height, @duration: 200ms);
13
+
14
+ //Normal Text Field Styles
15
+ //------------------------
16
+ .mui-text-field-hint,
17
+ .mui-text-field-floating-label {
18
+ position: absolute;
19
+ line-height: 48px;
20
+ color: @disabled-text-color;
21
+ opacity: 1;
22
+ .ease-out();
23
+ }
24
+
25
+ .mui-text-field-error {
26
+ position: absolute;
27
+ bottom: -10px;
28
+ font-size: 12px;
29
+ line-height: 12px;
30
+ color: @error-color;
31
+ .ease-out();
32
+ }
33
+
34
+ .mui-text-field-input,
35
+ .mui-text-field-textarea {
36
+ position: relative;
37
+ width: 100%;
38
+ height: 100%;
39
+ border: none;
40
+ outline: none;
41
+ background-color: @transparent;
42
+ color: @body-text-color;
43
+ }
44
+
45
+ .mui-text-field-textarea {
46
+ margin-top: 12px;
47
+ }
48
+
49
+ .mui-text-field-underline,
50
+ .mui-text-field-focus-underline {
51
+ position: absolute;
52
+ width: 100%;
53
+ bottom: 8px;
54
+ margin: 0;
55
+ }
56
+
57
+ .mui-text-field-focus-underline {
58
+ border-color: @primary-1-color;
59
+ border-bottom-width: 2px;
60
+ transform: scaleX(0);
61
+ .ease-out();
62
+ }
63
+
64
+ &.mui-has-error {
65
+ .mui-text-field-focus-underline {
66
+ border-color: @error-color;
67
+ transform: scaleX(1);
68
+ }
69
+ }
70
+
71
+ &.mui-has-value {
72
+ .mui-text-field-hint {
73
+ opacity: 0;
74
+ }
75
+ }
76
+
77
+ &.mui-is-disabled {
78
+
79
+ .mui-text-field-input {
80
+ color: @disabled-text-color;
81
+ }
82
+
83
+ .mui-text-field-underline {
84
+ border: none;
85
+ height: 40px;
86
+ overflow: hidden;
87
+
88
+ //hack because border style dotted just doesn't look right
89
+ //border-bottom-style: dotted;
90
+ &:after {
91
+ content: '..............................................................................................................................................................................................................................................................................................................................................................';
92
+ position: absolute;
93
+ top: 23px;
94
+ color: @disabled-text-color;
95
+ }
96
+ }
97
+ }
98
+
99
+ &.mui-is-focused {
100
+ .mui-text-field-focus-underline {
101
+ transform: scaleX(1);
102
+ }
103
+ }
104
+
105
+ //Floating Label Text Field Styles
106
+ //--------------------------------
107
+ &.mui-has-floating-labels {
108
+ height: 72px;
109
+
110
+ .mui-text-field-floating-label {
111
+ top: 24px;
112
+ transform: scale(1) translate3d(0, 0, 0);
113
+ transform-origin: left top;
114
+ }
115
+
116
+ .mui-text-field-hint {
117
+ top: 24px;
118
+ opacity: 0;
119
+ }
120
+
121
+ .mui-text-field-input {
122
+ padding-top: 24px;
123
+ }
124
+
125
+ &.mui-has-value,
126
+ &.mui-is-focused {
127
+ .mui-text-field-floating-label {
128
+ transform: scale(0.75) translate3d(0, -18px, 0);
129
+ }
130
+ }
131
+
132
+ &.mui-has-value {
133
+ .mui-text-field-floating-label {
134
+ color: fade(@body-text-color, 50%);
135
+ }
136
+ }
137
+
138
+ &.mui-is-disabled {
139
+ .mui-text-field-hint {
140
+ color: @disabled-text-color;
141
+ }
142
+ }
143
+
144
+ &.mui-is-focused {
145
+
146
+ .mui-text-field-hint {
147
+ opacity: 1;
148
+ }
149
+
150
+ .mui-text-field-floating-label {
151
+ transform: scale(0.75) translate3d(0, -18px, 0);
152
+ color: @primary-1-color;
153
+ }
154
+
155
+ &.mui-has-error {
156
+ .mui-text-field-floating-label {
157
+ color: @error-color;
158
+ }
159
+ }
160
+
161
+ &.mui-has-value {
162
+ .mui-text-field-hint {
163
+ opacity: 0;
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }