dae-material 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +3 -0
  5. data/CODE_OF_CONDUCT.md +13 -0
  6. data/Gemfile +4 -0
  7. data/README.md +39 -0
  8. data/Rakefile +1 -0
  9. data/app/assets/fonts/material-design-icons/LICENSE.txt +428 -0
  10. data/app/assets/fonts/material-design-icons/Material-Design-Icons.eot +0 -0
  11. data/app/assets/fonts/material-design-icons/Material-Design-Icons.svg +751 -0
  12. data/app/assets/fonts/material-design-icons/Material-Design-Icons.ttf +0 -0
  13. data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff +0 -0
  14. data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff2 +0 -0
  15. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  16. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  17. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  18. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  19. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  20. data/app/assets/fonts/roboto/Roboto-Light.woff2 +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.ttf +0 -0
  25. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  26. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  27. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  28. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  29. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  30. data/app/assets/javascripts/materialize-sprockets.js +27 -0
  31. data/app/assets/javascripts/materialize.js +6023 -0
  32. data/app/assets/javascripts/materialize/animation.js +9 -0
  33. data/app/assets/javascripts/materialize/buttons.js +35 -0
  34. data/app/assets/javascripts/materialize/cards.js +27 -0
  35. data/app/assets/javascripts/materialize/character_counter.js +59 -0
  36. data/app/assets/javascripts/materialize/collapsible.js +139 -0
  37. data/app/assets/javascripts/materialize/date_picker/picker.date.js +1430 -0
  38. data/app/assets/javascripts/materialize/date_picker/picker.js +1123 -0
  39. data/app/assets/javascripts/materialize/dropdown.js +176 -0
  40. data/app/assets/javascripts/materialize/forms.js +397 -0
  41. data/app/assets/javascripts/materialize/global.js +31 -0
  42. data/app/assets/javascripts/materialize/hammer.min.js +1 -0
  43. data/app/assets/javascripts/materialize/init.js +137 -0
  44. data/app/assets/javascripts/materialize/jquery.easing.1.3.js +205 -0
  45. data/app/assets/javascripts/materialize/jquery.hammer.js +33 -0
  46. data/app/assets/javascripts/materialize/jquery.timeago.min.js +1 -0
  47. data/app/assets/javascripts/materialize/leanModal.js +139 -0
  48. data/app/assets/javascripts/materialize/materialbox.js +249 -0
  49. data/app/assets/javascripts/materialize/parallax.js +58 -0
  50. data/app/assets/javascripts/materialize/prism.js +8 -0
  51. data/app/assets/javascripts/materialize/pushpin.js +62 -0
  52. data/app/assets/javascripts/materialize/scrollFire.js +69 -0
  53. data/app/assets/javascripts/materialize/scrollspy.js +284 -0
  54. data/app/assets/javascripts/materialize/sideNav.js +335 -0
  55. data/app/assets/javascripts/materialize/slider.js +263 -0
  56. data/app/assets/javascripts/materialize/tabs.js +129 -0
  57. data/app/assets/javascripts/materialize/toasts.js +121 -0
  58. data/app/assets/javascripts/materialize/tooltip.js +166 -0
  59. data/app/assets/javascripts/materialize/transitions.js +145 -0
  60. data/app/assets/javascripts/materialize/velocity.min.js +4 -0
  61. data/app/assets/javascripts/materialize/waves.js +338 -0
  62. data/app/assets/stylesheets/materialize.scss +38 -0
  63. data/app/assets/stylesheets/materialize/components/_buttons.scss +151 -0
  64. data/app/assets/stylesheets/materialize/components/_cards.scss +150 -0
  65. data/app/assets/stylesheets/materialize/components/_collapsible.scss +88 -0
  66. data/app/assets/stylesheets/materialize/components/_color.scss +412 -0
  67. data/app/assets/stylesheets/materialize/components/_dropdown.scss +38 -0
  68. data/app/assets/stylesheets/materialize/components/_form.scss +850 -0
  69. data/app/assets/stylesheets/materialize/components/_global.scss +682 -0
  70. data/app/assets/stylesheets/materialize/components/_grid.scss +118 -0
  71. data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +783 -0
  72. data/app/assets/stylesheets/materialize/components/_materialbox.scss +41 -0
  73. data/app/assets/stylesheets/materialize/components/_mixins.scss +5 -0
  74. data/app/assets/stylesheets/materialize/components/_modal.scss +89 -0
  75. data/app/assets/stylesheets/materialize/components/_navbar.scss +143 -0
  76. data/app/assets/stylesheets/materialize/components/_normalize.scss +427 -0
  77. data/app/assets/stylesheets/materialize/components/_prefixer.scss +376 -0
  78. data/app/assets/stylesheets/materialize/components/_preloader.scss +332 -0
  79. data/app/assets/stylesheets/materialize/components/_roboto.scss +38 -0
  80. data/app/assets/stylesheets/materialize/components/_sideNav.scss +111 -0
  81. data/app/assets/stylesheets/materialize/components/_slider.scss +92 -0
  82. data/app/assets/stylesheets/materialize/components/_table_of_contents.scss +33 -0
  83. data/app/assets/stylesheets/materialize/components/_tabs.scss +42 -0
  84. data/app/assets/stylesheets/materialize/components/_toast.scss +63 -0
  85. data/app/assets/stylesheets/materialize/components/_tooltip.scss +34 -0
  86. data/app/assets/stylesheets/materialize/components/_typography.scss +56 -0
  87. data/app/assets/stylesheets/materialize/components/_variables.scss +143 -0
  88. data/app/assets/stylesheets/materialize/components/_waves.scss +167 -0
  89. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +435 -0
  90. data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +201 -0
  91. data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +125 -0
  92. data/bin/console +14 -0
  93. data/bin/setup +7 -0
  94. data/dae-material.gemspec +23 -0
  95. data/lib/dae/material.rb +7 -0
  96. data/lib/dae/material/version.rb +8 -0
  97. metadata +166 -0
@@ -0,0 +1,38 @@
1
+ @font-face {
2
+ font-family: "Roboto";
3
+ src: font-url("#{$roboto-font-path}Roboto-Thin.woff2") format("woff2"),
4
+ font-url("#{$roboto-font-path}Roboto-Thin.woff") format("woff"),
5
+ font-url("#{$roboto-font-path}Roboto-Thin.ttf") format("truetype");
6
+ font-weight: 200;
7
+ }
8
+ @font-face {
9
+ font-family: "Roboto";
10
+ src: font-url("#{$roboto-font-path}Roboto-Light.woff2") format("woff2"),
11
+ font-url("#{$roboto-font-path}Roboto-Light.woff") format("woff"),
12
+ font-url("#{$roboto-font-path}Roboto-Light.ttf") format("truetype");
13
+ font-weight: 300;
14
+ }
15
+
16
+ @font-face {
17
+ font-family: "Roboto";
18
+ src: font-url("#{$roboto-font-path}Roboto-Regular.woff2") format("woff2"),
19
+ font-url("#{$roboto-font-path}Roboto-Regular.woff") format("woff"),
20
+ font-url("#{$roboto-font-path}Roboto-Regular.ttf") format("truetype");
21
+ font-weight: 400;
22
+ }
23
+
24
+ @font-face {
25
+ font-family: "Roboto";
26
+ src: font-url("#{$roboto-font-path}Roboto-Medium.woff2") format("woff2"),
27
+ font-url("#{$roboto-font-path}Roboto-Medium.woff") format("woff"),
28
+ font-url("#{$roboto-font-path}Roboto-Medium.ttf") format("truetype");
29
+ font-weight: 500;
30
+ }
31
+
32
+ @font-face {
33
+ font-family: "Roboto";
34
+ src: font-url("#{$roboto-font-path}Roboto-Bold.woff2") format("woff2"),
35
+ font-url("#{$roboto-font-path}Roboto-Bold.woff") format("woff"),
36
+ font-url("#{$roboto-font-path}Roboto-Bold.ttf") format("truetype");
37
+ font-weight: 700;
38
+ }
@@ -0,0 +1,111 @@
1
+ .side-nav {
2
+ position: fixed;
3
+ width: 240px;
4
+ left: -105%;
5
+ top: 0;
6
+ margin: 0;
7
+ height: 100%;
8
+ height: calc(100% + 60px);
9
+ height: -moz-calc(100%); //Temporary Firefox Fix
10
+ padding-bottom: 60px;
11
+ background-color: #FFF;
12
+ z-index: 999;
13
+ overflow-y: auto;
14
+
15
+ @extend .z-depth-1;
16
+ will-change: left;
17
+
18
+ // Right Align
19
+ &.right-aligned {
20
+ will-change: right;
21
+ right: -105%;
22
+ left: auto;
23
+ }
24
+
25
+ .collapsible{
26
+ margin: 0;
27
+ }
28
+
29
+
30
+ li {
31
+ float: none;
32
+ padding: 0 15px;
33
+ &:hover, &.active { background-color: #ddd; }
34
+ }
35
+ a {
36
+ color: #444;
37
+ display: block;
38
+ font-size: 1rem;
39
+ height: 64px;
40
+ line-height: 64px;
41
+ padding: 0 15px;
42
+ }
43
+ }
44
+
45
+
46
+ // Touch interaction
47
+ .drag-target {
48
+ height: 100%;
49
+ width: 10px;
50
+ position: fixed;
51
+ top: 0;
52
+ z-index: 998;
53
+ }
54
+
55
+
56
+ // Hidden side-nav for all sizes
57
+ .side-nav.fixed {
58
+ a {
59
+ display: block;
60
+ padding: 0 15px;
61
+ color: #444;
62
+ }
63
+ }
64
+
65
+
66
+ // Fixed side-nav shown
67
+ .side-nav.fixed {
68
+ left: 0;
69
+ position: fixed;
70
+
71
+ // Right Align
72
+ &.right-aligned {
73
+ right: 0;
74
+ left: auto;
75
+ }
76
+ }
77
+
78
+ // Fixed sideNav hide on smaller
79
+ @media #{$medium-and-down} {
80
+ .side-nav.fixed {
81
+ left: -105%;
82
+
83
+ &.right-aligned {
84
+ right: -105%;
85
+ left: auto;
86
+ }
87
+ }
88
+ }
89
+
90
+
91
+ .side-nav .collapsible-body li.active,
92
+ .side-nav.fixed .collapsible-body li.active {
93
+ background-color: $primary-color;
94
+ a {
95
+ color: #fff;
96
+ }
97
+ }
98
+
99
+
100
+ #sidenav-overlay {
101
+ position: fixed;
102
+ top: 0;
103
+ left: 0;
104
+ right: 0;
105
+
106
+ height: 120vh;
107
+ background-color: rgba(0,0,0,.5);
108
+ z-index: 997;
109
+
110
+ will-change: opacity;
111
+ }
@@ -0,0 +1,92 @@
1
+ .slider {
2
+ position: relative;
3
+ height: 440px;
4
+ width: 100%;
5
+
6
+ // Fullscreen slider
7
+ &.fullscreen {
8
+ height: 100%;
9
+ width: 100%;
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ right: 0;
14
+ bottom: 0;
15
+
16
+ ul.slides {
17
+ height: 100%;
18
+ }
19
+
20
+ ul.indicators {
21
+ z-index: 2;
22
+ bottom: 30px;
23
+ }
24
+ }
25
+
26
+ .slides {
27
+ background-color: color('grey', 'base');
28
+ margin: 0;
29
+ height: 400px;
30
+
31
+ li {
32
+ opacity: 0;
33
+ position: absolute;
34
+ top: 0;
35
+ left: 0;
36
+ z-index: 1;
37
+ width: 100%;
38
+ height: inherit;
39
+ overflow: hidden;
40
+
41
+ img {
42
+ height: 100%;
43
+ width: 100%;
44
+ background-size: cover;
45
+ background-position: center;
46
+ }
47
+
48
+ .caption {
49
+ color: #fff;
50
+ position: absolute;
51
+ top: 15%;
52
+ left: 15%;
53
+ width: 70%;
54
+ opacity: 0;
55
+
56
+ p { color: color('grey', 'lighten-2'); }
57
+ }
58
+
59
+ &.active {
60
+ z-index: 2;
61
+ }
62
+ }
63
+ }
64
+
65
+
66
+ .indicators {
67
+ position: absolute;
68
+ text-align: center;
69
+ left: 0;
70
+ right: 0;
71
+ bottom: 0;
72
+ margin: 0;
73
+
74
+ .indicator-item {
75
+ display: inline-block;
76
+ position: relative;
77
+ cursor: pointer;
78
+ height: 16px;
79
+ width: 16px;
80
+ margin: 0 12px;
81
+ background-color: color('grey', 'lighten-2');
82
+
83
+ @include transition(background-color .3s);
84
+ border-radius: 50%;
85
+
86
+ &.active {
87
+ background-color: color('green', 'base');
88
+ }
89
+ }
90
+ }
91
+
92
+ }
@@ -0,0 +1,33 @@
1
+ /***************
2
+ Nav List
3
+ ***************/
4
+ .table-of-contents {
5
+ &.fixed {
6
+ position: fixed;
7
+ }
8
+
9
+ li {
10
+ padding: 2px 0;
11
+ }
12
+ a {
13
+ display: inline-block;
14
+ font-weight: 300;
15
+ color: #757575;
16
+ padding-left: 20px;
17
+ height: 1.5rem;
18
+ line-height: 1.5rem;
19
+ letter-spacing: .4;
20
+ display: inline-block;
21
+
22
+ &:hover {
23
+ color: lighten(#757575, 20%);
24
+ padding-left: 19px;
25
+ border-left: 1px solid lighten(color("materialize-red", "base"),10%);
26
+ }
27
+ &.active {
28
+ font-weight: 500;
29
+ padding-left: 18px;
30
+ border-left: 2px solid lighten(color("materialize-red", "base"),10%);
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,42 @@
1
+ .tabs {
2
+ position: relative;
3
+ height: 48px;
4
+ background-color: $tabs-bg-color;
5
+ margin: 0 auto;
6
+ width: 100%;
7
+ white-space: nowrap;
8
+
9
+ .tab {
10
+ display: block;
11
+ float: left;
12
+ text-align: center;
13
+ line-height: 48px;
14
+ height: 48px;
15
+ padding: 0 20px;
16
+ margin: 0;
17
+ text-transform: uppercase;
18
+ letter-spacing: .8px;
19
+ width: 15%;
20
+
21
+ a {
22
+ color: $tabs-text-color;
23
+ display: block;
24
+ width: 100%;
25
+ height: 100%;
26
+ @include transition( color .28s ease);
27
+ &:hover {
28
+ color: lighten($tabs-text-color, 20%);
29
+ }
30
+ }
31
+ }
32
+ .indicator {
33
+ position: absolute;
34
+ bottom: 0;
35
+ height: 2px;
36
+ background-color: $tabs-underline-color;
37
+ will-change: left, right;
38
+ }
39
+ }
40
+
41
+ .tabs .tab { padding: 0; }
42
+
@@ -0,0 +1,63 @@
1
+ #toast-container {
2
+ display:block;
3
+ position: fixed;
4
+ z-index: 1001;
5
+
6
+ @media #{$small-and-down} {
7
+ min-width: 100%;
8
+ bottom: 0%;
9
+ }
10
+ @media #{$medium-only} {
11
+ min-width: 30%;
12
+ left: 5%;
13
+ bottom: 7%;
14
+ }
15
+ @media #{$large-and-up} {
16
+ min-width: 8%;
17
+ top: 10%;
18
+ right: 7%;
19
+ }
20
+ }
21
+
22
+ .toast {
23
+ @extend .z-depth-1;
24
+ border-radius: 2px;
25
+ top: 0;
26
+ width: auto;
27
+ clear: both;
28
+ margin-top: 10px;
29
+ position: relative;
30
+ max-width:100%;
31
+ height: $toast-height;
32
+ line-height: $toast-height;
33
+ background-color: $toast-color;
34
+ padding: 0 25px;
35
+ font-size: 1.1rem;
36
+ font-weight: 300;
37
+ color: $toast-text-color;
38
+
39
+ @include flexbox();
40
+ @include align(center);
41
+ @include justify-content(space-between);
42
+
43
+ .btn, .btn-flat {
44
+ margin: 0;
45
+ margin-left: 3rem;
46
+ }
47
+
48
+ &.rounded{
49
+ border-radius: 24px;
50
+ }
51
+
52
+ @media #{$small-and-down} {
53
+ width:100%;
54
+ border-radius: 0;
55
+ }
56
+ @media #{$medium-only} {
57
+ float: left;
58
+ }
59
+ @media #{$large-and-up} {
60
+ float: right;
61
+ }
62
+
63
+ }
@@ -0,0 +1,34 @@
1
+ .material-tooltip {
2
+ padding: 10px 8px;
3
+ font-size: 1rem;
4
+ z-index: 1000;
5
+ background-color: transparent;
6
+ border-radius: 2px;
7
+ color: #fff;
8
+ min-height: 36px;
9
+ line-height: 1rem;
10
+ // max-width: 350px;
11
+ opacity: 0;
12
+ display: none;
13
+ position: absolute;
14
+ text-align: center;
15
+ overflow: hidden;
16
+ left:0;
17
+ top:0;
18
+
19
+ will-change: top, left;
20
+ }
21
+
22
+ .backdrop {
23
+ position: absolute;
24
+ opacity: 0;
25
+ display: none;
26
+ height: 7px;
27
+ width: 14px;
28
+ border-radius: 0 0 14px 14px;
29
+ background-color: #323232;
30
+ z-index: -1;
31
+ @include transform-origin( 50% 10%);
32
+
33
+ will-change: transform, opacity;
34
+ }
@@ -0,0 +1,56 @@
1
+ a {
2
+ text-decoration: none;
3
+ }
4
+
5
+ html{
6
+ line-height: 1.5;
7
+
8
+ @media only screen and (min-width: 0) {
9
+ font-size: 14px;
10
+ }
11
+
12
+ @media only screen and (min-width: $medium-screen) {
13
+ font-size: 14.5px;
14
+ }
15
+
16
+ @media only screen and (min-width: $large-screen) {
17
+ font-size: 15px;
18
+ }
19
+
20
+ font-family: "Roboto", sans-serif;
21
+ font-weight: normal;
22
+ color: $off-black;
23
+ }
24
+ h1, h2, h3, h4, h5, h6 {
25
+ font-weight: 400;
26
+ }
27
+
28
+ // Header Styles
29
+ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
30
+ h1 { font-size: $h1-fontsize; line-height: 1.1*$h1-fontsize; margin: ($h1-fontsize / 2) 0 ($h1-fontsize / 2.5) 0;}
31
+ h2 { font-size: $h2-fontsize; line-height: 1.1*$h2-fontsize; margin: ($h2-fontsize / 2) 0 ($h2-fontsize / 2.5) 0;}
32
+ h3 { font-size: $h3-fontsize; line-height: 1.1*$h3-fontsize; margin: ($h3-fontsize / 2) 0 ($h3-fontsize / 2.5) 0;}
33
+ h4 { font-size: $h4-fontsize; line-height: 1.1*$h4-fontsize; margin: ($h4-fontsize / 2) 0 ($h4-fontsize / 2.5) 0;}
34
+ h5 { font-size: $h5-fontsize; line-height: 1.1*$h5-fontsize; margin: ($h5-fontsize / 2) 0 ($h5-fontsize / 2.5) 0;}
35
+ h6 { font-size: $h6-fontsize; line-height: 1.1*$h6-fontsize; margin: ($h6-fontsize / 2) 0 ($h6-fontsize / 2.5) 0;}
36
+
37
+ // Text Styles
38
+ em { font-style: italic; }
39
+ strong { font-weight: 500; }
40
+ small { font-size: 75%; }
41
+ .light { font-weight: 300; }
42
+ .thin { font-weight: 200; }
43
+
44
+ .flow-text{
45
+ font-weight: 300;
46
+ $i: 0;
47
+ @while $i <= $intervals {
48
+ @media only screen and (min-width : 360 + ($i * $interval-size)) {
49
+ font-size: 1.2rem * (1 + (.02 * $i));
50
+ }
51
+ @media only screen and (min-width : 0 + ($i * $interval-size)) {
52
+ line-height: .8rem * (1 + (.13 * $i));
53
+ }
54
+ $i: $i + 1;
55
+ }
56
+ }