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,59 @@
1
+ $flash-red: #ec232a;
2
+ $flash-yellow: #edebcd;
3
+ $flash-blue: #6cc6e5;
4
+ $flash-green: #66cc99;
5
+
6
+ .flash{
7
+
8
+ position: relative;
9
+ background: $flash-blue;
10
+ color: $white;
11
+ padding: 1.2rem;
12
+ border-top: solid 1px darken($flash-blue, 15%);
13
+ border-bottom: solid 1px darken($flash-blue, 15%);
14
+
15
+ &.dismissable{
16
+ padding-right: 4em;
17
+ }
18
+ button.flash-dismiss{
19
+
20
+ position: absolute;
21
+ right: 10px;
22
+ top: 50%;
23
+ margin-top: -22px;
24
+ padding: 0;
25
+ width: 44px;
26
+ height: 44px;
27
+ color: $white;
28
+ background: none;
29
+ @include box-shadow(0, 0, 0, rgba(0,0,0,0));
30
+
31
+ i{
32
+ margin: 0;
33
+ top: 0;
34
+ }
35
+
36
+ }
37
+
38
+ &.warning{
39
+ background: $flash-yellow;
40
+ color: $black;
41
+ border-color: darken($flash-yellow, 15%);
42
+
43
+ button.flash-dismiss{
44
+ color: $black;
45
+ }
46
+
47
+ }
48
+
49
+ &.alert{
50
+ background: $flash-red;
51
+ border-color: darken($flash-red, 15%);
52
+ }
53
+
54
+ &.success{
55
+ background: $flash-green;
56
+ border-color: darken($flash-green, 15%);
57
+ }
58
+
59
+ }
@@ -0,0 +1,293 @@
1
+ // vars
2
+ $formFontSize: 1.1rem;
3
+ $formIconPadding: 36px;
4
+
5
+ form{
6
+
7
+ }
8
+ input, textarea{
9
+ display: block;
10
+ width: 100%;
11
+ background: $white;
12
+ border: solid 1px $gray-light;
13
+ border-radius: 3px;
14
+ padding: 0.75rem;
15
+ }
16
+
17
+ .field{
18
+ margin: 0 0 $spacing-small*2 0;
19
+ position: relative;
20
+ }
21
+ .field p{
22
+ color: $gray;
23
+ }
24
+
25
+ /** Labels **/
26
+ .field label{
27
+
28
+ display: inline-block;
29
+ margin-bottom: $spacing-small/2;
30
+ font-size: 1.125em;
31
+ color: $gray;
32
+
33
+ .label-description{
34
+ float: right;
35
+ font-size: 14px;
36
+ margin-top: 4px;
37
+ }
38
+
39
+ }
40
+
41
+ select{
42
+ width: 100%;
43
+ }
44
+
45
+ /** Inputs **/
46
+ .field input[type="text"],
47
+ .field input[type="email"],
48
+ .field input[type="password"]{
49
+ display: block;
50
+ @include rounded(3px);
51
+ padding: $spacing-small;
52
+ font-size: $formFontSize;
53
+ color: $black;
54
+ width: 100%;
55
+ outline-color: $red;
56
+ }
57
+ div.input{
58
+
59
+ position: relative;
60
+
61
+ input{
62
+
63
+ }
64
+
65
+ }
66
+
67
+ input[type="checkbox"],
68
+ input[type="radio"]{
69
+ width: auto;
70
+ display: inline-block;
71
+ }
72
+ .field input[type="checkbox"]{
73
+ margin-left: $spacing-small;
74
+ }
75
+
76
+ //hide defaults until initialized
77
+ .field.selectize{
78
+
79
+ select{
80
+ height: 44px;
81
+ width: 100%;
82
+ border: solid 1px $white;
83
+ visibility: hidden;
84
+ }
85
+
86
+ }
87
+
88
+ .selectize-dropdown,
89
+ .selectize-input,
90
+ .selectize-input input{
91
+ font-size: $formFontSize;
92
+ line-height: 22px; //small, stupid hack, but it works
93
+ }
94
+
95
+ .selectize-input{
96
+ border: solid 1px $gray-light;
97
+ padding: $spacing-small;
98
+ @include box-shadow(0,0,0,rgba(0,0,0,0));
99
+ }
100
+
101
+ .selectize-control {
102
+
103
+ .selectize-input{
104
+
105
+ @include rounded(3px);
106
+
107
+ input{
108
+ padding: 0;
109
+ outline: none;
110
+ border: none;
111
+ display: inline-block;
112
+ }
113
+
114
+ }
115
+
116
+ &.multi {
117
+
118
+ .selectize-input {
119
+
120
+ &.has-items {
121
+ padding: $spacing-small;
122
+ @include calc(padding-bottom, $spacing-small - $spacing-small/2);
123
+ }
124
+
125
+ &.disabled [data-value] {
126
+
127
+ color: #999;
128
+ text-shadow: none;
129
+ background: none;
130
+ @include box-shadow(none);
131
+
132
+ &,
133
+ .remove {
134
+ border-color: #e6e6e6;
135
+ }
136
+
137
+ .remove {
138
+ background: none;
139
+ }
140
+
141
+ }
142
+
143
+ [data-value] {
144
+
145
+ @include rounded(3px);
146
+ background: #f2f2f2;
147
+ border: solid 1px #aaa;
148
+ display: inline-block;
149
+ margin-right: $spacing-small/2;
150
+ margin-bottom: $spacing-small/2;
151
+ padding: 2px 5px;
152
+
153
+ &.active {
154
+ background: #29abe2;
155
+ color: $white;
156
+ border: solid 1px darken(#29abe2, 10%);
157
+ }
158
+
159
+ }
160
+
161
+ }
162
+
163
+ }
164
+
165
+ &.single {
166
+
167
+ .selectize-input {
168
+
169
+ background: $white;
170
+
171
+ [data-value],
172
+ input {
173
+ display: inline-block;
174
+ }
175
+
176
+ }
177
+
178
+ }
179
+
180
+ }
181
+
182
+ .selectize-dropdown {
183
+
184
+ position: absolute;
185
+ z-index: 100;
186
+ background: $white;
187
+ border: solid 1px $gray-light;
188
+ border-top: none;
189
+
190
+ [data-selectable],
191
+ .optgroup-header{
192
+ padding: 12px 16px;
193
+ }
194
+
195
+ .active{
196
+ background: #e8e8e8;
197
+ color: $black;
198
+ }
199
+
200
+ .optgroup-header {
201
+ padding-top: 20px + 2px;
202
+ font-weight: bold;
203
+ font-size: .85em;
204
+ }
205
+
206
+ .optgroup {
207
+
208
+ border-top: 1px solid $gray;
209
+
210
+ &:first-child {
211
+ border-top: 0 none;
212
+ }
213
+
214
+ }
215
+
216
+ }
217
+ .selectize-dropdown-content{
218
+ max-height: 310px;
219
+ overflow-y: auto;
220
+ }
221
+
222
+ header.form_header{
223
+
224
+ padding-top: $spacing-small*2;
225
+
226
+ h1{
227
+ float: left;
228
+ }
229
+ a.btn{
230
+ float: right;
231
+ margin-top: 1.5em;
232
+ }
233
+
234
+ }
235
+
236
+ // New/edit event forms
237
+ .new_event_form{
238
+
239
+ background: $white;
240
+ @include rounded(3px);
241
+ padding: $spacing-small;
242
+
243
+ @media #{$screen680} {
244
+
245
+ padding: $spacing-large;
246
+
247
+ }
248
+
249
+ }
250
+
251
+ // Rails form errors
252
+ .field_with_errors{
253
+
254
+ label{
255
+ color: $red;
256
+ }
257
+ input{
258
+ border: solid 2px $red;
259
+ }
260
+
261
+ }
262
+ #error_explanation{
263
+
264
+ margin-bottom: $spacing-small;
265
+ @include rounded(3px);
266
+ border: solid 2px $red;
267
+
268
+ h2{
269
+ background: $red;
270
+ margin: 0;
271
+ padding: 10px;
272
+ color: $white;
273
+ font-size: 1em;
274
+ }
275
+ ul{
276
+ padding-left: $spacing-small*2;
277
+ color: darken($red, 20%);
278
+ }
279
+ li{
280
+
281
+ }
282
+
283
+ @media #{$screen680} {
284
+
285
+ margin-bottom: $spacing-large;
286
+
287
+ ul{
288
+ padding-left: $spacing-large*2;
289
+ }
290
+
291
+ }
292
+
293
+ }
@@ -0,0 +1,68 @@
1
+ // Simple Grid
2
+ $marginSize: 2%;
3
+ $colCount: 12;
4
+
5
+ .wrap{
6
+
7
+ margin: 0 auto;
8
+ padding: 0 $spacing-small;
9
+
10
+ &:after{
11
+ content: "";
12
+ display: table;
13
+ clear: both;
14
+ }
15
+
16
+ @media #{$screen680} {
17
+ padding: 0 $spacing-large;
18
+ }
19
+
20
+ }
21
+
22
+ .wrap500{
23
+
24
+ max-width: 500px+($spacing-small*2);
25
+
26
+ @media #{$screen680} {
27
+ max-width: 500px+($spacing-large*2);
28
+ }
29
+
30
+ }
31
+
32
+ .wrap800{
33
+
34
+ max-width: 800px+($spacing-small*2);
35
+
36
+ @media #{$screen680} {
37
+ max-width: 800px+($spacing-large*2);
38
+ }
39
+
40
+ }
41
+
42
+ .row{
43
+
44
+ margin-top: $marginSize;
45
+
46
+ &:after{
47
+ display: table;
48
+ content: "";
49
+ clear: both;
50
+ }
51
+
52
+ }
53
+
54
+ .col{
55
+
56
+ float: left;
57
+ display: block;
58
+ margin-right: $marginSize;
59
+ margin-bottom: $marginSize;
60
+
61
+ &.last{
62
+ margin-right: 0;
63
+ }
64
+
65
+ }
66
+
67
+ // This will output each widht spacing value!
68
+ @include gridGen($colCount, $marginSize, col);
@@ -0,0 +1,25 @@
1
+ .avatar{
2
+
3
+ display: block;
4
+
5
+ &.small{
6
+ width: 18px;
7
+ height: 18px;
8
+ }
9
+ &.bordered.small{
10
+
11
+ width: 22px;
12
+ height: 22px;
13
+ border: solid 2px $white;
14
+
15
+ &.pending{ border-color:$gray-light; }
16
+ &.declined{ border-color:$red; }
17
+ &.maybe{ border-color:$orange; }
18
+ &.accepted{ border-color:$green; }
19
+
20
+ }
21
+ &.circle{
22
+ @include rounded(50%);
23
+ }
24
+
25
+ }