tier 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +67 -0
- data/Rakefile +2 -0
- data/app/assets/index.html +1 -0
- data/app/assets/stylesheets/index.html +1 -0
- data/app/assets/stylesheets/tier.scss +18 -0
- data/app/assets/stylesheets/tier/_buttons.scss +47 -0
- data/app/assets/stylesheets/tier/_forms.scss +176 -0
- data/app/assets/stylesheets/tier/_foundation.scss +45 -0
- data/app/assets/stylesheets/tier/_grid.scss +58 -0
- data/app/assets/stylesheets/tier/_mixins.scss +50 -0
- data/app/assets/stylesheets/tier/_normalize.scss +427 -0
- data/app/assets/stylesheets/tier/_tables.scss +49 -0
- data/app/assets/stylesheets/tier/_typography.scss +233 -0
- data/app/assets/stylesheets/tier/_variables.scss +151 -0
- data/app/assets/stylesheets/tier/_vendor.scss +15 -0
- data/app/assets/stylesheets/tier/index.html +1 -0
- data/lib/tier.rb +8 -0
- data/lib/tier/version.rb +3 -0
- data/tier.gemspec +25 -0
- metadata +129 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a6a2366f46657f5609fd5e59fdf8ebf207981096
|
4
|
+
data.tar.gz: efd6c204cc3baa82abf771987d516704325bbd8e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ddfda33209c2c9ed50bfed5fea71397949109f598f68b476991d5cd3d5f7b042215b942a1f7ccacc43416a62728dc93d0b7b7046ca08ee6cd597cd232a425ddf
|
7
|
+
data.tar.gz: a5febbf4adadb9399dcf18653649033df36b84ab57b2e065bbc97ee893141dfb27f29afc8f172fc702c1f8c1bae854d6c84abbf150d5fb024afa968a1f07f0bf
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 TODO: Write your name
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
## Rails Tier
|
2
|
+
|
3
|
+
A minimalistic and subtle frontend framework for faster and smooth Ruby on Rails development.
|
4
|
+
|
5
|
+
The gem version of [Tier](https://github.com/hugw/tier).
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```
|
12
|
+
$ gem 'tier'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
```
|
18
|
+
$ bundle
|
19
|
+
```
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
```
|
24
|
+
$ gem install tier
|
25
|
+
```
|
26
|
+
|
27
|
+
## Docs
|
28
|
+
|
29
|
+
http://hugw.io/tier/
|
30
|
+
|
31
|
+
## Releases
|
32
|
+
|
33
|
+
### Version 0.0.1
|
34
|
+
|
35
|
+
Initial version.
|
36
|
+
|
37
|
+
## Contributing
|
38
|
+
|
39
|
+
1. Fork it ( https://github.com/hugw/rails-tier/fork )
|
40
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
41
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
42
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
43
|
+
5. Create a new Pull Request
|
44
|
+
|
45
|
+
***
|
46
|
+
|
47
|
+
The MIT License (MIT)
|
48
|
+
|
49
|
+
Copyright (c) 2015 Hugo W. - hugo.wnt@gmail.com
|
50
|
+
|
51
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
52
|
+
of this software and associated documentation files (the "Software"), to deal
|
53
|
+
in the Software without restriction, including without limitation the rights
|
54
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
55
|
+
copies of the Software, and to permit persons to whom the Software is
|
56
|
+
furnished to do so, subject to the following conditions:
|
57
|
+
|
58
|
+
The above copyright notice and this permission notice shall be included in
|
59
|
+
all copies or substantial portions of the Software.
|
60
|
+
|
61
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
62
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
63
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
64
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
65
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
66
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
67
|
+
THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<!-- Silence is a true friend who never betrays. — Confucius -->
|
@@ -0,0 +1 @@
|
|
1
|
+
<!-- Silence is a true friend who never betrays. — Confucius -->
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*!
|
2
|
+
* Tier
|
3
|
+
*
|
4
|
+
* @copyright Copyright (c) 2015, hugw.io
|
5
|
+
* @author Hugo W - hugo.wnt@gmail.com
|
6
|
+
* @license The MIT License (MIT)
|
7
|
+
*/
|
8
|
+
|
9
|
+
@import 'tier/vendor';
|
10
|
+
@import 'tier/variables';
|
11
|
+
@import 'tier/mixins';
|
12
|
+
@import 'tier/normalize';
|
13
|
+
@import 'tier/foundation';
|
14
|
+
@import 'tier/typography';
|
15
|
+
@import 'tier/tables';
|
16
|
+
@import 'tier/buttons';
|
17
|
+
@import 'tier/forms';
|
18
|
+
@import 'tier/grid';
|
@@ -0,0 +1,47 @@
|
|
1
|
+
/**
|
2
|
+
* Buttons
|
3
|
+
*
|
4
|
+
* @copyright Copyright (c) 2015, hugw.io
|
5
|
+
* @author Hugo W - hugo.wnt@gmail.com
|
6
|
+
* @license The MIT License (MIT)
|
7
|
+
*/
|
8
|
+
|
9
|
+
.button {
|
10
|
+
cursor: pointer;
|
11
|
+
display: inline-block;
|
12
|
+
vertical-align: middle;
|
13
|
+
min-height: 1em;
|
14
|
+
height: 35px;
|
15
|
+
outline: none;
|
16
|
+
border: none;
|
17
|
+
background: $button-background;
|
18
|
+
color: $button-color;
|
19
|
+
margin: 0;
|
20
|
+
padding: 0 $base-padding;
|
21
|
+
line-height: 35px;
|
22
|
+
font-size: $button-font-size;
|
23
|
+
text-align: center;
|
24
|
+
text-decoration: none;
|
25
|
+
border-radius: $base-radius;
|
26
|
+
font-weight: 800;
|
27
|
+
|
28
|
+
&:hover {
|
29
|
+
background: $button-hover-background;
|
30
|
+
color: $button-hover-color;
|
31
|
+
}
|
32
|
+
|
33
|
+
&.button-icon {
|
34
|
+
padding: 0 $base-padding/1.5;
|
35
|
+
}
|
36
|
+
|
37
|
+
&.button-ghost {
|
38
|
+
background: none;
|
39
|
+
color: $button-ghost-color;
|
40
|
+
border: $button-ghost-border;
|
41
|
+
|
42
|
+
&:hover {
|
43
|
+
color: $button-ghost-hover-color;
|
44
|
+
border: $button-ghost-hover-border;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
@@ -0,0 +1,176 @@
|
|
1
|
+
/**
|
2
|
+
* Forms
|
3
|
+
*
|
4
|
+
* @copyright Copyright (c) 2015, hugw.io
|
5
|
+
* @author Hugo W - hugo.wnt@gmail.com
|
6
|
+
* @license The MIT License (MIT)
|
7
|
+
*/
|
8
|
+
|
9
|
+
form {
|
10
|
+
margin: 0 0 $base-margin 0;
|
11
|
+
line-height: $body-line-height;
|
12
|
+
}
|
13
|
+
|
14
|
+
textarea,
|
15
|
+
select[multiple],
|
16
|
+
select[multiple="multiple"] {
|
17
|
+
padding: $base-padding/4;
|
18
|
+
width: 100%;
|
19
|
+
}
|
20
|
+
|
21
|
+
label {
|
22
|
+
display: block;
|
23
|
+
margin: 0 0 $base-margin/4;
|
24
|
+
font-weight: bold;
|
25
|
+
}
|
26
|
+
|
27
|
+
input[type="text"],
|
28
|
+
input[type="password"],
|
29
|
+
input[type="email"],
|
30
|
+
input[type="url"],
|
31
|
+
input[type="phone"],
|
32
|
+
input[type="tel"],
|
33
|
+
input[type="number"],
|
34
|
+
input[type="datetime"],
|
35
|
+
input[type="date"],
|
36
|
+
input[type="month"],
|
37
|
+
input[type="color"],
|
38
|
+
input[type="time"],
|
39
|
+
input[type="search"],
|
40
|
+
input[type="datetime-local"] {
|
41
|
+
box-shadow: none;
|
42
|
+
padding: 0 $base-padding/2;
|
43
|
+
line-height: 35px;
|
44
|
+
height: 35px;
|
45
|
+
border-radius: 0;
|
46
|
+
outline: none;
|
47
|
+
width: 100%;
|
48
|
+
|
49
|
+
&::-moz-placeholder {
|
50
|
+
color: $form-input-placeholder;
|
51
|
+
opacity: 1;
|
52
|
+
}
|
53
|
+
|
54
|
+
&:-ms-input-placeholder {
|
55
|
+
color: $form-input-placeholder;
|
56
|
+
}
|
57
|
+
|
58
|
+
&::-webkit-input-placeholder {
|
59
|
+
color: $form-input-placeholder;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
select[multiple],
|
64
|
+
select[multiple="multiple"],
|
65
|
+
textarea,
|
66
|
+
input[type="text"],
|
67
|
+
input[type="password"],
|
68
|
+
input[type="email"],
|
69
|
+
input[type="url"],
|
70
|
+
input[type="phone"],
|
71
|
+
input[type="tel"],
|
72
|
+
input[type="number"],
|
73
|
+
input[type="datetime"],
|
74
|
+
input[type="date"],
|
75
|
+
input[type="month"],
|
76
|
+
input[type="color"],
|
77
|
+
input[type="time"],
|
78
|
+
input[type="search"],
|
79
|
+
input[type="datetime-local"] {
|
80
|
+
background: $form-input-background;
|
81
|
+
border: $form-input-border;
|
82
|
+
position: relative;
|
83
|
+
z-index: 2;
|
84
|
+
-webkit-appearance: none;
|
85
|
+
font-size: $form-input-font-size;
|
86
|
+
outline: none;
|
87
|
+
}
|
88
|
+
|
89
|
+
textarea,
|
90
|
+
input[type="text"],
|
91
|
+
input[type="password"],
|
92
|
+
input[type="email"],
|
93
|
+
input[type="url"],
|
94
|
+
input[type="phone"],
|
95
|
+
input[type="tel"],
|
96
|
+
input[type="number"],
|
97
|
+
input[type="datetime"],
|
98
|
+
input[type="date"],
|
99
|
+
input[type="month"],
|
100
|
+
input[type="color"],
|
101
|
+
input[type="time"],
|
102
|
+
input[type="search"],
|
103
|
+
input[type="datetime-local"] {
|
104
|
+
&[disabled] {
|
105
|
+
resize: none;
|
106
|
+
color: rgba(0, 0, 0, .5);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
select,
|
111
|
+
input[type="checkbox"],
|
112
|
+
input[type="radio"] {
|
113
|
+
&[disabled] {
|
114
|
+
cursor: default;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
input::-moz-focus-inner,
|
119
|
+
button::-moz-focus-inner,
|
120
|
+
textarea::-moz-focus-inner,
|
121
|
+
select::-moz-focus-inner {
|
122
|
+
border: 0;
|
123
|
+
padding: 0;
|
124
|
+
}
|
125
|
+
|
126
|
+
input[type="range"] {
|
127
|
+
position: relative;
|
128
|
+
top: 3px;
|
129
|
+
width: 100%;
|
130
|
+
display: block;
|
131
|
+
}
|
132
|
+
|
133
|
+
input[type="radio"],
|
134
|
+
input[type="checkbox"] {
|
135
|
+
margin: 0 $base-margin/4 0 0;
|
136
|
+
line-height: normal;
|
137
|
+
}
|
138
|
+
|
139
|
+
fieldset {
|
140
|
+
padding: $base-padding;
|
141
|
+
margin-bottom: $base-margin;
|
142
|
+
border: $form-input-border;
|
143
|
+
|
144
|
+
form {
|
145
|
+
margin: 0;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
legend {
|
150
|
+
font-weight: bold;
|
151
|
+
padding: 0 $base-padding;
|
152
|
+
margin-left: $base-margin;
|
153
|
+
}
|
154
|
+
|
155
|
+
span.form-radio,
|
156
|
+
span.form-checkbox {
|
157
|
+
display: block;
|
158
|
+
margin: 0 0 $base-margin/4;
|
159
|
+
}
|
160
|
+
|
161
|
+
span.form-radio-inline,
|
162
|
+
span.form-checkbox-inline {
|
163
|
+
display: inline-block;
|
164
|
+
margin: 0 $base-margin 0 0;
|
165
|
+
}
|
166
|
+
|
167
|
+
.form-required {
|
168
|
+
color: $form-required-color;
|
169
|
+
}
|
170
|
+
|
171
|
+
.form-description {
|
172
|
+
font-style: italic;
|
173
|
+
font-size: $form-description-font-size;
|
174
|
+
display: block;
|
175
|
+
margin: 5px 0 0 0;
|
176
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Foundation
|
3
|
+
*
|
4
|
+
* @copyright Copyright (c) 2015, hugw.io
|
5
|
+
* @author Hugo W - hugo.wnt@gmail.com
|
6
|
+
* @license The MIT License (MIT)
|
7
|
+
*/
|
8
|
+
|
9
|
+
html {
|
10
|
+
font-size: 10px;
|
11
|
+
-webkit-tap-highlight-color: rgba(black,0);
|
12
|
+
}
|
13
|
+
|
14
|
+
body {
|
15
|
+
background: $body-background-color;
|
16
|
+
font-family: $body-font-family;
|
17
|
+
color: $body-text-color;
|
18
|
+
font-size: $body-font-size;
|
19
|
+
line-height: $body-line-height;
|
20
|
+
}
|
21
|
+
|
22
|
+
*,
|
23
|
+
*:before,
|
24
|
+
*:after {
|
25
|
+
box-sizing: border-box;
|
26
|
+
}
|
27
|
+
|
28
|
+
::-webkit-selection {
|
29
|
+
background-color: $selection-background-color !important;
|
30
|
+
color: $selection-color !important;
|
31
|
+
}
|
32
|
+
|
33
|
+
::-moz-selection {
|
34
|
+
background-color: $selection-background-color !important;
|
35
|
+
color: $selection-color !important;
|
36
|
+
}
|
37
|
+
|
38
|
+
::selection {
|
39
|
+
background-color: $selection-background-color !important;
|
40
|
+
color: $selection-color !important;
|
41
|
+
}
|
42
|
+
|
43
|
+
.clearfix {
|
44
|
+
@include clearfix;
|
45
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
/**
|
2
|
+
* Grid
|
3
|
+
*
|
4
|
+
* @copyright Copyright (c) 2015, hugw.io
|
5
|
+
* @author Hugo W - hugo.wnt@gmail.com
|
6
|
+
* @license The MIT License (MIT)
|
7
|
+
*/
|
8
|
+
|
9
|
+
.grid-foundation,
|
10
|
+
.grid-row,
|
11
|
+
.grid-container {
|
12
|
+
width: 100%;
|
13
|
+
@include clearfix;
|
14
|
+
}
|
15
|
+
|
16
|
+
.grid-row {
|
17
|
+
width: auto;
|
18
|
+
margin: 0 -10px;
|
19
|
+
}
|
20
|
+
|
21
|
+
div[class^="grid-column"] {
|
22
|
+
position: relative;
|
23
|
+
min-height: 1px;
|
24
|
+
padding: 0 10px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.grid-container {
|
28
|
+
padding: 0 10px;
|
29
|
+
margin: 0 auto;
|
30
|
+
width: $container-lg;
|
31
|
+
|
32
|
+
@media (#{$breakpoint-max-xs}) { width: $container-xs; }
|
33
|
+
@media (#{$breakpoint-min-sm}) { width: $container-sm; }
|
34
|
+
@media (#{$breakpoint-min-md}) { width: $container-md; }
|
35
|
+
@media (#{$breakpoint-min-lg}) { width: $container-lg; }
|
36
|
+
@media (#{$breakpoint-min-xl}) { width: $container-xl; }
|
37
|
+
}
|
38
|
+
|
39
|
+
@include grid(xs);
|
40
|
+
@media (#{$breakpoint-min-sm}) { @include grid(sm); }
|
41
|
+
@media (#{$breakpoint-min-md}) { @include grid(md); }
|
42
|
+
@media (#{$breakpoint-min-lg}) { @include grid(lg); }
|
43
|
+
@media (#{$breakpoint-min-xl}) { @include grid(xl); }
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
/** Utils
|
49
|
+
***********************/
|
50
|
+
|
51
|
+
.hide { display: none !important; }
|
52
|
+
.show { display: block !important; }
|
53
|
+
|
54
|
+
@media (#{$breakpoint-max-xs}) { @include show_hide(xs); }
|
55
|
+
@media (#{$breakpoint-min-sm}) and (#{$breakpoint-max-sm}) { @include show_hide(sm); }
|
56
|
+
@media (#{$breakpoint-min-md}) and (#{$breakpoint-max-md}) { @include show_hide(md); }
|
57
|
+
@media (#{$breakpoint-min-lg}) and (#{$breakpoint-max-lg}) { @include show_hide(lg); }
|
58
|
+
@media (#{$breakpoint-min-xl}) { @include show_hide(xl); }
|