gravityframework 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +6 -0
  3. data/Rakefile +1 -0
  4. data/bin/gravity-init.rb +11 -0
  5. data/gravityframework.gemspec +25 -0
  6. data/lib/gravityframework/src/images/baseline_20.png +0 -0
  7. data/lib/gravityframework/src/index.html +20 -0
  8. data/lib/gravityframework/src/javascripts/application.coffee +6 -0
  9. data/lib/gravityframework/src/javascripts/test/lib/jasmine-1.1.0.rc1/MIT.LICENSE +20 -0
  10. data/lib/gravityframework/src/javascripts/test/lib/jasmine-1.1.0.rc1/jasmine-html.js +190 -0
  11. data/lib/gravityframework/src/javascripts/test/lib/jasmine-1.1.0.rc1/jasmine.css +166 -0
  12. data/lib/gravityframework/src/javascripts/test/lib/jasmine-1.1.0.rc1/jasmine.js +2476 -0
  13. data/lib/gravityframework/src/javascripts/test/lib/jasmine-1.1.0.rc1/jasmine_favicon.png +0 -0
  14. data/lib/gravityframework/src/javascripts/test/spec/Application.spec.js +10 -0
  15. data/lib/gravityframework/src/javascripts/test/spec_runner.html +46 -0
  16. data/lib/gravityframework/src/rakefile +16 -0
  17. data/lib/gravityframework/src/stylesheets/css/style.css +841 -0
  18. data/lib/gravityframework/src/stylesheets/sass/lib/_core.sass +7 -0
  19. data/lib/gravityframework/src/stylesheets/sass/lib/_elements.sass +100 -0
  20. data/lib/gravityframework/src/stylesheets/sass/lib/_grid.sass +30 -0
  21. data/lib/gravityframework/src/stylesheets/sass/lib/_reset.sass +84 -0
  22. data/lib/gravityframework/src/stylesheets/sass/lib/_settings.sass +43 -0
  23. data/lib/gravityframework/src/stylesheets/sass/lib/_typography.sass +45 -0
  24. data/lib/gravityframework/src/stylesheets/sass/lib/helpers/_buttons.sass +15 -0
  25. data/lib/gravityframework/src/stylesheets/sass/lib/helpers/_classes.sass +24 -0
  26. data/lib/gravityframework/src/stylesheets/sass/lib/helpers/_forms.sass +184 -0
  27. data/lib/gravityframework/src/stylesheets/sass/lib/helpers/_media_queries.sass +113 -0
  28. data/lib/gravityframework/src/stylesheets/sass/lib/helpers/_mixins.sass +76 -0
  29. data/lib/gravityframework/src/stylesheets/sass/lib/helpers/_tables.sass +29 -0
  30. data/lib/gravityframework/src/stylesheets/sass/style.sass +38 -0
  31. data/lib/gravityframework/src/stylesheets/scss/lib/_core.scss +9 -0
  32. data/lib/gravityframework/src/stylesheets/scss/lib/_elements.scss +109 -0
  33. data/lib/gravityframework/src/stylesheets/scss/lib/_grid.scss +39 -0
  34. data/lib/gravityframework/src/stylesheets/scss/lib/_reset.scss +90 -0
  35. data/lib/gravityframework/src/stylesheets/scss/lib/_settings.scss +49 -0
  36. data/lib/gravityframework/src/stylesheets/scss/lib/_typography.scss +48 -0
  37. data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_buttons.scss +22 -0
  38. data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_classes.scss +25 -0
  39. data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_forms.scss +215 -0
  40. data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_media_queries.scss +169 -0
  41. data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_mixins.scss +83 -0
  42. data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_tables.scss +30 -0
  43. data/lib/gravityframework/src/stylesheets/scss/style.scss +38 -0
  44. data/lib/gravityframework/src/views/index.haml +21 -0
  45. data/lib/gravityframework/version.rb +3 -0
  46. data/lib/gravityframework.rb +6 -0
  47. data/lib/installer.rb +16 -0
  48. metadata +115 -0
@@ -0,0 +1,7 @@
1
+ @import _reset
2
+ @import helpers/_mixins
3
+ @import helpers/_tables
4
+ @import _typography
5
+ @import helpers/_classes
6
+ @import _grid
7
+ @import helpers/_forms
@@ -0,0 +1,100 @@
1
+ /* --------------------------------------------------------------
2
+ *
3
+ *PAGE ELEMENTS
4
+ *
5
+ *--------------------------------------------------------------
6
+
7
+ p
8
+ margin-bottom: $baseline
9
+
10
+ ul, ol
11
+ margin-bottom: $baseline
12
+
13
+ ul
14
+ list-style: none
15
+
16
+ ol
17
+ list-style-type: decimal
18
+
19
+ li
20
+ margin-bottom: $baseline / 2
21
+
22
+ ul li ul
23
+ margin-left: $baseline
24
+ margin-top: $baseline / 2
25
+ margin-bottom: $baseline / 2
26
+
27
+ dl
28
+ margin-bottom: $baseline
29
+
30
+ dl dt
31
+ font-weight: bold
32
+ margin-bottom: $baseline / 2
33
+
34
+ dl dd
35
+ margin-bottom: $baseline / 2
36
+
37
+ abbr, acronym
38
+ border-bottom: 1px dotted #000
39
+
40
+ address
41
+ font-style: italic
42
+
43
+ del
44
+ color: #000
45
+
46
+ a
47
+ color: $links
48
+ text-decoration: none
49
+ +transition
50
+ /* Force a hand pointer for all links
51
+ cursor: pointer
52
+
53
+ a:hover
54
+ text-decoration: none
55
+
56
+ blockquote
57
+ display: block
58
+
59
+ strong
60
+ font-weight: bold
61
+
62
+ em, dfn
63
+ font-style: italic
64
+
65
+ dfn
66
+ font-weight: bold
67
+
68
+ pre, code
69
+ margin: 10px 0
70
+ white-space: pre
71
+
72
+ pre, code, tt
73
+ font: 1em monospace
74
+ line-height: 1.5
75
+
76
+ tt
77
+ display: block
78
+
79
+ q
80
+ font-style: italic
81
+ font-weight: bold
82
+ font-family: $serif
83
+
84
+ cite
85
+ display: block
86
+ font-weight: bold
87
+
88
+ /* --------------------------------------------------------------
89
+ *
90
+ *IMAGES
91
+ *
92
+ *--------------------------------------------------------------
93
+
94
+ img
95
+ margin-bottom: 10px
96
+
97
+ figcaption
98
+ display: block
99
+ font-weight: bold
100
+ font-style: italic
@@ -0,0 +1,30 @@
1
+ /* --------------------------------------------------------------
2
+ *
3
+ *CSS GRID. www.owainlewis.com
4
+ *
5
+ *--------------------------------------------------------------
6
+
7
+ $col_width: ($width - $gutters * ($columns - 1)) / $columns
8
+ $col_total_width: $col_width + $gutters
9
+
10
+ =col($n: 1)
11
+ float: left
12
+ +buildColumn($n)
13
+
14
+ =last
15
+ margin-right: 0
16
+
17
+ =buildColumn($n: 1)
18
+ width: $n * $col_width + ($n - 1) * $gutters
19
+ @if $n == 1
20
+ +last
21
+ @if $n == columns
22
+ +last
23
+ @else
24
+ margin-right: $gutters
25
+
26
+ @for $i from 1 through $columns
27
+ .col-#{$i}
28
+ +col($i)
29
+ &:last-child
30
+ +last
@@ -0,0 +1,84 @@
1
+ html,body,div,span,object,iframe,
2
+ h1,h2,h3,h4,h5,h6,p,blockquote,pre,
3
+ abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,
4
+ small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,
5
+ fieldset,form,label,legend,
6
+ table,caption,tbody,tfoot,thead,tr,th,td,
7
+ article,aside,canvas,details,figcaption,figure,
8
+ footer,header,hgroup,menu,nav,section,summary,
9
+ time,mark,audio,video
10
+ margin: 0
11
+ padding: 0
12
+ border: 0
13
+ font-size: 100%
14
+ font: inherit
15
+ vertical-align: baseline
16
+
17
+ article,aside,details,figcaption,figure,
18
+ footer,header,hgroup,menu,nav,section
19
+ display: block
20
+
21
+ blockquote,q
22
+ quotes: none
23
+
24
+ blockquote:before,blockquote:after,
25
+ q:before,q:after
26
+ content: ""
27
+ content: none
28
+
29
+ ins
30
+ background-color: #ff9
31
+ color: #000
32
+ text-decoration: none
33
+
34
+ mark
35
+ background-color: #ff9
36
+ color: #000
37
+ font-style: italic
38
+ font-weight: bold
39
+
40
+ del
41
+ text-decoration: line-through
42
+
43
+ abbr[title],dfn[title]
44
+ border-bottom: 1px dotted
45
+ cursor: help
46
+
47
+ table
48
+ border-collapse: collapse
49
+ border-spacing: 0
50
+
51
+ hr
52
+ display: block
53
+ height: 1px
54
+ border: 0
55
+ border-top: 1px solid #ccc
56
+ margin: 1em 0
57
+ padding: 0
58
+
59
+ input,select
60
+ vertical-align: middle
61
+
62
+ textarea
63
+ overflow: auto
64
+
65
+ .ie6 legend,.ie7 legend
66
+ margin-left: -7px
67
+
68
+ input[wtype="radio"]
69
+ vertical-align: text-bottom
70
+
71
+ input[type="checkbox"]
72
+ vertical-align: bottom
73
+
74
+ .ie7 input[type="checkbox"]
75
+ vertical-align: baseline
76
+
77
+ .ie6 input
78
+ vertical-align: text-bottom
79
+
80
+ label,input[type="button"],input[type="submit"],input[type="image"],button
81
+ cursor: pointer
82
+
83
+ button,input,select,textarea
84
+ margin: 0
@@ -0,0 +1,43 @@
1
+ /* --------------------------------------------------------------
2
+ *
3
+ *Built with Gravity
4
+ *http://Gravityframework.com
5
+ *Version 0.0.1
6
+ *Developed by: Owain Lewis
7
+ *www.owainlewis.com
8
+ *License: MIT
9
+ *http://www.opensource.org/licenses/mit-license.php
10
+ *
11
+ *--------------------------------------------------------------
12
+
13
+ /*
14
+ *
15
+ *Grid Layout
16
+
17
+ $width: 940px
18
+ $gutters: 20px
19
+ $columns: 12
20
+ $baseline: 20px
21
+
22
+ /*
23
+ *
24
+ *Fonts
25
+
26
+ $sans: "Helvetica Neue", Helvetica, Arial, sans-serif
27
+ $serif: Georgia, Times, serif
28
+ $mono: "Lucida Console", "Andale Mono", monospace
29
+ $font-size: 14px
30
+
31
+ /*
32
+ *
33
+ *Colors
34
+
35
+ $background: white
36
+ $text: #333333
37
+ $links: #1c7fc4
38
+ $borders: #dddddd
39
+ $headings: #333333
40
+
41
+ $white: white
42
+ $grey: #666666
43
+ $black: black
@@ -0,0 +1,45 @@
1
+ /* --------------------------------------------------------------
2
+ *
3
+ *TYPOGRAPHY
4
+ *
5
+ *--------------------------------------------------------------
6
+
7
+ /* Default fonts and colors.
8
+ body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea
9
+ line-height: $baseline
10
+ font-family: $sans
11
+ color: $text
12
+ font-size: $font-size
13
+
14
+ /* --------------------------------------------------------------
15
+ *
16
+ *HEADINGS
17
+ *
18
+ *--------------------------------------------------------------
19
+
20
+ h1,h2,h3,h4,h5
21
+ margin-bottom: $baseline
22
+ color: $headings
23
+ font-weight: 900
24
+
25
+ h1
26
+ font-size: $baseline * 2
27
+ line-height: $baseline * 2
28
+
29
+ h2
30
+ font-size: $baseline
31
+ line-height: $baseline
32
+
33
+ h3
34
+ font-size: $baseline
35
+ line-height: $baseline
36
+
37
+ h4
38
+ font-size: $baseline
39
+ line-height: $baseline
40
+
41
+ h5
42
+ font-size: $baseline
43
+ line-height: $baseline
44
+
45
+ @import _elements
@@ -0,0 +1,15 @@
1
+ =button($color, $text_color, $width)
2
+ +rounded(10px)
3
+ +gradient(lighten($color, 30%), $color)
4
+ cursor: pointer
5
+ font-weight: bold
6
+ color: $text_color
7
+ display: block
8
+ border: 1px solid darken($color, 10%)
9
+ text-align: center
10
+ padding: 10px 20px
11
+ margin: 0 0 20px 0
12
+ @if $width
13
+ width: $width
14
+ &:hover
15
+ +gradient(lighten($color, 40%), lighten($color, 10%))
@@ -0,0 +1,24 @@
1
+ /* --------------------------------------------------------------
2
+ *
3
+ *GENERAL CLASSES
4
+ *
5
+ *--------------------------------------------------------------
6
+
7
+ .wrap
8
+ width: $width
9
+ margin: 0 auto
10
+
11
+ .clear
12
+ clear: both
13
+
14
+ .center
15
+ text-align: center
16
+
17
+ .uppercase
18
+ text-transform: uppercase
19
+
20
+ .titlecase
21
+ text-transform: capitalize
22
+
23
+ .invisible
24
+ visibility: hidden
@@ -0,0 +1,184 @@
1
+ /* --------------------------------------------------------------
2
+ *
3
+ *Form Settings.
4
+ *Most of this is inspired by the awesome work of Nathan Smith and formalize css!
5
+ *
6
+ *--------------------------------------------------------------
7
+
8
+ $formPadding: 5px
9
+
10
+ \::-moz-focus-inner
11
+ border: 0
12
+ padding: 0
13
+
14
+ input[type="search"]::-webkit-search-decoration
15
+ display: none
16
+
17
+ form
18
+ margin-bottom: $baseline
19
+
20
+ fieldset
21
+ margin-bottom: $baseline
22
+
23
+ input[type="text"]:focus,
24
+ input[type="password"]:focus,
25
+ input[type="email"]:focus,
26
+ input[type="tel"]:focus,
27
+ textarea:focus
28
+ border: 1px solid #aaa
29
+ color: #444
30
+
31
+ textarea
32
+ min-height: 100px
33
+ resize: none
34
+ overflow: auto
35
+ width: 100%
36
+
37
+ label,
38
+ legend
39
+ display: block
40
+ font-weight: bold
41
+ font-size: 13px
42
+
43
+ select
44
+ width: 100%
45
+
46
+ input[type="checkbox"]
47
+ display: inline
48
+
49
+ label span,
50
+ legend span
51
+ font-weight: normal
52
+ font-size: 13px
53
+ color: #444
54
+
55
+ input,
56
+ button,
57
+ select,
58
+ textarea
59
+ vertical-align: middle
60
+
61
+ input[type="radio"],
62
+ input[type="checkbox"]
63
+ position: relative
64
+ vertical-align: top
65
+ top: 3px
66
+ /* IE8, IE9, IE10
67
+ top: 0\0
68
+ /* IE7
69
+ *top: -3px
70
+ margin-right: 5px
71
+
72
+ /* iPad
73
+ @media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 1024px)
74
+ input[type="radio"],
75
+ input[type="checkbox"]
76
+ vertical-align: baseline
77
+ top: 2px
78
+
79
+ /* iPhone 3
80
+ @media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 480px)
81
+ input[type="radio"],
82
+ input[type="checkbox"]
83
+ vertical-align: baseline
84
+ top: 0
85
+
86
+ /* iPhone 4
87
+ @media (-webkit-min-device-pixel-ratio: 2) and (max-device-width: 480px)
88
+ input[type="radio"],
89
+ input[type="checkbox"]
90
+ vertical-align: baseline
91
+ top: 0
92
+
93
+ textarea,
94
+ select,
95
+ input[type="date"],
96
+ input[type="datetime"],
97
+ input[type="datetime-local"],
98
+ input[type="email"],
99
+ input[type="month"],
100
+ input[type="number"],
101
+ input[type="password"],
102
+ input[type="search"],
103
+ input[type="tel"],
104
+ input[type="text"],
105
+ input[type="time"],
106
+ input[type="url"],
107
+ input[type="week"]
108
+ -webkit-appearance: none
109
+ -moz-border-radius: 0
110
+ -webkit-border-radius: 0
111
+ border-radius: 0
112
+ -webkit-box-sizing: border-box
113
+ -moz-box-sizing: border-box
114
+ box-sizing: border-box
115
+ -moz-background-clip: padding
116
+ -webkit-background-clip: padding
117
+ background-clip: padding-box
118
+ border: 1px solid $borders
119
+ border-color: $borders $borders $borders
120
+ color: $black
121
+ padding: $formPadding
122
+ outline: none
123
+ +rounded(2px)
124
+ font: 12px $sans
125
+ margin: 0 0 20px 0
126
+ width: 100%
127
+ display: block
128
+ +gradient(#fafafa, white)
129
+ /* IE7
130
+ *padding-top: 2px
131
+ *padding-bottom: 1px
132
+ *height: auto
133
+
134
+ /*
135
+ *Separate rule for Firefox.
136
+ *Separate rule for IE, too.
137
+ *Cannot stack with WebKit's.
138
+ \::-webkit-input-placeholder
139
+ color: $black
140
+
141
+ input:-moz-placeholder,
142
+ textarea:-moz-placeholder
143
+ color: $black
144
+
145
+ \:invalid
146
+ /*
147
+ *Suppress red glow that Firefox
148
+ *adds to form fields by default,
149
+ *even when user is still typing.
150
+ -moz-box-shadow: none
151
+ -webkit-box-shadow: none
152
+ box-shadow: none
153
+
154
+ /* Tweaks for Safari + Chrome.
155
+ @media (-webkit-min-device-pixel-ratio: 0)
156
+ select[size],
157
+ select[multiple]
158
+ background-image: none
159
+ padding: 0
160
+ \::-webkit-validation-bubble-message
161
+ box-shadow: rgba(0, 0, 0, 0.5) 0 0 5px
162
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #666666), color-stop(1, black))
163
+ border: $borders
164
+ color: #fff
165
+ font: $sans
166
+ padding: 15px 15px 17px
167
+ text-shadow: #000 0 0 1px
168
+ \::-webkit-validation-bubble-top-outer-arrow,
169
+ ::-webkit-validation-bubble-top-inner-arrow
170
+ display: none
171
+
172
+ optgroup
173
+ color: #000
174
+ font-style: normal
175
+ font-weight: normal
176
+
177
+ button[type=submit], input[type='submit']
178
+ padding: 7px 12px
179
+ text-align: center
180
+ font-weight: bold
181
+ +rounded(5px)
182
+ +gradient
183
+ border: 0
184
+ color: #FFF
@@ -0,0 +1,113 @@
1
+ /* --------------------------------------------------------------
2
+ *
3
+ *MEDIA QUERIES
4
+ *
5
+ *--------------------------------------------------------------
6
+
7
+ /* #Tablet (Portrait)
8
+ *==================================================
9
+
10
+ /* 768px
11
+
12
+ @media only screen and (min-width: 768px) and (max-width: 959px)
13
+ #container
14
+ width: 748px
15
+ .col-1
16
+ float: left
17
+ width: 44px
18
+ margin-right: 0
19
+ margin-right: 20px
20
+ .col-1:last-child
21
+ margin-right: 0
22
+ .col-2
23
+ float: left
24
+ width: 108px
25
+ margin-right: 20px
26
+ .col-2:last-child
27
+ margin-right: 0
28
+ .col-3
29
+ float: left
30
+ width: 172px
31
+ margin-right: 20px
32
+ .col-3:last-child
33
+ margin-right: 0
34
+ .col-4
35
+ float: left
36
+ width: 236px
37
+ margin-right: 20px
38
+ .col-4:last-child
39
+ margin-right: 0
40
+ .col-5
41
+ float: left
42
+ width: 300px
43
+ margin-right: 20px
44
+ .col-5:last-child
45
+ margin-right: 0
46
+ .col-6
47
+ float: left
48
+ width: 364px
49
+ margin-right: 20px
50
+ .col-6:last-child
51
+ margin-right: 0
52
+ .col-7
53
+ float: left
54
+ width: 428px
55
+ margin-right: 20px
56
+ .col-7:last-child
57
+ margin-right: 0
58
+ .col-8
59
+ float: left
60
+ width: 492px
61
+ margin-right: 20px
62
+ .col-8:last-child
63
+ margin-right: 0
64
+ .col-9
65
+ float: left
66
+ width: 556px
67
+ margin-right: 20px
68
+ .col-9:last-child
69
+ margin-right: 0
70
+ .col-10
71
+ float: left
72
+ width: 620px
73
+ margin-right: 20px
74
+ .col-10:last-child
75
+ margin-right: 0
76
+ .col-11
77
+ float: left
78
+ width: 684px
79
+ margin-right: 20px
80
+ .col-11:last-child
81
+ margin-right: 0
82
+ .col-12
83
+ float: left
84
+ width: 748px
85
+ margin-right: 20px
86
+ .col-12:last-child
87
+ margin-right: 0
88
+
89
+ /* #Mobile (Portrait)
90
+ *==================================================
91
+
92
+ /* 320px. iPhone
93
+
94
+ @media only screen and (max-width: 767px)
95
+ #container
96
+ width: 300px
97
+ @for $i from 1 through $columns
98
+ .col-#{$i}
99
+ width: 280px
100
+ margin: 0 10px
101
+
102
+ /* #Mobile (Landscape)
103
+ *==================================================
104
+
105
+ /* 480px
106
+
107
+ @media only screen and (min-width: 480px) and (max-width: 767px)
108
+ #container
109
+ width: 480px
110
+ @for $i from 1 through $columns
111
+ .col-#{$i}
112
+ width: 460px
113
+ margin: 0 10px