evolve_styleguide 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +31 -0
  6. data/Rakefile +2 -0
  7. data/app/assets/images/evolve_styleguide/evolve-icons.svg +135 -0
  8. data/app/assets/images/evolve_styleguide/logo-01.svg +87 -0
  9. data/app/assets/images/evolve_styleguide/logo-02.svg +83 -0
  10. data/app/assets/images/evolve_styleguide/logo-03.svg +35 -0
  11. data/app/assets/images/evolve_styleguide/logo-04.svg +35 -0
  12. data/app/assets/images/evolve_styleguide/logo-gameplan.svg +68 -0
  13. data/app/assets/images/evolve_styleguide/logo-icon-01.svg +113 -0
  14. data/app/assets/images/evolve_styleguide/logo-icon-02.svg +23 -0
  15. data/app/assets/images/evolve_styleguide/logo-icon-03.svg +8 -0
  16. data/app/assets/javascripts/evolve_styleguide/main.js +196 -0
  17. data/app/assets/stylesheets/evolve_styleguide/_base.scss +174 -0
  18. data/app/assets/stylesheets/evolve_styleguide/_buttons.scss +391 -0
  19. data/app/assets/stylesheets/evolve_styleguide/_colors.scss +21 -0
  20. data/app/assets/stylesheets/evolve_styleguide/_comments.scss +164 -0
  21. data/app/assets/stylesheets/evolve_styleguide/_flashes.scss +59 -0
  22. data/app/assets/stylesheets/evolve_styleguide/_forms.scss +293 -0
  23. data/app/assets/stylesheets/evolve_styleguide/_grid.scss +68 -0
  24. data/app/assets/stylesheets/evolve_styleguide/_images.scss +25 -0
  25. data/app/assets/stylesheets/evolve_styleguide/_layout.scss +42 -0
  26. data/app/assets/stylesheets/evolve_styleguide/_mixins.scss +199 -0
  27. data/app/assets/stylesheets/evolve_styleguide/_navigation.scss +445 -0
  28. data/app/assets/stylesheets/evolve_styleguide/_normalize.scss +427 -0
  29. data/app/assets/stylesheets/evolve_styleguide/_typography.scss +63 -0
  30. data/app/assets/stylesheets/evolve_styleguide/_variables.scss +30 -0
  31. data/app/assets/stylesheets/evolve_styleguide/evoui.scss +27 -0
  32. data/evolve_styleguide.gemspec +20 -0
  33. data/lib/evolve_styleguide.rb +6 -0
  34. data/lib/evolve_styleguide/version.rb +3 -0
  35. metadata +105 -0
@@ -0,0 +1,42 @@
1
+ // Sidebar
2
+ #sidebar_wrap{
3
+
4
+ width: $sidebar-width;
5
+ position: fixed;
6
+ left: 0;
7
+ top: $header-height-mobile+2;
8
+ bottom: 0;
9
+
10
+ @media #{$screen680} {
11
+
12
+ top: $header-height+2;
13
+
14
+ }
15
+
16
+ }
17
+ #sidebar{
18
+
19
+ *:first-child{ margin-top: 0; }
20
+
21
+ }
22
+ #theme_switcher{
23
+ height: $switcher-height;
24
+ position: fixed;
25
+ left: 0;
26
+ bottom: 0;
27
+ width: $sidebar-width;
28
+ }
29
+
30
+ #content_wrap{
31
+
32
+ margin-left: $sidebar-width;
33
+ border-left: solid 1px #e2e2e2;
34
+ margin-top: $header-height-mobile+2;
35
+
36
+ @media #{$screen680} {
37
+
38
+ margin-top: $header-height+2;
39
+
40
+ }
41
+
42
+ }
@@ -0,0 +1,199 @@
1
+ @mixin media-query($device) {
2
+ @media screen and (max-width: $device) {
3
+ @content;
4
+ }
5
+ }
6
+
7
+ @mixin hoverActiveFocus() {
8
+ &:hover, &:active, &:focus {
9
+ @content;
10
+ }
11
+ }
12
+
13
+ /*********************
14
+ GRID WIDTH
15
+ *********************/
16
+ @mixin gridGen($colCount, $marginSize, $slug){
17
+
18
+ @for $i from 1 through $colCount{
19
+
20
+ $singleUnit: (( 100% - ( $marginSize * ($colCount - 1) ) ) / $colCount) + $marginSize;
21
+ .#{$slug}-#{$i}{
22
+ width: ( $singleUnit * $i ) - $marginSize;
23
+ }
24
+
25
+ }
26
+
27
+ }
28
+
29
+ /*********************
30
+ CALC
31
+ *********************/
32
+ @mixin calc($property, $expression) {
33
+ #{$property}: calc(#{$expression});
34
+ #{$property}: -webkit-calc(#{$expression});
35
+ }
36
+
37
+ /*********************
38
+ FULLSCREEN
39
+ *********************/
40
+ @mixin absoluteFull($size){
41
+ position: absolute;
42
+ top: $size;
43
+ right: $size;
44
+ bottom: $size;
45
+ left: $size;
46
+ }
47
+
48
+ /*********************
49
+ TRANSITION
50
+ *********************/
51
+ @mixin transition( $type: 'all', $duration: 0.15s, $ease: 'linear' ){
52
+ -moz-transition: $type $duration $ease;
53
+ -webkit-transition: $type $duration $ease;
54
+ -o-transition: $type $duration $ease;
55
+ transition: $type $duration $ease;
56
+ }
57
+
58
+ /*********************
59
+ BORDER RADIUS
60
+ *********************/
61
+ @mixin border-radius( $tl, $tr, $br, $bl ) {
62
+ -moz-border-radius: $tl $tr $br $bl;
63
+ -webkit-border-radius: $tl $tr $br $bl;
64
+ -o-border-radius: $tl $tr $br $bl;
65
+ border-radius: $tl $tr $br $bl;
66
+ }
67
+
68
+ /*********************
69
+ BORDER RADIUS - Even
70
+ *********************/
71
+ @mixin rounded($radius){
72
+ -moz-border-radius: $radius;
73
+ -webkit-border-radius: $radius;
74
+ -o-border-radius: $radius;
75
+ border-radius: $radius;
76
+ }
77
+
78
+ /*********************
79
+ BOX SHADOW
80
+ *********************/
81
+ @mixin box-shadow( $xoffset: 0, $yoffset: 0, $spread: 0, $color: rgba(0,0,0,0.8) ) {
82
+ -moz-box-shadow: $xoffset $yoffset $spread $color;
83
+ -webkit-box-shadow: $xoffset $yoffset $spread $color;
84
+ -o-box-shadow: $xoffset $yoffset $spread $color;
85
+ box-shadow: $xoffset $yoffset $spread $color;
86
+ }
87
+
88
+ /*********************
89
+ TRIANGLES
90
+ *********************/
91
+ @mixin triangle ( $direction, $size, $color ) {
92
+
93
+ width: 0;
94
+ height: 0;
95
+
96
+ @if $direction == 'right' {
97
+
98
+ border-top: $size solid transparent;
99
+ border-bottom: $size solid transparent;
100
+ border-left: $size solid $color;
101
+
102
+ } @elseif $direction == 'down' {
103
+
104
+ border-left: $size solid transparent;
105
+ border-right: $size solid transparent;
106
+ border-top: $size solid $color;
107
+
108
+ } @elseif $direction == 'left' {
109
+
110
+ border-top: $size solid transparent;
111
+ border-bottom: $size solid transparent;
112
+ border-right: $size solid $color;
113
+
114
+ } @elseif $direction == 'up' {
115
+
116
+ border-left: $size solid transparent;
117
+ border-right: $size solid transparent;
118
+ border-bottom: $size solid $color;
119
+
120
+ }
121
+ }
122
+
123
+ /*********************
124
+ Background Size
125
+ *********************/
126
+ @mixin background-size( $size: '100%' ) {
127
+ -webkit-background-size: $size;
128
+ -moz-background-size: $size;
129
+ -o-background-size: $size;
130
+ background-size: $size;
131
+ }
132
+
133
+ /*********************
134
+ Transform
135
+ *********************/
136
+ @mixin transform( $transform: '' ){
137
+ -webkit-transform: $transform;
138
+ -ms-transform: $transform;
139
+ transform: $transform;
140
+ }
141
+
142
+ /*********************
143
+ CSS Gradient
144
+ *********************/
145
+ //Prefixes definition
146
+ $webkit:true;
147
+ $o:true;
148
+ $moz:true;
149
+ $w3:true;
150
+ $ms:true;
151
+
152
+ //Gradient Mixin
153
+ @mixin gradient($mode,$direction,$from,$to,$oldDirection:null){
154
+
155
+ @if $webkit == true {
156
+ @if($oldDirection != null){
157
+ background-image: -webkit-gradient($mode, #{$oldDirection}, from($from),to($to));
158
+ }
159
+ background-image: -webkit-#{$mode}-gradient($direction, $from, $to);
160
+ }
161
+ @if $moz == true {
162
+ background-image: -moz-#{$mode}-gradient($direction, $from, $to);
163
+ }
164
+ @if $o == true {
165
+ background-image: -o-#{$mode}-gradient($direction, $from, $to);
166
+ }
167
+ @if $ms == true {
168
+ background-image: -ms-#{$mode}-gradient($direction, $from, $to);
169
+ }
170
+ @if $w3 == true {
171
+ background-image: #{$mode}-gradient($direction, $from, $to);
172
+ }
173
+ }
174
+
175
+ /*********************
176
+ KEYFRAMES
177
+ *********************/
178
+ @mixin keyframes($animation_name) {
179
+ @-webkit-keyframes #{$animation-name} {
180
+ @content;
181
+ }
182
+
183
+ @-moz-keyframes #{$animation-name} {
184
+ @content;
185
+ }
186
+
187
+ @keyframes #{$animation-name} {
188
+ @content;
189
+ }
190
+ }
191
+
192
+ /*********************
193
+ ANIMATION
194
+ *********************/
195
+ @mixin animation($name, $duration, $ease, $delay) {
196
+ -webkit-animation: $name $duration $ease $delay;
197
+ -moz-animation: $name $duration $ease $delay;
198
+ animation: $name $duration $ease $delay;
199
+ }
@@ -0,0 +1,445 @@
1
+ // Navigation
2
+ #section-navigation{
3
+
4
+ header.global-header{
5
+ //border: solid 1px $gray-light;
6
+ }
7
+
8
+ }
9
+
10
+ .align-left{ float: left; }
11
+ .align-right{ float: right; }
12
+
13
+ header{
14
+
15
+ .align-left,
16
+ .align-right{
17
+
18
+ max-width: 50%;
19
+
20
+ @media #{$screen680} {
21
+ max-width: 100%;
22
+ }
23
+
24
+ }
25
+
26
+ }
27
+
28
+ // Global Header
29
+ header.global-header{
30
+
31
+ width: 100%;
32
+ background: $white;
33
+ height: $header-height-mobile+2;
34
+
35
+ &:after{
36
+ display: table;
37
+ content: "";
38
+ clear: both;
39
+ }
40
+
41
+ &.fixed{
42
+ position: fixed;
43
+ top: 0;
44
+ left: 0;
45
+ right: 0;
46
+ z-index: 9999;
47
+
48
+ & + #app{
49
+ margin-top: $header-height-mobile+2;
50
+ }
51
+ }
52
+
53
+ &.bordered{
54
+ border-bottom: solid 1px $gray-light;
55
+ }
56
+
57
+ @media #{$screen680} {
58
+
59
+ height: $header-height+2;
60
+
61
+ &.fixed{
62
+
63
+ & + #app{
64
+ margin-top: $header-height+2;
65
+ }
66
+
67
+ }
68
+
69
+ }
70
+
71
+ }
72
+
73
+ .menu-button{
74
+
75
+ > button{
76
+
77
+ display: block;
78
+ position: relative;
79
+ width: 50px;
80
+ height: $header-height-mobile;
81
+
82
+ svg{
83
+ width: 20px;
84
+ height: 20px;
85
+ position: absolute;
86
+ top: 50%;
87
+ left: 50%;
88
+ @include transform( translateX(-50%) translateY(-50%) );
89
+ }
90
+
91
+ &:hover,
92
+ &.current{
93
+ background: #f8f8f8;
94
+ }
95
+ &:active{
96
+ background: #e2e2e2;
97
+ }
98
+
99
+ }
100
+
101
+ @media #{$screen680} {
102
+
103
+ > button{
104
+ height: $header-height;
105
+ }
106
+
107
+ }
108
+
109
+ }
110
+
111
+ .context-switcher{
112
+
113
+ float: left;
114
+
115
+ > button{
116
+
117
+ svg{
118
+
119
+ }
120
+
121
+ }
122
+
123
+ .context-menu{
124
+
125
+ ul{
126
+
127
+ }
128
+ li{
129
+
130
+ }
131
+ a{
132
+
133
+ }
134
+
135
+ }
136
+
137
+ }
138
+
139
+ a.app-title{
140
+
141
+ text-decoration: none;
142
+ float: left;
143
+ height: $header-height-mobile;
144
+ vertical-align: middle;
145
+
146
+ img, span{
147
+ vertical-align: top;
148
+ }
149
+ img{
150
+ display: inline-block;
151
+ width: 30px;
152
+ height: 30px;
153
+ margin: 10px 2px 10px 10px;
154
+ }
155
+ span{
156
+ display: inline-block;
157
+ font-size: 1.2em;
158
+ font-weight: 400;
159
+ color: $gray;
160
+ margin-top: 12px;
161
+ margin-right: 14px;
162
+ }
163
+
164
+ &:hover{
165
+
166
+ background: #f8f8f8;
167
+
168
+ img{
169
+
170
+ }
171
+ span{
172
+ color: $black;
173
+ }
174
+ }
175
+
176
+ &.img-logo{
177
+
178
+ img{
179
+ height: 100%;
180
+ width: auto;
181
+ margin: 0;
182
+ padding: 0;
183
+ opacity: 1;
184
+ display: block;
185
+ max-width: 100%;
186
+ }
187
+
188
+ }
189
+
190
+ @media #{$screen680} {
191
+
192
+ height: $header-height;
193
+
194
+ img{
195
+ width: 30px;
196
+ height: 40px;
197
+ margin-right: 14px;
198
+ }
199
+ span{
200
+ font-size: 1.5em;
201
+ }
202
+
203
+ }
204
+
205
+ }
206
+
207
+ .notification-center{
208
+
209
+ float: left;
210
+
211
+ button.new-notification{
212
+
213
+ svg{
214
+
215
+ }
216
+
217
+ }
218
+
219
+ .notification-count{
220
+ background: $red;
221
+ color: $white;
222
+ display: block;
223
+ position: absolute;
224
+ @include rounded(10px);
225
+ font-size: 0.75em;
226
+ top: 6px;
227
+ right: 4px;
228
+ padding: 2px 6px;
229
+ text-align: center;
230
+ height: 20px;
231
+ min-width: 20px;
232
+ }
233
+
234
+ }
235
+
236
+ .app-settings{
237
+
238
+ float: left;
239
+ width: 60px;
240
+ height: 60px;
241
+ position: relative;
242
+
243
+ a.btn{
244
+
245
+ display: block;
246
+ width: 25px;
247
+ height: 25px;
248
+ color: $gray-dark;
249
+ position: absolute;
250
+ top: 50%;
251
+ left: 50%;
252
+ @include transform( translateX(-50%) translateY(-50%) );
253
+
254
+ svg{
255
+ width: 100%;
256
+ height: 100%;
257
+ }
258
+
259
+ }
260
+
261
+ }
262
+
263
+ .profile-menu{
264
+
265
+ float: left;
266
+ height: $header-height-mobile;
267
+
268
+ button.profile-dropdown{
269
+
270
+ position: relative;
271
+ padding: 0 10px;
272
+ height: $header-height-mobile;
273
+ width: auto;
274
+
275
+ .avatar{
276
+
277
+ display: block;
278
+ width: 30px;
279
+ height: 30px;
280
+ position: relative;
281
+
282
+ img{
283
+ display: block;
284
+ width: 100%;
285
+ height: 100%;
286
+ @include rounded(50%);
287
+ }
288
+ .user-status{
289
+
290
+ display: block;
291
+ border: solid 2px $white;
292
+ width: 14px;
293
+ height: 14px;
294
+ text-indent: -9999px;
295
+ @include rounded(50%);
296
+ position: absolute;
297
+ top: 50%;
298
+ left: -7px;
299
+ margin-top: -7px;
300
+
301
+ &.online{
302
+ background: $green;
303
+ }
304
+
305
+ }
306
+
307
+ }
308
+ svg{ display: none; }
309
+
310
+ &:hover{
311
+ background: #f8f8f8;
312
+ }
313
+
314
+ }
315
+
316
+ @media #{$screen680} {
317
+
318
+ height: $header-height;
319
+
320
+ button.profile-dropdown{
321
+
322
+ height: $header-height;
323
+ padding: 0 40px 0 20px;
324
+
325
+ .avatar{
326
+ width: 40px;
327
+ height: 40px;
328
+ }
329
+
330
+ svg{
331
+ display: block;
332
+ position: absolute;
333
+ right: 10px;
334
+ top: 50%;
335
+ margin-top: -10px;
336
+ width: 20px;
337
+ height: 20px;
338
+ left: auto;
339
+ @include transform(none);
340
+ }
341
+
342
+ }
343
+
344
+ }
345
+
346
+ }
347
+
348
+ // Droppable Styles
349
+ .droppable{
350
+
351
+ position: relative;
352
+
353
+ button.trigger{
354
+
355
+ }
356
+
357
+ &.drop-right .dropdown-menu{ right: 0; }
358
+ &.drop-left .dropdown-menu{ left: 0; }
359
+
360
+ .dropdown-menu{
361
+
362
+ display: none;
363
+ position: fixed;
364
+ top: $header-height-mobile+1;
365
+ width: 100%;
366
+ max-height: 400px;
367
+ overflow-y: auto;
368
+ background: $white;
369
+ z-index: 9999;
370
+ border: solid 1px $gray-light;
371
+
372
+ &.open{
373
+
374
+ display: block;
375
+
376
+ }
377
+
378
+ }
379
+
380
+ @media #{$screen680} {
381
+
382
+ .dropdown-menu{
383
+ top: $header-height+1;
384
+ width: 250px;
385
+ position: absolute;
386
+ }
387
+
388
+ }
389
+
390
+ }
391
+
392
+ .dropdown-menu ul.links{
393
+
394
+ margin: 0;
395
+ padding: 0;
396
+ list-style-type: none;
397
+
398
+ li{
399
+
400
+ display: block;
401
+
402
+ &.bordered{
403
+
404
+ border-top: solid 1px $gray-light;
405
+ border-bottom: solid 1px $gray-light;
406
+
407
+ &:first-child{ border-top: none; }
408
+ &:last-child{ border-bottom: none; }
409
+
410
+ }
411
+
412
+ }
413
+ a{
414
+
415
+ display: block;
416
+ padding: 8px;
417
+ text-decoration: none;
418
+
419
+ &:hover{
420
+ background: #f8f8f8;
421
+ }
422
+
423
+ }
424
+
425
+ }
426
+
427
+ // App Header
428
+ header.app-header{
429
+
430
+ background: $red;
431
+ color: $white;
432
+ position: relative;
433
+ margin-bottom: $spacing-small;
434
+
435
+ &:after{
436
+ display: table;
437
+ content: "";
438
+ clear: both;
439
+ }
440
+
441
+ @media #{$screen680} {
442
+ margin-bottom: $spacing-large;
443
+ }
444
+
445
+ }