compass-helium 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/README.md +47 -0
  2. data/lib/compass-helium.rb +3 -0
  3. data/stylesheets/_compass-helium.scss +17 -0
  4. data/stylesheets/compass-helium/buttons.scss +520 -0
  5. data/stylesheets/compass-helium/components.scss +109 -0
  6. data/stylesheets/compass-helium/config.scss +134 -0
  7. data/stylesheets/compass-helium/dropdowns.scss +94 -0
  8. data/stylesheets/compass-helium/forms.scss +272 -0
  9. data/stylesheets/compass-helium/grid.scss +113 -0
  10. data/stylesheets/compass-helium/master.scss +17 -0
  11. data/stylesheets/compass-helium/modals.scss +159 -0
  12. data/stylesheets/compass-helium/navs.scss +264 -0
  13. data/stylesheets/compass-helium/type.scss +150 -0
  14. data/stylesheets/compass-helium/utilities.scss +272 -0
  15. data/stylesheets/compass-helium/webfonts.scss +8 -0
  16. data/templates/project/config.rb +12 -0
  17. data/templates/project/fonts/entypo.eot +0 -0
  18. data/templates/project/fonts/entypo.svg +13 -0
  19. data/templates/project/fonts/entypo.ttf +0 -0
  20. data/templates/project/fonts/entypo.woff +0 -0
  21. data/templates/project/forms.html +439 -0
  22. data/templates/project/index.html +151 -0
  23. data/templates/project/js/bootstrap-collapse.js +156 -0
  24. data/templates/project/js/bootstrap-dropdown.js +153 -0
  25. data/templates/project/js/bootstrap-modal-ck.js +18 -0
  26. data/templates/project/js/bootstrap-modal.js +234 -0
  27. data/templates/project/js/bootstrap-transition.js +60 -0
  28. data/templates/project/js/bootstrap.min.js +6 -0
  29. data/templates/project/js/jquery.min.js +2 -0
  30. data/templates/project/manifest.rb +30 -0
  31. data/templates/project/modals.html +152 -0
  32. data/templates/project/sass/style.scss +3 -0
  33. metadata +116 -0
@@ -0,0 +1,150 @@
1
+ // Body text
2
+ // ---------
3
+
4
+ html {
5
+ font-size: 100%;
6
+ -webkit-text-size-adjust: 100%;
7
+ -ms-text-size-adjust: 100%;
8
+ }
9
+
10
+ body {
11
+ color: $base-font-color;
12
+ font-family: $base-font-family;
13
+ font-size: $base-font-size;
14
+ font-size-adjust: none;
15
+ line-height: $base-line-height;
16
+ }
17
+
18
+ // Standard block-level elements
19
+ // -----------------------------
20
+
21
+ p,
22
+ ol,
23
+ ul,
24
+ dl,
25
+ table,
26
+ figure,
27
+ hgroup {
28
+ margin: 0 0 (4 * $tu);
29
+ }
30
+
31
+ // Headings
32
+ // --------
33
+
34
+ h1, h2, h3, h4, h5, h6 {
35
+ margin: 0;
36
+ color: $heading-color;
37
+ font-family: $heading-font-family;
38
+ font-weight: $heading-font-weight;
39
+ line-height: 1;
40
+ text-rendering: optimizelegibility; // Fix the character spacing for headings
41
+
42
+ a {
43
+ color: $gray-dark;
44
+ }
45
+ }
46
+
47
+ h1, h2 {
48
+ margin: 0 0 (6 * $tu);
49
+ }
50
+
51
+ h1 {
52
+ font-size: 36px;
53
+ letter-spacing: -1px;
54
+ }
55
+
56
+ h2 {
57
+ font-size: 24px;
58
+ }
59
+
60
+ h3 {
61
+ font-size: 16px;
62
+ }
63
+
64
+ h4, h5, h6 {
65
+ font-size: $base-font-size;
66
+ }
67
+
68
+ // Links
69
+ // -----
70
+
71
+ a {
72
+ color: $link-color;
73
+ text-decoration: none;
74
+
75
+ &:hover {
76
+ color: lighten($link-color, 10%);
77
+ text-decoration: underline;
78
+ }
79
+ }
80
+
81
+ p a {
82
+ text-decoration: underline;
83
+ }
84
+
85
+ // Lists
86
+ // -----
87
+
88
+ ul, ol {
89
+ padding: 0;
90
+ margin-left: $base-font-size;
91
+ }
92
+ ul ul,
93
+ ul ol,
94
+ ol ol,
95
+ ol ul {
96
+ margin-bottom: 0;
97
+ }
98
+ ul ul,
99
+ ol ul {
100
+ list-style: circle;
101
+ }
102
+ ul {
103
+ list-style: disc;
104
+ }
105
+ ol {
106
+ list-style: decimal;
107
+ }
108
+ dl {
109
+ margin: 0 0 $base-font-size;
110
+ }
111
+ dt {
112
+ font-weight: bold;
113
+ }
114
+ dd {
115
+ margin: 0 0 $base-font-size;
116
+ }
117
+
118
+ // Tables
119
+ // ------
120
+
121
+ table {
122
+ width: 100%;
123
+ border-top: 1px solid $border-color;
124
+
125
+ th {
126
+ font-weight: bold;
127
+ }
128
+ th, td {
129
+ padding: $base-font-size / 2;
130
+ border-bottom: 1px solid $border-color;
131
+ text-align: left;
132
+
133
+ &:first-child {
134
+ padding-left: 0;
135
+ }
136
+ &:last-child {
137
+ padding-right: 0;
138
+ }
139
+ }
140
+ .figure {
141
+ text-align: right;
142
+ }
143
+ }
144
+
145
+ // Code
146
+ // ----
147
+
148
+ code {
149
+ font-family: "Consolas", "Courier", monospace;
150
+ }
@@ -0,0 +1,272 @@
1
+ // ! Type derivative variables
2
+ // ---------------------------
3
+
4
+ $tu: $base-font-size / 4;
5
+ $base-line-height: $tu * 6;
6
+
7
+ // ! Pseudo elements
8
+ // -----------------
9
+
10
+ @mixin pseudo() {
11
+ content: "";
12
+ display: block;
13
+ position: absolute;
14
+ }
15
+
16
+ // ! CSS triangles
17
+ // ---------------
18
+
19
+ @mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) {
20
+
21
+ @include pseudo();
22
+
23
+ width: 0;
24
+ height: 0;
25
+ border: solid $triangle-size;
26
+
27
+ @if ($triangle-direction == top) {
28
+ border-color: $triangle-color transparent transparent transparent;
29
+ }
30
+ @if ($triangle-direction == bottom) {
31
+ border-color: transparent transparent $triangle-color transparent;
32
+ }
33
+ @if ($triangle-direction == left) {
34
+ border-color: transparent transparent transparent $triangle-color;
35
+ }
36
+ @if ($triangle-direction == right) {
37
+ border-color: transparent $triangle-color transparent transparent;
38
+ }
39
+ }
40
+
41
+ // ! List operations
42
+ // -----------------
43
+
44
+ @mixin list-reset {
45
+ margin-left: 0px;
46
+
47
+ > li {
48
+ display: block;
49
+ list-style-type: none;
50
+ }
51
+ }
52
+
53
+ @mixin list-horizontal {
54
+ @include clearfix();
55
+
56
+ > li {
57
+ display: block;
58
+ float: left;
59
+ list-style-type: none;
60
+ }
61
+ }
62
+
63
+ // ! Floats
64
+ // --------
65
+
66
+ .float-left {
67
+ float: left;
68
+ }
69
+ .float-right {
70
+ float: right;
71
+ }
72
+ .float-none {
73
+ float: none;
74
+ }
75
+ .block {
76
+ display: block;
77
+ }
78
+ .nowrap {
79
+ overflow: hidden;
80
+ }
81
+
82
+ // ! Clearfix
83
+ // ----------
84
+
85
+ @mixin clearfix {
86
+ &:before,
87
+ &:after {
88
+ content:"";
89
+ display:table;
90
+ }
91
+ &:after {
92
+ clear:both;
93
+ }
94
+ zoom:1;
95
+ }
96
+
97
+ .clearfix {
98
+ @include clearfix();
99
+ }
100
+
101
+ // ! Type helper classes
102
+ // ---------------------
103
+
104
+ .bold, strong {
105
+ font-weight: bold;
106
+ }
107
+
108
+ .ellipsis {
109
+ display: block;
110
+ overflow: hidden;
111
+ white-space: nowrap;
112
+ text-overflow: ellipsis;
113
+ }
114
+
115
+ .italic, em {
116
+ font-style: italic;
117
+ }
118
+
119
+ .lh1 {
120
+ line-height: 1 !important;
121
+ }
122
+
123
+ .muted {
124
+ color: $muted-font-color;
125
+ }
126
+
127
+ .small {
128
+ font-family: $base-font-family;
129
+ font-size: $small-font-size;
130
+ font-weight: normal;
131
+ line-height: $small-line-height;
132
+ }
133
+
134
+ .text-left {
135
+ text-align: left;
136
+ }
137
+
138
+ .text-right {
139
+ text-align: right;
140
+ }
141
+
142
+ .text-centered {
143
+ text-align: center;
144
+ }
145
+
146
+ .underlined {
147
+ text-decoration: underline;
148
+ }
149
+
150
+ .uppercase {
151
+ text-transform: uppercase;
152
+ }
153
+
154
+ // ! Images
155
+ // --------
156
+
157
+ img {
158
+ display: block;
159
+ width: 100%;
160
+ max-width: 100%;
161
+
162
+ &.native-width {
163
+ width: auto;
164
+ }
165
+ }
166
+
167
+ // ! Responsive helper variables
168
+ // -----------------------------
169
+
170
+ $devices: mobile, mobile-tablet, tablet, tablet-desktop, desktop;
171
+ $mobile-end: $responsive-breakpoint;
172
+ $tablet-start: $mobile-end + 1;
173
+ $tablet-end: $page-width + ($column-gutter * 2);
174
+ $desktop-start: $tablet-end + 1;
175
+
176
+ // ! Respond to device mixins
177
+ // --------------------------
178
+
179
+ @mixin respond-to($device) {
180
+
181
+ @if $device == "desktop" {
182
+ @media screen and (min-width: $desktop-start) { @content }
183
+ }
184
+
185
+ @if $device == "tablet-desktop" {
186
+ @media screen and (min-width: $tablet-start) { @content }
187
+ }
188
+
189
+ @if $device == "tablet" {
190
+ @media screen and (min-width: $tablet-start) and (max-width: $tablet-end) { @content }
191
+ }
192
+
193
+ @if $device == "mobile-tablet" {
194
+ @media screen and (max-width: $tablet-end) { @content }
195
+ }
196
+
197
+ @if $device == "mobile" {
198
+ @media screen and (max-width: $mobile-end) { @content }
199
+ }
200
+ }
201
+
202
+ // ! Show or hide on device
203
+ // ------------------------
204
+
205
+ .show-on-mobile,
206
+ .show-on-mobile-tablet,
207
+ .show-on-tablet,
208
+ .show-on-tablet-desktop,
209
+ .show-on-desktop {
210
+ display: none !important;
211
+ }
212
+
213
+ @each $device in $devices {
214
+ @include respond-to($device) {
215
+ .show-on-#{$device} { display: inherit !important; }
216
+ .hide-on-#{$device} { display: none !important; }
217
+ }
218
+ }
219
+
220
+ // ! Box model helpers
221
+ // -------------------
222
+
223
+ $x-sides: (l left), (r right);
224
+ $y-sides: (t top), (b bottom);
225
+ $spacing-types: (m margin), (p padding);
226
+
227
+ // ! Margin and padding
228
+ // --------------------
229
+
230
+ @each $spacing-type in $spacing-types {
231
+ @for $i from 0 through 10 {
232
+ @each $side in join($x-sides, $y-sides) {
233
+ .#{nth($spacing-type, 1)}#{nth($side, 1)}#{$i} {
234
+ #{nth($spacing-type, 2)}-#{nth($side, 2)}: $tu * $i !important;
235
+ }
236
+ }
237
+ }
238
+ }
239
+
240
+ // ! Borders
241
+ // ---------
242
+
243
+ @each $side in join($x-sides, $y-sides) {
244
+ .b#{nth($side, 1)} {
245
+ border-#{nth($side, 2)}: 1px solid $border-color;
246
+ }
247
+ }
248
+
249
+ // ! Sticky footer
250
+ // ---------------
251
+
252
+ .sticky-footer {
253
+ #footer-pusher {
254
+ height: auto;
255
+ min-height: 100%;
256
+ }
257
+
258
+ #page-footer {
259
+ position: relative;
260
+ }
261
+ }
262
+
263
+ // ! Max widths
264
+ // ------------
265
+
266
+ @include respond-to(mobile-tablet) {
267
+ $i: 50;
268
+ @while $i > 0 {
269
+ .max-#{$i} { max-width: 1% * $i; }
270
+ $i: $i - 10;
271
+ }
272
+ }
@@ -0,0 +1,8 @@
1
+ @font-face {
2
+ font-family: 'Entypo';
3
+ src: font-url('entypo.eot');
4
+ src: font-url('entypo.woff') format('woff'),
5
+ font-url('entypo.ttf') format('truetype'),
6
+ font-url('entypo.svg') format('svg');
7
+ font-weight: 400;
8
+ }
@@ -0,0 +1,12 @@
1
+ # Require any additional compass plugins here.
2
+
3
+ # Set this to the root of your project when deployed:
4
+ http_path = "/"
5
+ css_dir = "css"
6
+ images_dir = "images"
7
+ javascripts_dir = "js"
8
+ output_style = :expanded
9
+ environment = :development
10
+ relative_assets = true
11
+ line_comments = false
12
+ color_output = false
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" > <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
2
+ <defs >
3
+ <font id="entypo" horiz-adv-x="508" ><font-face
4
+ font-family="Entypo"
5
+ units-per-em="1000"
6
+ panose-1="0 0 0 0 0 0 0 0 0 0"
7
+ ascent="750"
8
+ descent="-250"
9
+ alphabetic="0" />
10
+ <missing-glyph horiz-adv-x="500" />
11
+ </font>
12
+ </defs>
13
+ </svg>