material-sass 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +2 -0
  3. data/app/assets/fonts/MaterialDesignIcon.eot +0 -0
  4. data/app/assets/fonts/MaterialDesignIcon.svg +772 -766
  5. data/app/assets/fonts/MaterialDesignIcon.ttf +0 -0
  6. data/app/assets/fonts/MaterialDesignIcon.woff +0 -0
  7. data/app/assets/javascripts/material.js +326 -128
  8. data/app/assets/javascripts/material/_.js +5 -9
  9. data/app/assets/javascripts/material/bootstrap.js +3 -0
  10. data/app/assets/javascripts/material/content.js +15 -14
  11. data/app/assets/javascripts/material/datepicker.js +1 -1
  12. data/app/assets/javascripts/material/dropdown.js +25 -9
  13. data/app/assets/javascripts/material/esc.js +1 -1
  14. data/app/assets/javascripts/material/footer.js +3 -1
  15. data/app/assets/javascripts/material/form-adv.js +1 -2
  16. data/app/assets/javascripts/material/get-target.js +8 -0
  17. data/app/assets/javascripts/material/header.js +37 -7
  18. data/app/assets/javascripts/material/menu.js +47 -12
  19. data/app/assets/javascripts/material/modal.js +10 -0
  20. data/app/assets/javascripts/material/sortable.js +1 -2
  21. data/app/assets/javascripts/material/tab.js +1 -1
  22. data/app/assets/javascripts/material/tile.js +57 -14
  23. data/app/assets/javascripts/material/toast.js +53 -42
  24. data/app/assets/javascripts/material/wave.js +7 -0
  25. data/app/assets/javascripts/material/webfont.js +33 -0
  26. data/app/assets/javascripts/material/winresize.js +19 -4
  27. data/app/assets/stylesheets/material/_code.scss +40 -43
  28. data/app/assets/stylesheets/material/_grid.scss +72 -74
  29. data/app/assets/stylesheets/material/_print.scss +83 -0
  30. data/app/assets/stylesheets/material/_reset.scss +104 -84
  31. data/app/assets/stylesheets/material/_utilities-responsive.scss +97 -0
  32. data/app/assets/stylesheets/material/{_utilitise.scss → _utilities.scss} +87 -29
  33. data/app/assets/stylesheets/material/_variable.scss +78 -77
  34. data/app/assets/stylesheets/material/addon/_material-design-icon.scss +6 -3050
  35. data/app/assets/stylesheets/material/addon/_waves.scss +51 -0
  36. data/app/assets/stylesheets/material/addon/material-design-icon/_core.scss +17 -0
  37. data/app/assets/stylesheets/material/addon/material-design-icon/_icons.scss +773 -0
  38. data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +10 -0
  39. data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +777 -0
  40. data/app/assets/stylesheets/material/base.scss +43 -10
  41. data/app/assets/stylesheets/material/element/_avatar.scss +23 -19
  42. data/app/assets/stylesheets/material/element/_breadcrumb.scss +27 -0
  43. data/app/assets/stylesheets/material/element/_button-float.scss +118 -48
  44. data/app/assets/stylesheets/material/element/_button.scss +56 -68
  45. data/app/assets/stylesheets/material/element/_card.scss +104 -50
  46. data/app/assets/stylesheets/material/element/_dropdown.scss +51 -32
  47. data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +123 -0
  48. data/app/assets/stylesheets/material/element/_form-adv-datepicker.scss +250 -227
  49. data/app/assets/stylesheets/material/element/_form-adv-label.scss +64 -0
  50. data/app/assets/stylesheets/material/element/_form-adv-switch.scss +76 -0
  51. data/app/assets/stylesheets/material/element/_form-adv-textarea.scss +4 -0
  52. data/app/assets/stylesheets/material/element/_form.scss +163 -126
  53. data/app/assets/stylesheets/material/element/_label.scss +22 -0
  54. data/app/assets/stylesheets/material/element/_modal.scss +25 -10
  55. data/app/assets/stylesheets/material/element/_nav.scss +3 -0
  56. data/app/assets/stylesheets/material/element/_progress.scss +504 -0
  57. data/app/assets/stylesheets/material/element/_tab.scss +18 -14
  58. data/app/assets/stylesheets/material/element/_table.scss +14 -43
  59. data/app/assets/stylesheets/material/element/_tile.scss +154 -113
  60. data/app/assets/stylesheets/material/element/_toast.scss +31 -24
  61. data/app/assets/stylesheets/material/mixin/_css3.scss +5 -0
  62. data/app/assets/stylesheets/material/mixin/_grid.scss +28 -24
  63. data/app/assets/stylesheets/material/mixin/_responsive.scss +1 -1
  64. data/app/assets/stylesheets/material/mixin/{_utilitise.scss → _utilities.scss} +4 -3
  65. data/app/assets/stylesheets/material/project.scss +8 -2
  66. data/app/assets/stylesheets/material/theme/_content.scss +33 -38
  67. data/app/assets/stylesheets/material/theme/_footer.scss +1 -7
  68. data/app/assets/stylesheets/material/theme/_header.scss +175 -8
  69. data/app/assets/stylesheets/material/theme/_menu.scss +267 -78
  70. data/lib/material-sass/engine.rb +1 -1
  71. data/lib/material-sass/version.rb +1 -1
  72. metadata +33 -48
  73. data/app/assets/fonts/FontAwesome.otf +0 -0
  74. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  75. data/app/assets/fonts/fontawesome-webfont.svg +0 -565
  76. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  77. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  78. data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
  79. data/app/assets/javascripts/material/btn.js +0 -11
  80. data/app/assets/stylesheets/material/_addon.scss +0 -2
  81. data/app/assets/stylesheets/material/_element.scss +0 -15
  82. data/app/assets/stylesheets/material/_mixin.scss +0 -4
  83. data/app/assets/stylesheets/material/_theme.scss +0 -4
  84. data/app/assets/stylesheets/material/_variable-color.scss +0 -6
  85. data/app/assets/stylesheets/material/addon/_font-awesome.scss +0 -18
  86. data/app/assets/stylesheets/material/addon/font-awesome/_animated.scss +0 -33
  87. data/app/assets/stylesheets/material/addon/font-awesome/_bordered-pulled.scss +0 -11
  88. data/app/assets/stylesheets/material/addon/font-awesome/_core.scss +0 -10
  89. data/app/assets/stylesheets/material/addon/font-awesome/_fixed-width.scss +0 -5
  90. data/app/assets/stylesheets/material/addon/font-awesome/_flipped-rotated.scss +0 -29
  91. data/app/assets/stylesheets/material/addon/font-awesome/_icon.scss +0 -593
  92. data/app/assets/stylesheets/material/addon/font-awesome/_icons.scss +0 -593
  93. data/app/assets/stylesheets/material/addon/font-awesome/_larger.scss +0 -22
  94. data/app/assets/stylesheets/material/addon/font-awesome/_list.scss +0 -21
  95. data/app/assets/stylesheets/material/addon/font-awesome/_mixins.scss +0 -25
  96. data/app/assets/stylesheets/material/addon/font-awesome/_path.scss +0 -12
  97. data/app/assets/stylesheets/material/addon/font-awesome/_stacked.scss +0 -29
  98. data/app/assets/stylesheets/material/addon/font-awesome/_variable.scss +0 -601
  99. data/app/assets/stylesheets/material/addon/font-awesome/_variables.scss +0 -602
  100. data/app/assets/stylesheets/material/element/_form-adv.scss +0 -277
@@ -3,7 +3,6 @@
3
3
  margin-top: $line-height;
4
4
  margin-bottom: $line-height;
5
5
  position: relative;
6
- text-align: center;
7
6
  .nav {
8
7
  margin-top: 0;
9
8
  margin-bottom: -1px;
@@ -14,13 +13,17 @@
14
13
  padding-right: ($grid-gutter / 2);
15
14
  padding-left: ($grid-gutter / 2);
16
15
  text-transform: uppercase;
16
+ @include transition(border-bottom 0s, padding-bottom 0s);
17
17
  &:focus,
18
18
  &:hover {
19
19
  color: $link-color;
20
20
  }
21
21
  }
22
22
  &.active > a {
23
+ border-bottom: 3px solid $link-color;
23
24
  color: $link-color;
25
+ padding-bottom: ($line-height / 2 - 3);
26
+ @include transition(border-bottom 0s 0.45s, padding-bottom 0s 0.45s);
24
27
  }
25
28
  }
26
29
  }
@@ -37,23 +40,11 @@
37
40
  }
38
41
  }
39
42
 
40
- .tab-pane {
41
- display: none;
42
- visibility: hidden;
43
- &.active {
44
- display: block;
45
- visibility: visible;
46
- }
47
- }
48
-
49
43
  // colour
50
44
  @each $color in $palette-list {
51
45
  $i: index($palette-list, $color);
52
46
 
53
47
  .tab-nav-#{$color} {
54
- .tab-nav-indicator {
55
- background-color: nth($palette-color, $i);
56
- }
57
48
  .nav {
58
49
  > li {
59
50
  > a {
@@ -63,9 +54,22 @@
63
54
  }
64
55
  }
65
56
  &.active > a {
57
+ border-bottom-color: nth($palette-color, $i);
66
58
  color: nth($palette-color, $i);
67
59
  }
68
60
  }
69
61
  }
62
+ .tab-nav-indicator {
63
+ background-color: nth($palette-color, $i);
64
+ }
70
65
  }
71
- }
66
+ }
67
+
68
+ .tab-pane {
69
+ display: none;
70
+ visibility: hidden;
71
+ &.active {
72
+ display: block;
73
+ visibility: visible;
74
+ }
75
+ }
@@ -1,9 +1,11 @@
1
1
  .table {
2
+ background-color: $white;
2
3
  margin-top: $line-height;
3
4
  margin-bottom: $line-height;
4
5
  width: 100%;
5
6
  td,
6
7
  th {
8
+ border: 1px solid $black-bg;
7
9
  line-height: $line-height;
8
10
  padding: (($cell-height - $line-height) / 2) $grid-gutter (($cell-height - $line-height) / 2 - 1);
9
11
  vertical-align: top;
@@ -12,53 +14,22 @@
12
14
  width: 1%;
13
15
  }
14
16
  }
15
- > thead > td,
16
- > thead > th {
17
- vertical-align: bottom;
17
+ > thead {
18
+ td,
19
+ th {
20
+ background-color: $white-bg;
21
+ color: $black-sec;
22
+ vertical-align: bottom;
23
+ }
18
24
  }
19
25
  }
20
26
 
21
- .table-bordered {
22
- td,
23
- th {
24
- border-top: 1px solid $black-hint;
25
- }
26
- > tbody > tr {
27
- &:nth-child(odd) {
28
- > td,
29
- > th {
30
- background-color: $white-bg;
31
- }
32
- }
33
- }
34
- > thead > tr {
35
- > td,
36
- > th {
37
- border-bottom: 2px solid $black-hint;
38
- }
39
- }
40
- > thead:first-child > tr:first-child {
41
- > td,
42
- > th {
43
- border-top: 0;
44
- }
45
- }
27
+ .table-stripe > tbody > tr:nth-child(odd) {
28
+ background-color: $white-bg-light;
46
29
  }
47
30
 
48
- .table-simple {
49
- td,
50
- th {
51
- padding-top: 0;
52
- padding-right: 0;
53
- padding-bottom: 0;
54
- vertical-align: top;
55
- &:first-child {
56
- padding-left: 0;
57
- }
58
- &.nowrap .tag-block {
59
- margin-top: 2px;
60
- }
61
- }
31
+ .table-hover > tbody > tr:hover {
32
+ background-color: $white-bg-dark;
62
33
  }
63
34
 
64
35
  // responsive
@@ -69,7 +40,7 @@
69
40
  overflow-x: auto;
70
41
  overflow-y: hidden;
71
42
  -webkit-overflow-scrolling: touch;
72
- -ms-overflow-style: -ms-autohiding-scrollbar;
43
+ -ms-overflow-style: -ms-autohiding-scrollbar;
73
44
  .table {
74
45
  margin-top: 0;
75
46
  margin-bottom: 0;
@@ -2,7 +2,7 @@
2
2
  background-color: $white;
3
3
  display: block;
4
4
  position: relative;
5
- @include box-shadow(0 0 1px rgba(0, 0, 0, 0.5));
5
+ @include box-shadow(0 -1px 0 $black-bg, 0 0 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.15));
6
6
  @include clearfix();
7
7
  &[href] {
8
8
  color: $black-text;
@@ -13,142 +13,183 @@
13
13
  }
14
14
  }
15
15
  &.active {
16
- margin-top: $line-height;
17
- margin-bottom: $line-height;
16
+ margin-top: $line-height !important;
17
+ margin-bottom: $line-height !important;
18
18
  }
19
+ .tile-wrap-animation & {
20
+ opacity: 0;
21
+ @include transform(translate(0, 100%));
22
+ @include transition(all 0.6s $timing);
23
+ -webkit-transition-property: opacity, -webkit-transform;
24
+ transition-property: opacity, transform;
25
+ }
26
+ .tile-wrap-animation.isinview & {
27
+ opacity: 1;
28
+ @include transform(translate(0, 0) !important);
29
+ }
30
+ // no boxshadow
31
+ .no-boxshadow & {
32
+ border: 1px solid $black-bg;
33
+ + .tile {
34
+ margin-top: -1px;
35
+ }
36
+ }
19
37
  }
20
38
 
21
- // action
22
- .tile-action {
23
- float: right;
24
- @include clearfix();
25
- @include user-select(none);
26
- .no-touch &,
27
- .touch .tile-collapse & {
28
- display: none;
29
- }
30
- .no-touch .tile:hover &,
31
- .tile-collapse.active & {
32
- display: block;
33
- }
34
- .nav {
35
- margin-top: 0;
36
- margin-bottom: 0;
37
- > li {
38
- > a {
39
- color: $black-sec;
40
- z-index: 1;
41
- &:focus,
42
- &:hover {
43
- color: $link-color;
44
- }
45
- }
46
- &.active > a,
47
- &.open > a {
48
- color: $link-color;
49
- }
39
+ // colour
40
+ .tile-offwhite {
41
+ background-color: $white-bg;
42
+ }
43
+
44
+ @each $color in $palette-list {
45
+ $i: index($palette-list, $color);
46
+
47
+ .tile-#{$color} {
48
+ background-color: nth($palette-color, $i);
49
+ color: $white;
50
+ a {
51
+ color: nth($palette-color-light, $i);
50
52
  }
51
53
  }
52
54
  }
53
55
 
54
- // collapse
55
- .tile-active-show {
56
- @include transition(height 0.15s linear);
56
+ .tile-action {
57
+ @extend .card-action;
58
+ border-top: 0;
59
+ float: right;
60
+ @include user-select(none);
61
+ .no-touch &,
62
+ .touch .tile-collapse & {
63
+ display: none;
64
+ }
65
+ .no-touch .tile:hover &,
66
+ .tile-collapse.active & {
67
+ display: block;
57
68
  }
69
+ }
58
70
 
59
- .tile-collapse {
60
- @include transition(margin 0.15s linear);
61
- &.active, {
62
- margin-right: ($grid-gutter * -1 + 1);
63
- margin-left: ($grid-gutter * -1 + 1);
64
- }
71
+ .tile-action-show {
72
+ display: block !important;
73
+ }
74
+
75
+ .tile-active-show {
76
+ @include transition(height 0.15s linear);
77
+ }
78
+
79
+ .tile-collapse {
80
+ @include transition(margin 0.15s linear);
81
+ &.active {
82
+ margin-right: ($grid-gutter * -1 + 1);
83
+ margin-left: ($grid-gutter * -1 + 1);
84
+ }
85
+ .tile-wrap-animation & {
86
+ @include transition(all 0.6s $timing, margin 0.15s linear);
87
+ -webkit-transition-property: margin, opacity, -webkit-transform;
88
+ transition-property: margin, opacity, transform;
65
89
  }
90
+ }
66
91
 
67
- .tile-collapse-full {
68
- // 1056 - 1439
69
- @media only screen and (min-width: ($grid-gutter * 4 + $screen-md)) and (max-width: ($screen-lg - 1)) {
70
- &.active {
71
- margin-right: ($grid-gutter * -4 + 1);
72
- margin-left: ($grid-gutter * -4 + 1);
73
- }
92
+ .tile-collapse-full {
93
+ // 1056 - 1439
94
+ @media only screen and (min-width: ($grid-gutter * 4 + $screen-md)) and (max-width: ($screen-lg - 1)) {
95
+ &.active {
96
+ margin-right: ($grid-gutter * -4 + 1);
97
+ margin-left: ($grid-gutter * -4 + 1);
74
98
  }
75
- // 1504
76
- @media only screen and (min-width: ($grid-gutter * 4 + $screen-lg)) {
77
- &.active {
78
- margin-right: ($grid-gutter * -4 + 1);
79
- margin-left: ($grid-gutter * -4 + 1);
80
- }
99
+ }
100
+ // 1504
101
+ @media only screen and (min-width: ($grid-gutter * 4 + $screen-lg)) {
102
+ &.active {
103
+ margin-right: ($grid-gutter * -4 + 1);
104
+ margin-left: ($grid-gutter * -4 + 1);
81
105
  }
106
+ }
107
+ }
108
+
109
+ .tile-footer {
110
+ background-color: $white-bg;
111
+ border-top: 1px solid $black-bg;
112
+ position: relative;
113
+ @include clearfix();
114
+ &:first-child {
115
+ border-top: 0;
82
116
  }
117
+ .nav {
118
+ margin-top: 0;
119
+ margin-bottom: 0;
120
+ }
121
+ }
83
122
 
84
- // content
85
- .tile-inner {
86
- padding: ($line-height / 2) $grid-gutter;
87
- position: relative;
88
- .tile-side ~ & {
89
- overflow: hidden;
90
- }
123
+ // colour
124
+ .tile-offwhite .tile-footer {
125
+ background-color: $white-bg-dark;
91
126
  }
92
127
 
93
- .tile-side {
94
- padding-top: ($line-height / 2);
95
- padding-bottom: ($line-height / 2);
96
- &.pull-left {
97
- padding-left: $grid-gutter;
98
- }
99
- &.pull-right {
100
- padding-right: $grid-gutter;
128
+ @each $color in $palette-list {
129
+ $i: index($palette-list, $color);
130
+
131
+ .tile-#{$color} .tile-footer {
132
+ background-color: nth($palette-color-dark-m, $i);
133
+ border-top-color: nth($palette-color-dark-m, $i);
134
+ .nav > li {
135
+ > a,
136
+ > .a {
137
+ color: $white;
138
+ }
139
+ }
101
140
  }
102
141
  }
103
142
 
104
- .tile-sub {
105
- display: inline-block;
106
- padding-right: $grid-gutter;
107
- padding-left: $grid-gutter;
108
- position: relative;
143
+ .tile-inner {
144
+ padding: ($line-height / 2) $grid-gutter;
145
+ position: relative;
146
+ .tile-action ~ &,
147
+ .tile-side ~ & {
148
+ overflow: hidden;
149
+ }
150
+ }
151
+
152
+ .tile-side {
153
+ @extend .card-inner-side;
154
+ }
155
+
156
+ .tile-side-container {
157
+ padding: 0 !important;
158
+ }
159
+
160
+ .tile-sub {
161
+ display: inline-block;
162
+ padding-right: $grid-gutter;
163
+ padding-left: $grid-gutter;
164
+ position: relative;
165
+ width: 100%;
166
+ &:before {
167
+ border-top: 1px solid $black-bg;
168
+ content: "";
169
+ display: block;
170
+ position: absolute;
171
+ top: 0;
172
+ left: 0;
109
173
  width: 100%;
110
- &:before {
111
- border-top: 1px solid $black-bg;
112
- content: '';
113
- display: block;
114
- position: absolute;
115
- top: 0;
116
- left: 0;
117
- width: 100%;
118
- }
119
174
  }
175
+ }
120
176
 
121
- // footer
122
- .tile-footer {
123
- background-color: $white-bg;
124
- position: relative;
125
- @include clearfix();
126
- &:before {
127
- border-top: 1px solid $black-bg;
128
- content: '';
129
- display: block;
130
- position: absolute;
131
- top: 0;
132
- left: 0;
133
- width: 100%;
134
- }
135
- &:first-child {
136
- border-top: 0;
137
- }
138
- .nav {
139
- margin-top: 0;
140
- margin-bottom: 0;
177
+ // colour
178
+ @each $color in $palette-list {
179
+ $i: index($palette-list, $color);
180
+
181
+ .tile-#{$color} .tile-sub:before {
182
+ border-top-color: nth($palette-color-dark-m, $i);
141
183
  }
142
184
  }
143
185
 
144
- // misc
145
- .tile-toggle {
146
- cursor: pointer;
147
- @include clearfix();
148
- }
186
+ .tile-toggle {
187
+ cursor: pointer;
188
+ @include clearfix();
189
+ }
149
190
 
150
- .tile-wrap {
151
- margin-top: $line-height;
152
- margin-bottom: $line-height;
153
- position: relative;
154
- }
191
+ .tile-wrap {
192
+ margin-top: $line-height;
193
+ margin-bottom: $line-height;
194
+ position: relative;
195
+ }