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,234 @@
1
+ .carousel {
2
+ position: relative;
3
+ }
4
+
5
+ .carousel-inner {
6
+ overflow: hidden;
7
+ position: relative;
8
+ width: 100%;
9
+
10
+ > .carousel-item {
11
+ display: none;
12
+ position: relative;
13
+ @include transition-standard(left);
14
+
15
+ > img,
16
+ > a > img {
17
+ @include img-fluid;
18
+ line-height: 1;
19
+ }
20
+ }
21
+
22
+ @media all and (transform-3d), (-webkit-transform-3d) {
23
+ backface-visibility: hidden;
24
+ perspective: 1000px;
25
+ @include transition-standard(transform);
26
+
27
+ &.active {
28
+ // position
29
+ left: 0;
30
+ transform: translate3d(0, 0, 0);
31
+ }
32
+
33
+ &.active.left {
34
+ // position
35
+ left: 0;
36
+ transform: translate3d(-100%, 0, 0);
37
+ }
38
+
39
+ &.active.right {
40
+ // position
41
+ left: 0;
42
+ transform: translate3d(100%, 0, 0);
43
+ }
44
+
45
+ &.next {
46
+ // position
47
+ left: 0;
48
+ transform: translate3d(100%, 0, 0);
49
+ }
50
+
51
+ &.next.left {
52
+ // position
53
+ left: 0;
54
+ transform: translate3d(0, 0, 0);
55
+ }
56
+
57
+ &.prev {
58
+ // position
59
+ left: 0;
60
+ transform: translate3d(-100%, 0, 0);
61
+ }
62
+
63
+ &.prev.right {
64
+ // position
65
+ left: 0;
66
+ transform: translate3d(0, 0, 0);
67
+ }
68
+ }
69
+
70
+ > .active,
71
+ > .next,
72
+ > .prev {
73
+ display: block;
74
+ }
75
+
76
+ > .active {
77
+ // position
78
+ left: 0;
79
+ }
80
+
81
+ > .active.left {
82
+ // position
83
+ left: -100%;
84
+ }
85
+
86
+ > .active.right {
87
+ // position
88
+ left: 100%;
89
+ }
90
+
91
+ > .next,
92
+ > .prev {
93
+ position: absolute;
94
+ top: 0;
95
+ width: 100%;
96
+ }
97
+
98
+ > .next {
99
+ // position
100
+ left: 100%;
101
+ }
102
+
103
+ > .prev {
104
+ // position
105
+ left: -100%;
106
+ }
107
+
108
+ > .next.left,
109
+ > .prev.right {
110
+ // position
111
+ left: 0;
112
+ }
113
+ }
114
+
115
+ //
116
+ // left/right controls
117
+ //
118
+ .carousel-control {
119
+ background-color: $btn-bg;
120
+ border-radius: 50%;
121
+ box-shadow: map-get($btn-float-elevation-shadow, shadow);
122
+ color: $btn-color;
123
+ display: block;
124
+ font-size: $btn-font-size;
125
+ font-weight: $btn-font-weight;
126
+ height: $btn-float-size-sm;
127
+ line-height: $btn-float-size-sm;
128
+ margin-top: ($btn-float-size-sm / -2);
129
+ position: absolute;
130
+ top: 50%;
131
+ text-align: center;
132
+ text-transform: uppercase;
133
+ user-select: none;
134
+ vertical-align: middle;
135
+ white-space: nowrap;
136
+ width: $btn-float-size-sm;
137
+ z-index: map-get($btn-elevation-shadow, elevation);
138
+
139
+ &.left {
140
+ // position
141
+ left: ($btn-float-size-sm / 2);
142
+ }
143
+
144
+ &.right {
145
+ // position
146
+ right: ($btn-float-size-sm / 2);
147
+ }
148
+
149
+ // active, focus, hover
150
+ @include active-focus-hover {
151
+ background-color: $btn-bg-active;
152
+ color: $btn-color;
153
+
154
+ @if ($link-decoration-active != "none") {
155
+ text-decoration: none;
156
+ }
157
+ }
158
+
159
+ &:active {
160
+ box-shadow: map-get($btn-elevation-shadow-active, shadow);
161
+ }
162
+
163
+ &:focus {
164
+ outline: 0;
165
+ }
166
+
167
+ .icon-next,
168
+ .icon-prev {
169
+ display: inline-block;
170
+ font-size: $material-icon-size;
171
+ }
172
+
173
+ .icon-next::before {
174
+ content: "\203a";
175
+ }
176
+
177
+ .icon-prev::before {
178
+ content: "\2039";
179
+ }
180
+ }
181
+
182
+ .carousel {
183
+ @include hover {
184
+ .carousel-control {
185
+ opacity: 1;
186
+ }
187
+ };
188
+ }
189
+
190
+ //
191
+ // optional captions
192
+ //
193
+ .carousel-caption {
194
+ color: $carousel-caption-color;
195
+ position: absolute;
196
+ right: ((100% - $carousel-caption-width) / 2);
197
+ bottom: ($carousel-indicator-size * 2);
198
+ left: ((100% - $carousel-caption-width) / 2);
199
+ text-align: center;
200
+ z-index: 1;
201
+ }
202
+
203
+ //
204
+ // optional indicators
205
+ //
206
+ .carousel-indicators {
207
+ list-style: none;
208
+ margin-bottom: 0;
209
+ padding-left: 0;
210
+ position: absolute;
211
+ right: ($btn-float-size-sm / -2);
212
+ bottom: $carousel-indicator-size;
213
+ left: ($btn-float-size-sm / -2);
214
+ text-align: center;
215
+ z-index: 1;
216
+
217
+ li {
218
+ background-color: rgba(0, 0, 0, 0);
219
+ border: 1px solid $carousel-indicator-color;
220
+ border-radius: $carousel-indicator-size;
221
+ cursor: pointer;
222
+ display: inline-block;
223
+ height: $carousel-indicator-size;
224
+ margin-right: 1px;
225
+ margin-left: 1px;
226
+ overflow: hidden;
227
+ text-indent: 100%;
228
+ width: $carousel-indicator-size;
229
+ }
230
+
231
+ .active {
232
+ background-color: $carousel-indicator-color;
233
+ }
234
+ }
@@ -0,0 +1,31 @@
1
+ .close {
2
+ color: $close-color;
3
+ cursor: pointer;
4
+ float: right;
5
+ font-size: $close-font-size;
6
+ font-weight: normal;
7
+ line-height: 1;
8
+ @include transition-standard(color);
9
+
10
+ // active, focus, hover
11
+ @include active-focus-hover {
12
+ color: $close-color-active;
13
+
14
+ @if ($link-decoration-active != "none") {
15
+ text-decoration: none;
16
+ }
17
+ }
18
+
19
+ &:focus {
20
+ outline: 0;
21
+ }
22
+ }
23
+
24
+ button.close {
25
+ appearance: none;
26
+ background-color: transparent;
27
+ background-image: none;
28
+ border: 0;
29
+ cursor: pointer;
30
+ padding: 0;
31
+ }
@@ -0,0 +1,50 @@
1
+ code,
2
+ kbd,
3
+ pre,
4
+ samp {
5
+ font-family: $font-family-monospace;
6
+ }
7
+
8
+ code {
9
+ background-color: $code-bg;
10
+ color: $code-color;
11
+ font-size: $code-font-size;
12
+ padding: $code-padding;
13
+ @include border-radius($border-radius);
14
+ }
15
+
16
+ kbd {
17
+ background-color: $kbd-bg;
18
+ color: $kbd-color;
19
+ font-size: $code-font-size;
20
+ padding: $code-padding;
21
+ @include border-radius($border-radius);
22
+
23
+ kbd {
24
+ font-size: 100%;
25
+ padding: 0;
26
+ }
27
+ }
28
+
29
+ pre {
30
+ background-color: $pre-bg;
31
+ color: $pre-color;
32
+ display: block;
33
+ font-size: $code-font-size;
34
+ margin-top: 0;
35
+ margin-bottom: $pre-margin-bottom;
36
+ @include border-radius($border-radius);
37
+
38
+ code {
39
+ background-color: transparent;
40
+ border-radius: 0;
41
+ color: inherit;
42
+ font-size: inherit;
43
+ padding: 0;
44
+ }
45
+ }
46
+
47
+ .pre-scrollable {
48
+ max-height: $pre-scrollable-max-height;
49
+ overflow-y: scroll;
50
+ }
@@ -0,0 +1,69 @@
1
+ //
2
+ // custom checkbox, radio button and select are defined in material design guidelines
3
+ // (https://material.google.com/components/selection-controls.html)
4
+ // therefore, these elements are styled in /assets/sass/material/_selection-control.scss
5
+ //
6
+
7
+ //
8
+ // custom file
9
+ //
10
+ .custom-file {
11
+ cursor: pointer;
12
+ display: block;
13
+ height: $textfield-height;
14
+ max-width: 100%;
15
+ position: relative;
16
+ }
17
+
18
+ .custom-file-control {
19
+ border-bottom: $textfield-border-width solid $textfield-border-color;
20
+ color: $textfield-hint-color;
21
+ font-weight: $font-weight-regular;
22
+ position: absolute;
23
+ top: 0;
24
+ right: 0;
25
+ left: 0;
26
+ user-select: none;
27
+ z-index: 1;
28
+ @include form-control-size($textfield-border-width, $textfield-font-size, $textfield-height, $textfield-line-height, $textfield-margin-bottom, $textfield-padding-top);
29
+ @include transition-standard(border-bottom-color);
30
+
31
+ @each $lang, $text in map-get($custom-file-text, placeholder) {
32
+ &:lang(#{$lang})::after {
33
+ content: $text;
34
+ }
35
+ }
36
+
37
+ &::before {
38
+ @include reset-to-material-icons($textfield-font-size);
39
+ color: $textfield-hint-color;
40
+ height: $textfield-height;
41
+ padding-top: $textfield-padding-top;
42
+ position: absolute;
43
+ top: 0;
44
+ right: 0;
45
+ bottom: 0;
46
+ z-index: 2;
47
+ @include transition-standard(color);
48
+ }
49
+
50
+ @each $lang, $text in map-get($custom-file-text, button-label) {
51
+ &:lang(#{$lang})::before {
52
+ content: $text;
53
+ }
54
+ }
55
+
56
+ // active, focus, hover
57
+ @include active-focus-hover {
58
+ &::before {
59
+ color: $textfield-color;
60
+ }
61
+ }
62
+ }
63
+
64
+ .custom-file-input {
65
+ margin: 0;
66
+ max-width: 100%;
67
+ min-width: $custom-file-width;
68
+ opacity: 0;
69
+ }
@@ -0,0 +1,116 @@
1
+ //
2
+ // checkbox and radio button
3
+ //
4
+ .form-check {
5
+ display: block;
6
+ margin-bottom: $textfield-margin-bottom;
7
+ position: relative;
8
+
9
+ // disabled
10
+ &.disabled {
11
+ .form-check-label {
12
+ color: $textfield-color-disabled;
13
+ cursor: $cursor-disabled;
14
+ }
15
+ }
16
+
17
+ @include media-breakpoint-up(sm) {
18
+ .form-inline & {
19
+ display: inline-block;
20
+ margin-top: 0;
21
+ margin-bottom: 0;
22
+ vertical-align: middle;
23
+ }
24
+ }
25
+ }
26
+
27
+ .form-check-input {
28
+ margin-top: 0.25rem;
29
+ margin-left: -1.25rem;
30
+ position: absolute;
31
+ // &:only-child {
32
+ // position: static;
33
+ // }
34
+
35
+ @include media-breakpoint-up(sm) {
36
+ .form-inline & {
37
+ margin-left: 0;
38
+ position: relative;
39
+ }
40
+ }
41
+ }
42
+
43
+ .form-check-label {
44
+ cursor: pointer;
45
+ margin-bottom: 0;
46
+ min-height: $font-size-base;
47
+ padding-left: 1.25rem;
48
+
49
+ @include media-breakpoint-up(sm) {
50
+ .form-inline & {
51
+ padding-left: 0;
52
+ }
53
+ }
54
+ }
55
+
56
+ // inline
57
+ .form-check-inline {
58
+ cursor: pointer;
59
+ display: inline-block;
60
+ margin-bottom: 0;
61
+ padding-left: 1.25rem;
62
+ position: relative;
63
+ vertical-align: middle;
64
+
65
+ // disabled
66
+ &.disabled {
67
+ cursor: $cursor-disabled;
68
+ }
69
+
70
+ + .form-check-inline {
71
+ margin-left: (1.25rem - 0.75rem);
72
+ }
73
+ }
74
+
75
+ //
76
+ // form group
77
+ //
78
+ .form-group {
79
+ margin-bottom: $form-group-margin-bottom;
80
+
81
+ @include media-breakpoint-up(sm) {
82
+ .form-inline & {
83
+ display: inline-block;
84
+ margin-bottom: 0;
85
+ vertical-align: middle;
86
+ }
87
+ }
88
+ }
89
+
90
+ //
91
+ // misc
92
+ //
93
+ .form-control-file,
94
+ .form-control-range {
95
+ display: block;
96
+ }
97
+
98
+ .form-control-file {
99
+ margin-top: $textfield-margin-bottom;
100
+ margin-bottom: $textfield-margin-bottom;
101
+ }
102
+
103
+ .form-text {
104
+ display: block;
105
+ margin-top: $textfield-margin-bottom;
106
+
107
+ .form-control-lg + &,
108
+ .textfield-lg + & {
109
+ margin-top: $textfield-margin-bottom-lg;
110
+ }
111
+
112
+ .form-control-sm + &,
113
+ .textfield-sm + & {
114
+ margin-top: $textfield-margin-bottom-sm;
115
+ }
116
+ }