torino 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -0
- data/lib/torino/version.rb +1 -1
- data/vendor/assets/stylesheets/torino.css +50 -19
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd601801034faa8acbff9d3168fbae4ecb76aa4f
|
4
|
+
data.tar.gz: 0ddbd97b247784f96d339b5ff9b43ef5192e08da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3d29a5bb7cab88a7a7efe5c66116e0fe6852cb95cdbe460f188d4c0894c628b706d00036502fd823dad944803893eb4b2f218269c682d851c00b1459d9afab6
|
7
|
+
data.tar.gz: 16a2242095f4650f7d7168e87281ac796a08cd2e69d4e94cd586a44888b9748d1598c04be13f09c4355ae91c5a56d71552cf1d7731c484be9b7483e20f58b595
|
data/README.md
CHANGED
@@ -28,6 +28,28 @@ Add this line to your application.css:
|
|
28
28
|
*= require torino
|
29
29
|
```
|
30
30
|
|
31
|
+
### Examples
|
32
|
+
|
33
|
+
Menu
|
34
|
+
|
35
|
+
```slim
|
36
|
+
- return unless signed_in?
|
37
|
+
|
38
|
+
.menu
|
39
|
+
.container
|
40
|
+
ul
|
41
|
+
li : a href=dashboard_url Dashboard
|
42
|
+
li : a href=user_url(current_user) Profile
|
43
|
+
ul.pull-right
|
44
|
+
li = current_user.twin.name
|
45
|
+
li
|
46
|
+
a [
|
47
|
+
href=sessions_url
|
48
|
+
data-method='DELETE'
|
49
|
+
data-no-turbolink='true'
|
50
|
+
] Exit
|
51
|
+
```
|
52
|
+
|
31
53
|
## Development
|
32
54
|
|
33
55
|
After checking out the repo, run `bin/setup` to install dependencies.
|
data/lib/torino/version.rb
CHANGED
@@ -55,7 +55,8 @@ input[type=submit] {
|
|
55
55
|
font-size: inherit;
|
56
56
|
}
|
57
57
|
|
58
|
-
.button,
|
58
|
+
.button,
|
59
|
+
input[type=submit] {
|
59
60
|
background-color: #00695C;
|
60
61
|
color: #FFF;
|
61
62
|
display: inline-block;
|
@@ -63,12 +64,15 @@ input[type=submit] {
|
|
63
64
|
cursor: pointer;
|
64
65
|
}
|
65
66
|
|
66
|
-
.button:hover,
|
67
|
+
.button:hover,
|
68
|
+
input[type=submit]:hover {
|
67
69
|
background-color: #00796B;
|
68
70
|
}
|
69
71
|
|
70
72
|
|
71
|
-
a.button,
|
73
|
+
a.button,
|
74
|
+
a.button:hover,
|
75
|
+
a.button:visited {
|
72
76
|
color: #FFF;
|
73
77
|
}
|
74
78
|
|
@@ -83,7 +87,9 @@ a.button, a.button:hover, a.button:visited {
|
|
83
87
|
background-color: #FFE57F;
|
84
88
|
}
|
85
89
|
|
86
|
-
a.button.mini,
|
90
|
+
a.button.mini,
|
91
|
+
a.button.mini:hover,
|
92
|
+
a.button.mini:visited {
|
87
93
|
color: #212121;
|
88
94
|
}
|
89
95
|
|
@@ -91,37 +97,39 @@ a.button.mini, a.button.mini:hover, a.button.mini:visited {
|
|
91
97
|
* Forms
|
92
98
|
* ------------------------------------------
|
93
99
|
*/
|
94
|
-
form,
|
100
|
+
form,
|
101
|
+
.form {
|
95
102
|
margin-bottom: 40px;
|
96
103
|
}
|
97
104
|
|
98
|
-
form label,
|
105
|
+
form label,
|
106
|
+
.form label {
|
99
107
|
width: 160px;
|
100
108
|
max-width: 160px;
|
101
109
|
min-width: 160px;
|
102
110
|
}
|
103
111
|
|
104
|
-
form.label-width-100 label,
|
112
|
+
form.label-width-100 label,
|
113
|
+
.form.label-width-100 label {
|
105
114
|
width: 100px;
|
106
115
|
max-width: 100px;
|
107
116
|
min-width: 100px;
|
108
117
|
}
|
109
118
|
|
110
|
-
form.label-width-200 label,
|
119
|
+
form.label-width-200 label,
|
120
|
+
.form.label-width-200 label {
|
111
121
|
width: 200px;
|
112
122
|
max-width: 200px;
|
113
123
|
min-width: 200px;
|
114
124
|
}
|
115
125
|
|
116
|
-
.field_with_errors {
|
117
|
-
display: inline-block;
|
118
|
-
}
|
119
|
-
|
120
126
|
.actions {
|
121
127
|
margin-top: 20px;
|
122
128
|
}
|
123
129
|
|
124
|
-
.actions a,
|
130
|
+
.actions a,
|
131
|
+
.actions input[type=submit],
|
132
|
+
.actions .button {
|
125
133
|
margin-right: 40px;
|
126
134
|
}
|
127
135
|
|
@@ -129,25 +137,46 @@ form.label-width-200 label, .form.label-width-200 label {
|
|
129
137
|
* Inputs
|
130
138
|
* ------------------------------------------
|
131
139
|
*/
|
132
|
-
input
|
140
|
+
input,
|
141
|
+
select {
|
133
142
|
margin: 0 10px 14px 0;
|
134
143
|
}
|
135
144
|
|
136
|
-
input[type=text],
|
145
|
+
input[type=text],
|
146
|
+
input[type=password],
|
147
|
+
textarea {
|
137
148
|
border: none;
|
138
149
|
border-bottom: #FFE57F solid 1px;
|
139
150
|
font-size: inherit;
|
140
151
|
width: 400px;
|
141
152
|
}
|
142
153
|
|
143
|
-
input[type=text]:focus,
|
154
|
+
input[type=text]:focus,
|
155
|
+
input[type=password]:focus {
|
144
156
|
border-bottom: #009688 solid 1px;
|
145
157
|
}
|
146
158
|
|
147
|
-
input:focus,
|
159
|
+
input:focus,
|
160
|
+
textarea:focus {
|
148
161
|
outline: none;
|
149
162
|
}
|
150
163
|
|
164
|
+
.field_with_errors {
|
165
|
+
display: inline-block;
|
166
|
+
}
|
167
|
+
|
168
|
+
.field_with_errors > input[type=text],
|
169
|
+
.field_with_errors > input[type=password],
|
170
|
+
.field_with_errors > textarea {
|
171
|
+
background-color: #FFEBEE;
|
172
|
+
border-bottom: #E53935 solid 1px;
|
173
|
+
}
|
174
|
+
|
175
|
+
.field_with_errors > .error_message {
|
176
|
+
color: #D32F2F;
|
177
|
+
display: inline-block;
|
178
|
+
}
|
179
|
+
|
151
180
|
/*
|
152
181
|
* Labels
|
153
182
|
* ------------------------------------------
|
@@ -236,13 +265,15 @@ table.rows tr:last-child {
|
|
236
265
|
border: none
|
237
266
|
}
|
238
267
|
|
239
|
-
th,
|
268
|
+
th,
|
269
|
+
td {
|
240
270
|
text-align: left;
|
241
271
|
padding: 10px 30px 10px 14px;
|
242
272
|
vertical-align: top;
|
243
273
|
}
|
244
274
|
|
245
|
-
th:last-child,
|
275
|
+
th:last-child,
|
276
|
+
td:last-child {
|
246
277
|
padding-right: 14px;
|
247
278
|
}
|
248
279
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- blackchestnut
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|