magic_stylez 0.0.0.1 → 0.0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/magic_stylez/version.rb +1 -1
  3. data/magic_stylez.gemspec +1 -1
  4. data/test/dummy/app/assets/javascripts/views/content/_box.jst.eco +22 -0
  5. data/test/dummy/app/assets/javascripts/views/elements/icons.jst.eco +9004 -0
  6. data/test/dummy/app/assets/javascripts/views/layout/section.jst.eco +11 -1
  7. data/test/dummy/app/assets/stylesheets/application.css.scss +35 -0
  8. data/test/dummy/app/views/front/_aside.html.erb +1 -0
  9. data/test/dummy/public/xindex.html +4 -4
  10. data/vendor/assets/fonts/magic/newmagicons-regular-webfont.eot +0 -0
  11. data/vendor/assets/fonts/magic/newmagicons-regular-webfont.svg +199 -0
  12. data/vendor/assets/fonts/magic/newmagicons-regular-webfont.ttf +0 -0
  13. data/vendor/assets/fonts/magic/newmagicons-regular-webfont.woff +0 -0
  14. data/vendor/assets/images/magic/helper/crossed.png +0 -0
  15. data/vendor/assets/images/magic/helper/hero_buy.png +0 -0
  16. data/vendor/assets/stylesheets/magic-stylez.scss +22 -22
  17. data/vendor/assets/stylesheets/magic/content/_banner.scss +36 -0
  18. data/vendor/assets/stylesheets/magic/content/_box.scss +120 -0
  19. data/vendor/assets/stylesheets/magic/content/_forms.scss +143 -0
  20. data/vendor/assets/stylesheets/magic/content/_header.scss +368 -0
  21. data/vendor/assets/stylesheets/magic/content/_helper.scss +70 -0
  22. data/vendor/assets/stylesheets/magic/content/_icons.scss +18 -0
  23. data/vendor/assets/stylesheets/magic/content/_panel.scss +48 -0
  24. data/vendor/assets/stylesheets/magic/content/_pix.scss +74 -0
  25. data/vendor/assets/stylesheets/magic/icons/magicons.scss +1 -2
  26. data/vendor/assets/stylesheets/magic/icons/orderlifticons.scss +46 -4
  27. data/vendor/assets/stylesheets/magic/layout/_body.scss +229 -0
  28. data/vendor/assets/stylesheets/magic/layout/_fullpage_table.scss +3 -0
  29. data/vendor/assets/stylesheets/magic/layout/_section.scss +6 -5
  30. data/vendor/assets/stylesheets/magic/{_animation.scss → lib/_animation.scss} +6 -0
  31. data/vendor/assets/stylesheets/magic/lib/_filter.scss +3 -0
  32. data/vendor/assets/stylesheets/magic/{_forms.scss → lib/_forms.scss} +0 -0
  33. data/vendor/assets/stylesheets/magic/{_text.scss → lib/_text.scss} +0 -0
  34. metadata +26 -7
@@ -0,0 +1,70 @@
1
+ .divider {
2
+ display: block; position: relative;
3
+ background: inherit;
4
+ text-align: center;
5
+ span {
6
+ display: inline-block; position: relative;
7
+ margin: 0 auto; padding: 0 15px;
8
+ background: inherit;
9
+ z-index: 3;
10
+ &.white-bg { background: #fff; }
11
+ }
12
+ &:after {
13
+ display: block; position: absolute; content: "";
14
+ margin: 0; padding: 0;
15
+ top: 50%; height: 1px;
16
+ left: 0; right: 0;
17
+ background: #ccc;
18
+ z-index: 1;
19
+ }
20
+ }
21
+
22
+ .dot {
23
+ display: block; display: inline-block; position: relative;
24
+ width: 10px; height: 10px;
25
+ @include border-radius( 15px );
26
+ border: solid 1px $main-border-color;
27
+ &.ok { background: #55b8f7; border: solid 1px darken( #55b8f7, 10% ); }
28
+ &.warning { background: #f9a538; border: solid 1px darken( #f9a538, 10% ); }
29
+ }
30
+
31
+
32
+ .number_dot {
33
+ display: inline-block;
34
+ height: 92px;
35
+ line-height: 82px;
36
+ width: 92px;
37
+ text-align: center;
38
+ @include border-radius( 100px );
39
+ @include box-shadow (inset 0 1px 1px 0 rgba(51,102,153,0.4));
40
+ text-shadow: 0 2px rgba(51,102,153,0.4);
41
+ border: solid 5px #fff;
42
+ color: #fff;
43
+ background-color: $pink;
44
+ font-size: 40px;
45
+ font-weight: 800;
46
+ margin: 0 auto 10px;
47
+ }
48
+
49
+
50
+ .striked {
51
+ display: inline-block;
52
+ position: relative;
53
+ &:before, &:after {
54
+ display: block; position: absolute; content: "";
55
+ margin: 0; padding: 0;
56
+ }
57
+ &:before {
58
+ top: -10px; right: -10px; bottom: -6px; left: -8px;
59
+ background:transparent image-url('magic/helper/crossed.png') center center no-repeat;
60
+ background-size: contain;
61
+ }
62
+ &:after {
63
+ bottom: 100%;
64
+ left: 42%;
65
+ content: attr(data-text);
66
+ color: #369;
67
+ font-size: 90%;
68
+ font-style: italic;
69
+ }
70
+ }
@@ -0,0 +1,18 @@
1
+ .feature-icon {
2
+ margin: 0 auto;
3
+ $that_size: 90px;
4
+ width: $that_size; height: $that_size;
5
+ @include border-radius($that_size);
6
+ border: solid 5px transparentize($orange, 0.5);
7
+ img { max-width: 80%; margin: 10%; }
8
+ i {
9
+ display:block; position: absolute;
10
+ top: -1px; right: -4px;
11
+ background: $orange;
12
+ color: #fff;
13
+ @include border-radius(20px);
14
+ width: 24px; height: 24px;
15
+ line-height: 24px;
16
+ font-size: 18px;
17
+ }
18
+ }
@@ -0,0 +1,48 @@
1
+ .panel-task {
2
+ .panel-heading {
3
+ padding: 0;
4
+ overflow: hidden;
5
+ @include border-radius(0);
6
+ background: #fff;
7
+ .panel-title {
8
+ display: block; position: relative;
9
+ overflow: hidden;
10
+ line-height: 50px;
11
+ font-size: 18px;
12
+ color: #656565;
13
+ @include border-radius(0);
14
+ .cell.number, .cell.state-icon {
15
+ width: 50px;
16
+ text-align: center;
17
+ }
18
+ .cell.number {
19
+ background: $brand-color;
20
+ font-weight: bold;
21
+ color: #fff;
22
+ font-size: 24px;
23
+ }
24
+ .cell.text {
25
+ padding: 0 20px;
26
+ text-align: left;
27
+ }
28
+ .cell.state-icon { color: #fff; }
29
+ }
30
+ }
31
+ .panel-collapse {
32
+ .panel-body {
33
+ p { text-align: left; }
34
+ }
35
+ }
36
+ &.disabled {
37
+ .panel-title {
38
+ .cell.number { background: lighten($brand-color, 20%); }
39
+ }
40
+ }
41
+ &.finished {
42
+ .panel-title {
43
+ cursor: default;
44
+ .cell.number { background: #ccc; }
45
+ .cell.state-icon { color: $brand-color; }
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,74 @@
1
+ .pic, .pic-list, .pic-list > li, .pic-list > li > *, .pic-list .pic,
2
+ .pic-list .facts, .pic-list .facts .head, .pic-list .facts .body {
3
+ display: block; position: relative;
4
+ margin: 0; padding: 0;
5
+ }
6
+
7
+ .pic {
8
+ overflow: hidden;
9
+ img {
10
+ max-width: 100%; max-height: 100%;
11
+ vertical-align: top;
12
+ }
13
+ &.bordered { border: solid 1px $main-border-color; }
14
+ &.rounded { @include border-radius(3px); }
15
+ &.round, &.initials {
16
+ @include border-radius( 500px );
17
+ img { @include border-radius( 500px ); }
18
+ }
19
+ }
20
+
21
+
22
+ .pic-list {
23
+ list-style: none;
24
+ & > li {
25
+ margin: 0;
26
+ border: none;
27
+ border-bottom: solid 1px $main-border-color;
28
+ &:last-child { border-bottom: none; }
29
+ & > * {
30
+ padding: 5px 0;
31
+ @include clearfix;
32
+ .pic {
33
+ width: 50px;
34
+ border: solid 1px $main-border-color;
35
+ float: left;
36
+ img {
37
+ max-width: 100%;
38
+ width: 100%;
39
+ }
40
+ }
41
+ .facts {
42
+ padding: 5px 0;
43
+ margin-left: 60px;
44
+ .head {
45
+ line-height: 20px;
46
+ font-size: 13px;
47
+ font-weight: bold;
48
+ }
49
+ .body {
50
+ line-height: 20px;
51
+ // font-size: 15px;
52
+ font-weight: normal;
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+
59
+
60
+ .box > .body > .pic-list {
61
+ margin: -10px;
62
+ }
63
+
64
+
65
+ // responsive background:
66
+
67
+ // background-color: rgba(255,255,255,.50);
68
+ // background-image: image-url("shiftchange_black.png");
69
+ // background-position: center center;
70
+ // background-repeat: no-repeat;
71
+ // background-size: contain;
72
+
73
+
74
+
@@ -138,6 +138,7 @@ ul.icons {
138
138
  }
139
139
  }
140
140
 
141
+
141
142
  .#{$magicons-class-name}-close-round:before { content: "\f001"; }
142
143
  .#{$magicons-class-name}-ok-round:before { content: "\f002"; }
143
144
  .#{$magicons-class-name}-minus-round:before { content: "\f003"; }
@@ -702,5 +703,3 @@ ul.icons {
702
703
  .#{$magicons-class-name}-layout-workspace:before { content: "\f30a"; }
703
704
 
704
705
 
705
-
706
-
@@ -1,11 +1,12 @@
1
1
  //** Load fonts from this directory.
2
- $olicons-font-path: "magic/" !default;
2
+ $olicons-font-path: "magic/";
3
3
  //** File name for all font files.
4
- $olicons-font-name: "orderlifticons-webfont" !default;
4
+ // $olicons-font-name: "orderlifticons-webfont" !default;
5
+ $olicons-font-name: "newmagicons-regular-webfont";
5
6
  //** Element ID within SVG icon file.
6
- $olicons-font-svg-id: "orderlifticonsregular" !default;
7
+ $olicons-font-svg-id: "orderlifticonsregular";
7
8
 
8
- $olicons-class-name: "olicons" !default;
9
+ $olicons-class-name: "olicons";
9
10
 
10
11
 
11
12
  @font-face {
@@ -233,6 +234,47 @@ $olicons-class-name: "olicons" !default;
233
234
  .#{$olicons-class-name}-gift:before { content: "\f101"; }
234
235
 
235
236
 
237
+ /* New Stuff .. 22.01.2014 */
238
+ .#{$olicons-class-name}-auge:before { content: "\f102"; }
239
+ .#{$olicons-class-name}-inventar:before { content: "\f103"; }
240
+ .#{$olicons-class-name}-analytics-alt:before { content: "\f104"; }
241
+ .#{$olicons-class-name}-settings-alt:before { content: "\f105"; }
242
+ .#{$olicons-class-name}-slidebar:before { content: "\f106"; }
243
+ .#{$olicons-class-name}-info-circle:before { content: "\f107"; }
244
+ .#{$olicons-class-name}-product-circle:before { content: "\f108"; }
245
+ .#{$olicons-class-name}-pos-circle:before { content: "\f109"; }
246
+ .#{$olicons-class-name}-user:before { content: "\f10a"; }
247
+ .#{$olicons-class-name}-calendar:before { content: "\f10b"; }
248
+ .#{$olicons-class-name}-glass:before { content: "\f10c"; }
249
+ .#{$olicons-class-name}-trash:before { content: "\f10d"; }
250
+ .#{$olicons-class-name}-resize:before { content: "\f10e"; }
251
+
252
+
253
+ .#{$olicons-class-name}-product-alt:before { content: "\f111"; }
254
+ .#{$olicons-class-name}-circle-plus:before { content: "\f112"; }
255
+ .#{$olicons-class-name}-circle-times:before { content: "\f113"; }
256
+ .#{$olicons-class-name}-circle-minus:before { content: "\f114"; }
257
+ .#{$olicons-class-name}-circle-ok:before { content: "\f115"; }
258
+ .#{$olicons-class-name}-auge-alt:before { content: "\f116"; }
259
+ .#{$olicons-class-name}-inventar-alt:before { content: "\f117"; }
260
+ .#{$olicons-class-name}-analytics-alt:before { content: "\f118"; }
261
+ .#{$olicons-class-name}-euro-circle:before { content: "\f119"; }
262
+ .#{$olicons-class-name}-reports:before { content: "\f11a"; }
263
+ .#{$olicons-class-name}-tasks:before { content: "\f11b"; }
264
+ .#{$olicons-class-name}-vcard:before { content: "\f11c"; }
265
+ .#{$olicons-class-name}-catalog:before { content: "\f11d"; }
266
+ .#{$olicons-class-name}-flyer:before { content: "\f11e"; }
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+ // T E S T normal signs
275
+ .#{$olicons-class-name}-euro:before { content: "\20AC"; }
276
+
277
+
236
278
 
237
279
 
238
280
  // .#{$olicons-class-name}-:before { content: "\f001"; }
@@ -0,0 +1,229 @@
1
+ //## fixed Navbar
2
+ //
3
+ body {
4
+ padding: 0;
5
+ &.blank { padding: 0; }
6
+ &.app { padding: 50px 0 50px; }
7
+ #body { padding:0; margin:0; }
8
+ }
9
+
10
+ #fixedNav {
11
+ position: fixed;
12
+ // let graphic card render header:
13
+ @include transform( translateZ( 0 ) );
14
+ top: 0; left: 0; right: 0;
15
+ @include border-radius(0);
16
+ z-index: 999;
17
+ min-height: 30px;
18
+ background: #333;
19
+ // background: #727270;
20
+ color: #fff;
21
+ .navbar-brand {
22
+ padding: 0;
23
+ height: 40px;
24
+ &.logo {
25
+ width: 150px;
26
+ overflow: hidden;
27
+ text-indent: -1000px;
28
+ background-color: transparent;
29
+ background-image: image-url('magic/arrows/arrow1.png');
30
+ background-position: center center;
31
+ background-repeat: no-repeat;
32
+ background-size: contain;
33
+ }
34
+ }
35
+
36
+
37
+ .full-links {
38
+ border: solid 1px #000;
39
+ @include box-shadow( inset 0 1px 0 0 rgba(255,255,255,.25) );
40
+ ul.nav > li {
41
+ & > a {
42
+ padding: 10px;
43
+ line-height: 20px;
44
+ &:hover {
45
+ background: #000 !important;
46
+ color: #fff !important;
47
+ }
48
+ }
49
+ form {
50
+ padding: 4px 0;
51
+ }
52
+ &.active a { background: #000; color: $brand-color; }
53
+ }
54
+ }
55
+ .bubble-links {
56
+ background: #fff;
57
+ padding: 0 42px;
58
+ ul.nav.navbar-nav > li {
59
+ padding: 8px;
60
+ & > a {
61
+ padding: 2px 12px;
62
+ line-height: 20px;
63
+ color: #777;
64
+ &:hover {
65
+ background: transparent;
66
+ color: #333;
67
+ }
68
+ &.btn {
69
+ color: #fff;
70
+ &:hover {
71
+ background: $brand-color;
72
+ }
73
+ }
74
+ }
75
+ &.active > a, &.open > a {
76
+ background: transparent;
77
+ color: $brand-color;
78
+ }
79
+ }
80
+ ul.nav.navbar-nav.navbar-left > li {
81
+ padding: 8px;
82
+ & > a {
83
+ border: solid 1px transparent;
84
+ @include border-radius(15px);
85
+ &:hover {
86
+ background: transparent !important;
87
+ color: #333 !important;
88
+ border: solid 1px $main-border-color;
89
+ }
90
+ }
91
+ &.active > a, &.open > a {
92
+ background: transparent;
93
+ color: $brand-color;
94
+ border: solid 1px $brand-color;
95
+ }
96
+ }
97
+ }
98
+ .bubble-links, .navbar-brand {
99
+ .navbar-nav > li > .dropdown-menu {
100
+ margin-top: 3px;
101
+ border-radius: 3px;
102
+ li a { color: #333; }
103
+ }
104
+
105
+ li.dropdown > a.dropdown-toggle {
106
+ padding-top: 5px;
107
+ padding-bottom: 5px;
108
+ line-height: 30px;
109
+ color: #fff;
110
+ &:hover {
111
+ background: #000;
112
+ color: #fff;
113
+ @include box-shadow(none);
114
+ }
115
+ & > * { vertical-align: middle; &.avatar {vertical-align: top; }}
116
+ }
117
+ li.dropdown.open > a.dropdown-toggle {
118
+ background: #000;
119
+ color: $brand-color;
120
+ }
121
+ }
122
+ }
123
+
124
+
125
+
126
+ //## Aside-Navigation
127
+ #nav-aside {
128
+ display: block; position: fixed;
129
+ @include transform( translateZ( 0 ) );
130
+ margin: 0; padding: 0;
131
+
132
+ right: 0; left: 0; bottom: 0;
133
+ background: #e1e1e1;
134
+ z-index: 99;
135
+ .inner-aside {
136
+ height: 100%;
137
+ border: solid 1px #ccc;
138
+ }
139
+ .aside-btn {
140
+ display: block; position: relative;
141
+ margin: 0 -1px; padding: 12px 0 8px;
142
+ width: 50px;
143
+ line-height: 30px;
144
+ text-align: center;
145
+ font-size: 22px;
146
+
147
+ // @include box-shadow( inset 0 1px 0 0 rgba(255,255,255,.42) );
148
+ border: none;
149
+ border: solid 1px #ccc;
150
+ border-top: solid 1px rgba(255,255,255,.42);
151
+
152
+ color: #555;
153
+ text-shadow: 0 1px 0 rgba( 255,255,255,.42 );
154
+
155
+ &:hover {
156
+ color: $brand-color;
157
+ text-decoration: none;
158
+ }
159
+ &:active, &.active {
160
+ background: $brand-color;
161
+ color: #fff;
162
+ @include antialiased_text;
163
+ border: solid 1px darken($brand-color, 15%);
164
+ @include box-shadow( inset 0 1px 0 0 rgba(255,255,255,.42) );
165
+ text-shadow: 0 1px 2px rgba( 0,0,0,.42 );
166
+ }
167
+ .bubble-counter {
168
+ display: block; position: absolute;
169
+ padding: 0 5px; margin: 0;
170
+ top: 3px; left: 27px;
171
+ line-height: 14px;
172
+ font-size: 10px;
173
+ background: #cc4246;
174
+ @include border-radius( 2px );
175
+ color: #fff;
176
+ text-shadow: 0 1px 1px rgba( 0,0,0,.20 );
177
+ }
178
+ }
179
+ }
180
+
181
+
182
+ body.front { padding: 42px 0 0; }
183
+
184
+
185
+
186
+
187
+ // # # # R E S P O N S I V E - S T E P S # # # # # # # # # # # # # # # # # # # # # # # # # # #
188
+ @include responsiveStep-xs-only {
189
+ .sppt-navbar .logo-cell {display: none;}
190
+ #nav-aside .inner-aside {
191
+ display: table;
192
+ table-layout:fixed;
193
+ width: 100%;
194
+ .aside-btn {
195
+ display: table-cell;
196
+ width: auto;
197
+ // border: none;
198
+ // border-right: solid 1px #ccc;
199
+ // &:last-child { border-right: none; }
200
+ // &:hover { border-bottom: solid 2px #999; }
201
+ // &:active, &.active { border-bottom: solid 2px $brand-color; }
202
+ }
203
+ }
204
+ }
205
+ @include responsiveStep-sm {
206
+ #fixedNav.full-links .navbar-header > .navbar-brand {display: none;}
207
+ body.app {
208
+ padding: 42px 0 0;
209
+ #body { padding:0; margin-left: 50px; }
210
+ #fixedNav .container-fluid { padding: 0 20px 0 50px;}
211
+ }
212
+
213
+ #nav-aside {
214
+ top: 0; right: auto; padding: 42px 0 0;
215
+ .aside-btn {
216
+ // border: none;
217
+ // border-bottom: solid 1px #ccc;
218
+ &:last-child { @include box-shadow( 0 1px 0 0 rgba(255,255,255,.42) ); }
219
+ // &:hover { border-right: solid 2px #999; }
220
+ // &:active, &.active { border-right: solid 2px $brand-color; }
221
+ }
222
+ }
223
+ }
224
+ @include responsiveStep-md {
225
+
226
+ }
227
+ @include responsiveStep-lg {
228
+
229
+ }