magic_stylez 0.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/Gemfile +14 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.md +33 -0
  6. data/Rakefile +32 -0
  7. data/lib/magic_stylez/engine.rb +10 -0
  8. data/lib/magic_stylez/version.rb +3 -0
  9. data/lib/magic_stylez.rb +53 -0
  10. data/lib/tasks/magic_stylez_tasks.rake +4 -0
  11. data/magic_stylez.gemspec +38 -0
  12. data/test/dummy/README.rdoc +28 -0
  13. data/test/dummy/Rakefile +6 -0
  14. data/test/dummy/app/assets/images/.keep +0 -0
  15. data/test/dummy/app/assets/javascripts/application.js +15 -0
  16. data/test/dummy/app/assets/javascripts/views/app/start.jst.eco +71 -0
  17. data/test/dummy/app/assets/javascripts/views/effects/reflections.jst.eco +70 -0
  18. data/test/dummy/app/assets/javascripts/views/effects/shadows.jst.eco +1528 -0
  19. data/test/dummy/app/assets/javascripts/views/elements/arrow_infos.jst.eco +46 -0
  20. data/test/dummy/app/assets/javascripts/views/layout/corset.jst.eco +27 -0
  21. data/test/dummy/app/assets/javascripts/views/layout/fullpage_table.jst.eco +76 -0
  22. data/test/dummy/app/assets/javascripts/views/layout/section.jst.eco +109 -0
  23. data/test/dummy/app/assets/javascripts/views/layout/slide_boxes.jst.eco +33 -0
  24. data/test/dummy/app/assets/stylesheets/application.css.scss +180 -0
  25. data/test/dummy/app/controllers/application_controller.rb +6 -0
  26. data/test/dummy/app/controllers/concerns/.keep +0 -0
  27. data/test/dummy/app/controllers/front_controller.rb +7 -0
  28. data/test/dummy/app/helpers/application_helper.rb +2 -0
  29. data/test/dummy/app/mailers/.keep +0 -0
  30. data/test/dummy/app/models/.keep +0 -0
  31. data/test/dummy/app/models/concerns/.keep +0 -0
  32. data/test/dummy/app/views/front/_aside.html.erb +36 -0
  33. data/test/dummy/app/views/front/start.html.erb +77 -0
  34. data/test/dummy/app/views/layouts/application.html.erb +24 -0
  35. data/test/dummy/bin/bundle +3 -0
  36. data/test/dummy/bin/rails +4 -0
  37. data/test/dummy/bin/rake +4 -0
  38. data/test/dummy/config/application.rb +32 -0
  39. data/test/dummy/config/boot.rb +5 -0
  40. data/test/dummy/config/database.yml +25 -0
  41. data/test/dummy/config/environment.rb +5 -0
  42. data/test/dummy/config/environments/development.rb +49 -0
  43. data/test/dummy/config/environments/production.rb +88 -0
  44. data/test/dummy/config/environments/test.rb +39 -0
  45. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  46. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  47. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  48. data/test/dummy/config/initializers/inflections.rb +16 -0
  49. data/test/dummy/config/initializers/mime_types.rb +4 -0
  50. data/test/dummy/config/initializers/session_store.rb +3 -0
  51. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/test/dummy/config/locales/en.yml +23 -0
  53. data/test/dummy/config/routes.rb +61 -0
  54. data/test/dummy/config/secrets.yml +20 -0
  55. data/test/dummy/config.ru +4 -0
  56. data/test/dummy/lib/assets/.keep +0 -0
  57. data/test/dummy/log/.keep +0 -0
  58. data/test/dummy/public/404.html +67 -0
  59. data/test/dummy/public/422.html +67 -0
  60. data/test/dummy/public/500.html +66 -0
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/dummy/public/xindex.html +135 -0
  63. data/test/magic_stylez_test.rb +7 -0
  64. data/test/test_helper.rb +21 -0
  65. data/vendor/assets/filter/magic/filter.svg +10 -0
  66. data/vendor/assets/filter/magic/noise.svg +70 -0
  67. data/vendor/assets/fonts/magic/magicons-regular-webfont.eot +0 -0
  68. data/vendor/assets/fonts/magic/magicons-regular-webfont.svg +461 -0
  69. data/vendor/assets/fonts/magic/magicons-regular-webfont.ttf +0 -0
  70. data/vendor/assets/fonts/magic/magicons-regular-webfont.woff +0 -0
  71. data/vendor/assets/fonts/magic/orderlifticons-webfont.eot +0 -0
  72. data/vendor/assets/fonts/magic/orderlifticons-webfont.svg +172 -0
  73. data/vendor/assets/fonts/magic/orderlifticons-webfont.ttf +0 -0
  74. data/vendor/assets/fonts/magic/orderlifticons-webfont.woff +0 -0
  75. data/vendor/assets/images/magic/arrows/arrow-round1-a.png +0 -0
  76. data/vendor/assets/images/magic/arrows/arrow-round1-b.png +0 -0
  77. data/vendor/assets/images/magic/arrows/arrow-round2-a.png +0 -0
  78. data/vendor/assets/images/magic/arrows/arrow-round2-b.png +0 -0
  79. data/vendor/assets/images/magic/arrows/arrow1-a.png +0 -0
  80. data/vendor/assets/images/magic/arrows/arrow1-b.png +0 -0
  81. data/vendor/assets/images/magic/arrows/arrow1.png +0 -0
  82. data/vendor/assets/images/magic/arrows/arrow2-1.png +0 -0
  83. data/vendor/assets/images/magic/arrows/arrow2-2.png +0 -0
  84. data/vendor/assets/images/magic/arrows/arrow2-a.png +0 -0
  85. data/vendor/assets/images/magic/arrows/arrow2-b.png +0 -0
  86. data/vendor/assets/images/magic/arrows/arrow3-a.png +0 -0
  87. data/vendor/assets/images/magic/arrows/arrow3-b.png +0 -0
  88. data/vendor/assets/images/magic/arrows/arrow4-a.png +0 -0
  89. data/vendor/assets/images/magic/arrows/arrow4-b.png +0 -0
  90. data/vendor/assets/images/magic/arrows/arrow5-a.png +0 -0
  91. data/vendor/assets/images/magic/arrows/arrow5-b.png +0 -0
  92. data/vendor/assets/images/magic/arrows/arrow6-a.png +0 -0
  93. data/vendor/assets/images/magic/arrows/arrow6-b.png +0 -0
  94. data/vendor/assets/images/magic/bgs/hdr_landsberger.jpg +0 -0
  95. data/vendor/assets/images/magic/bgs/rain-flower.jpg +0 -0
  96. data/vendor/assets/images/magic/bgs/seucide.jpg +0 -0
  97. data/vendor/assets/javascripts/magic/render_eco.js.coffee +9 -0
  98. data/vendor/assets/javascripts/magic-stylez.js.coffee +49 -0
  99. data/vendor/assets/stylesheets/magic/_animation.scss +3 -0
  100. data/vendor/assets/stylesheets/magic/_forms.scss +42 -0
  101. data/vendor/assets/stylesheets/magic/_text.scss +41 -0
  102. data/vendor/assets/stylesheets/magic/content/_banner.scss +77 -0
  103. data/vendor/assets/stylesheets/magic/corporate/_colors.scss +244 -0
  104. data/vendor/assets/stylesheets/magic/corporate/_fonts.scss +152 -0
  105. data/vendor/assets/stylesheets/magic/corporate/_typo.scss +57 -0
  106. data/vendor/assets/stylesheets/magic/corporate/_variables.scss +636 -0
  107. data/vendor/assets/stylesheets/magic/effects/_reflections.scss +52 -0
  108. data/vendor/assets/stylesheets/magic/effects/_shadows.scss +255 -0
  109. data/vendor/assets/stylesheets/magic/icons/magicons.scss +706 -0
  110. data/vendor/assets/stylesheets/magic/icons/orderlifticons.scss +258 -0
  111. data/vendor/assets/stylesheets/magic/layout/_corset.scss +60 -0
  112. data/vendor/assets/stylesheets/magic/layout/_fullpage_table.scss +176 -0
  113. data/vendor/assets/stylesheets/magic/layout/_section.scss +126 -0
  114. data/vendor/assets/stylesheets/magic/layout/_tables.scss +513 -0
  115. data/vendor/assets/stylesheets/magic/lib/_cross_browser.scss +51 -0
  116. data/vendor/assets/stylesheets/magic/lib/_media_querries.scss +59 -0
  117. data/vendor/assets/stylesheets/magic/lib/_twbs.scss +55 -0
  118. data/vendor/assets/stylesheets/magic/lists/_nav.scss +207 -0
  119. data/vendor/assets/stylesheets/magic-stylez.scss +140 -0
  120. metadata +397 -0
@@ -0,0 +1,207 @@
1
+ // ### Nav-List ( ul / ol )
2
+ .nav_list {
3
+ display: block; position: relative;
4
+ list-style: none;
5
+ margin: 0; padding: 0;
6
+ background: $white;
7
+
8
+ li {
9
+ display: block; position: relative;
10
+ list-style: none;
11
+ margin: 0; padding: 0;
12
+ border: none;
13
+ // border-top: solid 1px $white;
14
+ border-bottom: solid 1px $gray-light;
15
+
16
+ a, span.lst_lnk {
17
+ display: block; position: relative;
18
+ margin: 0; padding: 5px 10px;
19
+ @include sansCondensedBold;
20
+ line-height: 30px;
21
+ font-size: 14px;
22
+ text-decoration: none;
23
+ color: $gray;
24
+ background: transparent;
25
+ .label {
26
+ font-size: inherit;
27
+ line-height: inherit;
28
+ @include border-radius( 10px );
29
+ padding: 0;
30
+ width: 30px;
31
+ margin-left: 10px;
32
+ text-align: center;
33
+ // background: $gray-light;
34
+ background: transparent;
35
+ color: inherit;
36
+ float: right;
37
+ &:before {
38
+
39
+ }
40
+ }
41
+ }
42
+
43
+ .sub_nav {
44
+ display: block; position: relative;
45
+ margin: 0; padding: 0;
46
+ list-style: none;
47
+ display: none;
48
+ // @include box-shadow(
49
+ // inset 0 3px 6px -4px rgba(0,0,0,.70),
50
+ // inset 0 -2px 6px -4px rgba(0,0,0,.70)
51
+ // );
52
+ background: $gray-softer;
53
+
54
+ // ####
55
+ overflow: hidden;
56
+ &:before, &:after {
57
+ display: block; position: absolute; content: "";
58
+ margin: 0; padding: 0;
59
+ z-index: 3;
60
+ }
61
+ &:before {
62
+ top: -10px; left: -10px; right: -10px;
63
+ height: 8px;
64
+ @include box-shadow( 0 2px 10px 0 rgba(0,0,0,.25));
65
+ }
66
+ &:after {
67
+ bottom: -10px; left: -10px; right: -10px;
68
+ height: 8px;
69
+ @include box-shadow( 0 -2px 10px 0 rgba(0,0,0,.20));
70
+ }
71
+ // ####
72
+
73
+ li {
74
+ // &:first-child { border-top: solid 1px $gray-light; }
75
+
76
+ a, span.lst_lnk {
77
+ padding: 5px 10px;
78
+ line-height: 20px;
79
+ font-size: 14px;
80
+
81
+ // background: transparent; color: $gray;
82
+
83
+ }
84
+
85
+ .sub_nav {
86
+ // background: $gray-soft;
87
+
88
+ li {
89
+ border: none;
90
+ // &:first-child { border-top: solid 1px $gray-light; }
91
+
92
+ a, span.lst_lnk {
93
+ line-height: 16px;
94
+ font-size: 11px;
95
+ // color: $gray;
96
+ @include sansSemi;
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ &.current {
104
+ & > a {
105
+ color: $blue-light;
106
+ // background: $gray-softer;
107
+ }
108
+ }
109
+
110
+
111
+ &.active {
112
+ background: $blue-light;
113
+ & > a {
114
+ margin: 0 0 0 5px;
115
+ color: $blue-light;
116
+ background: $white;
117
+ }
118
+ }
119
+
120
+
121
+ .sub_nav li {
122
+ &.current > a {
123
+ background: $gray-softer;
124
+ }
125
+ &.active > a {
126
+ color: $blue-light;
127
+ background: $gray-softer;
128
+ }
129
+ }
130
+
131
+
132
+ &.active {
133
+ background: $blue-light;
134
+ & > a {
135
+ margin: 0 0 0 5px;
136
+ color: $blue-light;
137
+ background: $white;
138
+ }
139
+ }
140
+
141
+ a, span {
142
+ i {
143
+ font-size: 18px;
144
+ margin-right: 3px;
145
+ }
146
+ &:hover {
147
+ color: $gray-darker;
148
+ background: $gray-soft;
149
+ }
150
+ }
151
+
152
+ &.current, &.active {
153
+ a:hover, span:hover {
154
+ color: $blue !important;
155
+ // background: $gray-softer;
156
+ }
157
+ & > .sub_nav { display: block; }
158
+ }
159
+
160
+ // &:first-child { border-top: none; }
161
+ &:last-child { border-bottom: none; }
162
+ }
163
+
164
+
165
+ &.border {
166
+ border: solid 1px $gray-light;
167
+ // li { border: solid 1px #ccc; }
168
+ }
169
+
170
+ &.round {
171
+ @include border-radius(5px);
172
+ li:first-child { @include border-radius(5px 5px 0 0); }
173
+ li:last-child { @include border-radius(0 0 5px 5px); }
174
+ }
175
+
176
+ &.shiny {
177
+ @include single_shine( rgba(0, 0, 0, 0.13), 2, right, 1px, 10px, 5px, 80 );
178
+ }
179
+
180
+
181
+ &.scroll {
182
+ position: fixed;
183
+ // width: 138px;
184
+ top: 60px;
185
+ }
186
+
187
+ &.arrow li {
188
+ a {
189
+ padding-right: 30px;
190
+ &:after {
191
+ display: block;
192
+ position: absolute;
193
+ top: 12px; right: 5px;
194
+ line-height: 30px;
195
+ content: "\f23b";
196
+ font-family: magiconsregular;
197
+ font-weight: normal;
198
+ font-style: normal;
199
+ font-size: 18px;
200
+ color: $gray-light;
201
+ }
202
+ }
203
+ &.current > a { &:after { content: "\f23c"; } }
204
+ .sub_nav li a:after { top: 7px; line-height: 20px; font-size: 16px; }
205
+ }
206
+
207
+ }
@@ -0,0 +1,140 @@
1
+ // load bourbon sass helper
2
+ @import "bourbon";
3
+ // load twitter bootstrap
4
+ @import "magic/lib/twbs";
5
+ // load bourbon again, to overwriter twbs helpers
6
+ @import "bourbon";
7
+
8
+ // load some basic methods
9
+ @import "magic/lib/cross_browser";
10
+ @import "magic/lib/media_querries";
11
+
12
+ @import "magic/effects/shadows";
13
+ @import "magic/effects/reflections";
14
+
15
+ // load style helper
16
+ @import "magic/animation";
17
+ @import "magic/text";
18
+ @import "magic/forms";
19
+
20
+ @import "magic/lists/nav";
21
+
22
+
23
+
24
+ // load layout helper
25
+ @import "magic/layout/section";
26
+ @import "magic/layout/corset";
27
+ @import "magic/layout/tables";
28
+ @import "magic/layout/fullpage_table";
29
+
30
+ @import "magic/content/banner";
31
+
32
+
33
+
34
+ .btn {
35
+ @include border-radius(0);
36
+ &.btn-default, &.btn-primary, &.btn-success, &.btn-info, &.btn-warning, &.btn-danger {
37
+ @include box-shadow( inset 0 1px 0 0 rgba(255,255,255, .42));
38
+ }
39
+ }
40
+
41
+
42
+
43
+ // other helpers
44
+
45
+
46
+
47
+ @mixin blur-filter( $blur ) {
48
+ @include magic_prefixer(filter, blur(#{$blur}));
49
+ }
50
+
51
+
52
+
53
+
54
+
55
+
56
+ @mixin squareSize( $size ) {
57
+ width: #{ $size }px;
58
+ height: #{ $size }px;
59
+ }
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+ // media max-width: 767px
71
+ @include responsiveStep-xs-only {
72
+ .press-xs { margin-bottom:20px; }
73
+ .hide-xs { display: none !important; }
74
+ }
75
+
76
+ // media min-width: 768px and max-width: 991px
77
+ @include responsiveStep-sm-only {
78
+ .press-sm { margin-bottom:20px; }
79
+ .hide-sm { display: none; }
80
+ }
81
+
82
+ // media min-width: 992px and max-width: 1199px
83
+ @include responsiveStep-md-only {
84
+ .press-md { margin-bottom:20px; }
85
+ .hide-md { display: none; }
86
+ }
87
+
88
+ // media min-width: 1200px and max-width: 1599px
89
+ @include responsiveStep-lg-only {
90
+ .press-lg { margin-bottom:20px; }
91
+ .hide-lg { display: none; }
92
+ }
93
+
94
+ // media min-width: 1600px
95
+ @include responsiveStep-xl {
96
+ .press-xl { margin-bottom:20px; }
97
+ .hide-xl { display: none; }
98
+ }
99
+
100
+
101
+ @include responsiveStep-sm {
102
+ .left-text-sm { text-align: left; }
103
+ }
104
+
105
+
106
+ .press { margin-bottom: 20px; }
107
+ .no-press { margin-bottom: 0; }
108
+ .col-press { margin-bottom: 30px; }
109
+
110
+ .press-top { margin-top: 20px; }
111
+ .press-left { margin-left: 20px; }
112
+ .press-right { margin-right: 20px; }
113
+
114
+
115
+ .no-press-top { margin-top: 0; }
116
+ .no-press-left { margin-left: 0; }
117
+ .no-press-right { margin-right: 0; }
118
+
119
+
120
+
121
+
122
+ .left_text { text-align: left !important; }
123
+ .center_text { text-align: center !important; }
124
+ .right_text { text-align: right !important; }
125
+
126
+
127
+
128
+ @each $size in 0, 5, 10, 15, 20, 30, 40, 50 {
129
+
130
+ .padding_#{$size} { padding: #{$size}px; }
131
+ .v_padding_#{$size} { padding-top: #{$size}px; padding-bottom: #{$size}px; }
132
+ .h_padding_#{$size} { padding-left: #{$size}px; padding-right: #{$size}px; }
133
+
134
+ .margin_#{$size} { margin: #{$size}px; }
135
+ .v_margin_#{$size} { margin-top: #{$size}px; margin-bottom: #{$size}px; }
136
+ .h_margin_#{$size} { margin-left: #{$size}px; margin-right: #{$size}px; }
137
+
138
+ .r_#{$size} { margin-right: #{$size}px !important; }
139
+ .l_#{$size} { margin-left: #{$size}px !important; }
140
+ }