compass-foundation 0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. data/.gitignore +9 -0
  2. data/.gitmodules +3 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.mkdn +11 -0
  5. data/README.mkdn +43 -0
  6. data/Rakefile +1 -0
  7. data/compass-foundation.gemspec +26 -0
  8. data/lib/compass-foundation/rails/engine.rb +7 -0
  9. data/lib/compass-foundation/rails.rb +7 -0
  10. data/lib/compass-foundation/version.rb +5 -0
  11. data/lib/compass-foundation.rb +14 -0
  12. data/stylesheets/compass-foundation/_compass_foundation.scss +13 -0
  13. data/stylesheets/compass-foundation/_forms.css.scss +249 -0
  14. data/stylesheets/compass-foundation/_globals.css.scss +176 -0
  15. data/stylesheets/compass-foundation/_grid.css.scss +188 -0
  16. data/stylesheets/compass-foundation/_ie.css.scss +4 -0
  17. data/stylesheets/compass-foundation/_mobile.css.scss +220 -0
  18. data/stylesheets/compass-foundation/_orbit.css.scss +227 -0
  19. data/stylesheets/compass-foundation/_reveal.css.scss +107 -0
  20. data/stylesheets/compass-foundation/_typography.css.scss +169 -0
  21. data/stylesheets/compass-foundation/_ui.css.scss +338 -0
  22. data/vendor/assets/images/misc/button-gloss.png +0 -0
  23. data/vendor/assets/images/misc/button-overlay.png +0 -0
  24. data/vendor/assets/images/misc/custom-form-sprites.png +0 -0
  25. data/vendor/assets/images/misc/input-bg.png +0 -0
  26. data/vendor/assets/images/misc/modal-gloss.png +0 -0
  27. data/vendor/assets/images/misc/table-sorter.png +0 -0
  28. data/vendor/assets/images/orbit/bullets.jpg +0 -0
  29. data/vendor/assets/images/orbit/left-arrow.png +0 -0
  30. data/vendor/assets/images/orbit/loading.gif +0 -0
  31. data/vendor/assets/images/orbit/mask-black.png +0 -0
  32. data/vendor/assets/images/orbit/pause-black.png +0 -0
  33. data/vendor/assets/images/orbit/right-arrow.png +0 -0
  34. data/vendor/assets/images/orbit/rotator-black.png +0 -0
  35. data/vendor/assets/images/orbit/timer-black.png +0 -0
  36. data/vendor/assets/javascripts/app.js +48 -0
  37. data/vendor/assets/javascripts/forms.jquery.js +58 -0
  38. data/vendor/assets/javascripts/jquery.customforms.js +168 -0
  39. data/vendor/assets/javascripts/jquery.orbit.js +597 -0
  40. data/vendor/assets/javascripts/jquery.placeholder.min.js +2 -0
  41. data/vendor/assets/javascripts/jquery.reveal.js +126 -0
  42. data/vendor/assets/stylesheets/compass-foundation/_compass_foundation.scss +13 -0
  43. data/vendor/assets/stylesheets/compass-foundation/_forms.scss +249 -0
  44. data/vendor/assets/stylesheets/compass-foundation/_globals.scss +176 -0
  45. data/vendor/assets/stylesheets/compass-foundation/_grid.scss +188 -0
  46. data/vendor/assets/stylesheets/compass-foundation/_ie.scss +4 -0
  47. data/vendor/assets/stylesheets/compass-foundation/_mobile.scss +220 -0
  48. data/vendor/assets/stylesheets/compass-foundation/_orbit.scss +227 -0
  49. data/vendor/assets/stylesheets/compass-foundation/_reveal.scss +107 -0
  50. data/vendor/assets/stylesheets/compass-foundation/_typography.scss +169 -0
  51. data/vendor/assets/stylesheets/compass-foundation/_ui.scss +338 -0
  52. data/vendor/assets/stylesheets/compass-foundation/compass_foundation.scss +13 -0
  53. data/vendor/assets/stylesheets/compass-foundation/manifest.rb +38 -0
  54. metadata +121 -0
@@ -0,0 +1,107 @@
1
+ /* --------------------------------------------------
2
+ Reveal Modals
3
+ -------------------------------------------------- */
4
+
5
+ .reveal-modal-bg {
6
+ position: fixed;
7
+ height: 100%;
8
+ width: 100%;
9
+ background: #000;
10
+ z-index: 2000;
11
+ display: none;
12
+ top: 0;
13
+ left: 0; }
14
+
15
+ .reveal-modal {
16
+ visibility: hidden;
17
+ top: 100px;
18
+ left: 50%;
19
+ margin-left: -300px;
20
+ width: 520px;
21
+ background: #eeeeee url(../images/misc/modal-gloss.png) no-repeat -200px -80px;
22
+ position: absolute;
23
+ z-index: 2001;
24
+ padding: 30px 40px 34px;
25
+ -moz-border-radius: 5px;
26
+ -webkit-border-radius: 5px;
27
+ border-radius: 5px;
28
+ -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
29
+ -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
30
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
31
+ &.small {
32
+ width: 200px;
33
+ margin-left: -140px; }
34
+ &.medium {
35
+ width: 400px;
36
+ margin-left: -240px; }
37
+ &.large {
38
+ width: 600px;
39
+ margin-left: -340px; }
40
+ &.xlarge {
41
+ width: 800px;
42
+ margin-left: -440px; }
43
+ .close-reveal-modal {
44
+ font-size: 22px;
45
+ line-height: .5;
46
+ position: absolute;
47
+ top: 8px;
48
+ right: 11px;
49
+ color: #aaa;
50
+ text-shadow: 0 -1px 1px rbga(0, 0, 0, 0.6);
51
+ font-weight: bold;
52
+ cursor: pointer; } }
53
+
54
+ /* Mobile */
55
+
56
+ @media handheld, only screen and (device-width: 768px), (device-width: 800px) {
57
+ .reveal-modal-bg {
58
+ position: absolute; }
59
+ .reveal-modal {
60
+ width: 60%;
61
+ top: 30%;
62
+ left: 15%;
63
+ margin-left: 0px;
64
+ padding: 5%;
65
+ height: auto;
66
+ &.small, &.medium, &.large, &.xlarge {
67
+ width: 60%;
68
+ top: 30%;
69
+ left: 15%;
70
+ margin-left: 0px;
71
+ padding: 5%;
72
+ height: auto; } } }
73
+
74
+ @media handheld, only screen and (max-width: 767px) {
75
+ .reveal-modal-bg {
76
+ position: absolute; }
77
+ .reveal-modal {
78
+ width: 80%;
79
+ top: 15%;
80
+ left: 5%;
81
+ margin-left: 0px;
82
+ padding: 5%;
83
+ height: auto;
84
+ &.small, &.medium, &.large, &.xlarge {
85
+ width: 80%;
86
+ top: 15%;
87
+ left: 5%;
88
+ margin-left: 0px;
89
+ padding: 5%;
90
+ height: auto; } } }
91
+
92
+ /*
93
+
94
+ NOTES
95
+
96
+ Close button entity is ×
97
+
98
+ Example markup
99
+
100
+ <div id="myModal" class="reveal-modal">
101
+ <h2>Awesome. I have it.</h2>
102
+ <p class="lead">Your couch. I it's mine.</p>
103
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ultrices aliquet placerat. Duis pulvinar orci et nisi euismod vitae tempus lorem consectetur. Duis at magna quis turpis mattis venenatis eget id diam. </p>
104
+ <a class="close-reveal-modal">&#215;</a>
105
+ </div>
106
+
107
+ */
@@ -0,0 +1,169 @@
1
+ /* Arfully Masterminded by ZURB */
2
+
3
+ /* --------------------------------------------------
4
+ :: Typography
5
+ -------------------------------------------------- */
6
+
7
+ h1, h2, h3, h4, h5, h6 {
8
+ color: #181818;
9
+ font-weight: bold;
10
+ line-height: 1.25; }
11
+
12
+ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
13
+ font-weight: inherit; }
14
+
15
+ h1 {
16
+ font-size: 46px;
17
+ font-size: 4.6rem;
18
+ margin-bottom: 12px; }
19
+
20
+ h2 {
21
+ font-size: 35px;
22
+ font-size: 3.5rem;
23
+ margin-bottom: 9px; }
24
+
25
+ h3 {
26
+ font-size: 28px;
27
+ font-size: 2.8rem;
28
+ margin-bottom: 9px; }
29
+
30
+ h4 {
31
+ font-size: 21px;
32
+ font-size: 2.1rem;
33
+ margin-bottom: 3px; }
34
+
35
+ h5 {
36
+ font-size: 18px;
37
+ font-size: 1.8rem;
38
+ font-weight: normal;
39
+ margin-bottom: 3px; }
40
+
41
+ h6 {
42
+ font-size: 15px;
43
+ font-size: 1.5rem;
44
+ font-weight: normal; }
45
+
46
+ .subheader {
47
+ color: #777;
48
+ font-weight: 300;
49
+ margin-bottom: 24px; }
50
+
51
+ p {
52
+ line-height: 17px;
53
+ margin: 0 0 18px;
54
+ img {
55
+ margin: 0; }
56
+ &.lead {
57
+ font-size: 18px;
58
+ font-size: 1.8rem;
59
+ line-height: 24px; } }
60
+
61
+ /* Mobile */
62
+
63
+ @media handheld, only screen and (max-width: 767px) {
64
+ body, p {
65
+ font-size: 15px;
66
+ font-size: 1.5rem;
67
+ line-height: 1.4; } }
68
+
69
+ em, i {
70
+ font-style: italic;
71
+ line-height: inherit; }
72
+
73
+ strong, b {
74
+ font-weight: bold;
75
+ line-height: inherit; }
76
+
77
+ small {
78
+ font-size: 60%;
79
+ line-height: inherit; }
80
+
81
+ h1 small, h2 small, h3 small, h4 small, h5 small {
82
+ color: #777; }
83
+
84
+ /* Blockquotes */
85
+
86
+ blockquote {
87
+ line-height: 20px;
88
+ color: #777;
89
+ p {
90
+ line-height: 20px;
91
+ color: #777; }
92
+ margin: 0 0 18px;
93
+ padding: 9px 20px 0 19px;
94
+ border-left: 1px solid #ddd;
95
+ cite {
96
+ display: block;
97
+ font-size: 12px;
98
+ font-size: 1.2rem;
99
+ color: #555;
100
+ &:before {
101
+ content: "\2014 \0020"; }
102
+ a {
103
+ color: #555;
104
+ &:visited {
105
+ color: #555; } } } }
106
+
107
+ hr {
108
+ border: solid #ddd;
109
+ border-width: 1px 0 0;
110
+ clear: both;
111
+ margin: 12px 0 18px;
112
+ height: 0; }
113
+
114
+ abbr, acronym {
115
+ text-transform: uppercase;
116
+ font-size: 90%;
117
+ color: #222;
118
+ border-bottom: 1px solid #ddd;
119
+ cursor: help; }
120
+
121
+ abbr {
122
+ text-transform: none; }
123
+
124
+ /**
125
+ * Print styles.
126
+ *
127
+ * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
128
+ * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
129
+ */
130
+ @media print {
131
+ * {
132
+ background: transparent !important;
133
+ color: black !important;
134
+ text-shadow: none !important;
135
+ filter: none !important;
136
+ -ms-filter: none !important; }
137
+ /* Black prints faster: sanbeiji.com/archives/953 */
138
+ p a {
139
+ color: #444 !important;
140
+ text-decoration: underline;
141
+ &:visited {
142
+ color: #444 !important;
143
+ text-decoration: underline; }
144
+ &[href]:after {
145
+ content: " (" attr(href) ")"; } }
146
+ abbr[title]:after {
147
+ content: " (" attr(title) ")"; }
148
+ .ir a:after {
149
+ content: ""; }
150
+ a {
151
+ &[href^="javascript:"]:after, &[href^="#"]:after {
152
+ content: ""; } }
153
+ /* Don't show links for images, or javascript/internal links */
154
+ pre, blockquote {
155
+ border: 1px solid #999;
156
+ page-break-inside: avoid; }
157
+ thead {
158
+ display: table-header-group; }
159
+ /* css-discuss.incutio.com/wiki/Printing_Tables */
160
+ tr, img {
161
+ page-break-inside: avoid; }
162
+ @page {
163
+ margin: 0.5cm; }
164
+
165
+ p, h2, h3 {
166
+ orphans: 3;
167
+ widows: 3; }
168
+ h2, h3 {
169
+ page-break-after: avoid; } }
@@ -0,0 +1,338 @@
1
+ /* Artfully masterminded by ZURB */
2
+
3
+ /* --------------------------------------------------
4
+ Table of Contents
5
+ -----------------------------------------------------
6
+ :: Buttons
7
+ :: Alerts
8
+ :: Notices/Alerts
9
+ :: Tabs
10
+ :: Pagination
11
+ :: Lists
12
+ :: Panels
13
+ */
14
+
15
+ /* --------------------------------------------------
16
+ Buttons
17
+ -------------------------------------------------- */
18
+
19
+ .button {
20
+ background: #00a6fc;
21
+ display: inline-block;
22
+ text-align: center;
23
+ padding: 9px 34px 11px;
24
+ color: #fff;
25
+ text-decoration: none;
26
+ font-weight: bold;
27
+ line-height: 1;
28
+ font-family: "Helvetica Neue", "Helvetica", Arial, Verdana, sans-serif;
29
+ position: relative;
30
+ cursor: pointer;
31
+ border: none;
32
+ &.nice {
33
+ background: #00a6fc url(../images/misc/button-gloss.png) repeat-x 0 -34px;
34
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
35
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
36
+ text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.28);
37
+ background: #00a6fc url(../images/misc/button-gloss.png) repeat-x 0 -34px, -moz-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
38
+ background: #00a6fc url(../images/misc/button-gloss.png) repeat-x 0 -34px, -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 0.4)), color-stop(100%, transparent));
39
+ border: 1px solid #0593dc;
40
+ -webkit-transition: background-color .15s ease-in-out;
41
+ -moz-transition: background-color .15s ease-in-out;
42
+ -o-transition: background-color .15s ease-in-out; }
43
+ &.radius {
44
+ -moz-border-radius: 3px;
45
+ -webkit-border-radius: 3px;
46
+ border-radius: 3px; }
47
+ &.round {
48
+ -moz-border-radius: 1000px;
49
+ -webkit-border-radius: 1000px;
50
+ border-radius: 1000px; }
51
+ &.full-width {
52
+ width: 100%;
53
+ padding-left: 0 !important;
54
+ padding-right: 0 !important;
55
+ text-align: center; }
56
+ &.left-align {
57
+ text-align: left;
58
+ text-indent: 12px; }
59
+ &:active {} }
60
+
61
+ /* Sizes ---------- */
62
+
63
+ .small.button {
64
+ font-size: 11px;
65
+ padding: 8px 20px 10px;
66
+ width: auto; }
67
+
68
+ .medium.button {
69
+ font-size: 13px;
70
+ width: auto; }
71
+
72
+ .large.button {
73
+ font-size: 18px;
74
+ padding: 11px 48px 13px;
75
+ width: auto; }
76
+
77
+ /* Nice Sizes ---------- */
78
+
79
+ .nice {
80
+ &.small.button {
81
+ background-position: 0 -36px; }
82
+ &.large.button {
83
+ background-position: 0 -30px; } }
84
+
85
+ /* Colors ---------- */
86
+
87
+ .blue.button {
88
+ background-color: #00a6fc; }
89
+
90
+ .red.button {
91
+ background-color: #e91c21; }
92
+
93
+ .white.button {
94
+ background-color: #e9e9e9;
95
+ color: #333; }
96
+
97
+ .black.button {
98
+ background-color: #141414; }
99
+
100
+ /* Nice Colors ---------- */
101
+
102
+ .nice {
103
+ &.blue.button {
104
+ border: 1px solid #0593dc; }
105
+ &.red.button {
106
+ border: 1px solid #b90b0b; }
107
+ &.white.button {
108
+ border: 1px solid #cacaca;
109
+ text-shadow: none !important; }
110
+ &.black.button {
111
+ border: 1px solid #000; } }
112
+
113
+ /* Hovers ---------- */
114
+
115
+ .button:hover {
116
+ background-color: #0192dd;
117
+ color: #fff; }
118
+
119
+ .blue.button:hover {
120
+ background-color: #0192dd; }
121
+
122
+ .red.button:hover {
123
+ background-color: #d01217; }
124
+
125
+ .white.button:hover {
126
+ background-color: #dadada;
127
+ color: #333; }
128
+
129
+ .black.button:hover {
130
+ background-color: #000; }
131
+
132
+ /* Disabled ---------- */
133
+
134
+ .button {
135
+ &.disabled, &[disabled] {
136
+ opacity: 0.6;
137
+ cursor: default; } }
138
+
139
+ /* --------------------------------------------------
140
+ Alerts
141
+ -------------------------------------------------- */
142
+
143
+ div.alert-box {
144
+ display: block;
145
+ padding: 6px 7px;
146
+ font-weight: bold;
147
+ font-size: 13px;
148
+ background: #eee;
149
+ border: 1px solid rgba(0, 0, 0, 0.1);
150
+ margin-bottom: 12px;
151
+ border-radius: 3px;
152
+ -webkit-border-radius: 3px;
153
+ -moz-border-radius: 3px;
154
+ text-shadow: 0px 1px rgba(255, 255, 255, 0.9);
155
+ position: relative; }
156
+
157
+ .alert-box {
158
+ &.success {
159
+ background-color: #7fae00;
160
+ color: #fff;
161
+ text-shadow: 0px -1px rgba(0, 0, 0, 0.3); }
162
+ &.warning {
163
+ background-color: #c08c00;
164
+ color: #fff;
165
+ text-shadow: 0px -1px rgba(0, 0, 0, 0.3); }
166
+ &.error {
167
+ background-color: #c00000;
168
+ color: #fff;
169
+ text-shadow: 0px -1px rgba(0, 0, 0, 0.3); }
170
+ a.close {
171
+ color: #000;
172
+ position: absolute;
173
+ right: 4px;
174
+ top: 0px;
175
+ font-size: 18px;
176
+ opacity: 0.2;
177
+ padding: 4px;
178
+ &:hover {
179
+ opacity: 0.4; } } }
180
+
181
+ /* --------------------------------------------------
182
+ Tabs
183
+ -------------------------------------------------- */
184
+
185
+ dl.tabs {
186
+ display: block;
187
+ margin: 0 0 20px 0;
188
+ padding: 0;
189
+ height: 30px;
190
+ border-bottom: solid 1px #ddd;
191
+ dt {
192
+ display: block;
193
+ width: auto;
194
+ height: 30px;
195
+ padding: 0px 9px 0 20px;
196
+ line-height: 30px;
197
+ float: left;
198
+ color: #999;
199
+ font-size: 11px;
200
+ text-transform: uppercase;
201
+ cursor: default;
202
+ &:first-child {
203
+ padding: 0 9px 0 0px; } }
204
+ dd {
205
+ display: block;
206
+ width: auto;
207
+ height: 30px;
208
+ padding: 0;
209
+ float: left;
210
+ a {
211
+ display: block;
212
+ width: auto;
213
+ height: 29px;
214
+ padding: 0px 9px;
215
+ line-height: 30px;
216
+ border: solid 1px #ddd;
217
+ margin: 0 -1px 0 0;
218
+ color: #555;
219
+ background: #eee;
220
+ &.active {
221
+ background: #fff;
222
+ border-width: 1px 1px 0px 1px;
223
+ height: 30px; } } } }
224
+
225
+ .nice.tabs {
226
+ border-bottom: solid 1px #eee;
227
+ margin: 0 0 30px 0;
228
+ height: 43px;
229
+ dd {
230
+ a {
231
+ padding: 7px 18px 9px;
232
+ font-size: 15px;
233
+ font-size: 1.5rem;
234
+ color: #555555;
235
+ background: none;
236
+ border: none;
237
+ &.active {
238
+ font-weight: bold;
239
+ color: #333;
240
+ background: #fff;
241
+ border-left: 1px solid #eee;
242
+ border-right: 1px solid #eee;
243
+ border-top: 3px solid #00a6fc;
244
+ margin: 0 10px;
245
+ position: relative;
246
+ top: -5px; } }
247
+ &:first-child a.active {
248
+ margin-left: 0; } } }
249
+
250
+ ul.tabs-content {
251
+ margin: 0;
252
+ display: block;
253
+ > li {
254
+ display: none;
255
+ &.active {
256
+ display: block; } } }
257
+
258
+ dl {
259
+ &.contained, &.nice.contained {
260
+ margin-bottom: 0px; }
261
+ &.contained.tabs dd a {
262
+ padding: 0px 14px; }
263
+ &.nice.contained.tabs dd a {
264
+ padding: 7px 18px 9px; } }
265
+
266
+ ul {
267
+ &.contained.tabs-content {
268
+ padding: 0;
269
+ li {
270
+ padding: 20px;
271
+ border: solid 0px #ddd;
272
+ border-width: 0px 1px 1px 1px; } }
273
+ &.nice.contained.tabs-content li {
274
+ border-color: #eee; }
275
+ &.pagination {
276
+ display: block;
277
+ height: 24px;
278
+ margin-left: -5px;
279
+ li {
280
+ float: left;
281
+ display: block;
282
+ height: 24px;
283
+ color: #999;
284
+ font-size: 15px;
285
+ margin-left: 5px;
286
+ a {
287
+ display: block;
288
+ padding: 6px 7px 4px;
289
+ color: #555; }
290
+ &.current a, &:hover a {
291
+ border-bottom: solid 2px #00a6fc;
292
+ color: #141414; }
293
+ &.unavailable {
294
+ a {
295
+ cursor: default;
296
+ color: #999; }
297
+ &:hover a {
298
+ border-bottom: none; } } } }
299
+ &.nice {
300
+ list-style: none;
301
+ margin: 0; } }
302
+
303
+ /* --------------------------------------------------
304
+ Pagination
305
+ -------------------------------------------------- */
306
+
307
+ /* --------------------------------------------------
308
+ Lists
309
+ -------------------------------------------------- */
310
+
311
+ ol.nice {
312
+ list-style: none;
313
+ margin: 0; }
314
+
315
+ ul.nice li, ol.nice li {
316
+ padding-left: 13px;
317
+ position: relative; }
318
+
319
+ ul.nice li span.bullet, ol.nice li span.number {
320
+ position: absolute;
321
+ left: 0px;
322
+ top: 0px;
323
+ color: #ccc; }
324
+
325
+ /* --------------------------------------------------
326
+ Panels
327
+ -------------------------------------------------- */
328
+
329
+ div.panel {
330
+ padding: 20px 20px 2px 20px;
331
+ background: #efefef;
332
+ background: -moz-linear-gradient(top, white 0%, #f4f4f4 100%);
333
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #f4f4f4));
334
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#F4F4F4',GradientType=0 );
335
+ box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
336
+ -webkit-box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
337
+ -moz-box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);
338
+ margin: 0 0 20px 0; }
@@ -0,0 +1,48 @@
1
+ $(document).ready(function() {
2
+
3
+ /* Use this js doc for all application specific JS */
4
+
5
+ /* TABS --------------------------------- */
6
+ /* Remove if you don't need :) */
7
+
8
+ var tabs = $('dl.tabs');
9
+ tabsContent = $('ul.tabs-content')
10
+
11
+ tabs.each(function(i) {
12
+ //Get all tabs
13
+ var tab = $(this).children('dd').children('a');
14
+ tab.click(function(e) {
15
+
16
+ //Get Location of tab's content
17
+ var contentLocation = $(this).attr("href")
18
+ contentLocation = contentLocation + "Tab";
19
+
20
+ //Let go if not a hashed one
21
+ if(contentLocation.charAt(0)=="#") {
22
+
23
+ e.preventDefault();
24
+
25
+ //Make Tab Active
26
+ tab.removeClass('active');
27
+ $(this).addClass('active');
28
+
29
+ //Show Tab Content
30
+ $(contentLocation).parent('.tabs-content').children('li').css({"display":"none"});
31
+ $(contentLocation).css({"display":"block"});
32
+
33
+ }
34
+ });
35
+ });
36
+
37
+
38
+ /* PLACEHOLDER FOR FORMS ------------- */
39
+ /* Remove this and jquery.placeholder.min.js if you don't need :) */
40
+
41
+ $('input, textarea').placeholder();
42
+
43
+
44
+ /* DISABLED BUTTONS ------------- */
45
+ /* Gives elements with a class of 'disabled' a return: false; */
46
+
47
+
48
+ });