compass-ui 0.0.3

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 (94) hide show
  1. data/.gitignore +10 -0
  2. data/CHANGELOG.md +22 -0
  3. data/Gemfile +3 -0
  4. data/Gemfile.lock +22 -0
  5. data/LICENSE.md +30 -0
  6. data/README.md +81 -0
  7. data/compass-ui.gemspec +23 -0
  8. data/demos/config.rb +26 -0
  9. data/demos/images/absolution/selector.png +0 -0
  10. data/demos/images/absolution/ui-icons_222222_256x240.png +0 -0
  11. data/demos/images/absolution/ui-icons_eeeeee_256x240.png +0 -0
  12. data/demos/images/absolution/ui-icons_ffffff_256x240.png +0 -0
  13. data/demos/images/dot-luv/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
  14. data/demos/images/dot-luv/ui-bg_dots-medium_30_0b58a2_4x4.png +0 -0
  15. data/demos/images/dot-luv/ui-bg_dots-small_20_333333_2x2.png +0 -0
  16. data/demos/images/dot-luv/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
  17. data/demos/images/dot-luv/ui-bg_dots-small_40_00498f_2x2.png +0 -0
  18. data/demos/images/dot-luv/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  19. data/demos/images/dot-luv/ui-bg_flat_40_292929_40x100.png +0 -0
  20. data/demos/images/dot-luv/ui-bg_gloss-wave_20_111111_500x100.png +0 -0
  21. data/demos/images/dot-luv/ui-icons_00498f_256x240.png +0 -0
  22. data/demos/images/dot-luv/ui-icons_98d2fb_256x240.png +0 -0
  23. data/demos/images/dot-luv/ui-icons_9ccdfc_256x240.png +0 -0
  24. data/demos/images/dot-luv/ui-icons_ffffff_256x240.png +0 -0
  25. data/demos/images/jquery-ui-base/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  26. data/demos/images/jquery-ui-base/ui-bg_flat_75_ffffff_40x100.png +0 -0
  27. data/demos/images/jquery-ui-base/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  28. data/demos/images/jquery-ui-base/ui-bg_glass_65_ffffff_1x400.png +0 -0
  29. data/demos/images/jquery-ui-base/ui-bg_glass_75_dadada_1x400.png +0 -0
  30. data/demos/images/jquery-ui-base/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  31. data/demos/images/jquery-ui-base/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  32. data/demos/images/jquery-ui-base/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  33. data/demos/images/jquery-ui-base/ui-icons_222222_256x240.png +0 -0
  34. data/demos/images/jquery-ui-base/ui-icons_2e83ff_256x240.png +0 -0
  35. data/demos/images/jquery-ui-base/ui-icons_454545_256x240.png +0 -0
  36. data/demos/images/jquery-ui-base/ui-icons_888888_256x240.png +0 -0
  37. data/demos/images/jquery-ui-base/ui-icons_cd0a0a_256x240.png +0 -0
  38. data/demos/index.html +65 -0
  39. data/demos/js/demo.js +189 -0
  40. data/demos/sass/_base.scss +5 -0
  41. data/demos/sass/_demo.scss +124 -0
  42. data/demos/sass/_normalize.scss +387 -0
  43. data/demos/sass/absolution.scss +3 -0
  44. data/demos/sass/color-test.scss +111 -0
  45. data/demos/sass/default.scss +3 -0
  46. data/demos/sass/dot-luv.scss +3 -0
  47. data/demos/sass/ie.scss +5 -0
  48. data/demos/sass/print.scss +3 -0
  49. data/demos/sass/smoothness.scss +3 -0
  50. data/demos/sections/accordion.html +56 -0
  51. data/demos/sections/autocomplete.html +6 -0
  52. data/demos/sections/buttons.html +19 -0
  53. data/demos/sections/combinations.html +41 -0
  54. data/demos/sections/datepicker.html +6 -0
  55. data/demos/sections/dialog.html +8 -0
  56. data/demos/sections/form.html +26 -0
  57. data/demos/sections/highlights.html +16 -0
  58. data/demos/sections/icons.html +219 -0
  59. data/demos/sections/overlay.html +14 -0
  60. data/demos/sections/progressbar.html +6 -0
  61. data/demos/sections/sliders.html +19 -0
  62. data/demos/sections/tabs.html +12 -0
  63. data/lib/compass-ui.rb +2 -0
  64. data/lib/compass-ui/compass_plugin.rb +5 -0
  65. data/lib/compass-ui/version.rb +3 -0
  66. data/stylesheets/_compass-ui.scss +1 -0
  67. data/stylesheets/compass-ui/_colors.scss +67 -0
  68. data/stylesheets/compass-ui/_jquery-ui.scss +13 -0
  69. data/stylesheets/compass-ui/jquery-ui/_accordion.scss +50 -0
  70. data/stylesheets/compass-ui/jquery-ui/_autocomplete.scss +56 -0
  71. data/stylesheets/compass-ui/jquery-ui/_button.scss +101 -0
  72. data/stylesheets/compass-ui/jquery-ui/_core.scss +89 -0
  73. data/stylesheets/compass-ui/jquery-ui/_datepicker.scss +167 -0
  74. data/stylesheets/compass-ui/jquery-ui/_dialog.scss +61 -0
  75. data/stylesheets/compass-ui/jquery-ui/_progressbar.scss +17 -0
  76. data/stylesheets/compass-ui/jquery-ui/_resizable.scss +78 -0
  77. data/stylesheets/compass-ui/jquery-ui/_selectable.scss +15 -0
  78. data/stylesheets/compass-ui/jquery-ui/_slider.scss +55 -0
  79. data/stylesheets/compass-ui/jquery-ui/_tabs.scss +53 -0
  80. data/stylesheets/compass-ui/jquery-ui/_theme.scss +796 -0
  81. data/stylesheets/compass-ui/theme/_absolution.scss +151 -0
  82. data/stylesheets/compass-ui/theme/_dot-luv.scss +115 -0
  83. data/stylesheets/compass-ui/theme/_jquery-ui-base.scss +160 -0
  84. data/stylesheets/compass-ui/theme/_smoothness.scss +35 -0
  85. data/stylesheets/compass-ui/theme/absolution/_accordion.scss +65 -0
  86. data/stylesheets/compass-ui/theme/absolution/_autocomplete.scss +41 -0
  87. data/stylesheets/compass-ui/theme/absolution/_datepicker.scss +149 -0
  88. data/stylesheets/compass-ui/theme/absolution/_dialog.scss +84 -0
  89. data/stylesheets/compass-ui/theme/absolution/_progressbar.scss +14 -0
  90. data/stylesheets/compass-ui/theme/absolution/_slider.scss +50 -0
  91. data/stylesheets/compass-ui/theme/absolution/_tabs.scss +68 -0
  92. data/templates/project/_compass-ui.scss +2 -0
  93. data/templates/project/manifest.rb +12 -0
  94. metadata +150 -0
@@ -0,0 +1,5 @@
1
+ // @import "normalize";
2
+ @import "compass/reset";
3
+ @import "blueprint/grid";
4
+ @import "demo";
5
+
@@ -0,0 +1,124 @@
1
+ @import "compass/css3/images";
2
+ @import "compass/css3/border-radius";
3
+
4
+ $test-blue: #049CDB;
5
+ $test-blue-dark: #0064CD;
6
+ $test-red: #9D261D;
7
+ $test-orange: #F89406;
8
+ $test-green: #46A546;
9
+
10
+ body{
11
+ font: 62.5% Arial, Helvetica, sans-serif;
12
+ margin: 20px 0;
13
+ }
14
+
15
+
16
+ #container {
17
+ @include container;
18
+
19
+ #header, #footer {
20
+ @include column(24, true);
21
+ background-color: $test-blue-dark;
22
+ @include background-image(linear-gradient($test-blue, $test-blue-dark));
23
+ @include border-radius(5px);
24
+ color: white;
25
+ margin-bottom: 10px;
26
+
27
+ h1 {
28
+ font-size: 2.0em;
29
+ color: white;
30
+ margin: 6px;
31
+ padding: 10px 0;
32
+ }
33
+
34
+ }
35
+
36
+ // a {
37
+ // color: $test-blue-dark;
38
+ // &:hover {
39
+ // color: $test-blue;
40
+ // }
41
+ // }
42
+
43
+ #content {
44
+ @include column(18);
45
+ padding-top: 10px;
46
+ }
47
+
48
+ #sidebar {
49
+ @include column(6, true);
50
+
51
+ a {
52
+ display: block;
53
+ margin: 5px 0;
54
+ text-decoration: none;
55
+ }
56
+
57
+ p, div {
58
+ font-size: 1.5em;
59
+ padding: 0.9em 0.7em;
60
+ }
61
+ // #toggle-css {
62
+ // font-size: 1.5em;
63
+ // padding: 0.9em 0.7em;
64
+ // }
65
+ }
66
+ }
67
+
68
+ .demoHeaders {
69
+ margin-top: 2em;
70
+ margin-bottom: 1em;
71
+ }
72
+ ul#icons {
73
+ margin: 0;
74
+ padding: 0;}
75
+ ul#icons li {
76
+ margin: 2px;
77
+ position: relative;
78
+ padding: 4px 0;
79
+ cursor: pointer;
80
+ float: left;
81
+ list-style: none; }
82
+ ul#icons span.ui-icon {
83
+ float: left;
84
+ margin: 0 4px; }
85
+ .columnbox {
86
+ width: 500px; }
87
+ #eq span {
88
+ height: 120px;
89
+ float: left;
90
+ margin: 15px; }
91
+ #countries { width: 300px; }
92
+
93
+ h1 {
94
+ font-size: 2.0em;
95
+ font-weight: bold;
96
+ color: $test-blue-dark;
97
+ }
98
+ h2 {
99
+ font-size: 1.5em;
100
+ font-weight: bold;
101
+ }
102
+
103
+ h2#showing {
104
+ @include border-radius(5px);
105
+ // @include background-image(linear-gradient($test-blue, $test-blue-dark));
106
+ // @include background-image(linear-gradient(lighten($test-orange, 20%), $test-orange));
107
+ background-color: $test-green;
108
+ @include background-image(linear-gradient(lighten($test-green, 20%), $test-green));
109
+ color: darken($test-green, 18%);
110
+ padding: 0.9em;
111
+ span {
112
+ color: white;
113
+ }
114
+ }
115
+
116
+ p {
117
+ font-size: 1.3em;
118
+ padding: 5px 0;
119
+ }
120
+
121
+ strong {
122
+ font-weight: bold;
123
+ }
124
+
@@ -0,0 +1,387 @@
1
+ /* =============================================================================
2
+ normalize.css
3
+ 2011-07-06T20:20 UTC
4
+ //github.com/jonathantneal/normalize.css
5
+
6
+ Normalize.css is a customisable CSS file that makes browsers render all
7
+ elements more consistently and in line with modern standards. We researched
8
+ the differences between default browser styles in order to precisely target
9
+ only the styles that need normalizing.
10
+
11
+ How comment documentation is written:
12
+ Comments: (anchor) (type of change) (summary of issue) in (affected browsers)
13
+ Url: (url related to above comment)
14
+
15
+ To be concise, comments are restricted to a length of 77 characters or less.
16
+
17
+ What 'types of change' mean:
18
+ Addresses: Changes involving downgrades for greater cross-browser consistency
19
+ Corrects: Bug fixes and corrections to unexpected visual quirks
20
+ Improves: Improvements based on popular usage and html5 recommendation
21
+ ========================================================================== */
22
+
23
+
24
+ /* =============================================================================
25
+ Base
26
+ ========================================================================== */
27
+
28
+ /*
29
+ * Corrects block display not defined in IE6/7/8/9 & FF3
30
+ */
31
+
32
+ article,
33
+ aside,
34
+ details,
35
+ figcaption,
36
+ figure,
37
+ footer,
38
+ header,
39
+ hgroup,
40
+ nav,
41
+ section {
42
+ display: block;
43
+ }
44
+
45
+ /*
46
+ * 1. Improves visual focus of mouse in all browsers
47
+ * 2. Corrects text resizing oddly when font size is set using ems in IE6/7
48
+ * http://clagnut.com/blog/348/#c790
49
+ * 3. Corrects page centering in all browsers regardless of content height
50
+ * 4. Improves visual appearance of containers during a delegated click in mSaf
51
+ * www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
52
+ * 5. Corrects text resizing oddly after orientation change in all handhelds
53
+ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
54
+ */
55
+
56
+ html {
57
+ cursor: default; /* 1 */
58
+ font-size: 100%; /* 2 */
59
+ overflow-y: scroll; /* 3 */
60
+ -webkit-tap-highlight-color: transparent; /* 4 */
61
+ -ms-text-size-adjust: 100%; /* 5 */
62
+ -webkit-text-size-adjust: 100%; /* 5 */
63
+ }
64
+
65
+ /*
66
+ * 1. Addresses text resizing limitations in IE6/7
67
+ * Improves text sizing inconsistency in all browsers
68
+ * Known issue: text sizing unnecessary for 'form'
69
+ * 2. Improves margins set oddly in IE6/7 FF3/4 S5 C10
70
+ */
71
+
72
+ body,
73
+ form,
74
+ input,
75
+ button,
76
+ select,
77
+ textarea {
78
+ font-size: 100%; /* 1 */
79
+ margin: 0; /* 2 */
80
+ }
81
+
82
+
83
+ /* =============================================================================
84
+ Links
85
+ ========================================================================== */
86
+
87
+ /*
88
+ * Improves appearance when active or hovered in all browsers
89
+ * people.opera.com/patrickl/experiments/keyboard/test
90
+ */
91
+
92
+ a,
93
+ a:active,
94
+ a:hover {
95
+ outline: none;
96
+ }
97
+
98
+ /*
99
+ * Addresses outline set oddly in C10
100
+ */
101
+
102
+ a:focus {
103
+ outline: thin dotted;
104
+ }
105
+
106
+
107
+ /* =============================================================================
108
+ Typography
109
+ ========================================================================== */
110
+
111
+ /*
112
+ * Corrects styling not present in IE6/7/8/9 S5 C10
113
+ */
114
+
115
+ abbr {
116
+ _border-bottom: expression(this.title ? '1px dotted' : 'none');
117
+ }
118
+
119
+ abbr[title] {
120
+ border-bottom: 1px dotted;
121
+ }
122
+
123
+ /*
124
+ * Corrects style set incorrectly as 'bolder' in FF3/4 S4/5 C10
125
+ */
126
+
127
+ b,
128
+ strong {
129
+ font-weight: bold;
130
+ }
131
+
132
+ /*
133
+ * Corrects styling not present in S5 C10
134
+ */
135
+
136
+ dfn {
137
+ font-style: italic;
138
+ }
139
+
140
+ /*
141
+ * Corrects styling not present in IE6/7/8/9
142
+ */
143
+
144
+ mark {
145
+ background: #FF0;
146
+ color: #000;
147
+ }
148
+
149
+ /*
150
+ * Corrects font family displayed oddly in IE6 S5 C10
151
+ * en.wikipedia.org/wiki/User:Davidgothberg/Test59
152
+ */
153
+
154
+ pre,
155
+ code,
156
+ kbd,
157
+ samp {
158
+ font-family: monospace, monospace;
159
+ _font-family: 'courier new', monospace;
160
+ font-size: 1em;
161
+ }
162
+
163
+ /*
164
+ * Improves readability of pre-formatted text in all browsers
165
+ */
166
+
167
+ pre {
168
+ white-space: pre;
169
+ white-space: pre-wrap;
170
+ word-wrap: break-word;
171
+ }
172
+
173
+ /*
174
+ * Addresses CSS quotes not supported in IE6/7
175
+ */
176
+
177
+ q {
178
+ quotes: none;
179
+ }
180
+
181
+ /*
182
+ * Addresses quote property not supported in S4
183
+ */
184
+
185
+ q:before,
186
+ q:after {
187
+ content: '';
188
+ content: none;
189
+ }
190
+
191
+ /*
192
+ * Improves appearance in all browsers
193
+ */
194
+
195
+ small,
196
+ sub,
197
+ sup {
198
+ font-size: 75%;
199
+ }
200
+
201
+ /*
202
+ * Improves appearance in all browsers
203
+ * gist.github.com/413930
204
+ */
205
+
206
+ sub,
207
+ sup {
208
+ line-height: 0;
209
+ position: relative;
210
+ vertical-align: baseline;
211
+ }
212
+
213
+ sup {
214
+ top: -0.5em;
215
+ }
216
+
217
+ sub {
218
+ bottom: -0.25em;
219
+ }
220
+
221
+
222
+ /* =============================================================================
223
+ Lists
224
+ ========================================================================== */
225
+
226
+ /*
227
+ * Improves appearance of navigation-specific lists
228
+ */
229
+
230
+ nav ul {
231
+ list-style: none;
232
+ }
233
+
234
+ /* =============================================================================
235
+ Embedded content
236
+ ========================================================================== */
237
+
238
+ /*
239
+ * Corrects display not defined in IE6/7/8/9 & FF3
240
+ */
241
+
242
+ audio[controls],
243
+ canvas,
244
+ video {
245
+ display: inline-block;
246
+ *display: inline;
247
+ }
248
+
249
+ audio {
250
+ display: none;
251
+ _display: expression(this.controls ? 'inline' : 'none');
252
+ *zoom: 1;
253
+ }
254
+
255
+ audio[controls] {
256
+ display: inline-block;
257
+ }
258
+
259
+ /*
260
+ * 1. Improves readability when inside 'a' in all browsers
261
+ * 2. Improves visual appearance when scaled in IE7
262
+ * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
263
+ */
264
+
265
+ img {
266
+ border: 0; /* 1 */
267
+ -ms-interpolation-mode: bicubic; /* 2 */
268
+ }
269
+
270
+ /*
271
+ * Corrects overflow displayed oddly in IE9
272
+ */
273
+
274
+ svg:not(:root) {
275
+ overflow: hidden;
276
+ }
277
+
278
+
279
+ /* =============================================================================
280
+ Forms
281
+ ========================================================================== */
282
+
283
+ /*
284
+ * Corrects alignment displayed oddly in IE6/7
285
+ */
286
+
287
+ legend {
288
+ *margin-left: -7px;
289
+ }
290
+
291
+ /*
292
+ * Improves appearance in all browsers
293
+ */
294
+
295
+ button,
296
+ input,
297
+ select,
298
+ textarea {
299
+ -webkit-appearance: none;
300
+ border-radius: 0;
301
+ vertical-align: baseline;
302
+ *vertical-align: middle;
303
+ }
304
+
305
+ /*
306
+ * 1. Corrects FF3/4 setting it using !important in the UA stylesheet
307
+ * 2. Corrects spacing displayed oddly in IE6/7
308
+ * 3. Corrects inability to style clickable 'input' types in iOS
309
+ */
310
+
311
+ button,
312
+ input {
313
+ line-height: normal; /* 1 */
314
+ _overflow: expression(this.type == 'button|reset|submit' ? 'visible' : ''); /* 2 */
315
+ }
316
+
317
+ /* 3 */
318
+
319
+ button,
320
+ input[type="button"],
321
+ input[type="reset"],
322
+ input[type="submit"] {
323
+ overflow: visible;
324
+ }
325
+
326
+ /*
327
+ * Addresses box sizing forced to border-box in IE6/7
328
+ */
329
+
330
+ input[type="checkbox"],
331
+ input[type="radio"] {
332
+ box-sizing: border-box;
333
+ }
334
+
335
+ /*
336
+ * Addresses sizing set oddly to searchfield in S5 iOS C10
337
+ * Known issue: -moz included to future-proof
338
+ */
339
+
340
+ input[type="search"] {
341
+ -moz-box-sizing: content-box;
342
+ -webkit-box-sizing: content-box;
343
+ box-sizing: content-box;
344
+ }
345
+
346
+ /*
347
+ * Addresses inner padding displayed oddly in S5 C10 on OSX
348
+ */
349
+
350
+ input[type="search"]::-webkit-search-decoration {
351
+ -webkit-appearance: none;
352
+ }
353
+
354
+ /*
355
+ * Corrects appearance displayed oddly in FF3/4
356
+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
357
+ */
358
+
359
+ button::-moz-focus-inner,
360
+ input::-moz-focus-inner {
361
+ border: 0;
362
+ padding: 0;
363
+ }
364
+
365
+ /*
366
+ * 1. Corrects scrollbar displayed oddly in IE6/7/8/9
367
+ * 2. Improves readability and alignment in all browsers
368
+ */
369
+
370
+ textarea {
371
+ overflow: auto; /* 1 */
372
+ vertical-align: top; /* 2 */
373
+ }
374
+
375
+ /* =============================================================================
376
+ Tables
377
+ ========================================================================== */
378
+
379
+ /*
380
+ * Improves visual appearance in all browsers
381
+ */
382
+
383
+ table {
384
+ border-collapse: collapse;
385
+ border-spacing: 0;
386
+ }
387
+