maxmertkit-rails 0.0.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.
Files changed (60) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +7 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +65 -0
  5. data/Rakefile +1 -0
  6. data/lib/maxmertkit-rails/engine.rb +9 -0
  7. data/lib/maxmertkit-rails/version.rb +5 -0
  8. data/lib/maxmertkit-rails.rb +8 -0
  9. data/maxmertkit-rails.gemspec +19 -0
  10. data/vendor/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  11. data/vendor/assets/fonts/fontawesome/fontawesome-webfont.svg +255 -0
  12. data/vendor/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
  13. data/vendor/assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
  14. data/vendor/assets/fonts/zocial/zocial-regular-webfont.eot +0 -0
  15. data/vendor/assets/fonts/zocial/zocial-regular-webfont.svg +151 -0
  16. data/vendor/assets/fonts/zocial/zocial-regular-webfont.ttf +0 -0
  17. data/vendor/assets/fonts/zocial/zocial-regular-webfont.woff +0 -0
  18. data/vendor/assets/javascript/libs/easing.js +205 -0
  19. data/vendor/assets/javascript/libs/html5shiv.js +298 -0
  20. data/vendor/assets/javascript/libs/imagesLoaded.js +3 -0
  21. data/vendor/assets/javascript/libs/modernizr.js +4 -0
  22. data/vendor/assets/javascript/maxmertkit.affix.js +85 -0
  23. data/vendor/assets/javascript/maxmertkit.button.js +182 -0
  24. data/vendor/assets/javascript/maxmertkit.carousel.js +688 -0
  25. data/vendor/assets/javascript/maxmertkit.js +112 -0
  26. data/vendor/assets/javascript/maxmertkit.modal.js +301 -0
  27. data/vendor/assets/javascript/maxmertkit.notify.js +186 -0
  28. data/vendor/assets/javascript/maxmertkit.popup.js +396 -0
  29. data/vendor/assets/javascript/maxmertkit.scrollspy.js +107 -0
  30. data/vendor/assets/javascript/maxmertkit.tabs.js +228 -0
  31. data/vendor/assets/stylesheet/_init.scss +240 -0
  32. data/vendor/assets/stylesheet/_mixins.scss +218 -0
  33. data/vendor/assets/stylesheet/animations/_keyframes.scss +2914 -0
  34. data/vendor/assets/stylesheet/classes/_object.scss +14 -0
  35. data/vendor/assets/stylesheet/maxmertkit-animation.scss +146 -0
  36. data/vendor/assets/stylesheet/maxmertkit-components.scss +25 -0
  37. data/vendor/assets/stylesheet/maxmertkit.scss +14 -0
  38. data/vendor/assets/stylesheet/modificators/__methods.scss +116 -0
  39. data/vendor/assets/stylesheet/modificators/_size.scss +208 -0
  40. data/vendor/assets/stylesheet/modificators/_status.scss +195 -0
  41. data/vendor/assets/stylesheet/themes/_basic.scss +330 -0
  42. data/vendor/assets/stylesheet/widgets/_arrow.scss +74 -0
  43. data/vendor/assets/stylesheet/widgets/_badge.scss +15 -0
  44. data/vendor/assets/stylesheet/widgets/_button.scss +131 -0
  45. data/vendor/assets/stylesheet/widgets/_caret.scss +34 -0
  46. data/vendor/assets/stylesheet/widgets/_carousel.scss +146 -0
  47. data/vendor/assets/stylesheet/widgets/_dropdown.scss +116 -0
  48. data/vendor/assets/stylesheet/widgets/_form.scss +327 -0
  49. data/vendor/assets/stylesheet/widgets/_group.scss +245 -0
  50. data/vendor/assets/stylesheet/widgets/_icon.scss +92 -0
  51. data/vendor/assets/stylesheet/widgets/_label.scss +4 -0
  52. data/vendor/assets/stylesheet/widgets/_menu.scss +283 -0
  53. data/vendor/assets/stylesheet/widgets/_modal.scss +172 -0
  54. data/vendor/assets/stylesheet/widgets/_notify.scss +190 -0
  55. data/vendor/assets/stylesheet/widgets/_progressbar.scss +70 -0
  56. data/vendor/assets/stylesheet/widgets/_table.scss +270 -0
  57. data/vendor/assets/stylesheet/widgets/_tabs.scss +211 -0
  58. data/vendor/assets/stylesheet/widgets/_toolbar.scss +118 -0
  59. data/vendor/assets/stylesheet/widgets/_tooltip.scss +19 -0
  60. metadata +104 -0
@@ -0,0 +1,131 @@
1
+ @include init_modificator-status($object__button);
2
+
3
+ $__inheritance: object;
4
+ $__before-object: '';
5
+ $__object: this;
6
+ $__after-object: '';
7
+
8
+ button,
9
+ .#{$object__button},
10
+ input[type="button"] {
11
+ @extend %__object;
12
+
13
+ // font-family: $object__button-font-family;
14
+ // letter-spacing: 1px;
15
+ // font-weight: $object__button-font-weight;
16
+ text-decoration: none;
17
+ cursor: pointer;
18
+ border-width: $object__button-border-width;
19
+ border-style: solid;
20
+ @include border-radius( $object__button-border-radius );
21
+ @include box-shadow( $object__button-shadow );
22
+
23
+
24
+ @include set_modificator($mod__size, padding-object, font-size, line-height);
25
+ @include set_modificator($mod__status, color-invert, border-color, gradient-vertical, text-shadow);
26
+ }
27
+
28
+
29
+ $__inheritance: object;
30
+ $__before-object: '';
31
+ $__object: 'button' 'input[type="button"]' '.#{$object__button}';
32
+ $__after-object: '';
33
+ @include set_modificator($mod__status, color-invert, border-color, gradient-vertical, text-shadow);
34
+
35
+
36
+ $__inheritance: object;
37
+ $__before-object: '';
38
+ $__object: append-list('button' 'input[type="button"]' '.#{$object__button}', '', ':hover');
39
+ $__after-object: '';
40
+ @include set_modificator($mod__status, gradient-vertical-darken);
41
+
42
+
43
+ $__inheritance: object;
44
+ $__before-object: '';
45
+ $__object: append-list('button' 'input[type="button"]' '.#{$object__button}', '', ':active');
46
+ $__after-object: '';
47
+ @include set_modificator($mod__status, gradient-vertical-darkener);
48
+
49
+ $__inheritance: object;
50
+ $__before-object: '';
51
+ $__object: append-list('button' 'input[type="button"]' '.#{$object__button}', '', '.#{$mod__active}');
52
+ $__after-object: '';
53
+ @include set_modificator($mod__status, gradient-vertical-darkener);
54
+
55
+ $__inheritance: object;
56
+ $__before-object: '';
57
+ $__object: 'button.#{$mod__loading}' 'input[type="button"].#{$mod__loading}' '.#{$object__button}.#{$mod__loading}';
58
+ $__after-object: '';
59
+ @include set_modificator(exclude-items($mod__status,$mod__status__disabled, default), loading);
60
+ @include set_modificator(only-items($mod__status,$mod__status__disabled, default), loading-dark);
61
+
62
+
63
+ button,
64
+ .#{$object__button},
65
+ input[type="button"] {
66
+
67
+
68
+ &:hover {
69
+ @include box-shadow( $object__button-hover-shadow );
70
+ }
71
+
72
+
73
+ &:active,
74
+ &.#{$mod__active} {
75
+ @include box-shadow( $object__button-active-shadow );
76
+ }
77
+
78
+ &.-#{$mod__status__disabled}-,
79
+ &:hover.-#{$mod__status__disabled}-,
80
+ &:active.-#{$mod__status__disabled}-,
81
+ &.#{$mod__active}.-#{$mod__status__disabled}- {
82
+ @include box-shadow(none);
83
+ text-decoration: none!important;
84
+ cursor: default;
85
+ }
86
+
87
+
88
+ $__inheritance: object;
89
+ $__before-object: '';
90
+ $__object: this;
91
+ $__after-object: '';
92
+ &.-#{$mod__status__unstyled}-,
93
+ &:hover.-#{$mod__status__unstyled}-,
94
+ &:active.-#{$mod__status__unstyled}-,
95
+ &.#{$mod__active}.-#{$mod__status__unstyled}-,
96
+ &.-#{$mod__status__disabled}-.-#{$mod__status__unstyled}- {
97
+ @include box-shadow(none);
98
+ background-color: transparent!important;
99
+ background-image: none!important;
100
+ filter: none!important;
101
+ border-color: transparent!important;
102
+ @include text-shadow( none );
103
+ @include set_modificator($mod__status, color);
104
+ }
105
+
106
+ &.-#{$mod__status__unstyled}- {
107
+ text-decoration: underline;
108
+ }
109
+
110
+ &:hover.-#{$mod__status__unstyled}-,
111
+ &:active.-#{$mod__status__unstyled}-,
112
+ &.#{$mod__active}.-#{$mod__status__unstyled}- {
113
+ text-decoration: none;
114
+ }
115
+
116
+
117
+ $__inheritance: object;
118
+ $__before-object: '';
119
+ $__object: this;
120
+ $__after-object: '';
121
+
122
+ &.#{$mod__unclickable},
123
+ &.#{$mod__unclickable}:hover,
124
+ &.#{$mod__unclickable}:active {
125
+ @include set_modificator(exclude-items($mod__status,$mod__status__disabled), color-invert, border-color, gradient-vertical, text-shadow);
126
+ @include set_modificator(only-items($mod__status,$mod__status__disabled), color-invert, border-color, background-color, text-shadow);
127
+ @include box-shadow( $object__button-shadow );
128
+ cursor: default;
129
+ }
130
+
131
+ }
@@ -0,0 +1,34 @@
1
+ $__inheritance: object;
2
+ $__before-object: '';
3
+ $__object: this;
4
+ $__after-object: '';
5
+
6
+ .#{$object__caret} {
7
+ display: inline-block;
8
+ width:0;
9
+ height: 0;
10
+ vertical-align: middle;
11
+ border-top-style: solid;
12
+ border-left-style: solid;
13
+ border-right-style: solid;
14
+ border-right-color: transparent!important;
15
+ border-left-color: transparent!important;
16
+
17
+ @include set_modificator($mod__size, border-width);
18
+ @include set_modificator($mod__status, color-invert, border-color-darkener);
19
+
20
+ &.#{$mod__side-top} {
21
+ border-top-style: none;
22
+ border-bottom-style: solid;
23
+ margin-top: -2px;
24
+ }
25
+ }
26
+
27
+ $__inheritance: object;
28
+ $__before-object: '';
29
+ $__object: '.#{$object__button}' 'button' 'input[type="button"]' '.#{$object__group}' '.#{$object__tabs}';
30
+ $__after-object: '.#{$object__caret}';
31
+ @include set_modificator($mod__status, color-invert);
32
+ @include set_modificator(exclude-items($mod__status, dark, $mod__status__disabled), border-color-darkener);
33
+ @include set_modificator(only-items($mod__status, dark), border-color-lightener);
34
+ @include set_modificator($mod__size, border-width);
@@ -0,0 +1,146 @@
1
+ .#{$object__carousel} {
2
+ display: block;
3
+ overflow: hidden;
4
+ position: relative;
5
+ white-space: nowrap;
6
+ height: 600px;
7
+ opacity: 0;
8
+
9
+ .#{$object__carousel__item} {
10
+ display: inline-block;
11
+ vertical-align: middle;
12
+ text-align: center;
13
+ position: relative;
14
+ overflow: hidden;
15
+ width: 100%;
16
+ max-height: 100%;
17
+ @include transition( .3s margin-left ease-out );
18
+
19
+ img {
20
+ max-width: 100%;
21
+ max-height: 100%;
22
+ }
23
+ }
24
+
25
+ .#{$object__carousel__caption} {
26
+ position: absolute;
27
+ left: 0; right: 0;
28
+ bottom: 0;
29
+ padding: 15px;
30
+ text-align: left;
31
+
32
+ h1, h2, h3, h4, h5, h6 {
33
+ margin-bottom: 5px;
34
+ }
35
+
36
+ & > * {
37
+ opacity: 0;
38
+ }
39
+ }
40
+
41
+ &.-carousel-imageFill {
42
+ @include box-shadow($object__carousel-shadow);
43
+ .#{$object__carousel__item} {
44
+ max-height: inherit;
45
+ }
46
+ .#{$object__carousel__item} img {
47
+ max-width: inherit;
48
+ max-height: inherit;
49
+ }
50
+
51
+ .#{$object__carousel__caption} {
52
+ color: white;
53
+
54
+ a {
55
+ color: white;
56
+ }
57
+ }
58
+ }
59
+
60
+ .#{$object__carousel__arrow-left},
61
+ .#{$object__carousel__arrow-right} {
62
+ $height: 20px;
63
+ position: absolute;
64
+ top: 50%;
65
+ margin-top:-$height/2;
66
+ background-color: rgba(0,0,0,.3);
67
+ padding: $height 7px;
68
+ @include border-radius( 3px );
69
+ color: #fff;
70
+ }
71
+
72
+ .#{$object__carousel__arrow-left} {
73
+ left: 10px;
74
+ }
75
+
76
+ .#{$object__carousel__arrow-right} {
77
+ right: 10px;
78
+ }
79
+
80
+ &.#{$mod__side-top} .#{$object__carousel__navigation} {
81
+ bottom: inherit;
82
+ top: 0;
83
+ }
84
+
85
+ .#{$object__carousel__navigation} {
86
+ position: absolute;
87
+ left: 0; right: 0;
88
+ bottom: 0;
89
+ }
90
+ }
91
+
92
+ .#{$object__carousel__navigation} {
93
+ text-align: center;
94
+ padding: 5px;
95
+
96
+ i {
97
+ margin: 0 2px;
98
+ display: inline-block;
99
+ width: $object__carousel__navigation-size;
100
+ height: $object__carousel__navigation-size;
101
+ @include border-radius( $object__carousel__navigation-size / 2 );
102
+ @include box-shadow( $object__carousel__navigation-shadow );
103
+ cursor: pointer;
104
+ }
105
+ }
106
+
107
+ $__inheritance: object;
108
+ $__before-object: '';
109
+ $__object: '.#{$object__carousel}';
110
+ $__after-object: '.#{$object__carousel__navigation} i';
111
+ @include set_modificator(only-items($mod__status, $mod__status__disabled), background-color);
112
+
113
+ $__inheritance: object;
114
+ $__before-object: '';
115
+ $__object: '.#{$object__carousel}';
116
+ $__after-object: '.#{$object__carousel__navigation} i.#{$mod__active}';
117
+ @include set_modificator(exclude-items($mod__status, $mod__status__disabled), background-color);
118
+
119
+ $__inheritance: object;
120
+ $__before-object: '';
121
+ $__object: '.#{$object__carousel__navigation}';
122
+ $__after-object: 'i';
123
+ @include set_modificator(only-items($mod__status, $mod__status__disabled), background-color);
124
+
125
+ $__inheritance: object;
126
+ $__before-object: '';
127
+ $__object: '.#{$object__carousel__navigation}';
128
+ $__after-object: 'i.#{$mod__active}';
129
+ @include set_modificator(exclude-items($mod__status, $mod__status__disabled), background-color);
130
+
131
+
132
+
133
+ .cssanimations.csstransforms.csstransitions {
134
+
135
+ .-mx-scrollDown {
136
+ top: 0;
137
+ left: 0;
138
+ @include transition( left 20s ease-out, top 20s ease-out );
139
+ }
140
+
141
+ .-mx-scrollDown-fast {
142
+ top: 0;
143
+ left: 0;
144
+ @include transition( left 5s ease-out, top 5s ease-out );
145
+ }
146
+ }
@@ -0,0 +1,116 @@
1
+ $__inheritance: object;
2
+ $__before-object: '';
3
+ $__object: this;
4
+ $__after-object: '';
5
+
6
+ .#{$object__dropdown} {
7
+ @extend %__object;
8
+
9
+ position: relative;
10
+ display: inline-block;
11
+ border-width: $object__dropdown-border-width;
12
+ border-width: 1px#{'\9'};
13
+ border-style: solid;
14
+ @include border-radius( $object__dropdown-border-radius );
15
+ min-width: $object__dropdown-min-width;
16
+ min-height: $object__dropdown-min-height;
17
+ max-width: $object__dropdown-max-width;
18
+ max-height: $object__dropdown-max-height;
19
+ @include box-shadow( $object__dropdown-shadow );
20
+
21
+ .#{$object__dropdown__content} {
22
+ padding: $object__dropdown__content-padding;
23
+ }
24
+
25
+ .#{$object__dropdown__header} {
26
+ padding: $object__dropdown__header-padding;
27
+ @include border-radius( $object__dropdown-border-radius - 2 $object__dropdown-border-radius - 2 0 0 );
28
+ border-bottom: 1px solid rgba(0,0,0,.1);
29
+ }
30
+
31
+ &.#{$mod__side-top},
32
+ &.#{$mod__side-bottom},
33
+ &.#{$mod__side-left},
34
+ &.#{$mod__side-right} {
35
+ &:after {
36
+ content: ' ';
37
+ display: inline-block;
38
+ position: absolute;
39
+ }
40
+ }
41
+
42
+ &.#{$mod__side-top},
43
+ &.#{$mod__side-bottom} {
44
+ &:after {
45
+ width: 90%;
46
+ left: 5%;
47
+ height: 1px;
48
+
49
+ $__inheritance: object;
50
+ $__before-object: '';
51
+ $__object: this;
52
+ $__after-object: '';
53
+ @include set_modificator($mod__status, gradient-horizontal-three);
54
+ }
55
+ }
56
+
57
+ &.#{$mod__side-left},
58
+ &.#{$mod__side-right} {
59
+ &:after {
60
+ width: 1px;
61
+ height: 90%;
62
+ top: 5%;
63
+
64
+ $__inheritance: object;
65
+ $__before-object: '';
66
+ $__object: this;
67
+ $__after-object: '';
68
+ @include set_modificator($mod__status, gradient-vertical-three);
69
+ }
70
+ }
71
+
72
+ &.#{$mod__side-top} {
73
+ &:after {
74
+ bottom: -1px;
75
+ }
76
+ }
77
+
78
+ &.#{$mod__side-bottom} {
79
+ &:after {
80
+ top: -1px;
81
+ }
82
+ }
83
+
84
+ &.#{$mod__side-left} {
85
+ &:after {
86
+ right: -1px;
87
+ }
88
+ }
89
+
90
+ &.#{$mod__side-right} {
91
+ &:after {
92
+ left: -1px;
93
+ }
94
+ }
95
+
96
+ @include set_modificator(only-items($mod__status, default, $mod__status__unstyled), background-color, color-invert);
97
+ }
98
+
99
+ $__inheritance: object;
100
+ $__before-object: '';
101
+ $__object: '.#{$object__dropdown}';
102
+ $__after-object: '';
103
+ @include set_modificator($mod__status, shadow, border-color);
104
+
105
+ $__inheritance: object;
106
+ $__before-object: '';
107
+ $__object: '.#{$object__dropdown}';
108
+ $__after-object: '> .#{$object__dropdown__header}';
109
+ @include set_modificator($mod__status, background-color-darken, color-invert-important, text-shadow);
110
+
111
+ $__inheritance: object;
112
+ $__before-object: '';
113
+ $__object: '.#{$object__dropdown}.#{$mod__loading}';
114
+ $__after-object: '> .#{$object__dropdown__header}';
115
+ @include set_modificator(exclude-items($mod__status, default, $mod__status__unstyled), loading);
116
+ @include set_modificator(only-items($mod__status, default, $mod__status__unstyled), loading-dark);