helium-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +22 -0
- data/README.md +45 -0
- data/lib/helium/rails/version.rb +5 -0
- data/lib/helium/rails.rb +8 -0
- data/vendor/assets/javascripts/helium/bootstrap-collapse.js +156 -0
- data/vendor/assets/javascripts/helium/bootstrap-dropdown.js +153 -0
- data/vendor/assets/javascripts/helium/bootstrap-modal-ck.js +18 -0
- data/vendor/assets/javascripts/helium/bootstrap-modal.js +234 -0
- data/vendor/assets/javascripts/helium/bootstrap-transition.js +60 -0
- data/vendor/assets/javascripts/helium/bootstrap.min.js +6 -0
- data/vendor/assets/stylesheets/helium/buttons.scss +520 -0
- data/vendor/assets/stylesheets/helium/components.scss +109 -0
- data/vendor/assets/stylesheets/helium/config.scss +134 -0
- data/vendor/assets/stylesheets/helium/dropdowns.scss +94 -0
- data/vendor/assets/stylesheets/helium/forms.scss +339 -0
- data/vendor/assets/stylesheets/helium/grid.scss +113 -0
- data/vendor/assets/stylesheets/helium/master.scss +17 -0
- data/vendor/assets/stylesheets/helium/modals.scss +159 -0
- data/vendor/assets/stylesheets/helium/navs.scss +264 -0
- data/vendor/assets/stylesheets/helium/type.scss +150 -0
- data/vendor/assets/stylesheets/helium/utilities.scss +272 -0
- data/vendor/assets/stylesheets/helium/webfonts.scss.erb +8 -0
- data/vendor/assets/webfonts/entypo.eot +0 -0
- data/vendor/assets/webfonts/entypo.svg +13 -0
- data/vendor/assets/webfonts/entypo.ttf +0 -0
- data/vendor/assets/webfonts/entypo.woff +0 -0
- metadata +107 -0
@@ -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: url('<%= asset_path "entypo.eot" %>');
|
4
|
+
src: url('<%= asset_path "entypo.woff" %>') format('woff'),
|
5
|
+
url('<%= asset_path "entypo.ttf" %>') format('truetype'),
|
6
|
+
url('<%= asset_path "entypo.svg" %>') format('svg');
|
7
|
+
font-weight: 400;
|
8
|
+
}
|
Binary file
|
@@ -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>
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: helium-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tatsuo Kaniwa
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-03-16 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.1.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: compass-rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Vendors Helium CSS framework for use with asset pipeline.
|
47
|
+
email:
|
48
|
+
- tatsuo@kaniwa.biz
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- lib/helium/rails/version.rb
|
54
|
+
- lib/helium/rails.rb
|
55
|
+
- vendor/assets/webfonts/entypo.ttf
|
56
|
+
- vendor/assets/webfonts/entypo.woff
|
57
|
+
- vendor/assets/webfonts/entypo.svg
|
58
|
+
- vendor/assets/webfonts/entypo.eot
|
59
|
+
- vendor/assets/stylesheets/helium/dropdowns.scss
|
60
|
+
- vendor/assets/stylesheets/helium/grid.scss
|
61
|
+
- vendor/assets/stylesheets/helium/utilities.scss
|
62
|
+
- vendor/assets/stylesheets/helium/modals.scss
|
63
|
+
- vendor/assets/stylesheets/helium/forms.scss
|
64
|
+
- vendor/assets/stylesheets/helium/config.scss
|
65
|
+
- vendor/assets/stylesheets/helium/type.scss
|
66
|
+
- vendor/assets/stylesheets/helium/webfonts.scss.erb
|
67
|
+
- vendor/assets/stylesheets/helium/navs.scss
|
68
|
+
- vendor/assets/stylesheets/helium/master.scss
|
69
|
+
- vendor/assets/stylesheets/helium/buttons.scss
|
70
|
+
- vendor/assets/stylesheets/helium/components.scss
|
71
|
+
- vendor/assets/javascripts/helium/bootstrap-transition.js
|
72
|
+
- vendor/assets/javascripts/helium/bootstrap-modal.js
|
73
|
+
- vendor/assets/javascripts/helium/bootstrap-collapse.js
|
74
|
+
- vendor/assets/javascripts/helium/bootstrap-dropdown.js
|
75
|
+
- vendor/assets/javascripts/helium/bootstrap.min.js
|
76
|
+
- vendor/assets/javascripts/helium/bootstrap-modal-ck.js
|
77
|
+
- LICENSE
|
78
|
+
- README.md
|
79
|
+
homepage: https://github.com/t-k/helium-rails
|
80
|
+
licenses:
|
81
|
+
- MIT
|
82
|
+
post_install_message:
|
83
|
+
rdoc_options: []
|
84
|
+
require_paths:
|
85
|
+
- lib
|
86
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
segments:
|
93
|
+
- 0
|
94
|
+
hash: 3787106844474770069
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - '>='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 1.3.6
|
101
|
+
requirements: []
|
102
|
+
rubyforge_project:
|
103
|
+
rubygems_version: 1.8.25
|
104
|
+
signing_key:
|
105
|
+
specification_version: 3
|
106
|
+
summary: Helium CSS framework for Rails
|
107
|
+
test_files: []
|