mdbootstrap-rails 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rubocop.yml +1 -0
  4. data/.rubocop_todo.yml +54 -0
  5. data/.travis.yml +10 -0
  6. data/CHANGE_LOG.md +10 -0
  7. data/Gemfile +10 -0
  8. data/Guardfile +9 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +85 -0
  11. data/Rakefile +12 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/lib/mdbootstrap/rails.rb +7 -0
  15. data/lib/mdbootstrap/rails/engine.rb +6 -0
  16. data/lib/mdbootstrap/rails/version.rb +5 -0
  17. data/mdbootstrap-rails.gemspec +31 -0
  18. data/vendor/assets/README.txt +25 -0
  19. data/vendor/assets/css/bootstrap.css +6686 -0
  20. data/vendor/assets/css/bootstrap.min.css +7 -0
  21. data/vendor/assets/css/mdb.css +8614 -0
  22. data/vendor/assets/css/mdb.min.css +26 -0
  23. data/vendor/assets/css/style.css +1 -0
  24. data/vendor/assets/fonts/roboto/Roboto-Bold.eot +0 -0
  25. data/vendor/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  26. data/vendor/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  27. data/vendor/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  28. data/vendor/assets/fonts/roboto/Roboto-Light.eot +0 -0
  29. data/vendor/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  30. data/vendor/assets/fonts/roboto/Roboto-Light.woff +0 -0
  31. data/vendor/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  32. data/vendor/assets/fonts/roboto/Roboto-Medium.eot +0 -0
  33. data/vendor/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  34. data/vendor/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  35. data/vendor/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  36. data/vendor/assets/fonts/roboto/Roboto-Regular.eot +0 -0
  37. data/vendor/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  38. data/vendor/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  39. data/vendor/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  40. data/vendor/assets/fonts/roboto/Roboto-Thin.eot +0 -0
  41. data/vendor/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  42. data/vendor/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  43. data/vendor/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  44. data/vendor/assets/images/lightbox/default-skin.png +0 -0
  45. data/vendor/assets/images/lightbox/default-skin.svg +1 -0
  46. data/vendor/assets/images/lightbox/preloader.gif +0 -0
  47. data/vendor/assets/images/overlays/01.png +0 -0
  48. data/vendor/assets/images/overlays/02.png +0 -0
  49. data/vendor/assets/images/overlays/03.png +0 -0
  50. data/vendor/assets/images/overlays/04.png +0 -0
  51. data/vendor/assets/images/overlays/05.png +0 -0
  52. data/vendor/assets/images/overlays/06.png +0 -0
  53. data/vendor/assets/images/overlays/07.png +0 -0
  54. data/vendor/assets/images/overlays/08.png +0 -0
  55. data/vendor/assets/images/overlays/09.png +0 -0
  56. data/vendor/assets/javascripts/bootstrap.js +3430 -0
  57. data/vendor/assets/javascripts/bootstrap.min.js +7 -0
  58. data/vendor/assets/javascripts/jquery-2.2.3.js +9842 -0
  59. data/vendor/assets/javascripts/jquery-2.2.3.min.js +4 -0
  60. data/vendor/assets/javascripts/jquery-3.1.1.js +10220 -0
  61. data/vendor/assets/javascripts/jquery-3.1.1.min.js +4 -0
  62. data/vendor/assets/javascripts/mdb.js +5316 -0
  63. data/vendor/assets/javascripts/mdb.min.js +4 -0
  64. data/vendor/assets/javascripts/tether.js +1726 -0
  65. data/vendor/assets/javascripts/tether.min.js +1 -0
  66. data/vendor/assets/stylesheets/bootstrap.css +6686 -0
  67. data/vendor/assets/stylesheets/bootstrap.min.css +7 -0
  68. data/vendor/assets/stylesheets/mdb.scss +49 -0
  69. data/vendor/assets/stylesheets/mdb/free/_animations.scss +3340 -0
  70. data/vendor/assets/stylesheets/mdb/free/_buttons.scss +528 -0
  71. data/vendor/assets/stylesheets/mdb/free/_cards-basic.scss +59 -0
  72. data/vendor/assets/stylesheets/mdb/free/_carousels-basic.scss +51 -0
  73. data/vendor/assets/stylesheets/mdb/free/_footer.scss +51 -0
  74. data/vendor/assets/stylesheets/mdb/free/_forms-basic.scss +306 -0
  75. data/vendor/assets/stylesheets/mdb/free/_global.scss +397 -0
  76. data/vendor/assets/stylesheets/mdb/free/_helpers.scss +257 -0
  77. data/vendor/assets/stylesheets/mdb/free/_hover-effects.scss +415 -0
  78. data/vendor/assets/stylesheets/mdb/free/_navbars.scss +196 -0
  79. data/vendor/assets/stylesheets/mdb/free/_roboto.scss +51 -0
  80. data/vendor/assets/stylesheets/mdb/free/_typography.scss +201 -0
  81. data/vendor/assets/stylesheets/mdb/free/_waves.scss +157 -0
  82. data/vendor/assets/stylesheets/mdb/free/data/_colors.scss +875 -0
  83. data/vendor/assets/stylesheets/mdb/free/data/_mixins.scss +83 -0
  84. data/vendor/assets/stylesheets/mdb/free/data/_prefixer.scss +376 -0
  85. data/vendor/assets/stylesheets/mdb/free/data/_variables-b4.scss +666 -0
  86. data/vendor/assets/stylesheets/mdb/free/data/_variables.scss +102 -0
  87. metadata +221 -0
@@ -0,0 +1,397 @@
1
+ // GLOBAL STYLES
2
+ // Z-levels
3
+ .z-depth-0 {
4
+ box-shadow: none !important;
5
+ }
6
+
7
+ .z-depth-1 {
8
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
9
+ }
10
+
11
+ .z-depth-1-half {
12
+ box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
13
+ }
14
+
15
+ .z-depth-2 {
16
+ box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
17
+ }
18
+
19
+ .z-depth-3 {
20
+ box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
21
+ }
22
+
23
+ .z-depth-4 {
24
+ box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21);
25
+ }
26
+
27
+ .z-depth-5 {
28
+ box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22);
29
+ }
30
+
31
+ .hoverable {
32
+ transition: box-shadow .55s;
33
+ box-shadow: 0;
34
+ }
35
+
36
+ .hoverable:hover {
37
+ transition: box-shadow .45s;
38
+ box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
39
+ }
40
+
41
+ // Normalize
42
+ a {
43
+ color: $link-color;
44
+ text-decoration: none;
45
+ cursor: pointer;
46
+ // Gets rid of tap active state
47
+ -webkit-tap-highlight-color: transparent;
48
+ &:hover,
49
+ &:focus {
50
+ text-decoration: none;
51
+ }
52
+ }
53
+
54
+ ul {
55
+ padding: 0;
56
+ list-style-type: none;
57
+ li {
58
+ list-style-type: none;
59
+ }
60
+ }
61
+
62
+ .jumbotron,
63
+ .card,
64
+ .tag,
65
+ .alert,
66
+ .nav .nav-link,
67
+ .navbar-toggler,
68
+ .navbar,
69
+ .breadcrumb,
70
+ .page-item:last-child .page-link,
71
+ .page-item:first-child .page-link,
72
+ .pagination-lg .page-item:last-child .page-link,
73
+ .pagination-lg .page-item:first-child .page-link,
74
+ .pagination-sm .page-item:first-child .page-link,
75
+ .pagination-sm .page-item:last-child .page-link,
76
+ .list-group .list-group-item,
77
+ .modal-content,
78
+ .tooltip-inner,
79
+ .popover,
80
+ .dropdown-menu,
81
+ .input-group-addon,
82
+ .file-custom,
83
+ .card .card-header,
84
+ .nav-tabs,
85
+ img {
86
+ @include border-radius(2px);
87
+ }
88
+
89
+ .jumbotron,
90
+ .card,
91
+ .list-group,
92
+ .popover,
93
+ .navbar,
94
+ .dropdown-menu,
95
+ .tag,
96
+ .chip {
97
+ @extend .z-depth-1;
98
+ }
99
+
100
+ .popover,
101
+ .input-group-addon,
102
+ .dropdown-menu,
103
+ .pagination .page-item .page-link {
104
+ border: 0;
105
+ }
106
+
107
+ // Circle pagination
108
+ .pagination .active .page-link {
109
+ border-radius: 2px;
110
+ transition: all 0.2s linear;
111
+ @extend.z-depth-1;
112
+ }
113
+
114
+ .pagination .page-link {
115
+ transition: all 0.3s linear;
116
+ &:hover {
117
+ transition: all 0.3s linear;
118
+ }
119
+ &:focus {
120
+ background-color: transparent;
121
+ }
122
+ }
123
+
124
+ .pagination {
125
+ &.pg-blue {
126
+ .active .page-link {
127
+ background-color: $primary-color;
128
+ }
129
+ }
130
+ &.pg-red {
131
+ .active .page-link {
132
+ background-color: $danger-color;
133
+ }
134
+ }
135
+ &.pg-teal {
136
+ .active .page-link {
137
+ background-color: $default-color;
138
+ }
139
+ }
140
+ &.pg-darkgrey {
141
+ .active .page-link {
142
+ background-color: $special-color;
143
+ }
144
+ }
145
+ &.pg-dark {
146
+ .active .page-link {
147
+ background-color: $elegant-color;
148
+ }
149
+ }
150
+ &.pg-bluegrey {
151
+ .active .page-link {
152
+ background-color: #3F729B;
153
+ }
154
+ }
155
+ &.pg-amber {
156
+ .active .page-link {
157
+ background-color: #ff6f00;
158
+ }
159
+ }
160
+ &.pg-purple {
161
+ .active .page-link {
162
+ background-color: #5e35b1;
163
+ }
164
+ }
165
+ }
166
+
167
+ .pager {
168
+ a,
169
+ .disabled>a {
170
+ color: #fff;
171
+ }
172
+ &.pg-blue {
173
+ li a {
174
+ background-color: $primary-color;
175
+ &:focus {
176
+ background-color: $primary-color;
177
+ color: #fff;
178
+ }
179
+ &:hover {
180
+ background-color: $primary-color;
181
+ color: #fff;
182
+ }
183
+ }
184
+ }
185
+ &.pg-red {
186
+ li a {
187
+ background-color: $danger-color;
188
+ &:focus {
189
+ background-color: $danger-color;
190
+ color: #fff;
191
+ }
192
+ &:hover {
193
+ background-color: $danger-color;
194
+ color: #fff;
195
+ }
196
+ }
197
+ }
198
+ &.pg-teal {
199
+ li a {
200
+ background-color: $default-color;
201
+ &:focus {
202
+ background-color: $default-color;
203
+ color: #fff;
204
+ }
205
+ &:hover {
206
+ background-color: $default-color;
207
+ color: #fff;
208
+ }
209
+ }
210
+ }
211
+ &.pg-darkgrey {
212
+ li a {
213
+ background-color: $special-color;
214
+ &:focus {
215
+ background-color: $special-color;
216
+ color: #fff;
217
+ }
218
+ &:hover {
219
+ background-color: $special-color;
220
+ color: #fff;
221
+ }
222
+ }
223
+ }
224
+ &.pg-dark {
225
+ li a {
226
+ background-color: $elegant-color;
227
+ &:focus {
228
+ background-color: $elegant-color;
229
+ color: #fff;
230
+ }
231
+ &:hover {
232
+ background-color: $elegant-color;
233
+ color: #fff;
234
+ }
235
+ }
236
+ }
237
+ &.pg-bluegrey {
238
+ li a {
239
+ background-color: #3F729B;
240
+ &:focus {
241
+ background-color: #3F729B;
242
+ color: #fff;
243
+ }
244
+ &:hover {
245
+ background-color: #3F729B;
246
+ color: #fff;
247
+ }
248
+ }
249
+ }
250
+ &.pg-amber {
251
+ li a {
252
+ background-color: #ff6f00;
253
+ &:focus {
254
+ background-color: #ff6f00;
255
+ color: #fff;
256
+ }
257
+ &:hover {
258
+ background-color: #ff6f00;
259
+ color: #fff;
260
+ }
261
+ }
262
+ }
263
+ &.pg-purple {
264
+ li a {
265
+ background-color: #5e35b1;
266
+ &:focus {
267
+ background-color: #5e35b1;
268
+ color: #fff;
269
+ }
270
+ &:hover {
271
+ background-color: #5e35b1;
272
+ color: #fff;
273
+ }
274
+ }
275
+ }
276
+ }
277
+
278
+ .pager .disabled>a,
279
+ .pager .disabled>a:focus,
280
+ .pager .disabled>a:hover {
281
+ background-color: inerhit!important;
282
+ }
283
+
284
+ // Modal footer buttons fix
285
+ .modal-footer .btn+ .btn {
286
+ margin-bottom: 6px;
287
+ }
288
+
289
+ // Shifting bacground fix
290
+ body.modal-open {
291
+ overflow: inherit;
292
+ padding-right: 0 !important;
293
+ }
294
+
295
+ body {
296
+ overflow: auto !important;
297
+ }
298
+
299
+ // Card columns fix - cut edges of the cards
300
+ .card-columns .card {
301
+ margin: 2px;
302
+ }
303
+
304
+ // Parallax
305
+ .parallax {
306
+ background-repeat: no-repeat;
307
+ background-size: cover;
308
+ background-attachment: fixed;
309
+ position: relative;
310
+ padding-top: 3em;
311
+ padding-bottom: 3em;
312
+ }
313
+
314
+ // Scrollspy free
315
+ .nav-pills {
316
+ &.horizontal-spy {
317
+ .nav-item {
318
+ .active {
319
+ border-bottom: 2px solid $mdb-color;
320
+ border-left: none;
321
+ }
322
+ &:hover {
323
+ background-color: transparent;
324
+ color: $mdb-color;
325
+ font-weight: 500;
326
+ border-left: none;
327
+ }
328
+ }
329
+ }
330
+ }
331
+
332
+ //Nav normalize
333
+ .nav-pills .nav-item.open .nav-link,
334
+ .nav-pills .nav-item.open .nav-link:focus,
335
+ .nav-pills .nav-item.open .nav-link:hover,
336
+ .nav-pills .nav-link.active,
337
+ .nav-pills .nav-link.active:focus,
338
+ .nav-pills .nav-link.active:hover {
339
+ background-color: transparent;
340
+ color: #000;
341
+ }
342
+
343
+ //Disabled cursor
344
+ .disabled {
345
+ cursor: not-allowed!important;
346
+ }
347
+
348
+ //Video responsive
349
+ .video-fluid {
350
+ height: auto;
351
+ width: 100%;
352
+ }
353
+
354
+ .video-full {
355
+ position: fixed;
356
+ top: 50%;
357
+ left: 50%;
358
+ min-width: 100%;
359
+ min-height: 100%;
360
+ width: auto;
361
+ height: auto;
362
+ z-index: -100;
363
+ -ms-transform: translateX(-50%) translateY(-50%);
364
+ -moz-transform: translateX(-50%) translateY(-50%);
365
+ -webkit-transform: translateX(-50%) translateY(-50%);
366
+ transform: translateX(-50%) translateY(-50%);
367
+ background-size: cover;
368
+ }
369
+
370
+ //Media improvement
371
+ .media {
372
+ img {
373
+ @extend .z-depth-1-half;
374
+ }
375
+ }
376
+
377
+ .card-block {
378
+ h5 {
379
+ margin-bottom: 1rem;
380
+ font-size: 1rem;
381
+ font-weight: 400;
382
+ }
383
+ h3 {
384
+ margin-bottom: 1rem;
385
+ font-weight: 400;
386
+ }
387
+ p {
388
+ margin-bottom: 1rem;
389
+ }
390
+ }
391
+
392
+ .tooltip {
393
+ .tooltip-inner {
394
+ padding: 0.4rem 0.8rem;
395
+ @extend .z-depth-1-half;
396
+ }
397
+ }
@@ -0,0 +1,257 @@
1
+ // HELPERS
2
+ // Center text on mobile
3
+ .center-on-small-only {
4
+ @media #{$medium-and-down} {
5
+ text-align: center;
6
+ .img-fluid {
7
+ display: inline;
8
+ }
9
+ }
10
+ }
11
+
12
+ .flex-center {
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: center;
16
+ height: 100%;
17
+ p {
18
+ margin: 0;
19
+ }
20
+ ul {
21
+ text-align: center;
22
+ li {
23
+ margin-bottom: 1rem;
24
+ }
25
+ }
26
+ }
27
+
28
+ .vertical-center {
29
+ position: relative;
30
+ top: 50%;
31
+ -webkit-transform: translateY(-50%);
32
+ -o-transform: translateY(-50%);
33
+ transform: translateY(-50%);
34
+ }
35
+
36
+ .img-fluid {
37
+ display: block;
38
+ max-width: 100%;
39
+ height: auto;
40
+ }
41
+
42
+ .inline-ul> li {
43
+ display: inline;
44
+ }
45
+
46
+ .list-inline-div> div {
47
+ display: inline-block;
48
+ }
49
+
50
+ // Divider
51
+ .hr-light {
52
+ background-color: #fff;
53
+ height: 0.5px;
54
+ }
55
+
56
+ .hr-dark {
57
+ background-color: #666;
58
+ height: 0.5px;
59
+ }
60
+
61
+ .divider-new {
62
+ display: flex;
63
+ flex-direction: row;
64
+ justify-content: center;
65
+ align-items: center;
66
+ font-weight: 300;
67
+ margin-top: 45px;
68
+ margin-bottom: 45px;
69
+ h2 {
70
+ margin-top: 5px;
71
+ }
72
+ }
73
+
74
+ .divider-new::before {
75
+ content: '';
76
+ height: 1.5px;
77
+ background: #666;
78
+ flex: 1;
79
+ margin: 0 .45em 0 0;
80
+ }
81
+
82
+ .divider-new::after {
83
+ content: '';
84
+ height: 1.5px;
85
+ background: #666;
86
+ flex: 1;
87
+ margin: 0 0 0 .45em;
88
+ }
89
+
90
+ // Section title
91
+ .section-title {
92
+ text-transform: uppercase;
93
+ margin-top: 0;
94
+ margin-bottom: 3rem;
95
+ padding: 0.7rem;
96
+ small {
97
+ text-transform: none;
98
+ padding-left: 7px;
99
+ margin-left: 10px;
100
+ }
101
+ }
102
+
103
+ .st-indigo {
104
+ border-left: 4px solid blue;
105
+ small {
106
+ border-left: 2px solid blue;
107
+ }
108
+ }
109
+
110
+ .st-red {
111
+ border-left: 4px solid red;
112
+ small {
113
+ border-left: 2px solid red;
114
+ }
115
+ }
116
+
117
+ .st-teal {
118
+ border-left: 4px solid #009688;
119
+ small {
120
+ border-left: 2px solid #009688;
121
+ }
122
+ }
123
+
124
+ .st-orange {
125
+ border-left: 4px solid #ff6f00;
126
+ small {
127
+ border-left: 2px solid #ff6f00;
128
+ }
129
+ }
130
+
131
+ .st-blue {
132
+ border-left: 4px solid #2196f3;
133
+ small {
134
+ border-left: 2px solid #2196f3;
135
+ }
136
+ }
137
+
138
+ .st-mdb {
139
+ border-left: 4px solid $mdb-color;
140
+ small {
141
+ border-left: 2px solid $mdb-color;
142
+ }
143
+ }
144
+
145
+ .divider-short {
146
+ max-width: 50px;
147
+ border-color: $primary-color;
148
+ border-width: 3px;
149
+ }
150
+
151
+ // Blockquote contextual
152
+ .blockquote {
153
+ .bq-title {
154
+ font-weight: 400;
155
+ font-size: 1.5rem;
156
+ margin-bottom: 0;
157
+ }
158
+ p {
159
+ font-size: 1.1rem;
160
+ }
161
+ }
162
+
163
+ .bq-primary {
164
+ border-left: 3px solid $primary-color;
165
+ .bq-title {
166
+ color: $primary-color;
167
+ }
168
+ }
169
+
170
+ .bq-warning {
171
+ border-left: 3px solid $warning-color;
172
+ .bq-title {
173
+ color: $warning-color;
174
+ }
175
+ }
176
+
177
+ .bq-danger {
178
+ border-left: 3px solid $danger-color;
179
+ .bq-title {
180
+ color: $danger-color;
181
+ }
182
+ }
183
+
184
+ .bq-success {
185
+ border-left: 3px solid $success-color;
186
+ .bq-title {
187
+ color: $success-color;
188
+ }
189
+ }
190
+
191
+ .pt-4 {
192
+ padding-top: 4rem !important;
193
+ }
194
+
195
+ .pt-5 {
196
+ padding-top: 5rem !important;
197
+ }
198
+
199
+ .pt-6 {
200
+ padding-top: 6rem !important;
201
+ }
202
+
203
+ .pb-4 {
204
+ padding-bottom: 4rem !important;
205
+ }
206
+
207
+ .pb-5 {
208
+ padding-bottom: 5rem !important;
209
+ }
210
+
211
+ .pb-6 {
212
+ padding-bottom: 6rem !important;
213
+ }
214
+
215
+ .mt-4 {
216
+ margin-top: 4rem !important;
217
+ }
218
+
219
+ .mt-5 {
220
+ margin-top: 5rem !important;
221
+ }
222
+
223
+ .mt-6 {
224
+ margin-top: 6rem !important;
225
+ }
226
+
227
+ .mb-4 {
228
+ margin-bottom: 4rem !important;
229
+ }
230
+
231
+ .mb-5 {
232
+ margin-bottom: 5rem !important;
233
+ }
234
+
235
+ .mb-6 {
236
+ margin-bottom: 6rem !important;
237
+ }
238
+
239
+ .mb-r {
240
+ @media (max-width: 992px) {
241
+ margin-bottom: 2rem!important;
242
+ }
243
+ @media (min-width: 992px) {
244
+ margin-bottom: 3rem!important;
245
+ }
246
+ }
247
+
248
+ .mb-m {
249
+ margin-bottom:1rem;
250
+ @media (min-width: 62em) {
251
+ margin-bottom:0;
252
+ }
253
+ }
254
+
255
+ .no-height {
256
+ height:0;
257
+ }