hpoydar-compass-aristo-plugin 0.2.6

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 (55) hide show
  1. data/.gitignore +5 -0
  2. data/Aristo-24.png +0 -0
  3. data/README.md +46 -0
  4. data/Rakefile +47 -0
  5. data/VERSION +1 -0
  6. data/compass-aristo-plugin.gemspec +96 -0
  7. data/config.rb +10 -0
  8. data/examples/aristo/.gitignore +1 -0
  9. data/examples/aristo/config.rb +9 -0
  10. data/examples/aristo/images/.gitignore +2 -0
  11. data/examples/aristo/index.html +299 -0
  12. data/examples/aristo/index.html.haml +235 -0
  13. data/examples/aristo/src/.gitignore +1 -0
  14. data/examples/aristo/src/screen.sass +71 -0
  15. data/examples/aristo/stylesheets/.gitignore +1 -0
  16. data/lib/aristo.rb +2 -0
  17. data/lib/aristo/compass_plugin.rb +5 -0
  18. data/lib/aristo/sass_extensions.rb +7 -0
  19. data/sass/aristo/_all.sass +6 -0
  20. data/sass/aristo/_buttons.sass +42 -0
  21. data/sass/aristo/_controls.sass +55 -0
  22. data/sass/aristo/_menus.sass +43 -0
  23. data/sass/aristo/_scrollbars.sass +66 -0
  24. data/sass/aristo/_text.sass +13 -0
  25. data/sass/aristo/_windows.sass +1 -0
  26. data/templates/project/aristo-button-bezel-blue-o.png +0 -0
  27. data/templates/project/aristo-button-bezel-blue-x.png +0 -0
  28. data/templates/project/aristo-button-bezel-o.png +0 -0
  29. data/templates/project/aristo-button-bezel-x.png +0 -0
  30. data/templates/project/aristo-checkbox-o.png +0 -0
  31. data/templates/project/aristo-checkbox-x.png +0 -0
  32. data/templates/project/aristo-menu-bg.png +0 -0
  33. data/templates/project/aristo-menu-inverse-bg.png +0 -0
  34. data/templates/project/aristo-radio-o.png +0 -0
  35. data/templates/project/aristo-radio-x.png +0 -0
  36. data/templates/project/aristo-scroller-down-arrow-o.png +0 -0
  37. data/templates/project/aristo-scroller-down-arrow-track.png +0 -0
  38. data/templates/project/aristo-scroller-down-arrow-x.png +0 -0
  39. data/templates/project/aristo-scroller-horizontal-knob.png +0 -0
  40. data/templates/project/aristo-scroller-horizontal-track.png +0 -0
  41. data/templates/project/aristo-scroller-left-arrow-track.png +0 -0
  42. data/templates/project/aristo-scroller-left-arrow.png +0 -0
  43. data/templates/project/aristo-scroller-right-arrow-track.png +0 -0
  44. data/templates/project/aristo-scroller-right-arrow.png +0 -0
  45. data/templates/project/aristo-scroller-up-arrow-track.png +0 -0
  46. data/templates/project/aristo-scroller-up-arrow.png +0 -0
  47. data/templates/project/aristo-scroller-vertical-knob.png +0 -0
  48. data/templates/project/aristo-scroller-vertical-track.png +0 -0
  49. data/templates/project/aristo-select.png +0 -0
  50. data/templates/project/aristo-slider-horizontal-track.png +0 -0
  51. data/templates/project/aristo-slider-knob-o.png +0 -0
  52. data/templates/project/aristo-slider-knob-x.png +0 -0
  53. data/templates/project/aristo.sass +11 -0
  54. data/templates/project/manifest.rb +27 -0
  55. metadata +116 -0
@@ -0,0 +1,235 @@
1
+ !!!
2
+ %html{ :lang => "en" }
3
+
4
+ %head
5
+ %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
6
+ %title
7
+ Aristo
8
+ %link{ :href => "stylesheets/screen.css", :rel => "stylesheet", :media => "screen, projection", :type => "text/css" }
9
+
10
+ %body
11
+
12
+ #header.container
13
+ %h1
14
+ Aristo
15
+ %h2
16
+ Something believed to be the best of it's kind:
17
+ %i
18
+ the trout is the aristocrat of freshwater fish
19
+
20
+ %p.compass
21
+ Examples of the CSS3
22
+ %a{:href => 'http://github.com/hpoydar/compass-aristo-plugin'} Aristo plugin
23
+ for the
24
+ %a{:href => 'http://compass-style.org'} Compass
25
+ CSS authoring framework in action. Looks best in Webkit browsers (Safari, Chrome).
26
+
27
+ .section.container
28
+ %h2
29
+ Buttons
30
+
31
+ .column.span-8
32
+ %p
33
+ %button.aristo-default
34
+ More
35
+
36
+ %button.aristo-default{:disabled => 'disabled'}
37
+ More
38
+
39
+ %p.compass
40
+ %code
41
+ button.aristo-default
42
+ or
43
+ %code
44
+ +aristo-default-button
45
+
46
+ .column.span-8.last
47
+ %p
48
+ %button.aristo-blue
49
+ More
50
+
51
+ %button.aristo-blue{:disabled => 'disabled'}
52
+ More
53
+
54
+ %p.compass
55
+ %code
56
+ button.aristo-blue
57
+ or
58
+ %code
59
+ +aristo-blue-button
60
+
61
+
62
+
63
+ .section.container
64
+ %h2
65
+ Controls
66
+
67
+ .column.span-8
68
+ %p
69
+ %input.aristo{:type => 'checkbox', :id => 'checkbox_a'}
70
+ %label.aristo-checkbox{:for => 'checkbox_a'}
71
+ Checkbox A
72
+ %br
73
+ %input.aristo{:type => 'checkbox', :id => 'checkbox_b'}
74
+ %label.aristo-checkbox{:for => 'checkbox_b'}
75
+ Checkbox B
76
+
77
+
78
+ %p.compass
79
+ %code
80
+ label.aristo-checkbox
81
+ and
82
+ %code
83
+ input[type=checkbox].aristo
84
+ or
85
+ %code
86
+ +aristo-checkbox
87
+
88
+ .column.span-8
89
+ %p
90
+ %input.aristo{:type => 'radio', :name => 'radio', :value => 'a', :id => 'radio_a', :checked => 'checked'}
91
+ %label.aristo-radio{:for => 'radio_a'}
92
+ Radio A
93
+ %br
94
+ %input.aristo{:type => 'radio', :name => 'radio', :value => 'b', :id => 'radio_b'}
95
+ %label.aristo-radio{:for => 'radio_b'}
96
+ Radio B
97
+ %br
98
+ %input.aristo{:type => 'radio', :name => 'radio', :value => 'c', :id => 'radio_c'}
99
+ %label.aristo-radio{:for => 'radio_c'}
100
+ Radio C
101
+
102
+ %p.compass
103
+ %code
104
+ label.aristo-radio
105
+ and
106
+ %code
107
+ input[type=radio].aristo
108
+ or
109
+ %code
110
+ +aristo-radio
111
+
112
+
113
+ .column.span-8.last
114
+ %p
115
+ %input{:type => 'range'}
116
+
117
+ %p.compass
118
+ %code
119
+ +aristo-slider
120
+
121
+ .column.span-8
122
+ %p
123
+ %select
124
+ %option
125
+ Target A
126
+ %option
127
+ Target B
128
+ %option
129
+ Target C
130
+
131
+ .section.container
132
+ %h2
133
+ Menus
134
+
135
+ .column.span-8
136
+
137
+ %ul.aristo-menu
138
+ %li
139
+ %a
140
+ New
141
+ %li
142
+ %a
143
+ Open
144
+ %li
145
+ %a
146
+ Save
147
+ %li
148
+ %a
149
+ Project
150
+ %li
151
+ %a
152
+ Build
153
+
154
+ %p.compass
155
+ %code
156
+ ul.aristo-menu
157
+ or
158
+ %code
159
+ +aristo-menu
160
+
161
+ .column.span-8
162
+
163
+ %ul.aristo-menu-inverse
164
+ %li
165
+ %a
166
+ New
167
+ %li
168
+ %a
169
+ Open
170
+ %li
171
+ %a
172
+ Save
173
+ %li
174
+ %a
175
+ Project
176
+ %li
177
+ %a
178
+ Build
179
+
180
+ %p.compass
181
+ %code
182
+ ul.aristo-menu-inverse
183
+ or
184
+ %code
185
+ +aristo-menu-inverse
186
+
187
+
188
+ .section.container
189
+ %h2
190
+ Scrollbars
191
+
192
+ %div.span-8{:style => "overflow: scroll; height: 300px;"}
193
+ %p.span-16
194
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ut tincidunt augue. Nunc placerat, libero eu lobortis mollis, mi lectus tristique metus, vel tincidunt nibh est sed odio. Donec euismod ultricies est, nec porta ipsum dictum sit amet. Suspendisse lacus purus, ullamcorper eget rutrum ut, laoreet vitae velit. Nam in leo eu nisi congue sagittis sed sed nisi. Sed ultricies luctus justo. Pellentesque orci arcu, vulputate vel dapibus non, posuere a orci. Suspendisse quis massa magna. Suspendisse potenti. Fusce placerat tempor purus id euismod. Praesent et turpis nisl, in pellentesque nisl. Nam vulputate justo tristique turpis tincidunt id dictum orci aliquet.
195
+ %p.span-16
196
+ Phasellus laoreet justo non libero lacinia fermentum commodo felis ornare. Quisque in est quis turpis venenatis gravida. Nullam eu enim quis mauris ultricies sollicitudin. Nunc convallis ante et massa condimentum nec interdum nibh ornare. Morbi fringilla sapien vel lacus ultricies id malesuada purus dignissim. Donec ut ornare nulla. Phasellus ipsum urna, venenatis at lacinia pulvinar, faucibus non metus. Proin adipiscing porttitor mollis. Nam risus dui, hendrerit sed elementum vitae, eleifend nec sem. Nunc vehicula, ligula eget sagittis dictum, tellus leo eleifend lorem, eget semper neque lorem in erat. Nunc non risus non velit mattis ultricies. Nunc volutpat feugiat justo id sollicitudin. Praesent in odio neque, id tempor diam.
197
+ %p.span-16
198
+ Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas egestas tempus ornare. Ut adipiscing feugiat tincidunt. Sed adipiscing imperdiet nisl, vitae mollis ante venenatis ut. Donec mollis, nulla vel malesuada vehicula, risus sem faucibus arcu, sed varius velit justo et risus. Mauris iaculis commodo erat, eget suscipit mi tempus in. Nullam venenatis sapien nec est mollis lacinia. Aenean placerat suscipit lectus, a luctus libero eleifend vel. Cras turpis mi, porta eget pharetra id, pharetra eget felis. Ut ac eros justo. Duis quis velit consequat eros placerat malesuada. In luctus lacus ut felis euismod porttitor. Aliquam tristique augue quis nunc imperdiet cursus. Aliquam erat volutpat. Donec leo est, placerat vel tristique at, imperdiet ut massa. Maecenas vel tortor a mi sodales eleifend eleifend eget nibh. Cras sagittis vehicula velit, et ultricies ante vehicula sit amet. Fusce massa risus, tempor eget elementum pharetra, sodales eu felis. Nam ut tellus neque, vitae dapibus purus.
199
+
200
+ %p.compass.span-8
201
+ %code
202
+ +aristo-scrollbars
203
+
204
+ .section.container.text
205
+ %h2
206
+ Text
207
+
208
+ %p
209
+ %span.regular
210
+ ARIAL Regular 12/22
211
+
212
+ %p
213
+ %span.bold
214
+ ARIAL Bold 14/24
215
+
216
+ %p.compass.span-8
217
+ %code
218
+ +regular-aristo-font
219
+ or
220
+ %code
221
+ +bold-aristo-font
222
+
223
+ .section.container
224
+ %h2
225
+ Windows
226
+
227
+ %p
228
+ %i
229
+ TODO
230
+
231
+
232
+ #footer.container
233
+ = 'This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative Commons Attribution-Share Alike 3.0 United States License</a><br /><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/us/88x31.png" /></a>'
234
+
235
+
@@ -0,0 +1 @@
1
+ aristo.sass
@@ -0,0 +1,71 @@
1
+ @import blueprint
2
+ @import compass/reset
3
+ @import aristo
4
+
5
+ +blueprint-grid
6
+
7
+ body
8
+ +regular-aristo-font
9
+ :color #333
10
+
11
+ p
12
+ :margin 10px 0
13
+
14
+ a
15
+ :color rgb(50, 116, 209)
16
+
17
+ #header
18
+ :margin-top 40px
19
+
20
+ h1
21
+ :text-transform uppercase
22
+ :font-size 36px
23
+ :font-weight bold
24
+ :height 36px
25
+ :line-height 36px
26
+ :color #000
27
+
28
+ .section
29
+ :margin-top 20px
30
+
31
+ h2
32
+ :color #999
33
+ :border-bottom 1px solid #ccc
34
+ :font-size 10px
35
+ :line-height 12px
36
+ :margin-bottom 15px
37
+ :text-transform uppercase
38
+ :letter-spacing 1px
39
+
40
+ &.text
41
+ .regular
42
+ +regular-aristo-font
43
+ .bold
44
+ +bold-aristo-font
45
+
46
+ #footer
47
+ :border-top 1px solid #ccc
48
+ :text-align right
49
+ :margin-top 20px
50
+ :padding-top 10px
51
+ :margin-bottom 40px
52
+ :font-size 11px
53
+ :color #999
54
+ a
55
+ :color #999
56
+
57
+ p.compass
58
+ :padding 7px
59
+ :margin 10px 15px 10px 0
60
+ :background #f1f1f1
61
+ :color #666
62
+
63
+ code
64
+ :font-family Monaco, 'Courier New', Tahoma, monospace
65
+ :color #38667f
66
+ :font-size 11px
67
+
68
+ +aristo-slider
69
+
70
+ +aristo-scrollbars
71
+
@@ -0,0 +1 @@
1
+ *.css
data/lib/aristo.rb ADDED
@@ -0,0 +1,2 @@
1
+ require File.join(File.dirname(__FILE__), 'aristo', 'compass_plugin')
2
+ require File.join(File.dirname(__FILE__), 'aristo', 'sass_extensions')
@@ -0,0 +1,5 @@
1
+ options = {}
2
+ options[:stylesheets_directory] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'sass'))
3
+ options[:templates_directory] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'templates'))
4
+
5
+ Compass::Frameworks.register('aristo', options)
@@ -0,0 +1,7 @@
1
+ require 'sass'
2
+
3
+ module Sass::Script::Functions
4
+ def enumerate(prefix, from_index, to_index)
5
+ Sass::Script::String.new(((from_index.value)..(to_index.value)).map{|i| "#{prefix}#{i}"}.join(", "))
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ @import aristo/text
2
+ @import aristo/buttons
3
+ @import aristo/controls
4
+ @import aristo/menus
5
+ @import aristo/scrollbars
6
+ @import aristo/windows
@@ -0,0 +1,42 @@
1
+ // Buttons
2
+
3
+ =aristo-default-button
4
+ +bold-aristo-font
5
+ -khtml-appearance: none
6
+ -moz-appearance: none
7
+ :padding 0px 13px
8
+ :background none
9
+ :margin 5px
10
+ :-webkit-border-image= image_url("aristo-button-bezel-o.png") "2 2 2 2" "stretch" "stretch"
11
+ :-moz-border-image= image_url("aristo-button-bezel-o.png") "2 2 2 2" "stretch" "stretch"
12
+ :color #4F4F4F
13
+ :-webkit-transition -webkit-box-shadow 0.2s linear
14
+ :text-shadow 0px 1px 1px #fff
15
+ :height 24px
16
+ :line-height 20px
17
+ &:hover
18
+ -webkit-box-shadow: 0 0 5px #d4d4d4
19
+ -moz-box-shadow: 0 0 5px #d4d4d4
20
+ &:active:not(:disabled)
21
+ :-webkit-border-image= image_url("aristo-button-bezel-x.png") "2 2 2 2" "stretch" "stretch"
22
+ :-moz-border-image= image_url("aristo-button-bezel-x.png") "2 2 2 2" "stretch" "stretch"
23
+ &:disabled
24
+ :opacity 0.5
25
+
26
+ =aristo-blue-button
27
+ +aristo-default-button
28
+ :-webkit-border-image= image_url("aristo-button-bezel-blue-o.png") "2 2 2 2" "stretch" "stretch"
29
+ :-moz-border-image= image_url("aristo-button-bezel-blue-o.png") "2 2 2 2" "stretch" "stretch"
30
+ :color #1c4257
31
+ &:hover
32
+ -webkit-box-shadow: 0 0 5px #A1CAE2
33
+ -moz-box-shadow: 0 0 5px #A1CAE2
34
+ &:active:not(:disabled)
35
+ :-webkit-border-image= image_url("aristo-button-bezel-blue-x.png") "2 2 2 2" "stretch" "stretch"
36
+ :-moz-border-image= image_url("aristo-button-bezel-blue-x.png") "2 2 2 2" "stretch" "stretch"
37
+
38
+ button.aristo-default
39
+ +aristo-default-button
40
+
41
+ button.aristo-blue
42
+ +aristo-blue-button
@@ -0,0 +1,55 @@
1
+ // Checkboxes and radio buttons
2
+
3
+ label.aristo-radio, label.aristo-checkbox
4
+ +bold-aristo-font
5
+
6
+ =aristo-checkbox
7
+ -khtml-appearance: none
8
+ background-image= image_url("aristo-checkbox-o.png")
9
+ :background-repeat no-repeat
10
+ :width 15px
11
+ :height 16px
12
+ :vertical-align top
13
+ &:checked
14
+ background-image= image_url("aristo-checkbox-x.png")
15
+
16
+ input.aristo
17
+ &[type="checkbox"]
18
+ +aristo-checkbox
19
+
20
+ =aristo-radio
21
+ -khtml-appearance: none
22
+ background-image= image_url("aristo-radio-o.png")
23
+ :background-repeat no-repeat
24
+ :width 17px
25
+ :height 17px
26
+ :vertical-align top
27
+ &:checked
28
+ background-image= image_url("aristo-radio-x.png")
29
+
30
+ input.aristo
31
+ &[type="radio"]
32
+ +aristo-radio
33
+
34
+
35
+ // Sliders
36
+
37
+ =aristo-slider
38
+ input[type="range"]
39
+ -khtml-appearance: none
40
+ :-webkit-border-image= image_url("aristo-slider-horizontal-track.png") "2 4 2 4 / 2px 4px 2px 4px" "repeat" "repeat"
41
+ :height 2px
42
+ :padding 0
43
+
44
+ ::-webkit-slider-thumb
45
+ -khtml-appearance: none
46
+ :background-image= image_url("aristo-slider-knob-o.png")
47
+ :background-repeat no-repeat
48
+ :width 23px
49
+ :height 24px
50
+ &:active
51
+ :background-image= image_url("aristo-slider-knob-x.png")
52
+
53
+
54
+
55
+ // Combo boxes
@@ -0,0 +1,43 @@
1
+ =aristo-menu
2
+ :list-style none
3
+ :height 28px
4
+ :margin 0
5
+ :padding 0
6
+ :display inline-block
7
+ :overflow hidden
8
+ :background-image= image_url("aristo-menu-bg.png")
9
+ :background-repeat repeat-x
10
+ :background-position center center
11
+ li
12
+ :float left
13
+ :margin 0
14
+ :padding 0 9px
15
+ &:first-child
16
+ :padding-left 18px
17
+ &:last-child
18
+ :padding-right 18px
19
+ :height 28px
20
+ a
21
+ :font-size 11px
22
+ :line-height 28px
23
+ :font-weight bold
24
+ :color #1c4257
25
+ :text-shadow 0px 1px 1px #fff
26
+ &:hover
27
+ :color #000
28
+
29
+ =aristo-menu-inverse
30
+ +aristo-menu
31
+ :background-image= image_url("aristo-menu-inverse-bg.png")
32
+ li
33
+ a
34
+ :color #a5a5a5
35
+ :text-shadow 0px 1px 1px #000
36
+ &:hover
37
+ :color #fff
38
+
39
+ ul.aristo-menu
40
+ +aristo-menu
41
+
42
+ ul.aristo-menu-inverse
43
+ +aristo-menu-inverse