flutie 1.3.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -1
- data/Gemfile.lock +23 -51
- data/README.md +4 -81
- data/flutie.gemspec +3 -5
- data/lib/flutie.rb +1 -1
- data/{app/helpers → lib/flutie}/body_class_helper.rb +0 -0
- data/{app/helpers → lib/flutie}/page_title_helper.rb +0 -0
- data/lib/flutie/{engine.rb → railtie.rb} +4 -1
- data/lib/flutie/version.rb +1 -1
- data/spec/spec_helper.rb +0 -5
- metadata +6 -66
- data/app/assets/stylesheets/_defaults.scss +0 -103
- data/app/assets/stylesheets/_flashes.scss +0 -41
- data/app/assets/stylesheets/_flutie.scss +0 -7
- data/app/assets/stylesheets/_forms.scss +0 -202
- data/app/assets/stylesheets/_lists.scss +0 -45
- data/app/assets/stylesheets/_reset.scss +0 -95
- data/app/assets/stylesheets/_tables.scss +0 -39
- data/app/assets/stylesheets/_type.scss +0 -133
- data/app/controllers/flutie/styleguides_controller.rb +0 -27
- data/app/views/flutie/styleguides/show.erb +0 -734
- data/app/views/layouts/flutie.erb +0 -47
- data/config/initializers/expansion.rb +0 -1
- data/config/routes.rb +0 -5
- data/lib/tasks/flutie.rake +0 -25
- data/public/stylesheets/flutie.css +0 -556
- data/server.rb +0 -21
- data/spec/controllers/styleguides_controller_spec.rb +0 -62
- data/spec/fixtures/app/views/styleguides/_one.erb +0 -1
- data/spec/fixtures/app/views/styleguides/_two.erb +0 -1
- data/spec/flutie_spec.rb +0 -7
- data/spec/initialization_spec.rb +0 -16
- data/spec/integration/navigation_spec.rb +0 -9
@@ -1,41 +0,0 @@
|
|
1
|
-
/* Success, error & notice boxes for messages and errors. */
|
2
|
-
div.error, div.notice, div.success, #flash_failure, #flash_success, #flash_notice {
|
3
|
-
border: 1px solid #ddd;
|
4
|
-
-moz-border-radius: .5rem;
|
5
|
-
-webkit-border-radius: .5rem;
|
6
|
-
border-radius: .5rem;
|
7
|
-
margin-bottom: .75em;
|
8
|
-
margin-bottom: .75rem;
|
9
|
-
padding: .75em;
|
10
|
-
padding: .75rem;
|
11
|
-
}
|
12
|
-
|
13
|
-
div.error, #flash_failure {
|
14
|
-
background: #FBE3E4;
|
15
|
-
border-color: #FBC2C4;
|
16
|
-
color: #D12F19;
|
17
|
-
}
|
18
|
-
|
19
|
-
div.error a, #flash_failure a {
|
20
|
-
color: #D12F19;
|
21
|
-
}
|
22
|
-
|
23
|
-
div.notice, #flash_notice {
|
24
|
-
background: #FFF6BF;
|
25
|
-
border-color: #FFD324;
|
26
|
-
color: #817134;
|
27
|
-
}
|
28
|
-
|
29
|
-
div.notice a, #flash_notice a {
|
30
|
-
color: #817134;
|
31
|
-
}
|
32
|
-
|
33
|
-
div.success, #flash_success {
|
34
|
-
background: #E6EFC2;
|
35
|
-
border-color: #C6D880;
|
36
|
-
color: #529214;
|
37
|
-
}
|
38
|
-
|
39
|
-
div.success a, #flash_success a {
|
40
|
-
color: #529214;
|
41
|
-
}
|
@@ -1,202 +0,0 @@
|
|
1
|
-
/* Forms */
|
2
|
-
|
3
|
-
/*
|
4
|
-
* Remove inner padding and border in FF3/4
|
5
|
-
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
|
6
|
-
*/
|
7
|
-
input[type="submit"]::-moz-focus-inner {
|
8
|
-
border: 0;
|
9
|
-
padding: 0;
|
10
|
-
}
|
11
|
-
|
12
|
-
form ol {
|
13
|
-
list-style: none;
|
14
|
-
margin: 0 0 .75em 0;
|
15
|
-
margin: 0 0 .75rem 0;
|
16
|
-
}
|
17
|
-
|
18
|
-
form ol ol {
|
19
|
-
margin-left: 0;
|
20
|
-
}
|
21
|
-
|
22
|
-
form ol li {
|
23
|
-
list-style-position: outside;
|
24
|
-
margin: 0 0 .75em 0;
|
25
|
-
margin: 0 0 .75rem 0;
|
26
|
-
}
|
27
|
-
|
28
|
-
/*list-style-position fixes IE label margin bug*/
|
29
|
-
form ol ol li {
|
30
|
-
list-style-position: outside;
|
31
|
-
margin: 0 0 .25em 0;
|
32
|
-
margin: 0 0 .25rem 0;
|
33
|
-
}
|
34
|
-
|
35
|
-
form ol li.error input {
|
36
|
-
background: #FBE3E4;
|
37
|
-
}
|
38
|
-
|
39
|
-
p.inline-errors {
|
40
|
-
color: #D12F19;
|
41
|
-
}
|
42
|
-
|
43
|
-
form ol li.file {
|
44
|
-
background: #e1e1e1;
|
45
|
-
border: 1px solid #c8c8c8;
|
46
|
-
padding: .75em;
|
47
|
-
padding: .75rem;
|
48
|
-
}
|
49
|
-
|
50
|
-
form abbr {
|
51
|
-
border-bottom: 0;
|
52
|
-
}
|
53
|
-
|
54
|
-
label {
|
55
|
-
display: block;
|
56
|
-
}
|
57
|
-
|
58
|
-
.required label {
|
59
|
-
font-weight: bold;
|
60
|
-
}
|
61
|
-
|
62
|
-
.checkbox_field label,
|
63
|
-
.radio_field label {
|
64
|
-
font-weight: normal;
|
65
|
-
}
|
66
|
-
|
67
|
-
a.cancel {
|
68
|
-
color: #7d0d0d;
|
69
|
-
}
|
70
|
-
|
71
|
-
.inline-hints {
|
72
|
-
color: #666;
|
73
|
-
font-size: .75em;
|
74
|
-
font-size: .75rem;
|
75
|
-
margin-bottom: .25em;
|
76
|
-
margin-bottom: .25rem;
|
77
|
-
}
|
78
|
-
|
79
|
-
/* Fieldsets */
|
80
|
-
fieldset {
|
81
|
-
background: #f1f1f1;
|
82
|
-
border: 1px solid #e3e3e3;
|
83
|
-
margin: 0 0 1em 0;
|
84
|
-
margin: 0 0 1rem 0;
|
85
|
-
padding: 1rem 1rem .75em 1em;
|
86
|
-
padding: 1rem 1rem .75rem 1rem;
|
87
|
-
}
|
88
|
-
|
89
|
-
fieldset fieldset, fieldset fieldset fieldset {
|
90
|
-
border: 0;
|
91
|
-
padding: 0;
|
92
|
-
}
|
93
|
-
|
94
|
-
legend {
|
95
|
-
font-weight: bold;
|
96
|
-
}
|
97
|
-
.ie6 legend, .ie7 legend {
|
98
|
-
margin-left: .5em;
|
99
|
-
margin-left: .5rem;
|
100
|
-
}
|
101
|
-
|
102
|
-
fieldset.buttons {
|
103
|
-
background: inherit;
|
104
|
-
border: 0;
|
105
|
-
padding: 0;
|
106
|
-
}
|
107
|
-
|
108
|
-
fieldset.buttons li {
|
109
|
-
display: inline;
|
110
|
-
}
|
111
|
-
|
112
|
-
.radio fieldset {
|
113
|
-
margin: 0;
|
114
|
-
padding: 0;
|
115
|
-
}
|
116
|
-
|
117
|
-
/* Text fields */
|
118
|
-
input[type="color"],
|
119
|
-
input[type="date"],
|
120
|
-
input[type="datetime"],
|
121
|
-
input[type="datetime-local"],
|
122
|
-
input[type="email"],
|
123
|
-
input[type="month"],
|
124
|
-
input[type="number"],
|
125
|
-
input[type="password"],
|
126
|
-
input[type="range"],
|
127
|
-
input[type="search"],
|
128
|
-
input[type="tel"],
|
129
|
-
input[type="text"],
|
130
|
-
input[type="time"],
|
131
|
-
input[type="url"],
|
132
|
-
input[type="week"] {
|
133
|
-
font-size: inherit;
|
134
|
-
padding: .25em;
|
135
|
-
padding: .25rem;
|
136
|
-
}
|
137
|
-
.ie6 input {
|
138
|
-
vertical-align: text-bottom;
|
139
|
-
}
|
140
|
-
|
141
|
-
input[disabled='disabled'] {
|
142
|
-
background-color: #fcfcfc;
|
143
|
-
cursor:default;
|
144
|
-
}
|
145
|
-
|
146
|
-
input[type="checkbox"] {
|
147
|
-
margin: 0 .25em 0 0;
|
148
|
-
margin: 0 .25rem 0 0;
|
149
|
-
position: relative;
|
150
|
-
vertical-align: middle;
|
151
|
-
}
|
152
|
-
.ie7 input[type="checkbox"] {
|
153
|
-
vertical-align: baseline;
|
154
|
-
}
|
155
|
-
|
156
|
-
input[type="radio"] {
|
157
|
-
margin: 0 .25em 0 0;
|
158
|
-
margin: 0 .25rem 0 0;
|
159
|
-
position: relative;
|
160
|
-
vertical-align: middle;
|
161
|
-
}
|
162
|
-
|
163
|
-
.check_boxes label {
|
164
|
-
display: inline;
|
165
|
-
padding: 0;
|
166
|
-
vertical-align: middle;
|
167
|
-
}
|
168
|
-
|
169
|
-
.radio label {
|
170
|
-
padding: 0;
|
171
|
-
}
|
172
|
-
|
173
|
-
/* Textareas */
|
174
|
-
textarea {
|
175
|
-
font-size: inherit;
|
176
|
-
margin: 0 .5em .5em 0;
|
177
|
-
margin: 0 .5rem .5rem 0;
|
178
|
-
padding: .5em;
|
179
|
-
padding: .5rem;
|
180
|
-
overflow: auto;
|
181
|
-
}
|
182
|
-
|
183
|
-
/* Select fields */
|
184
|
-
fieldset .select select {
|
185
|
-
font-size: .75em;
|
186
|
-
font-size: .75rem;
|
187
|
-
}
|
188
|
-
|
189
|
-
optgroup {
|
190
|
-
margin: 0 0 .5em 0;
|
191
|
-
margin: 0 0 .5rem 0;
|
192
|
-
}
|
193
|
-
|
194
|
-
/* Date & Time */
|
195
|
-
form ol li.date select, form ol li.time select, form ol li.datetime select {
|
196
|
-
display: inline;
|
197
|
-
width: auto;
|
198
|
-
}
|
199
|
-
|
200
|
-
form ol li.date ol li, form ol li.time ol li, form ol li.datetime ol li {
|
201
|
-
display: inline-block;
|
202
|
-
}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
/* Lists */
|
2
|
-
|
3
|
-
ul, ol {
|
4
|
-
list-style-position: inside;
|
5
|
-
margin-bottom: 1em;
|
6
|
-
margin-bottom: 1rem;
|
7
|
-
}
|
8
|
-
|
9
|
-
ul {
|
10
|
-
list-style-type: disc;
|
11
|
-
}
|
12
|
-
|
13
|
-
ol {
|
14
|
-
list-style-type: decimal;
|
15
|
-
}
|
16
|
-
|
17
|
-
dl {
|
18
|
-
line-height: 1.4em;
|
19
|
-
margin-bottom: 1em;
|
20
|
-
margin-bottom: 1rem;
|
21
|
-
}
|
22
|
-
|
23
|
-
dl dt {
|
24
|
-
font-weight: bold;
|
25
|
-
margin-top: .5em;
|
26
|
-
margin-top: .5rem;
|
27
|
-
}
|
28
|
-
|
29
|
-
dl dd {
|
30
|
-
margin-bottom: 0;
|
31
|
-
}
|
32
|
-
|
33
|
-
dd {
|
34
|
-
margin-left: .5em;
|
35
|
-
margin-left: .5rem;
|
36
|
-
}
|
37
|
-
|
38
|
-
li {
|
39
|
-
line-height: 1.4em;
|
40
|
-
}
|
41
|
-
|
42
|
-
ol ol, ol ul, ul ul, ul ol {
|
43
|
-
margin-left: .75em;
|
44
|
-
margin-left: .75rem;
|
45
|
-
}
|
@@ -1,95 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
html5doctor.com Reset Stylesheet
|
3
|
-
v1.6.1
|
4
|
-
Last Updated: 2010-09-17
|
5
|
-
Author: Richard Clark - http://richclarkdesign.com
|
6
|
-
Twitter: @rich_clark
|
7
|
-
*/
|
8
|
-
|
9
|
-
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
|
10
|
-
pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small,
|
11
|
-
strong, sub, sup, var,b, i,dl, dt, dd, ol, ul, li,fieldset, form, label,
|
12
|
-
legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas,
|
13
|
-
details, figcaption, figure, footer, header, hgroup, menu, nav, section,
|
14
|
-
summary, time, mark, audio, video {
|
15
|
-
margin:0;
|
16
|
-
padding:0;
|
17
|
-
border:0;
|
18
|
-
outline:0;
|
19
|
-
font-size:100%;
|
20
|
-
vertical-align:baseline;
|
21
|
-
background:transparent;
|
22
|
-
}
|
23
|
-
|
24
|
-
body {
|
25
|
-
line-height:1;
|
26
|
-
}
|
27
|
-
|
28
|
-
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,
|
29
|
-
section {
|
30
|
-
display:block;
|
31
|
-
}
|
32
|
-
|
33
|
-
nav ul {
|
34
|
-
list-style:none;
|
35
|
-
}
|
36
|
-
|
37
|
-
blockquote, q {
|
38
|
-
quotes:none;
|
39
|
-
}
|
40
|
-
|
41
|
-
blockquote:before, blockquote:after, q:before, q:after {
|
42
|
-
content:'';
|
43
|
-
content:none;
|
44
|
-
}
|
45
|
-
|
46
|
-
a {
|
47
|
-
margin:0;
|
48
|
-
padding:0;
|
49
|
-
font-size:100%;
|
50
|
-
vertical-align:baseline;
|
51
|
-
background:transparent;
|
52
|
-
}
|
53
|
-
|
54
|
-
/* change colours to suit your needs */
|
55
|
-
ins {
|
56
|
-
background-color:#ff9;
|
57
|
-
color:#000;
|
58
|
-
text-decoration:none;
|
59
|
-
}
|
60
|
-
|
61
|
-
/* change colours to suit your needs */
|
62
|
-
mark {
|
63
|
-
background-color:#ff9;
|
64
|
-
color:#000;
|
65
|
-
font-style:italic;
|
66
|
-
font-weight:bold;
|
67
|
-
}
|
68
|
-
|
69
|
-
del {
|
70
|
-
text-decoration: line-through;
|
71
|
-
}
|
72
|
-
|
73
|
-
abbr[title], dfn[title] {
|
74
|
-
border-bottom:1px dotted;
|
75
|
-
cursor:help;
|
76
|
-
}
|
77
|
-
|
78
|
-
table {
|
79
|
-
border-collapse:collapse;
|
80
|
-
border-spacing:0;
|
81
|
-
}
|
82
|
-
|
83
|
-
/* change border colour to suit your needs */
|
84
|
-
hr {
|
85
|
-
display:block;
|
86
|
-
height:1px;
|
87
|
-
border:0;
|
88
|
-
border-top:1px solid #cccccc;
|
89
|
-
margin:1em 0;
|
90
|
-
padding:0;
|
91
|
-
}
|
92
|
-
|
93
|
-
input, select {
|
94
|
-
vertical-align: middle;
|
95
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
/* Tables */
|
2
|
-
|
3
|
-
table {
|
4
|
-
margin-bottom: 1.5em;
|
5
|
-
margin-bottom: 1.5rem;
|
6
|
-
width: 100%;
|
7
|
-
}
|
8
|
-
|
9
|
-
th {
|
10
|
-
border-bottom: 2px solid #ccc;
|
11
|
-
font-weight: bold;
|
12
|
-
text-align: left;
|
13
|
-
}
|
14
|
-
|
15
|
-
td {
|
16
|
-
border-bottom: 1px solid #ddd;
|
17
|
-
}
|
18
|
-
|
19
|
-
caption, th, td {
|
20
|
-
padding: .25em .75em .25em 0;
|
21
|
-
padding: .25rem .75rem .25rem 0;
|
22
|
-
}
|
23
|
-
|
24
|
-
caption {
|
25
|
-
background: #f1f1f1;
|
26
|
-
margin-bottom: .75em;
|
27
|
-
margin-bottom: .75rem;
|
28
|
-
padding: .75em 0;
|
29
|
-
padding: .75rem 0;
|
30
|
-
}
|
31
|
-
|
32
|
-
tr, td, th {
|
33
|
-
vertical-align: middle;
|
34
|
-
}
|
35
|
-
|
36
|
-
/* Use this if you use span-x classes on th/td. */
|
37
|
-
table .last {
|
38
|
-
padding-right: 0;
|
39
|
-
}
|
@@ -1,133 +0,0 @@
|
|
1
|
-
/* Headings */
|
2
|
-
h1, h2, h3, h4, h5, h6 {
|
3
|
-
font-weight: bold;
|
4
|
-
line-height: 1.2em;
|
5
|
-
}
|
6
|
-
|
7
|
-
h1 {
|
8
|
-
font-size: 1.75em;
|
9
|
-
font-size: 1.75rem;
|
10
|
-
}
|
11
|
-
|
12
|
-
h2 {
|
13
|
-
font-size: 1.5em;
|
14
|
-
font-size: 1.5rem;
|
15
|
-
}
|
16
|
-
|
17
|
-
h3 {
|
18
|
-
font-size: 1.25em;
|
19
|
-
font-size: 1.25rem;
|
20
|
-
}
|
21
|
-
|
22
|
-
h4 {
|
23
|
-
font-size: 1em;
|
24
|
-
font-size: 1rem;
|
25
|
-
}
|
26
|
-
|
27
|
-
h5 {
|
28
|
-
font-size: .75em;
|
29
|
-
font-size: .75rem;
|
30
|
-
}
|
31
|
-
|
32
|
-
h6 {
|
33
|
-
font-size: .5em;
|
34
|
-
font-size: .5rem;
|
35
|
-
}
|
36
|
-
|
37
|
-
/* Text elements */
|
38
|
-
p {
|
39
|
-
line-height: 1.4em;
|
40
|
-
}
|
41
|
-
|
42
|
-
/* Use this if the image is at the top of the <p>. */
|
43
|
-
p img.top {
|
44
|
-
margin-top: 0;
|
45
|
-
}
|
46
|
-
|
47
|
-
img {
|
48
|
-
margin: 0 0 .75em;
|
49
|
-
margin: 0 0 .75rem;
|
50
|
-
}
|
51
|
-
|
52
|
-
abbr, acronym {
|
53
|
-
border-bottom: 1px dotted #666;
|
54
|
-
cursor: help;
|
55
|
-
}
|
56
|
-
|
57
|
-
address {
|
58
|
-
font-style: italic;
|
59
|
-
margin-top: 1em;
|
60
|
-
margin-top: 1rem;
|
61
|
-
}
|
62
|
-
|
63
|
-
del {
|
64
|
-
color:#666;
|
65
|
-
}
|
66
|
-
|
67
|
-
a, a:link {
|
68
|
-
color: #1a4882;
|
69
|
-
text-decoration: underline;
|
70
|
-
}
|
71
|
-
|
72
|
-
a:visited {
|
73
|
-
color: #1a4882;
|
74
|
-
}
|
75
|
-
|
76
|
-
a:hover {
|
77
|
-
color: #052246;
|
78
|
-
}
|
79
|
-
|
80
|
-
a:active, a:focus {
|
81
|
-
color: #1a4882;
|
82
|
-
}
|
83
|
-
|
84
|
-
blockquote {
|
85
|
-
border-left: 4px solid #d1d1d1;
|
86
|
-
color: #666;
|
87
|
-
font-style: italic;
|
88
|
-
margin: 1em 0;
|
89
|
-
margin: 1rem 0;
|
90
|
-
padding-left: .75em;
|
91
|
-
padding-left: .75rem;
|
92
|
-
}
|
93
|
-
|
94
|
-
strong {
|
95
|
-
font-weight: bold;
|
96
|
-
}
|
97
|
-
|
98
|
-
em,
|
99
|
-
dfn {
|
100
|
-
font-style: italic;
|
101
|
-
}
|
102
|
-
|
103
|
-
dfn {
|
104
|
-
font-weight: bold;
|
105
|
-
}
|
106
|
-
|
107
|
-
pre, code {
|
108
|
-
margin: .75em 0;
|
109
|
-
margin: .75rem 0;
|
110
|
-
white-space: pre; /* CSS2 */
|
111
|
-
white-space: pre-wrap; /* CSS 2.1 */
|
112
|
-
word-wrap: break-word; /* IE */
|
113
|
-
}
|
114
|
-
|
115
|
-
pre, code, tt {
|
116
|
-
font: .75rem 'andale mono', 'monotype.com', 'lucida console', monospace;
|
117
|
-
font-size: .75em;
|
118
|
-
font-size: .75rem;
|
119
|
-
line-height: 1.4em;
|
120
|
-
}
|
121
|
-
|
122
|
-
pre.code {
|
123
|
-
background: #000;
|
124
|
-
color: #fff;
|
125
|
-
padding: 1.25em;
|
126
|
-
padding: 1.25rem;
|
127
|
-
}
|
128
|
-
|
129
|
-
tt {
|
130
|
-
display: block;
|
131
|
-
line-height: 1.4em;
|
132
|
-
margin: 1rem 0;
|
133
|
-
}
|