rails-bootstrap-material-design 0.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/README.md +18 -0
  4. data/Rakefile +1 -0
  5. data/app/.DS_Store +0 -0
  6. data/app/assets/.DS_Store +0 -0
  7. data/app/assets/images/.DS_Store +0 -0
  8. data/app/assets/images/bootstrap-material-design/material-design-color-palette.jpg +0 -0
  9. data/app/assets/javascripts/.DS_Store +0 -0
  10. data/app/assets/javascripts/bootstrap-material-design.js +2 -0
  11. data/app/assets/javascripts/bootstrap-material-design/material.js +350 -0
  12. data/app/assets/javascripts/bootstrap-material-design/ripples.js +325 -0
  13. data/app/assets/stylesheets/.DS_Store +0 -0
  14. data/app/assets/stylesheets/bootstrap-material-design.scss +4 -0
  15. data/app/assets/stylesheets/bootstrap-material-design/.DS_Store +0 -0
  16. data/app/assets/stylesheets/bootstrap-material-design/_alerts.scss +17 -0
  17. data/app/assets/stylesheets/bootstrap-material-design/_buttons.scss +244 -0
  18. data/app/assets/stylesheets/bootstrap-material-design/_cards.scss +66 -0
  19. data/app/assets/stylesheets/bootstrap-material-design/_checkboxes.scss +270 -0
  20. data/app/assets/stylesheets/bootstrap-material-design/_colors-map.scss +311 -0
  21. data/app/assets/stylesheets/bootstrap-material-design/_colors.scss +359 -0
  22. data/app/assets/stylesheets/bootstrap-material-design/_core.scss +93 -0
  23. data/app/assets/stylesheets/bootstrap-material-design/_dialogs.scss +52 -0
  24. data/app/assets/stylesheets/bootstrap-material-design/_dividers.scss +71 -0
  25. data/app/assets/stylesheets/bootstrap-material-design/_form.scss +40 -0
  26. data/app/assets/stylesheets/bootstrap-material-design/_import-bs-sass.scss +2 -0
  27. data/app/assets/stylesheets/bootstrap-material-design/_inputs-size.scss +221 -0
  28. data/app/assets/stylesheets/bootstrap-material-design/_inputs.scss +352 -0
  29. data/app/assets/stylesheets/bootstrap-material-design/_labels.scss +4 -0
  30. data/app/assets/stylesheets/bootstrap-material-design/_lists.scss +102 -0
  31. data/app/assets/stylesheets/bootstrap-material-design/_mixins-utilities.scss +31 -0
  32. data/app/assets/stylesheets/bootstrap-material-design/_mixins.scss +241 -0
  33. data/app/assets/stylesheets/bootstrap-material-design/_navbar.scss +232 -0
  34. data/app/assets/stylesheets/bootstrap-material-design/_panels.scss +21 -0
  35. data/app/assets/stylesheets/bootstrap-material-design/_plugins.scss +5 -0
  36. data/app/assets/stylesheets/bootstrap-material-design/_popups.scss +18 -0
  37. data/app/assets/stylesheets/bootstrap-material-design/_progress.scss +10 -0
  38. data/app/assets/stylesheets/bootstrap-material-design/_radios.scss +115 -0
  39. data/app/assets/stylesheets/bootstrap-material-design/_shadows.scss +82 -0
  40. data/app/assets/stylesheets/bootstrap-material-design/_table.scss +15 -0
  41. data/app/assets/stylesheets/bootstrap-material-design/_tabs.scss +24 -0
  42. data/app/assets/stylesheets/bootstrap-material-design/_themes.scss +6 -0
  43. data/app/assets/stylesheets/bootstrap-material-design/_togglebutton.scss +83 -0
  44. data/app/assets/stylesheets/bootstrap-material-design/_typography.scss +15 -0
  45. data/app/assets/stylesheets/bootstrap-material-design/_variables.scss +169 -0
  46. data/app/assets/stylesheets/bootstrap-material-design/_welljumbo.scss +26 -0
  47. data/app/assets/stylesheets/bootstrap-material-design/plugins/_plugin-dropdownjs.scss +15 -0
  48. data/app/assets/stylesheets/bootstrap-material-design/plugins/_plugin-nouislider.scss +110 -0
  49. data/app/assets/stylesheets/bootstrap-material-design/plugins/_plugin-selectize.scss +91 -0
  50. data/app/assets/stylesheets/bootstrap-material-design/plugins/_plugin-snackbarjs.scss +32 -0
  51. data/app/assets/stylesheets/bootstrap-material-design/ripples.scss +36 -0
  52. data/lib/rails-bootstrap-material-design.rb +25 -0
  53. data/lib/rails-bootstrap-material-design/version.rb +3 -0
  54. data/rails-bootstrap-material-design.gemspec +20 -0
  55. metadata +124 -0
@@ -0,0 +1,93 @@
1
+ body {
2
+ background-color: $body-bg;
3
+ &.inverse {
4
+ background: #333333;
5
+ &, .form-control {
6
+ color: $mdb-text-color-light;
7
+ }
8
+ .modal,
9
+ .panel-default,
10
+ .card {
11
+ &,
12
+ .form-control {
13
+ background-color: initial;
14
+ color: initial;
15
+ }
16
+ }
17
+
18
+ }
19
+ }
20
+
21
+
22
+ body, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
23
+ font-family: $font-family-sans-serif;
24
+ font-weight: 300;
25
+ }
26
+
27
+ h5, h6{
28
+ font-weight: 400;
29
+ }
30
+
31
+ a, a:hover, a:focus {
32
+ color: $link-color;
33
+
34
+ & .material-icons {
35
+ vertical-align: middle;
36
+ }
37
+ }
38
+
39
+ @import '_form';
40
+ @import '_welljumbo';
41
+ @import '_buttons';
42
+ @import '_checkboxes';
43
+ @import '_togglebutton';
44
+ @import '_radios';
45
+ @import '_inputs';
46
+
47
+ legend {
48
+ border-bottom: 0;
49
+ }
50
+
51
+ @import '_lists';
52
+ @import '_navbar';
53
+
54
+ .dropdown-menu {
55
+ border: 0;
56
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
57
+ .divider {
58
+ background-color: rgba(0, 0, 0, .12);
59
+ }
60
+ li {
61
+ overflow: hidden;
62
+ position: relative;
63
+ a:hover {
64
+ background-color: transparent;
65
+ color: $brand-primary;
66
+ }
67
+ }
68
+ }
69
+
70
+ @import '_alerts';
71
+ @import '_progress';
72
+ @import '_typography';
73
+ @import '_tabs';
74
+ @import '_popups';
75
+ @import '_cards';
76
+ @import '_dialogs';
77
+ @import '_panels';
78
+ @import '_dividers';
79
+
80
+ // Prevent highlight on mobile
81
+ * {
82
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
83
+ -webkit-tap-highlight-color: transparent;
84
+ &:focus {
85
+ outline: 0;
86
+ }
87
+ }
88
+
89
+
90
+ @import '_themes';
91
+
92
+ // External plugins
93
+ @import '_plugins';
@@ -0,0 +1,52 @@
1
+ //
2
+ // Modals
3
+ // Material Design element Dialogs
4
+ // --------------------------------------------------
5
+ .modal-content {
6
+ @include shadow-z-5();
7
+ border-radius: $border-radius-base;
8
+ border: none;
9
+ // Modal header
10
+ // Top section of the modal w/ title and dismiss
11
+ .modal-header {
12
+ border-bottom: none;
13
+ padding-top: 24px;
14
+ padding-right: 24px;
15
+ padding-bottom: 0;
16
+ padding-left: 24px;
17
+ }
18
+ // Modal body
19
+ // Where all modal content resides (sibling of .modal-header and .modal-footer)
20
+ .modal-body {
21
+ padding-top: 24px;
22
+ padding-right: 24px;
23
+ padding-bottom: 16px;
24
+ padding-left: 24px;
25
+ }
26
+ // Footer (for actions)
27
+ .modal-footer {
28
+ border-top: none;
29
+ padding: 7px;
30
+ button {
31
+ margin: 0;
32
+ padding-left: 16px;
33
+ padding-right: 16px;
34
+ width: auto;
35
+ &.pull-left {
36
+ padding-left: 5px;
37
+ padding-right: 5px;
38
+ position: relative;
39
+ left: -5px;
40
+ }
41
+ }
42
+ button+button {
43
+ margin-bottom: 16px;
44
+ }
45
+ }
46
+ .modal-body + .modal-footer {
47
+ padding-top: 0;
48
+ }
49
+ }
50
+ .modal-backdrop {
51
+ background: rgba(0,0,0,0.3);
52
+ }
@@ -0,0 +1,71 @@
1
+ hr {
2
+ &.on-dark {
3
+ color: lighten($black, 10%);
4
+ }
5
+
6
+ &.on-light {
7
+ color: lighten($white, 10%);
8
+ }
9
+
10
+ @media (-webkit-min-device-pixel-ratio: 0.75),
11
+ (min--moz-device-pixel-ratio: 0.75),
12
+ (-o-device-pixel-ratio: 3/4),
13
+ (min-device-pixel-ratio: 0.75),
14
+ (min-resolution: 0.75dppx),
15
+ (min-resolution: 120dpi) {
16
+ height:0.75px;
17
+ }
18
+
19
+ @media (-webkit-min-device-pixel-ratio: 1),
20
+ (min--moz-device-pixel-ratio: 1),
21
+ (-o-device-pixel-ratio: 1),
22
+ (min-device-pixel-ratio: 1),
23
+ (min-resolution: 1dppx),
24
+ (min-resolution: 160dpi) {
25
+ height:1px;
26
+ }
27
+ @media (-webkit-min-device-pixel-ratio: 1.33),
28
+ (min--moz-device-pixel-ratio: 1.33),
29
+ (-o-device-pixel-ratio: 133/100),
30
+ (min-device-pixel-ratio: 1.33),
31
+ (min-resolution: 1.33dppx),
32
+ (min-resolution: 213dpi) {
33
+ height:1.333px;
34
+ }
35
+ @media (-webkit-min-device-pixel-ratio: 1.5),
36
+ (min--moz-device-pixel-ratio: 1.5),
37
+ (-o-device-pixel-ratio: 3/2),
38
+ (min-device-pixel-ratio: 1.5),
39
+ (min-resolution: 1.5dppx),
40
+ (min-resolution: 240dpi) {
41
+ height:1.5px;
42
+ }
43
+
44
+ @media (-webkit-min-device-pixel-ratio: 2),
45
+ (min--moz-device-pixel-ratio: 2),
46
+ (-o-device-pixel-ratio: 2/1),
47
+ (min-device-pixel-ratio: 2),
48
+ (min-resolution: 2dppx),
49
+ (min-resolution: 380dpi) {
50
+ height:2px;
51
+ }
52
+
53
+ @media (-webkit-min-device-pixel-ratio: 3),
54
+ (min--moz-device-pixel-ratio: 3),
55
+ (-o-device-pixel-ratio: 3/1),
56
+ (min-device-pixel-ratio: 3),
57
+ (min-resolution: 3dppx),
58
+ (min-resolution: 480dpi) {
59
+ height:3px;
60
+ }
61
+
62
+ @media (-webkit-min-device-pixel-ratio: 4),
63
+ (min--moz-device-pixel-ratio: 4),
64
+ (-o-device-pixel-ratio: 4/1),
65
+ (min-device-pixel-ratio: 3),
66
+ (min-resolution: 4dppx),
67
+ (min-resolution: 640dpi) {
68
+ height:4px;
69
+ }
70
+
71
+ }
@@ -0,0 +1,40 @@
1
+ @mixin mdb-label-color-toggle-focus(){
2
+ // override bootstrap focus and keep all the standard color (could be multiple radios in the form group)
3
+ .form-group.is-focused & {
4
+ color: $mdb-label-color;
5
+
6
+ // on focus just darken the specific labels, do not turn them to the brand-primary
7
+ &:hover,
8
+ &:focus {
9
+ color: $mdb-label-color-toggle-focus;
10
+ }
11
+
12
+ // correct the above focus color for disabled items
13
+ fieldset[disabled] & {
14
+ color: $mdb-label-color;
15
+ }
16
+ }
17
+ }
18
+
19
+ .form-horizontal {
20
+
21
+ // Consistent vertical alignment of radios and checkboxes
22
+ .radio,
23
+ .checkbox,
24
+ .radio-inline,
25
+ .checkbox-inline {
26
+ padding-top: 0;
27
+ }
28
+
29
+ .radio {
30
+ margin-bottom: 10px;
31
+ }
32
+
33
+ label {
34
+ text-align: right;
35
+ }
36
+
37
+ label.control-label {
38
+ margin: 0;
39
+ }
40
+ }
@@ -0,0 +1,2 @@
1
+ // Custom variables
2
+ @import "bootstrap-custom-variables";
@@ -0,0 +1,221 @@
1
+ //
2
+ // Forms - sizing - material - mirrors bootstrap/forms.less with custom sizing
3
+ //
4
+ // LEAVE THIS IDENTICAL TO THE BOOTSTRAP FILE - DO NOT CUSTOMIZE HERE.
5
+ //
6
+ // NOTE: this is intentionally kept structurally _identical_ to the bootstrap/forms.less file to make it easier
7
+ // to identify differences in sizing approaches to form inputs.
8
+ // --------------------------------------------------
9
+
10
+ legend {
11
+ margin-bottom: $mdb-input-line-height-computed;
12
+ font-size: ($mdb-input-font-size-base * 1.5);
13
+ }
14
+
15
+ // Adjust output element
16
+ output {
17
+ padding-top: ($mdb-input-padding-base-vertical + 1);
18
+ font-size: $mdb-input-font-size-base;
19
+ line-height: $mdb-input-line-height-base;
20
+ }
21
+
22
+ .form-control {
23
+ height: $mdb-input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
24
+ padding: $mdb-input-padding-base-vertical $mdb-input-padding-base-horizontal;
25
+ font-size: $mdb-input-font-size-base;
26
+ line-height: $mdb-input-line-height-base;
27
+ }
28
+
29
+ // Special styles for iOS temporal inputs
30
+ //
31
+ // In Mobile Safari, setting `display: block` on temporal inputs causes the
32
+ // text within the input to become vertically misaligned. As a workaround, we
33
+ // set a pixel line-height that matches the given height of the input, but only
34
+ // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
35
+ //
36
+ // Note that as of 8.3, iOS doesn't support `datetime` or `week`.
37
+
38
+ @media screen and (-webkit-min-device-pixel-ratio: 0) {
39
+ input[type="date"],
40
+ input[type="time"],
41
+ input[type="datetime-local"],
42
+ input[type="month"] {
43
+ &.form-control {
44
+ line-height: $mdb-input-height-base;
45
+ }
46
+
47
+ &.input-sm,
48
+ .input-group-sm & {
49
+ line-height: $mdb-input-height-small;
50
+ }
51
+
52
+ &.input-lg,
53
+ .input-group-lg & {
54
+ line-height: $mdb-input-height-large;
55
+ }
56
+ }
57
+ }
58
+
59
+ .radio,
60
+ .checkbox {
61
+
62
+ label {
63
+ min-height: $mdb-input-line-height-computed; // Ensure the input doesn't jump when there is no text
64
+ }
65
+ }
66
+
67
+
68
+ // Static form control text
69
+ //
70
+ // Apply class to a `p` element to make any string of text align with labels in
71
+ // a horizontal form layout.
72
+
73
+ .form-control-static {
74
+ // Size it appropriately next to real form controls
75
+ padding-top: ($mdb-input-padding-base-vertical + 1);
76
+ padding-bottom: ($mdb-input-padding-base-vertical + 1);
77
+ min-height: ($mdb-input-line-height-computed + $mdb-input-font-size-base);
78
+ }
79
+
80
+
81
+ // Form control sizing
82
+ //
83
+ // Relative text size, padding, and border-radii changes for form controls. For
84
+ // horizontal sizing, wrap controls in the predefined grid classes. `<select>`
85
+ // element gets special love because it's special, and that's a fact!
86
+
87
+ // mixin pulled from bootstrap and altered for less/sass compatibility with sass parent hack.
88
+ // bootstrap-sass has this one, but we would have to then convert it back to less. chicken meet egg.
89
+ @mixin input-size($parent, $mdb-input-height, $padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius){
90
+
91
+ #{$parent} {
92
+ height: $mdb-input-height;
93
+ padding: $padding-vertical $padding-horizontal;
94
+ font-size: $font-size;
95
+ line-height: $line-height;
96
+ border-radius: $border-radius;
97
+ }
98
+
99
+ select#{$parent} {
100
+ height: $mdb-input-height;
101
+ line-height: $mdb-input-height;
102
+ }
103
+
104
+ textarea#{$parent},
105
+ select[multiple]#{$parent} {
106
+ height: auto;
107
+ }
108
+ }
109
+
110
+
111
+
112
+ // Form control sizing
113
+ //
114
+ // Build on `.form-control` with modifier classes to decrease or increase the
115
+ // height and font-size of form controls.
116
+ //
117
+ // The `.form-group-* form-control` variations are sadly duplicated to avoid the
118
+ // issue documented in https://github.com/twbs/bootstrap/issues/15074.
119
+ .input-sm {
120
+ @include input-size(unquote(".input-sm"), $mdb-input-height-small, $mdb-input-padding-small-vertical, $mdb-input-padding-small-horizontal, $mdb-input-font-size-small, $mdb-input-line-height-small, $mdb-input-border-radius-small);
121
+ }
122
+ .form-group-sm {
123
+ .form-control {
124
+ height: $mdb-input-height-small;
125
+ padding: $mdb-input-padding-small-vertical $mdb-input-padding-small-horizontal;
126
+ font-size: $mdb-input-font-size-small;
127
+ line-height: $mdb-input-line-height-small;
128
+ }
129
+ select.form-control {
130
+ height: $mdb-input-height-small;
131
+ line-height: $mdb-input-height-small;
132
+ }
133
+ textarea.form-control,
134
+ select[multiple].form-control {
135
+ height: auto;
136
+ }
137
+ .form-control-static {
138
+ height: $mdb-input-height-small;
139
+ min-height: ($mdb-input-line-height-computed + $mdb-input-font-size-small);
140
+ padding: ($mdb-input-padding-small-vertical + 1) $mdb-input-padding-small-horizontal;
141
+ font-size: $mdb-input-font-size-small;
142
+ line-height: $mdb-input-line-height-small;
143
+ }
144
+ }
145
+
146
+ .input-lg {
147
+ @include input-size(unquote(".input-lg"), $mdb-input-height-large, $mdb-input-padding-large-vertical, $mdb-input-padding-large-horizontal, $mdb-input-font-size-large, $mdb-input-line-height-large, $mdb-input-border-radius-large);
148
+ }
149
+ .form-group-lg {
150
+ .form-control {
151
+ height: $mdb-input-height-large;
152
+ padding: $mdb-input-padding-large-vertical $mdb-input-padding-large-horizontal;
153
+ font-size: $mdb-input-font-size-large;
154
+ line-height: $mdb-input-line-height-large;
155
+ }
156
+ select.form-control {
157
+ height: $mdb-input-height-large;
158
+ line-height: $mdb-input-height-large;
159
+ }
160
+ textarea.form-control,
161
+ select[multiple].form-control {
162
+ height: auto;
163
+ }
164
+ .form-control-static {
165
+ height: $mdb-input-height-large;
166
+ min-height: ($mdb-input-line-height-computed + $mdb-input-font-size-large);
167
+ padding: ($mdb-input-padding-large-vertical + 1) $mdb-input-padding-large-horizontal;
168
+ font-size: $mdb-input-font-size-large;
169
+ line-height: $mdb-input-line-height-large;
170
+ }
171
+ }
172
+
173
+
174
+ .form-horizontal {
175
+
176
+ // Consistent vertical alignment of radios and checkboxes
177
+ //
178
+ // Labels also get some reset styles, but that is scoped to a media query below.
179
+ .radio,
180
+ .checkbox,
181
+ .radio-inline,
182
+ .checkbox-inline {
183
+ padding-top: ($mdb-input-padding-base-vertical + 1); // Default padding plus a border
184
+ }
185
+ // Account for padding we're adding to ensure the alignment and of help text
186
+ // and other content below items
187
+ .radio,
188
+ .checkbox {
189
+ min-height: ($mdb-input-line-height-computed + ($mdb-input-padding-base-vertical + 1));
190
+ }
191
+
192
+ // Reset spacing and right align labels, but scope to media queries so that
193
+ // labels on narrow viewports stack the same as a default form example.
194
+ @media (min-width: $screen-sm-min) {
195
+ .control-label {
196
+ padding-top: ($mdb-input-padding-base-vertical + 1); // Default padding plus a border
197
+ }
198
+ }
199
+
200
+
201
+ // Form group sizes
202
+ //
203
+ // Quick utility class for applying `.input-lg` and `.input-sm` styles to the
204
+ // inputs and labels within a `.form-group`.
205
+ .form-group-lg {
206
+ @media (min-width: $screen-sm-min) {
207
+ .control-label {
208
+ padding-top: (($mdb-input-padding-large-vertical * $mdb-input-line-height-large) + 1);
209
+ font-size: $mdb-input-font-size-large;
210
+ }
211
+ }
212
+ }
213
+ .form-group-sm {
214
+ @media (min-width: $screen-sm-min) {
215
+ .control-label {
216
+ padding-top: ($mdb-input-padding-small-vertical + 1);
217
+ font-size: $mdb-input-font-size-small;
218
+ }
219
+ }
220
+ }
221
+ }