materialize-sass 0.96.0 → 0.96.1
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.
- checksums.yaml +7 -0
- data/app/assets/javascripts/materialize.js +75 -55
- data/app/assets/javascripts/materialize/collapsible.js +66 -11
- data/app/assets/javascripts/materialize/dropdown.js +34 -45
- data/app/assets/javascripts/materialize/global.js +1 -1
- data/app/assets/javascripts/materialize/scrollspy.js +1 -1
- data/app/assets/stylesheets/materialize/components/_form.scss +55 -11
- data/app/assets/stylesheets/materialize/components/_global.scss +3 -18
- data/lib/materialize-sass/version.rb +1 -1
- metadata +14 -22
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 84dcda8174769c6610185d4207bbf8557179569f
|
4
|
+
data.tar.gz: ffad56e373539f3c095a62c36135f7e14dcbf459
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c416532dc2d0512c8df05b77183d60b7da3634675828d977f61353bec9898472499955eeeb8732ff53eaf8bf92f131953bf47066160b313eca1b17a6792465ba
|
7
|
+
data.tar.gz: 45ad34d57bfb36b98894089aafa4441fc4146852e58f01a2c873dc4cd641e02fe65f7244f1680a3848469f31d03640f0500d8198d7581221cba22c5693d6dfa2
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Materialize v0.96.
|
2
|
+
* Materialize v0.96.1 (http://materializecss.com)
|
3
3
|
* Copyright 2014-2015 Materialize
|
4
4
|
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
5
5
|
*/
|
@@ -252,7 +252,7 @@ jQuery.extend( jQuery.easing,
|
|
252
252
|
};
|
253
253
|
})(Hammer.Manager.prototype.emit);
|
254
254
|
}));
|
255
|
-
;
|
255
|
+
;Materialize = {};
|
256
256
|
|
257
257
|
// Unique ID
|
258
258
|
Materialize.guid = (function() {
|
@@ -354,16 +354,44 @@ if ($) { Vel = $.Velocity } else { Vel = Velocity};
|
|
354
354
|
}
|
355
355
|
}
|
356
356
|
|
357
|
+
/**
|
358
|
+
* Check if object is children of panel header
|
359
|
+
* @param {Object} object Jquery object
|
360
|
+
* @return {Boolean} true if it is children
|
361
|
+
*/
|
362
|
+
function isChildrenOfPanelHeader(object) {
|
363
|
+
|
364
|
+
var panelHeader = getPanelHeader(object);
|
365
|
+
|
366
|
+
return panelHeader.length > 0;
|
367
|
+
}
|
368
|
+
|
369
|
+
/**
|
370
|
+
* Get panel header from a children element
|
371
|
+
* @param {Object} object Jquery object
|
372
|
+
* @return {Object} panel header object
|
373
|
+
*/
|
374
|
+
function getPanelHeader(object) {
|
375
|
+
|
376
|
+
return object.closest('li > .collapsible-header');
|
377
|
+
}
|
378
|
+
|
357
379
|
/***** End Helper Functions *****/
|
358
380
|
|
359
381
|
|
360
382
|
|
361
383
|
if (options.accordion || collapsible_type == "accordion" || collapsible_type == undefined) { // Handle Accordion
|
362
384
|
// Add click handler to only direct collapsible header children
|
363
|
-
$this.find('> li > .collapsible-header')
|
364
|
-
|
365
|
-
|
366
|
-
|
385
|
+
$panel_headers = $this.find('> li > .collapsible-header');
|
386
|
+
$panel_headers.on('click.collapse', function (e) {
|
387
|
+
var element = $(e.target);
|
388
|
+
|
389
|
+
if (isChildrenOfPanelHeader(element)) {
|
390
|
+
element = getPanelHeader(element);
|
391
|
+
}
|
392
|
+
|
393
|
+
element.toggleClass('active');
|
394
|
+
accordionOpen(element);
|
367
395
|
});
|
368
396
|
// Open first active
|
369
397
|
accordionOpen($panel_headers.filter('.active').first());
|
@@ -372,9 +400,12 @@ if ($) { Vel = $.Velocity } else { Vel = Velocity};
|
|
372
400
|
$panel_headers.each(function () {
|
373
401
|
// Add click handler to only direct collapsible header children
|
374
402
|
$(this).on('click.collapse', function (e) {
|
375
|
-
var
|
376
|
-
|
377
|
-
|
403
|
+
var element = $(e.target);
|
404
|
+
if (isChildrenOfPanelHeader(element)) {
|
405
|
+
element = getPanelHeader(element);
|
406
|
+
}
|
407
|
+
element.toggleClass('active');
|
408
|
+
expandableOpen(element);
|
378
409
|
});
|
379
410
|
// Open any bodies that have the active class
|
380
411
|
if ($(this).hasClass('active')) {
|
@@ -434,15 +465,7 @@ if ($) { Vel = $.Velocity } else { Vel = Velocity};
|
|
434
465
|
updateOptions();
|
435
466
|
|
436
467
|
// Attach dropdown to its activator
|
437
|
-
|
438
|
-
origin.after(activates)
|
439
|
-
}
|
440
|
-
else {
|
441
|
-
origin.append(activates);
|
442
|
-
}
|
443
|
-
|
444
|
-
|
445
|
-
|
468
|
+
origin.after(activates);
|
446
469
|
|
447
470
|
/*
|
448
471
|
Helper function to position and resize dropdown.
|
@@ -452,6 +475,9 @@ if ($) { Vel = $.Velocity } else { Vel = Velocity};
|
|
452
475
|
// Check html data attributes
|
453
476
|
updateOptions();
|
454
477
|
|
478
|
+
// Set Dropdown state
|
479
|
+
activates.addClass('active');
|
480
|
+
|
455
481
|
// Constrain width
|
456
482
|
if (options.constrain_width == true) {
|
457
483
|
activates.css('width', origin.outerWidth());
|
@@ -463,7 +489,6 @@ if ($) { Vel = $.Velocity } else { Vel = Velocity};
|
|
463
489
|
|
464
490
|
// Handle edge alignment
|
465
491
|
var offsetLeft = origin.offset().left;
|
466
|
-
|
467
492
|
var width_difference = 0;
|
468
493
|
var gutter_spacing = options.gutter;
|
469
494
|
|
@@ -472,23 +497,15 @@ if ($) { Vel = $.Velocity } else { Vel = Velocity};
|
|
472
497
|
width_difference = origin.innerWidth() - activates.innerWidth();
|
473
498
|
gutter_spacing = gutter_spacing * -1;
|
474
499
|
}
|
475
|
-
// If fixed placement
|
476
|
-
if (Materialize.elementOrParentIsFixed(origin[0])) {
|
477
|
-
activates.css({
|
478
|
-
top: 0 + offset,
|
479
|
-
left: 0 + width_difference + gutter_spacing
|
480
|
-
});
|
481
|
-
}
|
482
|
-
// If relative placement
|
483
|
-
else {
|
484
500
|
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
501
|
+
// Position dropdown
|
502
|
+
activates.css({
|
503
|
+
position: 'absolute',
|
504
|
+
top: origin.position().top + offset,
|
505
|
+
left: origin.position().left + width_difference + gutter_spacing
|
506
|
+
});
|
507
|
+
|
490
508
|
|
491
|
-
}
|
492
509
|
|
493
510
|
// Show dropdown
|
494
511
|
activates.stop(true, true).css('opacity', 0)
|
@@ -501,59 +518,62 @@ if ($) { Vel = $.Velocity } else { Vel = Velocity};
|
|
501
518
|
}
|
502
519
|
})
|
503
520
|
.animate( {opacity: 1}, {queue: false, duration: options.inDuration, easing: 'easeOutSine'});
|
504
|
-
|
505
|
-
|
506
521
|
}
|
507
522
|
|
508
|
-
|
509
523
|
function hideDropdown() {
|
510
524
|
activates.fadeOut(options.outDuration);
|
525
|
+
activates.removeClass('active');
|
511
526
|
}
|
512
527
|
|
513
|
-
activates.on('hover', function(e) {
|
514
|
-
e.stopPropagation();
|
515
|
-
});
|
516
|
-
|
517
528
|
// Hover
|
518
529
|
if (options.hover) {
|
530
|
+
var open = false;
|
519
531
|
origin.unbind('click.' + origin.attr('id'));
|
520
532
|
// Hover handler to show dropdown
|
521
533
|
origin.on('mouseenter', function(e){ // Mouse over
|
522
|
-
|
534
|
+
if (open === false) {
|
535
|
+
placeDropdown();
|
536
|
+
open = true
|
537
|
+
}
|
538
|
+
});
|
539
|
+
origin.on('mouseleave', function(e){
|
540
|
+
// If hover on origin then to something other than dropdown content, then close
|
541
|
+
if(!$(e.toElement).closest('.dropdown-content').is(activates)) {
|
542
|
+
activates.stop(true, true);
|
543
|
+
hideDropdown();
|
544
|
+
open = false;
|
545
|
+
}
|
523
546
|
});
|
524
547
|
|
525
|
-
|
526
|
-
|
527
|
-
|
548
|
+
activates.on('mouseleave', function(e){ // Mouse out
|
549
|
+
if(!$(e.toElement).closest('.dropdown-button').is(origin)) {
|
550
|
+
activates.stop(true, true);
|
551
|
+
hideDropdown();
|
552
|
+
open = false;
|
553
|
+
}
|
528
554
|
});
|
529
555
|
|
530
556
|
// Click
|
531
557
|
} else {
|
532
|
-
var open = false;
|
533
558
|
|
534
559
|
// Click handler to show dropdown
|
535
560
|
origin.unbind('click.' + origin.attr('id'));
|
536
561
|
origin.bind('click.'+origin.attr('id'), function(e){
|
537
|
-
|
538
|
-
if (origin.hasClass('select-dropdown')) {
|
539
|
-
return false;
|
540
|
-
}
|
562
|
+
|
541
563
|
if ( origin[0] == e.currentTarget && ($(e.target).closest('.dropdown-content').length === 0) ) {
|
542
564
|
e.preventDefault(); // Prevents button click from moving window
|
543
565
|
placeDropdown();
|
544
|
-
open = true;
|
545
566
|
|
546
567
|
}
|
547
568
|
// If origin is clicked and menu is open, close menu
|
548
569
|
else {
|
549
|
-
if (
|
570
|
+
if (origin.hasClass('active')) {
|
550
571
|
hideDropdown();
|
551
572
|
$(document).unbind('click.' + activates.attr('id'));
|
552
|
-
open = false;
|
553
573
|
}
|
554
574
|
}
|
555
575
|
// If menu open, add click close handler to document
|
556
|
-
if (
|
576
|
+
if (activates.hasClass('active')) {
|
557
577
|
$(document).bind('click.'+ activates.attr('id'), function (e) {
|
558
578
|
if (!activates.is(e.target) && !origin.is(e.target) && (!origin.find(e.target).length > 0) ) {
|
559
579
|
hideDropdown();
|
@@ -2295,7 +2315,7 @@ $(document).ready(function(){
|
|
2295
2315
|
|
2296
2316
|
// offset - 200 allows elements near bottom of page to scroll
|
2297
2317
|
|
2298
|
-
$('html, body').animate({ scrollTop: offset - 200 }, {duration: 400, easing: 'easeOutCubic'});
|
2318
|
+
$('html, body').animate({ scrollTop: offset - 200 }, {duration: 400, queue: false, easing: 'easeOutCubic'});
|
2299
2319
|
|
2300
2320
|
});
|
2301
2321
|
});
|
@@ -27,36 +27,86 @@
|
|
27
27
|
// Accordion Open
|
28
28
|
function accordionOpen(object) {
|
29
29
|
$panel_headers = $this.find('> li > .collapsible-header');
|
30
|
-
object.
|
30
|
+
if (object.hasClass('active')) {
|
31
|
+
object.parent().addClass('active');
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
object.parent().removeClass('active');
|
35
|
+
}
|
31
36
|
if (object.parent().hasClass('active')){
|
32
|
-
object.siblings('.collapsible-body').stop(true,false).slideDown({ duration: 350, easing: "easeOutQuart", queue: false});
|
37
|
+
object.siblings('.collapsible-body').stop(true,false).slideDown({ duration: 350, easing: "easeOutQuart", queue: false, complete: function() {$(this).css('height', '')}});
|
33
38
|
}
|
34
39
|
else{
|
35
|
-
object.siblings('.collapsible-body').stop(true,false).slideUp({ duration: 350, easing: "easeOutQuart", queue: false});
|
40
|
+
object.siblings('.collapsible-body').stop(true,false).slideUp({ duration: 350, easing: "easeOutQuart", queue: false, complete: function() {$(this).css('height', '')}});
|
36
41
|
}
|
37
|
-
|
38
|
-
$panel_headers.not(object).
|
42
|
+
|
43
|
+
$panel_headers.not(object).removeClass('active').parent().removeClass('active');
|
44
|
+
$panel_headers.not(object).parent().children('.collapsible-body').stop(true,false).slideUp(
|
45
|
+
{
|
46
|
+
duration: 350,
|
47
|
+
easing: "easeOutQuart",
|
48
|
+
queue: false,
|
49
|
+
complete:
|
50
|
+
function() {
|
51
|
+
$(this).css('height', '')
|
52
|
+
}
|
53
|
+
});
|
39
54
|
}
|
40
55
|
|
41
56
|
// Expandable Open
|
42
57
|
function expandableOpen(object) {
|
43
|
-
object.
|
58
|
+
if (object.hasClass('active')) {
|
59
|
+
object.parent().addClass('active');
|
60
|
+
}
|
61
|
+
else {
|
62
|
+
object.parent().removeClass('active');
|
63
|
+
}
|
44
64
|
if (object.parent().hasClass('active')){
|
45
|
-
object.siblings('.collapsible-body').stop(true,false).slideDown({ duration: 350, easing: "easeOutQuart", queue: false});
|
65
|
+
object.siblings('.collapsible-body').stop(true,false).slideDown({ duration: 350, easing: "easeOutQuart", queue: false, complete: function() {$(this).css('height', '')}});
|
46
66
|
}
|
47
67
|
else{
|
48
|
-
object.siblings('.collapsible-body').stop(true,false).slideUp({ duration: 350, easing: "easeOutQuart", queue: false});
|
68
|
+
object.siblings('.collapsible-body').stop(true,false).slideUp({ duration: 350, easing: "easeOutQuart", queue: false, complete: function() {$(this).css('height', '')}});
|
49
69
|
}
|
50
70
|
}
|
51
71
|
|
72
|
+
/**
|
73
|
+
* Check if object is children of panel header
|
74
|
+
* @param {Object} object Jquery object
|
75
|
+
* @return {Boolean} true if it is children
|
76
|
+
*/
|
77
|
+
function isChildrenOfPanelHeader(object) {
|
78
|
+
|
79
|
+
var panelHeader = getPanelHeader(object);
|
80
|
+
|
81
|
+
return panelHeader.length > 0;
|
82
|
+
}
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Get panel header from a children element
|
86
|
+
* @param {Object} object Jquery object
|
87
|
+
* @return {Object} panel header object
|
88
|
+
*/
|
89
|
+
function getPanelHeader(object) {
|
90
|
+
|
91
|
+
return object.closest('li > .collapsible-header');
|
92
|
+
}
|
93
|
+
|
52
94
|
/***** End Helper Functions *****/
|
53
95
|
|
54
96
|
|
55
97
|
|
56
98
|
if (options.accordion || collapsible_type == "accordion" || collapsible_type == undefined) { // Handle Accordion
|
57
99
|
// Add click handler to only direct collapsible header children
|
58
|
-
$this.find('> li > .collapsible-header')
|
59
|
-
|
100
|
+
$panel_headers = $this.find('> li > .collapsible-header');
|
101
|
+
$panel_headers.on('click.collapse', function (e) {
|
102
|
+
var element = $(e.target);
|
103
|
+
|
104
|
+
if (isChildrenOfPanelHeader(element)) {
|
105
|
+
element = getPanelHeader(element);
|
106
|
+
}
|
107
|
+
|
108
|
+
element.toggleClass('active');
|
109
|
+
accordionOpen(element);
|
60
110
|
});
|
61
111
|
// Open first active
|
62
112
|
accordionOpen($panel_headers.filter('.active').first());
|
@@ -65,7 +115,12 @@
|
|
65
115
|
$panel_headers.each(function () {
|
66
116
|
// Add click handler to only direct collapsible header children
|
67
117
|
$(this).on('click.collapse', function (e) {
|
68
|
-
|
118
|
+
var element = $(e.target);
|
119
|
+
if (isChildrenOfPanelHeader(element)) {
|
120
|
+
element = getPanelHeader(element);
|
121
|
+
}
|
122
|
+
element.toggleClass('active');
|
123
|
+
expandableOpen(element);
|
69
124
|
});
|
70
125
|
// Open any bodies that have the active class
|
71
126
|
if ($(this).hasClass('active')) {
|
@@ -42,15 +42,7 @@
|
|
42
42
|
updateOptions();
|
43
43
|
|
44
44
|
// Attach dropdown to its activator
|
45
|
-
|
46
|
-
origin.after(activates)
|
47
|
-
}
|
48
|
-
else {
|
49
|
-
origin.append(activates);
|
50
|
-
}
|
51
|
-
|
52
|
-
|
53
|
-
|
45
|
+
origin.after(activates);
|
54
46
|
|
55
47
|
/*
|
56
48
|
Helper function to position and resize dropdown.
|
@@ -60,6 +52,9 @@
|
|
60
52
|
// Check html data attributes
|
61
53
|
updateOptions();
|
62
54
|
|
55
|
+
// Set Dropdown state
|
56
|
+
activates.addClass('active');
|
57
|
+
|
63
58
|
// Constrain width
|
64
59
|
if (options.constrain_width == true) {
|
65
60
|
activates.css('width', origin.outerWidth());
|
@@ -71,7 +66,6 @@
|
|
71
66
|
|
72
67
|
// Handle edge alignment
|
73
68
|
var offsetLeft = origin.offset().left;
|
74
|
-
|
75
69
|
var width_difference = 0;
|
76
70
|
var gutter_spacing = options.gutter;
|
77
71
|
|
@@ -80,23 +74,15 @@
|
|
80
74
|
width_difference = origin.innerWidth() - activates.innerWidth();
|
81
75
|
gutter_spacing = gutter_spacing * -1;
|
82
76
|
}
|
83
|
-
// If fixed placement
|
84
|
-
if (Materialize.elementOrParentIsFixed(origin[0])) {
|
85
|
-
activates.css({
|
86
|
-
top: 0 + offset,
|
87
|
-
left: 0 + width_difference + gutter_spacing
|
88
|
-
});
|
89
|
-
}
|
90
|
-
// If relative placement
|
91
|
-
else {
|
92
77
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
78
|
+
// Position dropdown
|
79
|
+
activates.css({
|
80
|
+
position: 'absolute',
|
81
|
+
top: origin.position().top + offset,
|
82
|
+
left: origin.position().left + width_difference + gutter_spacing
|
83
|
+
});
|
84
|
+
|
98
85
|
|
99
|
-
}
|
100
86
|
|
101
87
|
// Show dropdown
|
102
88
|
activates.stop(true, true).css('opacity', 0)
|
@@ -109,59 +95,62 @@
|
|
109
95
|
}
|
110
96
|
})
|
111
97
|
.animate( {opacity: 1}, {queue: false, duration: options.inDuration, easing: 'easeOutSine'});
|
112
|
-
|
113
|
-
|
114
98
|
}
|
115
99
|
|
116
|
-
|
117
100
|
function hideDropdown() {
|
118
101
|
activates.fadeOut(options.outDuration);
|
102
|
+
activates.removeClass('active');
|
119
103
|
}
|
120
104
|
|
121
|
-
activates.on('hover', function(e) {
|
122
|
-
e.stopPropagation();
|
123
|
-
});
|
124
|
-
|
125
105
|
// Hover
|
126
106
|
if (options.hover) {
|
107
|
+
var open = false;
|
127
108
|
origin.unbind('click.' + origin.attr('id'));
|
128
109
|
// Hover handler to show dropdown
|
129
110
|
origin.on('mouseenter', function(e){ // Mouse over
|
130
|
-
|
111
|
+
if (open === false) {
|
112
|
+
placeDropdown();
|
113
|
+
open = true
|
114
|
+
}
|
115
|
+
});
|
116
|
+
origin.on('mouseleave', function(e){
|
117
|
+
// If hover on origin then to something other than dropdown content, then close
|
118
|
+
if(!$(e.toElement).closest('.dropdown-content').is(activates)) {
|
119
|
+
activates.stop(true, true);
|
120
|
+
hideDropdown();
|
121
|
+
open = false;
|
122
|
+
}
|
131
123
|
});
|
132
124
|
|
133
|
-
|
134
|
-
|
135
|
-
|
125
|
+
activates.on('mouseleave', function(e){ // Mouse out
|
126
|
+
if(!$(e.toElement).closest('.dropdown-button').is(origin)) {
|
127
|
+
activates.stop(true, true);
|
128
|
+
hideDropdown();
|
129
|
+
open = false;
|
130
|
+
}
|
136
131
|
});
|
137
132
|
|
138
133
|
// Click
|
139
134
|
} else {
|
140
|
-
var open = false;
|
141
135
|
|
142
136
|
// Click handler to show dropdown
|
143
137
|
origin.unbind('click.' + origin.attr('id'));
|
144
138
|
origin.bind('click.'+origin.attr('id'), function(e){
|
145
|
-
|
146
|
-
if (origin.hasClass('select-dropdown')) {
|
147
|
-
return false;
|
148
|
-
}
|
139
|
+
|
149
140
|
if ( origin[0] == e.currentTarget && ($(e.target).closest('.dropdown-content').length === 0) ) {
|
150
141
|
e.preventDefault(); // Prevents button click from moving window
|
151
142
|
placeDropdown();
|
152
|
-
open = true;
|
153
143
|
|
154
144
|
}
|
155
145
|
// If origin is clicked and menu is open, close menu
|
156
146
|
else {
|
157
|
-
if (
|
147
|
+
if (origin.hasClass('active')) {
|
158
148
|
hideDropdown();
|
159
149
|
$(document).unbind('click.' + activates.attr('id'));
|
160
|
-
open = false;
|
161
150
|
}
|
162
151
|
}
|
163
152
|
// If menu open, add click close handler to document
|
164
|
-
if (
|
153
|
+
if (activates.hasClass('active')) {
|
165
154
|
$(document).bind('click.'+ activates.attr('id'), function (e) {
|
166
155
|
if (!activates.is(e.target) && !origin.is(e.target) && (!origin.find(e.target).length > 0) ) {
|
167
156
|
hideDropdown();
|
@@ -182,7 +182,7 @@
|
|
182
182
|
|
183
183
|
// offset - 200 allows elements near bottom of page to scroll
|
184
184
|
|
185
|
-
$('html, body').animate({ scrollTop: offset - 200 }, {duration: 400, easing: 'easeOutCubic'});
|
185
|
+
$('html, body').animate({ scrollTop: offset - 200 }, {duration: 400, queue: false, easing: 'easeOutCubic'});
|
186
186
|
|
187
187
|
});
|
188
188
|
});
|
@@ -144,9 +144,46 @@ textarea.materialize-textarea {
|
|
144
144
|
width: calc(100% - 3rem);
|
145
145
|
}
|
146
146
|
}
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
// Search Field
|
151
|
+
|
152
|
+
|
153
|
+
.input-field input[type=search] {
|
154
|
+
display: block;
|
155
|
+
line-height: inherit;
|
156
|
+
padding-left: 4rem;
|
157
|
+
width: calc(100% - 4rem);
|
158
|
+
|
159
|
+
&:focus {
|
160
|
+
background-color: #FFF;
|
161
|
+
border: 0;
|
162
|
+
box-shadow: none;
|
163
|
+
color: #444;
|
164
|
+
|
165
|
+
& + label i,
|
166
|
+
& ~ .mdi-navigation-close {
|
167
|
+
color: #444;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
& + label {
|
172
|
+
left: 1rem;
|
173
|
+
}
|
147
174
|
|
175
|
+
& ~ .mdi-navigation-close {
|
176
|
+
position: absolute;
|
177
|
+
top: 0;
|
178
|
+
right: 1rem;
|
179
|
+
color: transparent;
|
180
|
+
cursor: pointer;
|
181
|
+
font-size: 2rem;
|
182
|
+
transition: .3s color;
|
183
|
+
}
|
148
184
|
}
|
149
185
|
|
186
|
+
|
150
187
|
// Default textarea
|
151
188
|
textarea {
|
152
189
|
width: 100%;
|
@@ -542,7 +579,6 @@ input[type=checkbox]:not(:disabled) ~ .lever:active:after {
|
|
542
579
|
|
543
580
|
.select-wrapper {
|
544
581
|
position: relative;
|
545
|
-
margin-top: 15px;
|
546
582
|
|
547
583
|
input.select-dropdown {
|
548
584
|
position: relative;
|
@@ -561,15 +597,20 @@ input[type=checkbox]:not(:disabled) ~ .lever:active:after {
|
|
561
597
|
display: block;
|
562
598
|
}
|
563
599
|
.mdi-navigation-arrow-drop-down {
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
}
|
600
|
+
color: initial;
|
601
|
+
position: absolute;
|
602
|
+
right: 0;
|
603
|
+
top: 0;
|
604
|
+
font-size: 23px;
|
605
|
+
&.disabled {
|
606
|
+
color: $input-disabled-color;
|
572
607
|
}
|
608
|
+
}
|
609
|
+
& + label {
|
610
|
+
position: absolute;
|
611
|
+
top: -14px;
|
612
|
+
font-size: $label-font-size;
|
613
|
+
}
|
573
614
|
}
|
574
615
|
|
575
616
|
select { display: none; }
|
@@ -582,6 +623,10 @@ select:disabled {
|
|
582
623
|
}
|
583
624
|
.select-wrapper input.select-dropdown:disabled {
|
584
625
|
color: rgba(0,0,0,.3);
|
626
|
+
cursor: default;
|
627
|
+
-webkit-user-select: none; /* webkit (safari, chrome) browsers */
|
628
|
+
-moz-user-select: none; /* mozilla browsers */
|
629
|
+
-ms-user-select: none; /* IE10+ */
|
585
630
|
border-bottom: 1px solid rgba(0,0,0,.3);
|
586
631
|
}
|
587
632
|
.select-wrapper i {
|
@@ -589,8 +634,7 @@ select:disabled {
|
|
589
634
|
}
|
590
635
|
.select-dropdown li.disabled {
|
591
636
|
color: rgba(0,0,0,.3);
|
592
|
-
|
593
|
-
&:hover { background-color: transparent; }
|
637
|
+
background-color: transparent;
|
594
638
|
}
|
595
639
|
|
596
640
|
|
@@ -187,24 +187,6 @@ video.responsive-video {
|
|
187
187
|
}
|
188
188
|
}
|
189
189
|
|
190
|
-
@media #{$small-and-down} {
|
191
|
-
.parallax-container {
|
192
|
-
height: auto;
|
193
|
-
|
194
|
-
.parallax {
|
195
|
-
position: relative;
|
196
|
-
|
197
|
-
img {
|
198
|
-
position: relative;
|
199
|
-
min-height: 0;
|
200
|
-
min-width: 0;
|
201
|
-
width: 100%;
|
202
|
-
}
|
203
|
-
}
|
204
|
-
}
|
205
|
-
}
|
206
|
-
|
207
|
-
|
208
190
|
// Pushpin
|
209
191
|
.pin-top, .pin-bottom {
|
210
192
|
position: relative;
|
@@ -552,6 +534,9 @@ span.badge {
|
|
552
534
|
padding-top: 30px;
|
553
535
|
height: 0;
|
554
536
|
overflow: hidden;
|
537
|
+
&.no-controls {
|
538
|
+
padding-top: 0;
|
539
|
+
}
|
555
540
|
|
556
541
|
iframe, object, embed {
|
557
542
|
position: absolute;
|
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: materialize-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.96.
|
5
|
-
prerelease:
|
4
|
+
version: 0.96.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- mkhairi
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.7'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.7'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '10.0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '10.0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: sass
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '3.3'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '3.3'
|
62
55
|
description: Use materialzecss in your rails asset pipeline.
|
@@ -66,7 +59,7 @@ executables: []
|
|
66
59
|
extensions: []
|
67
60
|
extra_rdoc_files: []
|
68
61
|
files:
|
69
|
-
- .gitignore
|
62
|
+
- ".gitignore"
|
70
63
|
- Gemfile
|
71
64
|
- LICENSE.txt
|
72
65
|
- README.md
|
@@ -161,26 +154,25 @@ files:
|
|
161
154
|
homepage: https://github.com/mkhairi/materialize-sass
|
162
155
|
licenses:
|
163
156
|
- MIT
|
157
|
+
metadata: {}
|
164
158
|
post_install_message:
|
165
159
|
rdoc_options: []
|
166
160
|
require_paths:
|
167
161
|
- lib
|
168
162
|
required_ruby_version: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
163
|
requirements:
|
171
|
-
- -
|
164
|
+
- - ">="
|
172
165
|
- !ruby/object:Gem::Version
|
173
166
|
version: '0'
|
174
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
|
-
none: false
|
176
168
|
requirements:
|
177
|
-
- -
|
169
|
+
- - ">="
|
178
170
|
- !ruby/object:Gem::Version
|
179
171
|
version: '0'
|
180
172
|
requirements: []
|
181
173
|
rubyforge_project:
|
182
|
-
rubygems_version:
|
174
|
+
rubygems_version: 2.4.4
|
183
175
|
signing_key:
|
184
|
-
specification_version:
|
176
|
+
specification_version: 4
|
185
177
|
summary: Materialzecss sass for rails.
|
186
178
|
test_files: []
|