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,52 @@
1
+ .mui-enhanced-switch {
2
+ @mui-switch-width: 60px;
3
+
4
+ position: relative;
5
+ cursor: pointer;
6
+ overflow: visible;
7
+ display: table;
8
+ height: auto;
9
+ width: 100%;
10
+
11
+ .mui-enhanced-switch-input {
12
+ position: absolute;
13
+ cursor: pointer;
14
+ pointer-events: all;
15
+ opacity: 0;
16
+ width: 100%;
17
+ height: 100%;
18
+ z-index: 2;
19
+ left: 0;
20
+ }
21
+
22
+ .mui-enhanced-switch-wrap {
23
+ .ease-out();
24
+ float: left;
25
+ position: relative;
26
+ display: table-column;
27
+
28
+
29
+ .mui-touch-ripple,
30
+ .mui-focus-ripple-inner {
31
+ width: 200%;
32
+ height: 200%;
33
+ top: -12px;
34
+ left: -12px;
35
+ }
36
+ }
37
+
38
+ .mui-switch-label {
39
+ float: left;
40
+ position: relative;
41
+ display: table-column;
42
+ width: calc(~"100% - @{mui-switch-width}");
43
+ line-height: 24px;
44
+ }
45
+
46
+ &.mui-is-switched {
47
+ .mui-focus-ripple-inner,
48
+ .mui-ripple-circle-inner {
49
+ background-color: @switches-ripple-color;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,16 @@
1
+ .mui-enhanced-textarea {
2
+ .mui-enhanced-textarea-shadow,
3
+ .mui-enhanced-textarea-input {
4
+ width: 100%;
5
+ resize: none;
6
+ }
7
+
8
+ .mui-enhanced-textarea-input {
9
+ overflow: hidden;
10
+ }
11
+
12
+ .mui-enhanced-textarea-shadow {
13
+ transform: scale(0);
14
+ position: absolute;
15
+ }
16
+ }
@@ -0,0 +1,93 @@
1
+ .mui-flat-button {
2
+
3
+ .ease-out();
4
+ .mui-font-style-button;
5
+ border-radius: 2px;
6
+ user-select: none;
7
+
8
+ position: relative;
9
+ overflow: hidden;
10
+ background-color: @flat-button-color;
11
+ color: @flat-button-text-color;
12
+ line-height: @button-height;
13
+ min-width: @button-min-width;
14
+ padding: 0;
15
+ margin: 0;
16
+
17
+ //This is need so that ripples do not bleed
18
+ //past border radius.
19
+ //See: http://stackoverflow.com/questions/17298739/css-overflow-hidden-not-working-in-chrome-when-parent-has-border-radius-and-chil
20
+ transform: translate3d(0, 0, 0);
21
+
22
+ .mui-touch-ripple {
23
+ .mui-ripple-circle-inner {
24
+ background-color: @flat-button-ripple-color;
25
+ }
26
+ }
27
+
28
+ .mui-focus-ripple {
29
+ .mui-focus-ripple-inner {
30
+ background-color: @flat-button-focus-ripple-color;
31
+ }
32
+ }
33
+
34
+ .mui-flat-button-label {
35
+ position: relative;
36
+ padding: 0 @desktop-gutter-less;
37
+ }
38
+
39
+ &:hover,
40
+ &.mui-is-keyboard-focused {
41
+ background-color: @flat-button-hover-color;
42
+ }
43
+
44
+ &.mui-is-disabled {
45
+ color: @flat-button-disabled-text-color;
46
+
47
+ &:hover {
48
+ background-color: inherit;
49
+ }
50
+ }
51
+
52
+ &.mui-is-primary {
53
+ color: @flat-button-primary-text-color;
54
+
55
+ &:hover,
56
+ &.mui-is-keyboard-focused {
57
+ background-color: @flat-button-primary-hover-color;
58
+ }
59
+
60
+ .mui-touch-ripple {
61
+ .mui-ripple-circle-inner {
62
+ background-color: @flat-button-primary-ripple-color;
63
+ }
64
+ }
65
+
66
+ .mui-focus-ripple {
67
+ .mui-focus-ripple-inner {
68
+ background-color: @flat-button-primary-focus-ripple-color;
69
+ }
70
+ }
71
+ }
72
+
73
+ &.mui-is-secondary {
74
+ color: @flat-button-secondary-text-color;
75
+
76
+ &:hover,
77
+ &.mui-is-keyboard-focused {
78
+ background-color: @flat-button-secondary-hover-color;
79
+ }
80
+
81
+ .mui-touch-ripple {
82
+ .mui-ripple-circle-inner {
83
+ background-color: @flat-button-secondary-ripple-color;
84
+ }
85
+ }
86
+
87
+ .mui-focus-ripple {
88
+ .mui-focus-ripple-inner {
89
+ background-color: @flat-button-secondary-focus-ripple-color;
90
+ }
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,95 @@
1
+ .mui-floating-action-button {
2
+
3
+ display: inline-block;
4
+
5
+ &, * { .ease-out(); }
6
+
7
+ .mui-floating-action-button-container {
8
+ position: relative;
9
+ height: @floating-action-button-size;
10
+ width: @floating-action-button-size;
11
+ padding: 0;
12
+ overflow: hidden;
13
+ background-color: @floating-action-button-color;
14
+ border-radius: 50%;
15
+
16
+ //This is need so that ripples do not bleed
17
+ //past border radius.
18
+ //See: http://stackoverflow.com/questions/17298739/css-overflow-hidden-not-working-in-chrome-when-parent-has-border-radius-and-chil
19
+ transform: translate3d(0, 0, 0);
20
+
21
+ &.mui-is-disabled {
22
+ background-color: @floating-action-button-disabled-color;
23
+
24
+ .mui-floating-action-button-icon {
25
+ color: @floating-action-button-disabled-text-color;
26
+ }
27
+
28
+ &:hover {
29
+ background-color: @floating-action-button-disabled-color;
30
+ }
31
+ }
32
+
33
+ &:hover,
34
+ &.mui-is-keyboard-focused {
35
+ background-color: @floating-action-button-hover-color;
36
+ }
37
+ }
38
+
39
+ .mui-floating-action-button-icon {
40
+ line-height: @floating-action-button-size;
41
+ color: @floating-action-button-icon-color;
42
+ fill: @floating-action-button-icon-color;
43
+ }
44
+
45
+ .mui-touch-ripple {
46
+ .mui-ripple-circle-inner {
47
+ background-color: @floating-action-button-ripple-color;
48
+ }
49
+ }
50
+
51
+ .mui-focus-ripple {
52
+ .mui-focus-ripple-inner {
53
+ background-color: @floating-action-button-focus-ripple-color
54
+ }
55
+ }
56
+
57
+ &.mui-is-mini {
58
+ .mui-floating-action-button-container {
59
+ height: @floating-action-button-mini-size;
60
+ width: @floating-action-button-mini-size;
61
+ }
62
+
63
+ .mui-floating-action-button-icon {
64
+ line-height: @floating-action-button-mini-size;
65
+ }
66
+ }
67
+
68
+ &.mui-is-secondary {
69
+
70
+ .mui-floating-action-button-container {
71
+ background-color: @floating-action-button-secondary-color;
72
+
73
+ &:hover,
74
+ &.mui-is-keyboard-focused {
75
+ background-color: @floating-action-button-secondary-hover-color;
76
+ }
77
+ }
78
+
79
+ .mui-floating-action-button-icon {
80
+ color: @floating-action-button-secondary-icon-color;
81
+ }
82
+
83
+ .mui-touch-ripple {
84
+ .mui-ripple-circle-inner {
85
+ background-color: @floating-action-button-secondary-ripple-color;
86
+ }
87
+ }
88
+
89
+ .mui-focus-ripple {
90
+ .mui-focus-ripple-inner {
91
+ background-color: @floating-action-button-secondary-focus-ripple-color;
92
+ }
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,6 @@
1
+ .mui-font-icon {
2
+ position: relative;
3
+ font-size: @icon-size;
4
+ display: inline-block;
5
+ user-select: none;
6
+ }
@@ -0,0 +1,46 @@
1
+ @icon-button-size: (@icon-size * 2);
2
+
3
+ .mui-icon-button {
4
+
5
+ * { .ease-out(); }
6
+ position: relative;
7
+ padding: (@icon-size / 2);
8
+ width: @icon-size*2;
9
+ height: @icon-size*2;
10
+
11
+ .mui-focus-ripple {
12
+ .mui-focus-ripple-inner {
13
+ background-color: rgba(0,0,0,0.1);
14
+ box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.1);
15
+ border: solid 6px @transparent;
16
+ background-clip: padding-box;
17
+ .pulsate(icon-button-focus-ripple-pulsate);
18
+ }
19
+ }
20
+
21
+ .mui-icon-button-tooltip {
22
+ margin-top: (@icon-button-size + 4);
23
+ }
24
+
25
+ &.mui-is-disabled {
26
+ * {
27
+ color: lighten(@body-text-color, 75%);
28
+ fill: lighten(@body-text-color, 75%);
29
+ }
30
+ }
31
+ }
32
+
33
+ .mui-dark-theme {
34
+ .mui-touch-ripple {
35
+ .mui-ripple-circle-inner {
36
+ background-color: rgba(255,255,255,0.3);
37
+ }
38
+ }
39
+
40
+ .mui-focus-ripple {
41
+ .mui-focus-ripple-inner {
42
+ background-color: rgba(255,255,255,0.3);
43
+ box-shadow: 0px 0px 0px 1px rgba(255,255,255,0.3);
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,9 @@
1
+ .mui-ink-bar {
2
+ bottom: 0;
3
+ display: block;
4
+ background-color: yellow;
5
+ height: 2px;
6
+ margin-top: -2px;
7
+ position: relative;
8
+ .ease-out(1s, left);
9
+ }
@@ -0,0 +1,186 @@
1
+ .mui-input {
2
+ position: relative;
3
+ margin-top: 24px;
4
+ margin-bottom: 48px;
5
+
6
+ input, textarea {
7
+ background-color: transparent;
8
+ font-size: @input-font-size;
9
+ border: 0;
10
+ outline: none;
11
+ border-bottom: 1px solid lightgray;
12
+ padding: 0;
13
+ box-sizing: border-box;
14
+ padding-bottom: 14px;
15
+
16
+ &[type='text'], &[type='password'], &[type='email'] {
17
+ display: block;
18
+ width: @input-width;
19
+ }
20
+
21
+ &:focus, &.mui-is-not-empty, &:disabled[value]:not([value=""]) {
22
+ outline: none;
23
+ box-shadow: none;
24
+ &~.mui-input-placeholder {
25
+ color: blue;
26
+ font-size: @input-placeholder-size !important;
27
+ font-weight: 300;
28
+ top: -32px;
29
+ .ease-out;
30
+ }
31
+ &~.mui-input-highlight {
32
+ width: 0;
33
+ background-color: blue;
34
+ .ease-out;
35
+ }
36
+ &~.mui-input-bar {
37
+ &::before, &::after {
38
+ background-color: blue;
39
+ width: 50%;
40
+ }
41
+ }
42
+ &~.mui-input-description {
43
+ display: block;
44
+ }
45
+ }
46
+
47
+ &:not(:focus).mui-is-not-empty, &:disabled[value]:not([value=""]) {
48
+ &+.mui-input-placeholder {
49
+ color: gray;
50
+
51
+ &+.mui-input-highlight {
52
+ &+.mui-input-bar {
53
+ &::before, &::after {
54
+ width: 0;
55
+ }
56
+
57
+ &+.mui-input-description {
58
+ display: none;
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ &+.mui-input-placeholder {
66
+ font-size: @input-font-size;
67
+ color: gray;
68
+ position: absolute;
69
+ top: -4px;
70
+ //z-index: -1;
71
+ .ease-out;
72
+ }
73
+ }
74
+
75
+ .mui-input-highlight {
76
+ content: '';
77
+ position: absolute;
78
+ background-color: transparent;
79
+ opacity: 0.25;
80
+ height: 19px;
81
+ top: -3px;
82
+ width: (@input-width/2);
83
+ z-index: -1;
84
+ }
85
+
86
+ .mui-input-bar {
87
+ position: relative;
88
+ display: block;
89
+ width: @input-width;
90
+
91
+ &::before, &::after {
92
+ content: '';
93
+ height: @input-bar-height;
94
+ top: (-1 * @input-bar-height);
95
+ width: 0;
96
+ position: absolute;
97
+ .ease-out;
98
+ }
99
+
100
+ &::before {
101
+ left: 50%;
102
+ }
103
+
104
+ &::after {
105
+ right: 50%;
106
+ }
107
+ }
108
+
109
+ .mui-input-description {
110
+ display: none;
111
+ color: blue;
112
+ position: absolute;
113
+ }
114
+
115
+ .mui-input-error {
116
+ display: none;
117
+ color: @input-error-color;
118
+ position: absolute;
119
+ }
120
+
121
+ &.mui-error {
122
+ input, textarea {
123
+ &:focus, &.mui-is-not-empty {
124
+ &+.mui-input-placeholder {
125
+ color: @input-error-color;
126
+
127
+ &+.mui-input-highlight {
128
+ width: 0;
129
+ background-color: red;
130
+
131
+ &+.mui-input-bar {
132
+
133
+ &::before, &::after {
134
+ background-color: @input-error-color;
135
+ }
136
+
137
+ &+.mui-input-description {
138
+ display: none;
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+
145
+ }
146
+
147
+ .mui-input-error {
148
+ display: block;
149
+ }
150
+ }
151
+
152
+ &.mui-floating {
153
+ margin-top: @desktop-gutter;
154
+ input, textarea {
155
+ &:focus {
156
+ &+.mui-input-placeholder {
157
+ display: block;
158
+ color: gray;
159
+ font-size: 16px !important;
160
+ font-weight: 400;
161
+ top: -4px;
162
+ }
163
+
164
+ &.mui-is-not-empty {
165
+ &+.mui-input-placeholder {
166
+ display: none;
167
+ }
168
+ }
169
+ }
170
+
171
+ &.mui-is-not-empty {
172
+ &+.mui-input-placeholder {
173
+ display: none;
174
+ }
175
+ }
176
+ }
177
+ }
178
+
179
+ &.mui-disabled { opacity: 0.4 }
180
+
181
+ &::-webkit-input-placeholder {
182
+ position: absolute !important;
183
+ top: -20px !important;
184
+ }
185
+
186
+ }