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,391 @@
1
+ /*
2
+
3
+ Types of buttons:
4
+
5
+ 1. Simple (iOS style) text button
6
+ 2. Icon-based button
7
+ 3. Large, bordered button
8
+ 4. Large, filled button with bottom border (3D)
9
+
10
+ These can all be either <a> or <button> elements.
11
+
12
+ */
13
+
14
+ a.btn,
15
+ input.btn,
16
+ button{
17
+
18
+ //reset to be the same
19
+ border: none;
20
+ background: none;
21
+ padding: 0;
22
+ margin: 0;
23
+ outline: none;
24
+ text-decoration: none;
25
+ color: inherit;
26
+ display: inline-block;
27
+
28
+ //set default button styles. Applied when no extra classes are set
29
+ &.default{
30
+
31
+ border: solid 1px $black;
32
+ padding: 0.5rem 0.85rem;
33
+ font-size: 1.4rem;
34
+
35
+ &.gray{
36
+ color: $gray-dark;
37
+ border-color: $gray-dark;
38
+ }
39
+
40
+ &:disabled{
41
+ color: $gray !important;
42
+ border-color: $gray !important;
43
+ }
44
+
45
+ }
46
+
47
+ //add modifiers
48
+ &.full-width{
49
+ display: block;
50
+ width: 100%;
51
+ }
52
+
53
+ &.small{
54
+ font-size: 1em;
55
+ }
56
+ &.x-small{
57
+ font-size: 0.825em;
58
+ padding: 0.3rem 0.75rem;
59
+ }
60
+
61
+ &.rounded{
62
+ @include rounded(3px);
63
+ }
64
+
65
+ &.centered{
66
+ text-align: center;
67
+ }
68
+
69
+ /** ACTION **/
70
+ &.action{
71
+
72
+ background: none;
73
+ border: solid 1px $black;
74
+ color: $black;
75
+ padding: 0.5em 2.1em;
76
+ font-size: 1.125em;
77
+ @include rounded(3px);
78
+
79
+ //set hover/active states for action buttons
80
+ &:hover{
81
+
82
+ }
83
+ &:active{
84
+
85
+ }
86
+ &:disabled{
87
+
88
+ }
89
+
90
+ //set alt colors
91
+ &.red{
92
+
93
+ background: $red;
94
+ color: $white;
95
+ border-color: darken($red, 10%);
96
+
97
+ &:hover{
98
+
99
+ }
100
+ &:active{
101
+
102
+ }
103
+ &:disabled{
104
+
105
+ }
106
+ }
107
+ &.green{
108
+
109
+ &:hover{
110
+
111
+ }
112
+ &:active{
113
+
114
+ }
115
+ &:disabled{
116
+
117
+ }
118
+ }
119
+
120
+ }
121
+
122
+ /** ICON **/
123
+ &.icon{
124
+
125
+ font-size: 1.75em;
126
+ padding: 0.5em;
127
+
128
+ i{
129
+ display: block;
130
+ width: 1em;
131
+ height: 1em;
132
+ }
133
+
134
+ }
135
+
136
+ /** SIMPLE TEXT **/
137
+ &.simple{
138
+
139
+ &.red{
140
+ color: $red;
141
+ }
142
+ &.blue{
143
+ color: $blue;
144
+ }
145
+ &.black{
146
+ color: $black;
147
+ }
148
+ &.gray{
149
+ color: $gray-dark;
150
+ }
151
+
152
+ &:disabled{
153
+ color: $gray-light;
154
+ }
155
+
156
+ }
157
+
158
+ /** CIRCLE **/
159
+ &.circle{
160
+
161
+ width: 44px;
162
+ height: 44px;
163
+ overflow: hidden;
164
+ position: relative;
165
+ margin: 0;
166
+
167
+ svg{
168
+ width: 30px;
169
+ height: 30px;
170
+ border: solid 2px $black;
171
+ position: absolute;
172
+ top: 50%;
173
+ left: 50%;
174
+ padding: 6px;
175
+ @include transform( translateX(-50%) translateY(-50%) );
176
+ @include rounded(50%);
177
+ }
178
+
179
+ &.pending svg{ fill:$gray; border-color: $gray; }
180
+ &.decline svg{ fill:$red; border-color: $red; }
181
+ &.maybe svg{ fill:$orange; border-color: $orange; }
182
+ &.accept svg{ fill:$green; border-color: $green; }
183
+
184
+ // Set current state
185
+ &:hover,
186
+ &.current{
187
+
188
+ &.pending svg{ fill:$white; background-color: $gray; }
189
+ &.decline svg{ fill:$white; background-color: $red; }
190
+ &.maybe svg{ fill:$white; background-color: $orange; }
191
+ &.accept svg{ fill:$white; background-color: $green; }
192
+
193
+ }
194
+
195
+ &:disabled{
196
+
197
+ cursor: default;
198
+
199
+ }
200
+
201
+ @media #{$screen680} {
202
+
203
+ width: 40px;
204
+ height: 40px;
205
+
206
+ svg{
207
+ width: 40px;
208
+ height: 40px;
209
+ padding: 8px;
210
+ }
211
+
212
+ }
213
+
214
+ }
215
+
216
+ }
217
+
218
+ // FILTER BAR/TABS
219
+ .filter-bar{
220
+
221
+ height: $header-height-mobile;
222
+
223
+ .filter-selection{
224
+
225
+ display: block;
226
+ height: $header-height-mobile;
227
+ padding: 10px 14px 10px 10px;
228
+ cursor: pointer;
229
+
230
+ svg{
231
+ width: 20px;
232
+ height: 20px;
233
+ position: relative;
234
+ top: 4px;
235
+ margin-right: 3px;
236
+ }
237
+ .current-filter{
238
+ font-size: 1.125em;
239
+ }
240
+
241
+ }
242
+
243
+ ul.tabs{
244
+
245
+ display: none;
246
+ padding: 0;
247
+ margin: 0;
248
+ list-style-type: none;
249
+ position: absolute;
250
+ top: $header-height-mobile;
251
+ left: 0;
252
+ right: 0;
253
+ font-size: 1.125em;
254
+ border-top: solid 1px $black;
255
+ z-index: 9999;
256
+
257
+ li{
258
+ display: block;
259
+ }
260
+ a, button{
261
+ display: block;
262
+ padding: 8px 14px;
263
+ width: 100%;
264
+ text-align: left;
265
+ }
266
+
267
+ }
268
+
269
+ @media #{$screen680} {
270
+
271
+ height: $header-height;
272
+
273
+ .filter-selection{
274
+
275
+ display: none;
276
+
277
+ svg{
278
+
279
+ }
280
+ .current-filter{
281
+
282
+ }
283
+
284
+ }
285
+
286
+ ul.tabs{
287
+
288
+ display: block;
289
+ position: relative;
290
+ top: auto;
291
+ left: auto;
292
+ right: auto;
293
+ border: none;
294
+ z-index: auto;
295
+
296
+ &:after{
297
+ content: "";
298
+ display: table;
299
+ clear: both;
300
+ }
301
+
302
+ li{
303
+ float: left;
304
+ margin-right: 2px;
305
+ }
306
+ a, button{
307
+ width: auto;
308
+ padding: 0px 28px;
309
+ height: $header-height;
310
+ }
311
+
312
+ }
313
+
314
+ }
315
+
316
+ }
317
+ header.app-header .filter-bar{
318
+
319
+ .filter-selection:hover{
320
+
321
+ background: darken($red, 15%);
322
+
323
+ }
324
+
325
+ ul.tabs{
326
+
327
+ background: $red;
328
+ border-top-color: darken($red, 15%);
329
+
330
+ a, button{
331
+
332
+ color: $white;
333
+
334
+ }
335
+
336
+ li.active,
337
+ li:hover a,
338
+ li:hover button{
339
+ background: darken($red, 15%);
340
+ }
341
+
342
+ }
343
+
344
+ }
345
+
346
+ // Stand-alone tab buttons
347
+ header.app-header{
348
+
349
+ a.tab,
350
+ button.tab{
351
+
352
+ height: $header-height-mobile;
353
+ font-size: 1.125em;
354
+ padding: 15px;
355
+
356
+ span{
357
+ display: none;
358
+ }
359
+ svg{
360
+ width: 20px;
361
+ height: 20px;
362
+ }
363
+
364
+ &:hover{
365
+ background-color: darken($red, 15%);
366
+ }
367
+
368
+ }
369
+
370
+ @media #{$screen680} {
371
+
372
+ a.tab,
373
+ button.tab{
374
+
375
+ height: $header-height;
376
+ padding: 16px;
377
+
378
+ span{
379
+ display: inline-block;
380
+ margin-right: 8px;
381
+ }
382
+ svg{
383
+ position: relative;
384
+ top: 2px;
385
+ }
386
+
387
+ }
388
+
389
+ }
390
+
391
+ }
@@ -0,0 +1,21 @@
1
+ // Base Colors
2
+ .red{ color: $red; }
3
+ .green{ color: $green; }
4
+ .orange{ color: $orange; }
5
+ .blue{ color: $blue; }
6
+ .gray-light{ color: $gray-light; }
7
+ .gray{ color: $gray; }
8
+ .gray-dark{ color: $gray-dark; }
9
+ .black{ color: $black; }
10
+
11
+
12
+ .background-red{ background-color: $red; color: $white; }
13
+ .background-green{ background-color: $green; color: $white; }
14
+ .background-orange{ background-color: $orange; color: $white; }
15
+ .background-blue{ background-color: $blue; color: $white; }
16
+
17
+ .background-gray-light{ background-color: $gray-light; }
18
+ .background-gray{ background-color: $gray; color: $white; }
19
+ .background-gray-mid{ background-color: $gray-mid; color: $white; }
20
+ .background-gray-dark{ background-color: $gray-dark; color: $white; }
21
+ .background-black{ background-color: $black; color: $white; }
@@ -0,0 +1,164 @@
1
+ /***********************************************
2
+ Comments
3
+ ***********************************************/
4
+ .feed{
5
+
6
+ background: $white;
7
+
8
+ > h3{
9
+ margin: 0 0 $event_padding/2 0;
10
+ }
11
+
12
+ }
13
+
14
+ ol.comments{
15
+
16
+ margin: 2rem 0 0 0;
17
+ padding: 0;
18
+ list-style-type: none;
19
+
20
+ li{
21
+
22
+ display: block;
23
+ margin-bottom: 2rem;
24
+
25
+ span{
26
+
27
+ }
28
+ p{
29
+
30
+ }
31
+ img{
32
+ display: inline-block;
33
+ position: relative;
34
+ top: 2px;
35
+ margin-right: 0.5em;
36
+ }
37
+ .comment_info{
38
+
39
+ }
40
+ .username{
41
+ font-weight: 600;
42
+ font-size: 1em;
43
+ margin-right: 0.25em;
44
+ }
45
+ .time{
46
+ font-size: 0.85em;
47
+ color: $gray-dark;
48
+ }
49
+ .comment_text{
50
+
51
+ margin-top: 0.5em;
52
+ padding-left: 1.75em;
53
+
54
+ *:first-child{ margin-top: 0; }
55
+ *:last-child{ margin-bottom: 0; }
56
+
57
+ }
58
+ .update_message{
59
+ margin: 0;
60
+ }
61
+
62
+ }
63
+ li.comment{
64
+
65
+ }
66
+ li.sep{
67
+
68
+ text-align: center;
69
+ position: relative;
70
+ height: 100%;
71
+
72
+ &:before{
73
+ display: block;
74
+ content: "";
75
+ width: 100%;
76
+ height: 0px;
77
+ border-top: dashed 2px $gray-light;
78
+ position: absolute;
79
+ top: 50%;
80
+ @include transform( translateY(-50%) );
81
+ z-index: 0;
82
+ }
83
+
84
+ span{
85
+ background-origin: border-box;
86
+ background-image: url(../img/sep.png);
87
+ background-size: 100% 100%;
88
+ display: inline-block;
89
+ padding: 0.65em 0.75em;
90
+ position: relative;
91
+ z-index: 10;
92
+ font-size: 0.85em;
93
+ color: $gray;
94
+ }
95
+
96
+ }
97
+ li.update{
98
+
99
+ }
100
+
101
+ .green{
102
+ color: $green;
103
+ }
104
+ .red{
105
+ color: $red;
106
+ }
107
+
108
+ }
109
+
110
+ // Comment Previews
111
+ .comment-preview{
112
+
113
+ border-top: solid 1px $gray-light;
114
+ padding: 10px;
115
+
116
+ &:after{
117
+ content: "";
118
+ display: table;
119
+ clear: both;
120
+ }
121
+
122
+ .avatar{
123
+ display: block;
124
+ position: relative;
125
+ float: left;
126
+ margin-right: 10px;
127
+ }
128
+ p{
129
+ margin: 0;
130
+ font-size: 0.85em;
131
+ display: block;
132
+ float: left;
133
+ @include calc( max-width, "100% - 32px - 75px" ); /* 100% - avatar width (+ margin) - timestamp width (+ margin) */
134
+ white-space: nowrap;
135
+ overflow: hidden;
136
+ text-overflow: ellipsis;
137
+ }
138
+ span{
139
+ display: block;
140
+ font-size: 0.8em;
141
+ color: $gray-mid;
142
+ float: right;
143
+ width: 56px;
144
+ }
145
+
146
+ @media #{$screen680} {
147
+
148
+ padding: $spacing-large;
149
+
150
+ .avatar{}
151
+ h3{
152
+ font-size: 1.25em;
153
+ margin: 0 $spacing-large/4;
154
+ }
155
+ span{
156
+ font-size: 1em;
157
+ }
158
+ p{
159
+ font-size: 1em;
160
+ }
161
+
162
+ }
163
+
164
+ }