plug 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/plug/application.scss +3 -1
- data/app/assets/stylesheets/plug/milligram.scss +602 -0
- data/app/assets/stylesheets/plug/normalize.scss +447 -0
- data/app/assets/stylesheets/plug/partials/_main.scss +1 -0
- data/app/assets/stylesheets/plug/variables/_typography.scss +1 -0
- data/app/views/layouts/plug/application.html.haml +1 -2
- data/app/views/plug/features/edit.html.haml +7 -5
- data/app/views/plug/features/index.html.haml +24 -24
- data/app/views/plug/features/new.html.haml +5 -3
- data/app/views/plug/features/show.html.haml +18 -16
- data/app/views/plug/shared/_nav.html.haml +3 -3
- data/lib/plug/version.rb +1 -1
- metadata +4 -3
- data/app/assets/stylesheets/plug/scaffolds.scss +0 -84
- data/app/assets/stylesheets/scaffolds.scss +0 -84
@@ -0,0 +1 @@
|
|
1
|
+
@import url('https://fonts.googleapis.com/css?family=Roboto');
|
@@ -1,7 +1,9 @@
|
|
1
|
-
|
1
|
+
.row
|
2
|
+
.column
|
3
|
+
%h4 Editing feature
|
2
4
|
|
3
|
-
= render 'form'
|
5
|
+
= render 'form'
|
4
6
|
|
5
|
-
= link_to 'Show', @feature
|
6
|
-
\|
|
7
|
-
= link_to 'Back', features_path
|
7
|
+
= link_to 'Show', @feature, class: 'button'
|
8
|
+
\|
|
9
|
+
= link_to 'Back', features_path, class: 'button'
|
@@ -1,27 +1,27 @@
|
|
1
|
-
|
1
|
+
.row
|
2
|
+
.column
|
3
|
+
%h4 Features
|
2
4
|
|
3
|
-
%table
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
%table
|
6
|
+
%thead
|
7
|
+
%tr
|
8
|
+
%th Name
|
9
|
+
%th Description
|
10
|
+
%th Slug
|
11
|
+
%th State
|
12
|
+
%th
|
13
|
+
%th
|
14
|
+
%th
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
16
|
+
%tbody
|
17
|
+
- @features.each do |feature|
|
18
|
+
%tr
|
19
|
+
%td= feature.name
|
20
|
+
%td= feature.description
|
21
|
+
%td= feature.slug
|
22
|
+
%td= feature.state
|
23
|
+
%td= link_to 'Show', feature
|
24
|
+
%td= link_to 'Edit', edit_feature_path(feature)
|
25
|
+
%td= link_to 'Destroy', feature, method: :delete, data: { confirm: 'Are you sure?' }
|
24
26
|
|
25
|
-
|
26
|
-
|
27
|
-
= link_to 'New Feature', new_feature_path
|
27
|
+
= link_to 'New Feature', new_feature_path, class: 'button'
|
@@ -1,18 +1,20 @@
|
|
1
|
-
|
1
|
+
.row
|
2
|
+
.column
|
3
|
+
%p#notice= notice
|
2
4
|
|
3
|
-
%p
|
4
|
-
|
5
|
-
|
6
|
-
%p
|
7
|
-
|
8
|
-
|
9
|
-
%p
|
10
|
-
|
11
|
-
|
12
|
-
%p
|
13
|
-
|
14
|
-
|
5
|
+
%p
|
6
|
+
%b Name:
|
7
|
+
= @feature.name
|
8
|
+
%p
|
9
|
+
%b Description:
|
10
|
+
= @feature.description
|
11
|
+
%p
|
12
|
+
%b Slug:
|
13
|
+
= @feature.slug
|
14
|
+
%p
|
15
|
+
%b State:
|
16
|
+
= @feature.state
|
15
17
|
|
16
|
-
= link_to 'Edit', edit_feature_path(@feature)
|
17
|
-
\|
|
18
|
-
= link_to 'Back', features_path
|
18
|
+
= link_to 'Edit', edit_feature_path(@feature), class: 'button'
|
19
|
+
\|
|
20
|
+
= link_to 'Back', features_path, class: 'button'
|
data/lib/plug/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben
|
@@ -197,12 +197,13 @@ files:
|
|
197
197
|
- app/assets/stylesheets/plug/blocks/_plugs.scss
|
198
198
|
- app/assets/stylesheets/plug/features.scss
|
199
199
|
- app/assets/stylesheets/plug/foundation_and_overrides.scss
|
200
|
+
- app/assets/stylesheets/plug/milligram.scss
|
200
201
|
- app/assets/stylesheets/plug/mixins/_bem.scss
|
202
|
+
- app/assets/stylesheets/plug/normalize.scss
|
201
203
|
- app/assets/stylesheets/plug/partials/_main.scss
|
202
204
|
- app/assets/stylesheets/plug/partials/_utils.scss
|
203
|
-
- app/assets/stylesheets/plug/scaffolds.scss
|
204
205
|
- app/assets/stylesheets/plug/variables/_colors.scss
|
205
|
-
- app/assets/stylesheets/
|
206
|
+
- app/assets/stylesheets/plug/variables/_typography.scss
|
206
207
|
- app/controllers/plug/application_controller.rb
|
207
208
|
- app/controllers/plug/features_controller.rb
|
208
209
|
- app/helpers/plug/application_helper.rb
|
@@ -1,84 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #fff;
|
3
|
-
color: #333;
|
4
|
-
margin: 33px;
|
5
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
6
|
-
font-size: 13px;
|
7
|
-
line-height: 18px;
|
8
|
-
}
|
9
|
-
|
10
|
-
p, ol, ul, td {
|
11
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
12
|
-
font-size: 13px;
|
13
|
-
line-height: 18px;
|
14
|
-
}
|
15
|
-
|
16
|
-
pre {
|
17
|
-
background-color: #eee;
|
18
|
-
padding: 10px;
|
19
|
-
font-size: 11px;
|
20
|
-
}
|
21
|
-
|
22
|
-
a {
|
23
|
-
color: #000;
|
24
|
-
|
25
|
-
&:visited {
|
26
|
-
color: #666;
|
27
|
-
}
|
28
|
-
|
29
|
-
&:hover {
|
30
|
-
color: #fff;
|
31
|
-
background-color: #000;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
th {
|
36
|
-
padding-bottom: 5px;
|
37
|
-
}
|
38
|
-
|
39
|
-
td {
|
40
|
-
padding: 0 5px 7px;
|
41
|
-
}
|
42
|
-
|
43
|
-
div {
|
44
|
-
&.field, &.actions {
|
45
|
-
margin-bottom: 10px;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
#notice {
|
50
|
-
color: green;
|
51
|
-
}
|
52
|
-
|
53
|
-
.field_with_errors {
|
54
|
-
padding: 2px;
|
55
|
-
background-color: red;
|
56
|
-
display: table;
|
57
|
-
}
|
58
|
-
|
59
|
-
#error_explanation {
|
60
|
-
width: 450px;
|
61
|
-
border: 2px solid red;
|
62
|
-
padding: 7px 7px 0;
|
63
|
-
margin-bottom: 20px;
|
64
|
-
background-color: #f0f0f0;
|
65
|
-
|
66
|
-
h2 {
|
67
|
-
text-align: left;
|
68
|
-
font-weight: bold;
|
69
|
-
padding: 5px 5px 5px 15px;
|
70
|
-
font-size: 12px;
|
71
|
-
margin: -7px -7px 0;
|
72
|
-
background-color: #c00;
|
73
|
-
color: #fff;
|
74
|
-
}
|
75
|
-
|
76
|
-
ul li {
|
77
|
-
font-size: 12px;
|
78
|
-
list-style: square;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
label {
|
83
|
-
display: block;
|
84
|
-
}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #fff;
|
3
|
-
color: #333;
|
4
|
-
margin: 33px;
|
5
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
6
|
-
font-size: 13px;
|
7
|
-
line-height: 18px;
|
8
|
-
}
|
9
|
-
|
10
|
-
p, ol, ul, td {
|
11
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
12
|
-
font-size: 13px;
|
13
|
-
line-height: 18px;
|
14
|
-
}
|
15
|
-
|
16
|
-
pre {
|
17
|
-
background-color: #eee;
|
18
|
-
padding: 10px;
|
19
|
-
font-size: 11px;
|
20
|
-
}
|
21
|
-
|
22
|
-
a {
|
23
|
-
color: #000;
|
24
|
-
|
25
|
-
&:visited {
|
26
|
-
color: #666;
|
27
|
-
}
|
28
|
-
|
29
|
-
&:hover {
|
30
|
-
color: #fff;
|
31
|
-
background-color: #000;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
th {
|
36
|
-
padding-bottom: 5px;
|
37
|
-
}
|
38
|
-
|
39
|
-
td {
|
40
|
-
padding: 0 5px 7px;
|
41
|
-
}
|
42
|
-
|
43
|
-
div {
|
44
|
-
&.field, &.actions {
|
45
|
-
margin-bottom: 10px;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
#notice {
|
50
|
-
color: green;
|
51
|
-
}
|
52
|
-
|
53
|
-
.field_with_errors {
|
54
|
-
padding: 2px;
|
55
|
-
background-color: red;
|
56
|
-
display: table;
|
57
|
-
}
|
58
|
-
|
59
|
-
#error_explanation {
|
60
|
-
width: 450px;
|
61
|
-
border: 2px solid red;
|
62
|
-
padding: 7px 7px 0;
|
63
|
-
margin-bottom: 20px;
|
64
|
-
background-color: #f0f0f0;
|
65
|
-
|
66
|
-
h2 {
|
67
|
-
text-align: left;
|
68
|
-
font-weight: bold;
|
69
|
-
padding: 5px 5px 5px 15px;
|
70
|
-
font-size: 12px;
|
71
|
-
margin: -7px -7px 0;
|
72
|
-
background-color: #c00;
|
73
|
-
color: #fff;
|
74
|
-
}
|
75
|
-
|
76
|
-
ul li {
|
77
|
-
font-size: 12px;
|
78
|
-
list-style: square;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
label {
|
83
|
-
display: block;
|
84
|
-
}
|