lion 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/.DS_Store +0 -0
  2. data/bin/.DS_Store +0 -0
  3. data/bin/{lion-new.rb → lion-new} +15 -14
  4. data/bin/{lion-server.rb → lion-server} +5 -5
  5. data/lib/.DS_Store +0 -0
  6. data/lib/lion.rb +13 -11
  7. data/lib/lion/.DS_Store +0 -0
  8. data/lib/lion/installer.rb +33 -10
  9. data/lib/lion/version.rb +1 -1
  10. data/lib/src/.DS_Store +0 -0
  11. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_core.sassc +0 -0
  12. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_elements.sassc +0 -0
  13. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_mixins.sassc +0 -0
  14. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_reset.sassc +0 -0
  15. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_settings.sassc +0 -0
  16. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_typography.sassc +0 -0
  17. data/lib/src/.sass-cache/8e2d42a7994fef08dc4bb4dcc558988ca283abc8/style.sassc +0 -0
  18. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_alerts.sassc +0 -0
  19. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_buttons.sassc +0 -0
  20. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_classes.sassc +0 -0
  21. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_forms.sassc +0 -0
  22. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_grid.sassc +0 -0
  23. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_media_queries.sassc +0 -0
  24. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_pagination.sassc +0 -0
  25. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_tables.sassc +0 -0
  26. data/lib/src/gemfile +6 -0
  27. data/lib/src/lion.rb +4 -1
  28. data/lib/src/public/.DS_Store +0 -0
  29. data/lib/src/public/coffeescripts/spec/application.spec.coffee +4 -0
  30. data/lib/src/public/images/baseline_20.png +0 -0
  31. data/lib/src/public/javascripts/application.js +5 -0
  32. data/lib/src/public/stylesheets/.DS_Store +0 -0
  33. data/lib/src/public/stylesheets/css/.DS_Store +0 -0
  34. data/lib/src/public/stylesheets/css/style.css +696 -1
  35. data/lib/src/public/stylesheets/scss/lib/.DS_Store +0 -0
  36. data/lib/src/public/stylesheets/scss/lib/core.scss +32 -0
  37. data/lib/src/public/stylesheets/scss/lib/css3/.DS_Store +0 -0
  38. data/lib/src/public/stylesheets/scss/lib/css3/background-clip.scss +4 -0
  39. data/lib/src/public/stylesheets/scss/lib/css3/border-radius.scss +4 -0
  40. data/lib/src/public/stylesheets/scss/lib/css3/box-shadow.scss +4 -0
  41. data/lib/src/public/{coffeescripts/spec/application.spec.js.coffee → stylesheets/scss/lib/css3/box-sizing.scss} +0 -0
  42. data/lib/src/public/stylesheets/scss/lib/css3/columns.scss +7 -0
  43. data/lib/src/public/stylesheets/scss/lib/css3/font-face.scss +7 -0
  44. data/lib/src/public/stylesheets/scss/lib/css3/gradient.scss +51 -0
  45. data/lib/src/public/stylesheets/scss/lib/css3/opacity.scss +5 -0
  46. data/lib/src/public/stylesheets/scss/lib/css3/rotate.scss +9 -0
  47. data/lib/src/public/stylesheets/scss/lib/css3/scale.scss +0 -0
  48. data/lib/src/public/stylesheets/scss/lib/css3/text-shadow.scss +2 -0
  49. data/lib/src/public/stylesheets/scss/lib/css3/transform.scss +0 -0
  50. data/lib/src/public/stylesheets/scss/lib/css3/transition.scss +9 -0
  51. data/lib/src/public/stylesheets/scss/lib/helpers/.DS_Store +0 -0
  52. data/lib/src/public/stylesheets/scss/lib/helpers/buttons.scss +24 -0
  53. data/lib/src/public/stylesheets/scss/lib/helpers/classes.scss +18 -0
  54. data/lib/src/public/stylesheets/scss/lib/helpers/forms.scss +192 -0
  55. data/lib/src/public/stylesheets/scss/lib/helpers/media_queries.scss +17 -0
  56. data/lib/src/public/stylesheets/scss/lib/helpers/tables.scss +23 -0
  57. data/lib/src/public/stylesheets/scss/lib/layout/.DS_Store +0 -0
  58. data/lib/src/public/stylesheets/scss/lib/layout/grid.scss +30 -0
  59. data/lib/src/public/stylesheets/scss/lib/mixins.scss +17 -0
  60. data/lib/src/public/stylesheets/scss/lib/reset.scss +69 -0
  61. data/lib/src/public/stylesheets/scss/lib/settings.scss +31 -0
  62. data/lib/src/public/stylesheets/scss/lib/typography/.DS_Store +0 -0
  63. data/lib/src/public/stylesheets/scss/lib/typography/elements.scss +130 -0
  64. data/lib/src/public/stylesheets/scss/lib/typography/headings.scss +30 -0
  65. data/lib/src/public/stylesheets/scss/style.scss +12 -0
  66. data/lib/src/rakefile +19 -0
  67. data/lib/src/views/.DS_Store +0 -0
  68. data/lib/src/views/index.slim +2 -3
  69. data/lib/src/views/layout.slim +20 -7
  70. data/readme.md +29 -0
  71. data/todo.txt +0 -0
  72. metadata +71 -25
  73. data/lib/src/public/coffeescripts/application.js.coffee +0 -6
  74. data/lib/src/public/javascripts/main.js +0 -5
  75. data/lib/src/public/stylesheets/sass/lib/_core.sass +0 -7
  76. data/lib/src/public/stylesheets/sass/lib/_elements.sass +0 -100
  77. data/lib/src/public/stylesheets/sass/lib/_grid.sass +0 -30
  78. data/lib/src/public/stylesheets/sass/lib/_reset.sass +0 -84
  79. data/lib/src/public/stylesheets/sass/lib/_settings.sass +0 -42
  80. data/lib/src/public/stylesheets/sass/lib/_typography.sass +0 -45
  81. data/lib/src/public/stylesheets/sass/lib/helpers/_buttons.sass +0 -15
  82. data/lib/src/public/stylesheets/sass/lib/helpers/_classes.sass +0 -24
  83. data/lib/src/public/stylesheets/sass/lib/helpers/_forms.sass +0 -184
  84. data/lib/src/public/stylesheets/sass/lib/helpers/_media_queries.sass +0 -113
  85. data/lib/src/public/stylesheets/sass/lib/helpers/_mixins.sass +0 -76
  86. data/lib/src/public/stylesheets/sass/lib/helpers/_tables.sass +0 -29
  87. data/lib/src/public/stylesheets/sass/style.sass +0 -40
@@ -0,0 +1,32 @@
1
+ /* --------------------------------------------------------------
2
+ * Gravity CSS
3
+ * Version 0.1
4
+ * Developed by: Owain Lewis
5
+ * www.owainlewis.com
6
+ * License: MIT
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ *-------------------------------------------------------------- */
9
+
10
+ //Base
11
+ @import "settings";
12
+ @import "reset";
13
+
14
+ //Mixins
15
+ @import "mixins";
16
+
17
+ //Typography
18
+ @import "typography/elements";
19
+ @import "typography/headings";
20
+
21
+ //Layout
22
+ @import "layout/grid";
23
+
24
+ //Forms
25
+ @import "helpers/forms";
26
+
27
+ //Tables
28
+ @import "helpers/tables";
29
+
30
+ //Misc
31
+ @import "helpers/buttons";
32
+ @import "helpers/classes";
@@ -0,0 +1,4 @@
1
+ @mixin background-clip($clip) {
2
+ -webkit-background-clip: $clip;
3
+ -moz-background-clip: $clip;
4
+ background-clip: $clip; }
@@ -0,0 +1,4 @@
1
+ @mixin border-radius($radius: 5px) {
2
+ -webkit-border-radius: $radius;
3
+ -moz-border-radius: $radius;
4
+ border-radius: $radius; }
@@ -0,0 +1,4 @@
1
+ @mixin box-shadow($shadow: 0 1px 3px rgba(0, 0, 0, 0.25)) {
2
+ -webkit-box-shadow: $shadow;
3
+ -moz-box-shadow: $shadow;
4
+ box-shadow: $shadow; }
@@ -0,0 +1,7 @@
1
+ @mixin content-columns($columnCount, $columnGap: 20px) {
2
+ -webkit-column-count: $columnCount;
3
+ -moz-column-count: $columnCount;
4
+ column-count: $columnCount;
5
+ -webkit-column-gap: $columnGap;
6
+ -moz-column-gap: $columnGap;
7
+ column-gap: $columnGap; }
@@ -0,0 +1,7 @@
1
+ @mixin fontFace($name, $src: fonts) {
2
+ @font-face {
3
+ font-family: "FontName";
4
+ src: url("$src/$name.eot");
5
+ src: url("$src/$name.eot?iefix") format("eot"), url("$src/$name.woff") format("woff"), url("$src/$name.ttf") format("truetype"), url("$src/$name.svg#webfontZam02nTh") format("svg");
6
+ font-weight: normal;
7
+ font-style: normal; } }
@@ -0,0 +1,51 @@
1
+ @mixin gradient($from: #111111, $to: #333333) {
2
+ background: $from;
3
+ /* for non-css3 browsers */
4
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$from', endColorstr='$to');
5
+ /* for IE */
6
+ background: -webkit-gradient(linear, left top, left bottom, from($from), to($to));
7
+ /* for webkit browsers */
8
+ background: -moz-linear-gradient(top, $from, $to);
9
+ /* for firefox 3.6+ */ }
10
+
11
+ @mixin horizontal-gradient ($startColor: #555, $endColor: #333) {
12
+ background-color: $endColor;
13
+ background-repeat: repeat-x;
14
+ background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor)); // Konqueror
15
+ background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
16
+ background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
17
+ background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
18
+ background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
19
+ background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
20
+ background-image: linear-gradient(left, $startColor, $endColor); // Le standard
21
+ }
22
+ @mixin vertical-gradient ($startColor: #555, $endColor: #333) {
23
+ background-color: $endColor;
24
+ background-repeat: repeat-x;
25
+ background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor)); // Konqueror
26
+ background-image: -moz-linear-gradient($startColor, $endColor); // FF 3.6+
27
+ background-image: -ms-linear-gradient($startColor, $endColor); // IE10
28
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
29
+ background-image: -webkit-linear-gradient($startColor, $endColor); // Safari 5.1+, Chrome 10+
30
+ background-image: -o-linear-gradient($startColor, $endColor); // Opera 11.10
31
+ background-image: linear-gradient($startColor, $endColor); // The standard
32
+ }
33
+ @mixin directional-graident ($startColor: #555, $endColor: #333, $deg: 45deg) {
34
+ background-color: $endColor;
35
+ background-repeat: repeat-x;
36
+ background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
37
+ background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
38
+ background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
39
+ background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
40
+ background-image: linear-gradient($deg, $startColor, $endColor); // The standard
41
+ }
42
+ @mixin vertical-three-color-gradient($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
43
+ background-color: $endColor;
44
+ background-repeat: no-repeat;
45
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
46
+ background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor);
47
+ background-image: -moz-linear-gradient($startColor, $midColor $colorStop, $endColor);
48
+ background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor);
49
+ background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
50
+ background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
51
+ }
@@ -0,0 +1,5 @@
1
+ @mixin opacity($opacity: 100) {
2
+ filter: alpha(opacity = $opacity);
3
+ -khtml-opacity: $opacity / 100;
4
+ -moz-opacity: $opacity / 100;
5
+ opacity: $opacity / 100; }
@@ -0,0 +1,9 @@
1
+ @mixin rotate($angle) {
2
+ -moz-transform: rotate($angle);
3
+ -webkit-transform: rotate($angle);
4
+ -o-transform: rotate($angle);
5
+ -ms-transform: rotate($angle);
6
+ transform: rotate($angle);
7
+ filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=#{cos($angle)}, M12=-#{sin($angle)}, M21=#{sin($angle)}, M22=#{cos($angle)});
8
+ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=#{cos($angle)}, M12=-#{sin($angle)}, M21=#{sin($angle)}, M22=#{cos($angle)})";
9
+ zoom: 1; }
@@ -0,0 +1,2 @@
1
+ @mixin textShadow($x-axis: 1px, $y-axis: 1px, $casting: 1px, $color: white) {
2
+ text-shadow: $x-axis $y-axis $casting $color; }
@@ -0,0 +1,9 @@
1
+ @mixin transition($property: all, $duration: 0.5s, $function: ease-in-out) {
2
+ -moz-transition: $property $duration $function;
3
+ /* FF3.7+ */
4
+ -o-transition: $property $duration $function;
5
+ /* Opera 10.5 */
6
+ -webkit-transition: $property $duration $function;
7
+ /* Saf3.2+, Chrome */
8
+ transition: $property $duration $function; }
9
+
@@ -0,0 +1,24 @@
1
+ @mixin button($color: #cccccc, $text_color: #333333, $width: 80px) {
2
+ @include border-radius(4px);
3
+ @include gradient(lighten($color, 10%), $color);
4
+ cursor: pointer;
5
+ font-weight: bold;
6
+ color: $text_color;
7
+ display: inline-block;
8
+ border: 1px solid darken($color, 5%);
9
+ text-align: center;
10
+ padding: 4px 12px;
11
+ margin: 0 10px 20px 0;
12
+ @if $width {
13
+ min-width: $width; }
14
+ &:hover {
15
+ @include gradient(lighten($color, 5%), lighten($color, 10%)); } }
16
+
17
+ .button, input.button {
18
+ @include button; }
19
+
20
+ .button.main {
21
+ @include button(#049cdb, white); }
22
+
23
+ .button.delete {
24
+ @include button(#9d261d, white); }
@@ -0,0 +1,18 @@
1
+ .wrap {
2
+ width: $width;
3
+ margin: 0 auto; }
4
+
5
+ .clear {
6
+ clear: both; }
7
+
8
+ .center {
9
+ text-align: center; }
10
+
11
+ .uppercase {
12
+ text-transform: uppercase; }
13
+
14
+ .titlecase {
15
+ text-transform: capitalize; }
16
+
17
+ .invisible {
18
+ visibility: hidden; }
@@ -0,0 +1,192 @@
1
+ //Forms
2
+
3
+ $formPadding: 5px;
4
+
5
+ ::-moz-focus-inner {
6
+ border: 0;
7
+ padding: 0; }
8
+
9
+ input[type="search"]::-webkit-search-decoration {
10
+ display: none; }
11
+
12
+ form {
13
+ margin-bottom: $baseline; }
14
+
15
+ fieldset {
16
+ margin-bottom: $baseline; }
17
+
18
+ input[type="text"]:focus,
19
+ input[type="password"]:focus,
20
+ input[type="email"]:focus,
21
+ input[type="tel"]:focus,
22
+ textarea:focus {
23
+ border: 1px solid $blue;
24
+ color: #444444; }
25
+
26
+ textarea {
27
+ min-height: 100px;
28
+ resize: none;
29
+ overflow: auto;
30
+ width: 100%; }
31
+
32
+ label,
33
+ legend {
34
+ display: block;
35
+ font-weight: bold;
36
+ font-size: 13px; }
37
+
38
+ select {
39
+ width: 100%; }
40
+
41
+ input[type="checkbox"] {
42
+ display: inline; }
43
+
44
+ label span,
45
+ legend span {
46
+ font-weight: normal;
47
+ font-size: 13px;
48
+ color: #444444; }
49
+
50
+ input,
51
+ button,
52
+ select,
53
+ textarea {
54
+ vertical-align: middle;
55
+ margin-bottom: $baseline; }
56
+
57
+ input[type="radio"],
58
+ input[type="checkbox"] {
59
+ position: relative;
60
+ vertical-align: top;
61
+ top: 3px;
62
+ /* IE8, IE9, IE10 */
63
+ top: 0 \0;
64
+ /* IE7 */
65
+ *top: -3px;
66
+ margin-right: 5px; }
67
+
68
+ /* iPad */
69
+
70
+ @media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 1024px) {
71
+ input[type="radio"],
72
+ input[type="checkbox"] {
73
+ vertical-align: baseline;
74
+ top: 2px; } }
75
+
76
+ /* iPhone 3 */
77
+
78
+ @media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 480px) {
79
+ input[type="radio"],
80
+ input[type="checkbox"] {
81
+ vertical-align: baseline;
82
+ top: 0; } }
83
+
84
+ /* iPhone 4 */
85
+
86
+ @media (-webkit-min-device-pixel-ratio: 2) and (max-device-width: 480px) {
87
+ input[type="radio"],
88
+ input[type="checkbox"] {
89
+ vertical-align: baseline;
90
+ top: 0; } }
91
+
92
+ textarea,
93
+ select,
94
+ input[type="date"],
95
+ input[type="datetime"],
96
+ input[type="datetime-local"],
97
+ input[type="email"],
98
+ input[type="month"],
99
+ input[type="number"],
100
+ input[type="password"],
101
+ input[type="search"],
102
+ input[type="tel"],
103
+ input[type="text"],
104
+ input[type="time"],
105
+ input[type="url"],
106
+ input[type="week"] {
107
+ -webkit-appearance: none;
108
+ -moz-border-radius: 0;
109
+ -webkit-border-radius: 0;
110
+ border-radius: 0;
111
+ -webkit-box-sizing: border-box;
112
+ -moz-box-sizing: border-box;
113
+ box-sizing: border-box;
114
+ -moz-background-clip: padding;
115
+ -webkit-background-clip: padding;
116
+ background-clip: padding-box;
117
+ border: 1px solid $borders;
118
+ border-color: $borders $borders $borders;
119
+ color: $black;
120
+ padding: $formPadding;
121
+ outline: none;
122
+ @include border-radius(2px);
123
+ font: 12px $sans;
124
+ margin: 0 0 18px 0;
125
+ width: 100%;
126
+ display: block;
127
+ /* IE7 */
128
+ *padding-top: 2px;
129
+ *padding-bottom: 1px;
130
+ *height: auto; }
131
+
132
+ ::-webkit-input-placeholder {
133
+ color: $gray; }
134
+
135
+ input:-moz-placeholder,
136
+ textarea:-moz-placeholder {
137
+ color: $gray;
138
+ font-size: 12px; }
139
+
140
+ :invalid {
141
+ -moz-box-shadow: none;
142
+ -webkit-box-shadow: none;
143
+ box-shadow: none; }
144
+
145
+ /* Tweaks for Safari + Chrome. */
146
+
147
+ @media (-webkit-min-device-pixel-ratio: 0) {
148
+ select[size],
149
+ select[multiple] {
150
+ background-image: none;
151
+ padding: 0; }
152
+ ::-webkit-validation-bubble-message {
153
+ box-shadow: rgba(0, 0, 0, 0.5) 0 0 5px;
154
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #666666), color-stop(1, black));
155
+ border: $borders;
156
+ color: white;
157
+ font: $sans;
158
+ padding: 15px 15px 17px;
159
+ text-shadow: black 0 0 1px; }
160
+ ::-webkit-validation-bubble-top-outer-arrow,
161
+ ::-webkit-validation-bubble-top-inner-arrow {
162
+ display: none; } }
163
+
164
+ optgroup {
165
+ color: black;
166
+ font-style: normal;
167
+ font-weight: normal; }
168
+
169
+ button[type=submit], input[type='submit'] {
170
+ padding: 7px 12px;
171
+ text-align: center;
172
+ font-weight: bold;
173
+ @include border-radius(5px);
174
+ @include gradient;
175
+ border: 0;
176
+ color: white; }
177
+
178
+ .input-list {
179
+ list-style:none;
180
+ margin:0 0 $baseline 0;
181
+ li {
182
+ padding-top: 0;
183
+ list-style:none;
184
+ margin:0 0 $baseline/4 0;
185
+ input{margin-bottom:0};
186
+ label {
187
+ font-weight: normal;
188
+ padding-top: 0;
189
+ }
190
+ }
191
+ }
192
+
@@ -0,0 +1,17 @@
1
+ /* 768px */
2
+
3
+ @media only screen and (min-width: 768px) and (max-width: 959px) {}
4
+
5
+ /* 320px. iPhone */
6
+
7
+ @media only screen and (max-width: 767px) {
8
+ .container {
9
+ width: 300px; }
10
+ @for $i from 1 through $columns {
11
+ .span-#{$i} {
12
+ width: 280px;
13
+ margin: 0 10px; } } }
14
+
15
+ /* 480px */
16
+
17
+ @media only screen and (min-width: 480px) and (max-width: 767px) {}
@@ -0,0 +1,23 @@
1
+ table {
2
+ margin-bottom: $baseline;
3
+ width: 100%; }
4
+
5
+ th {
6
+ font-weight: bold;
7
+ text-align: left;
8
+ border-bottom: 4px solid $gray; }
9
+
10
+ td {
11
+ padding: 10px;border-bottom:1px solid #ddd; }
12
+
13
+ th {
14
+ padding: 10px 10px 6px 10px; }
15
+
16
+ tr:nth-child(even) {
17
+ background-color: #F9F9F9; }
18
+
19
+ tfoot {
20
+ font-style: italic; }
21
+
22
+ caption {
23
+ background: #ffffcc; }