plinth 0.0.1.beta.4 → 0.0.1.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +9 -6
- data/Gemfile.lock +110 -122
- data/README.md +5 -7
- data/app/assets/stylesheets/application.css.scss +18 -0
- data/app/views/base/images.html.haml +1 -20
- data/app/views/base/index.html.haml +10 -10
- data/app/views/modules/alerts.html.haml +1 -1
- data/lib/plinth/version.rb +1 -1
- data/lib/plinth.rb +10 -3
- data/plinth.gemspec +0 -1
- data/vendor/assets/stylesheets/_settings.css.scss +8 -9
- data/vendor/assets/stylesheets/plinth/base/_all.css.scss +1 -1
- data/vendor/assets/stylesheets/plinth/base/_type.css.scss +8 -17
- metadata +3 -6
- data/lib/plinth/railtie.rb +0 -11
data/Gemfile
CHANGED
|
@@ -10,10 +10,13 @@ gemspec :development_group => :dev
|
|
|
10
10
|
# Gems used only for assets and not required in production environments by default.
|
|
11
11
|
#
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
gem '
|
|
15
|
-
gem
|
|
16
|
-
gem '
|
|
13
|
+
group :assets do
|
|
14
|
+
gem 'sass-rails', '~> 3.2.3'
|
|
15
|
+
gem 'coffee-rails', '~> 3.2.1'
|
|
16
|
+
gem 'compass-rails'
|
|
17
|
+
gem 'uglifier', '>= 1.0.3'
|
|
18
|
+
end
|
|
19
|
+
|
|
17
20
|
|
|
18
21
|
#
|
|
19
22
|
# Use haml for templates & generators
|
|
@@ -24,7 +27,7 @@ gem "haml-rails"
|
|
|
24
27
|
gem 'kramdown'
|
|
25
28
|
gem 'kramdown-haml'
|
|
26
29
|
gem 'thin'
|
|
27
|
-
gem 'formtastic'
|
|
30
|
+
gem 'formtastic'
|
|
28
31
|
gem 'rb-readline'
|
|
29
32
|
|
|
30
33
|
#
|
|
@@ -43,7 +46,7 @@ group :development, :test, :staging do
|
|
|
43
46
|
gem 'jasminerice', :git => "https://github.com/bradphelan/jasminerice"
|
|
44
47
|
gem "guard-jasmine"
|
|
45
48
|
# gem 'jsPercolator', :git => "git@github.com:adtaylor/jsPercolator.git"
|
|
46
|
-
gem
|
|
49
|
+
gem "rails", "~> 3.2.12"
|
|
47
50
|
gem "capistrano"
|
|
48
51
|
gem "aws-sdk"
|
|
49
52
|
gem "net-sftp", "~> 2.1.1"
|
data/Gemfile.lock
CHANGED
|
@@ -8,7 +8,7 @@ GIT
|
|
|
8
8
|
PATH
|
|
9
9
|
remote: .
|
|
10
10
|
specs:
|
|
11
|
-
plinth (
|
|
11
|
+
plinth (1.1.1)
|
|
12
12
|
actionpack (>= 3.1, < 4.1)
|
|
13
13
|
activesupport (>= 3.1, < 4.1)
|
|
14
14
|
compass-rails (>= 1.0, < 2.0)
|
|
@@ -21,50 +21,52 @@ PATH
|
|
|
21
21
|
GEM
|
|
22
22
|
remote: https://rubygems.org/
|
|
23
23
|
specs:
|
|
24
|
-
actionmailer (
|
|
25
|
-
actionpack (=
|
|
24
|
+
actionmailer (3.2.14)
|
|
25
|
+
actionpack (= 3.2.14)
|
|
26
26
|
mail (~> 2.5.4)
|
|
27
|
-
actionpack (
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
actionpack (3.2.14)
|
|
28
|
+
activemodel (= 3.2.14)
|
|
29
|
+
activesupport (= 3.2.14)
|
|
30
|
+
builder (~> 3.0.0)
|
|
30
31
|
erubis (~> 2.7.0)
|
|
31
|
-
|
|
32
|
-
rack
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
journey (~> 1.0.4)
|
|
33
|
+
rack (~> 1.4.5)
|
|
34
|
+
rack-cache (~> 1.2)
|
|
35
|
+
rack-test (~> 0.6.1)
|
|
36
|
+
sprockets (~> 2.2.1)
|
|
37
|
+
activemodel (3.2.14)
|
|
38
|
+
activesupport (= 3.2.14)
|
|
39
|
+
builder (~> 3.0.0)
|
|
40
|
+
activerecord (3.2.14)
|
|
41
|
+
activemodel (= 3.2.14)
|
|
42
|
+
activesupport (= 3.2.14)
|
|
43
|
+
arel (~> 3.0.2)
|
|
44
|
+
tzinfo (~> 0.3.29)
|
|
45
|
+
activeresource (3.2.14)
|
|
46
|
+
activemodel (= 3.2.14)
|
|
47
|
+
activesupport (= 3.2.14)
|
|
48
|
+
activesupport (3.2.14)
|
|
43
49
|
i18n (~> 0.6, >= 0.6.4)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
tzinfo (~> 0.3.37)
|
|
48
|
-
arel (4.0.1)
|
|
49
|
-
atomic (1.1.14)
|
|
50
|
-
aws-sdk (1.32.0)
|
|
50
|
+
multi_json (~> 1.0)
|
|
51
|
+
arel (3.0.2)
|
|
52
|
+
aws-sdk (1.18.0)
|
|
51
53
|
json (~> 1.4)
|
|
52
|
-
nokogiri (
|
|
54
|
+
nokogiri (< 1.6.0)
|
|
53
55
|
uuidtools (~> 2.1)
|
|
54
|
-
builder (3.
|
|
55
|
-
capistrano (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
childprocess (0.
|
|
56
|
+
builder (3.0.4)
|
|
57
|
+
capistrano (2.15.5)
|
|
58
|
+
highline
|
|
59
|
+
net-scp (>= 1.0.0)
|
|
60
|
+
net-sftp (>= 2.0.0)
|
|
61
|
+
net-ssh (>= 2.0.14)
|
|
62
|
+
net-ssh-gateway (>= 1.1.0)
|
|
63
|
+
childprocess (0.3.9)
|
|
62
64
|
ffi (~> 1.0, >= 1.0.11)
|
|
63
|
-
chunky_png (1.2.
|
|
65
|
+
chunky_png (1.2.8)
|
|
64
66
|
coderay (1.1.0)
|
|
65
|
-
coffee-rails (
|
|
67
|
+
coffee-rails (3.2.2)
|
|
66
68
|
coffee-script (>= 2.2.0)
|
|
67
|
-
railties (
|
|
69
|
+
railties (~> 3.2.0)
|
|
68
70
|
coffee-script (2.2.0)
|
|
69
71
|
coffee-script-source
|
|
70
72
|
execjs
|
|
@@ -73,144 +75,130 @@ GEM
|
|
|
73
75
|
chunky_png (~> 1.2)
|
|
74
76
|
fssm (>= 0.2.7)
|
|
75
77
|
sass (~> 3.1)
|
|
76
|
-
compass-rails (1.
|
|
77
|
-
compass (>= 0.12.2)
|
|
78
|
+
compass-rails (1.0.3)
|
|
79
|
+
compass (>= 0.12.2, < 0.14)
|
|
78
80
|
daemons (1.1.9)
|
|
79
81
|
dotenv (0.9.0)
|
|
80
82
|
erubis (2.7.0)
|
|
81
83
|
eventmachine (1.0.3)
|
|
82
|
-
execjs (2.0.
|
|
83
|
-
ffi (1.9.
|
|
84
|
+
execjs (2.0.1)
|
|
85
|
+
ffi (1.9.0)
|
|
84
86
|
foreman (0.63.0)
|
|
85
87
|
dotenv (>= 0.7)
|
|
86
88
|
thor (>= 0.13.6)
|
|
87
|
-
|
|
88
|
-
formtastic (2.3.0.rc2)
|
|
89
|
+
formtastic (2.2.1)
|
|
89
90
|
actionpack (>= 3.0)
|
|
90
91
|
fssm (0.2.10)
|
|
91
92
|
growl (1.0.3)
|
|
92
|
-
guard (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
pry (>= 0.9.12)
|
|
97
|
-
thor (>= 0.18.1)
|
|
98
|
-
guard-jasmine (1.19.0)
|
|
93
|
+
guard (1.4.0)
|
|
94
|
+
listen (>= 0.4.2)
|
|
95
|
+
thor (>= 0.14.6)
|
|
96
|
+
guard-jasmine (1.18.3)
|
|
99
97
|
childprocess
|
|
100
|
-
guard (>=
|
|
98
|
+
guard (>= 1.1.0)
|
|
101
99
|
multi_json
|
|
102
100
|
thor
|
|
103
101
|
tilt
|
|
104
|
-
haml (4.0.
|
|
102
|
+
haml (4.0.3)
|
|
105
103
|
tilt
|
|
106
104
|
haml-coderay (0.2.0)
|
|
107
105
|
coderay
|
|
108
106
|
haml
|
|
109
|
-
haml-rails (0.
|
|
110
|
-
actionpack (>= 4.
|
|
111
|
-
activesupport (>= 4.
|
|
112
|
-
haml (>= 3.1, <
|
|
113
|
-
railties (>= 4.
|
|
107
|
+
haml-rails (0.4)
|
|
108
|
+
actionpack (>= 3.1, < 4.1)
|
|
109
|
+
activesupport (>= 3.1, < 4.1)
|
|
110
|
+
haml (>= 3.1, < 4.1)
|
|
111
|
+
railties (>= 3.1, < 4.1)
|
|
112
|
+
highline (1.6.19)
|
|
114
113
|
hike (1.2.3)
|
|
115
|
-
i18n (0.6.
|
|
114
|
+
i18n (0.6.5)
|
|
115
|
+
journey (1.0.4)
|
|
116
116
|
jquery-rails (3.0.4)
|
|
117
117
|
railties (>= 3.0, < 5.0)
|
|
118
118
|
thor (>= 0.14, < 2.0)
|
|
119
|
-
json (1.8.
|
|
120
|
-
kramdown (1.
|
|
119
|
+
json (1.8.0)
|
|
120
|
+
kramdown (1.2.0)
|
|
121
121
|
kramdown-haml (0.0.3)
|
|
122
122
|
haml
|
|
123
|
-
listen (
|
|
124
|
-
celluloid (>= 0.15.2)
|
|
123
|
+
listen (1.3.1)
|
|
125
124
|
rb-fsevent (>= 0.9.3)
|
|
126
125
|
rb-inotify (>= 0.9)
|
|
127
|
-
|
|
126
|
+
rb-kqueue (>= 0.2)
|
|
128
127
|
mail (2.5.4)
|
|
129
128
|
mime-types (~> 1.16)
|
|
130
129
|
treetop (~> 1.4.8)
|
|
131
|
-
|
|
132
|
-
mime-types (1.25.1)
|
|
133
|
-
mini_portile (0.5.2)
|
|
134
|
-
minitest (4.7.5)
|
|
130
|
+
mime-types (1.25)
|
|
135
131
|
modular-scale (1.0.6)
|
|
136
132
|
compass (>= 0.12.1)
|
|
137
133
|
sass (>= 3.2.0)
|
|
138
134
|
sassy-math (>= 1.5)
|
|
139
|
-
multi_json (1.8.
|
|
135
|
+
multi_json (1.8.0)
|
|
140
136
|
net-scp (1.1.2)
|
|
141
137
|
net-ssh (>= 2.6.5)
|
|
142
138
|
net-sftp (2.1.2)
|
|
143
139
|
net-ssh (>= 2.6.5)
|
|
144
140
|
net-ssh (2.7.0)
|
|
145
|
-
|
|
146
|
-
|
|
141
|
+
net-ssh-gateway (1.2.0)
|
|
142
|
+
net-ssh (>= 2.6.5)
|
|
143
|
+
nokogiri (1.5.10)
|
|
147
144
|
polyglot (0.3.3)
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
145
|
+
rack (1.4.5)
|
|
146
|
+
rack-cache (1.2)
|
|
147
|
+
rack (>= 0.4)
|
|
148
|
+
rack-ssl (1.3.3)
|
|
149
|
+
rack
|
|
153
150
|
rack-test (0.6.2)
|
|
154
151
|
rack (>= 1.0)
|
|
155
|
-
rails (
|
|
156
|
-
actionmailer (=
|
|
157
|
-
actionpack (=
|
|
158
|
-
activerecord (=
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
railties (
|
|
164
|
-
actionpack (=
|
|
165
|
-
activesupport (=
|
|
152
|
+
rails (3.2.14)
|
|
153
|
+
actionmailer (= 3.2.14)
|
|
154
|
+
actionpack (= 3.2.14)
|
|
155
|
+
activerecord (= 3.2.14)
|
|
156
|
+
activeresource (= 3.2.14)
|
|
157
|
+
activesupport (= 3.2.14)
|
|
158
|
+
bundler (~> 1.0)
|
|
159
|
+
railties (= 3.2.14)
|
|
160
|
+
railties (3.2.14)
|
|
161
|
+
actionpack (= 3.2.14)
|
|
162
|
+
activesupport (= 3.2.14)
|
|
163
|
+
rack-ssl (~> 1.3.2)
|
|
166
164
|
rake (>= 0.8.7)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
rb-
|
|
165
|
+
rdoc (~> 3.4)
|
|
166
|
+
thor (>= 0.14.6, < 2.0)
|
|
167
|
+
rake (10.1.0)
|
|
168
|
+
rb-fsevent (0.9.3)
|
|
169
|
+
rb-inotify (0.9.2)
|
|
170
|
+
ffi (>= 0.5.0)
|
|
171
|
+
rb-kqueue (0.2.0)
|
|
171
172
|
ffi (>= 0.5.0)
|
|
172
|
-
rb-readline (0.5.
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
rb-readline (0.5.0)
|
|
174
|
+
rdoc (3.12.2)
|
|
175
|
+
json (~> 1.4)
|
|
176
|
+
sass (3.2.10)
|
|
177
|
+
sass-rails (3.2.6)
|
|
178
|
+
railties (~> 3.2.0)
|
|
176
179
|
sass (>= 3.1.10)
|
|
177
|
-
|
|
180
|
+
tilt (~> 1.3)
|
|
178
181
|
sassy-math (1.5)
|
|
179
182
|
compass (~> 0.11)
|
|
180
|
-
|
|
181
|
-
sprockets (2.10.1)
|
|
183
|
+
sprockets (2.2.2)
|
|
182
184
|
hike (~> 1.2)
|
|
183
185
|
multi_json (~> 1.0)
|
|
184
186
|
rack (~> 1.0)
|
|
185
187
|
tilt (~> 1.1, != 1.3.0)
|
|
186
|
-
sprockets-rails (2.0.1)
|
|
187
|
-
actionpack (>= 3.0)
|
|
188
|
-
activesupport (>= 3.0)
|
|
189
|
-
sprockets (~> 2.8)
|
|
190
188
|
sqlite3 (1.3.8)
|
|
191
|
-
|
|
192
|
-
net-scp (>= 1.1.2)
|
|
193
|
-
net-ssh
|
|
194
|
-
term-ansicolor
|
|
195
|
-
term-ansicolor (1.2.2)
|
|
196
|
-
tins (~> 0.8)
|
|
197
|
-
thin (1.6.1)
|
|
189
|
+
thin (1.5.1)
|
|
198
190
|
daemons (>= 1.0.9)
|
|
199
|
-
eventmachine (>=
|
|
191
|
+
eventmachine (>= 0.12.6)
|
|
200
192
|
rack (>= 1.0.0)
|
|
201
193
|
thor (0.18.1)
|
|
202
|
-
thread_safe (0.1.3)
|
|
203
|
-
atomic
|
|
204
194
|
tilt (1.4.1)
|
|
205
|
-
timers (1.1.0)
|
|
206
|
-
tins (0.13.1)
|
|
207
195
|
treetop (1.4.15)
|
|
208
196
|
polyglot
|
|
209
197
|
polyglot (>= 0.3.1)
|
|
210
|
-
tzinfo (0.3.
|
|
211
|
-
uglifier (2.
|
|
198
|
+
tzinfo (0.3.37)
|
|
199
|
+
uglifier (2.2.1)
|
|
212
200
|
execjs (>= 0.3.0)
|
|
213
|
-
|
|
201
|
+
multi_json (~> 1.0, >= 1.0.2)
|
|
214
202
|
uuidtools (2.1.4)
|
|
215
203
|
|
|
216
204
|
PLATFORMS
|
|
@@ -220,10 +208,10 @@ DEPENDENCIES
|
|
|
220
208
|
aws-sdk
|
|
221
209
|
bundler (>= 1.3, < 2.0)
|
|
222
210
|
capistrano
|
|
223
|
-
coffee-rails (~>
|
|
224
|
-
compass-rails
|
|
211
|
+
coffee-rails (~> 3.2.1)
|
|
212
|
+
compass-rails
|
|
225
213
|
foreman
|
|
226
|
-
formtastic
|
|
214
|
+
formtastic
|
|
227
215
|
growl
|
|
228
216
|
guard-jasmine
|
|
229
217
|
haml
|
|
@@ -235,9 +223,9 @@ DEPENDENCIES
|
|
|
235
223
|
kramdown-haml
|
|
236
224
|
net-sftp (~> 2.1.1)
|
|
237
225
|
plinth!
|
|
238
|
-
rails (
|
|
226
|
+
rails (~> 3.2.12)
|
|
239
227
|
rb-readline
|
|
240
|
-
sass-rails (~>
|
|
228
|
+
sass-rails (~> 3.2.3)
|
|
241
229
|
sqlite3 (>= 1.3, < 2.0)
|
|
242
230
|
thin
|
|
243
|
-
uglifier (>= 1.3
|
|
231
|
+
uglifier (>= 1.0.3)
|
data/README.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Plinth
|
|
2
2
|
|
|
3
|
-
## VERSION 2, Donetsk
|
|
4
|
-
|
|
5
3
|
TODO: Write a gem description
|
|
6
4
|
|
|
7
5
|
## Development Workflow
|
|
@@ -42,28 +40,28 @@ Or install it yourself as:
|
|
|
42
40
|
## Usage
|
|
43
41
|
|
|
44
42
|
### Javascript
|
|
45
|
-
All javascripts provided by
|
|
43
|
+
All javascripts provided by this can be pulled into the asset pipeline
|
|
46
44
|
with the normal require command:
|
|
47
45
|
|
|
48
46
|
//= require test
|
|
49
47
|
|
|
50
48
|
### Stylesheets
|
|
51
|
-
All stylesheets provided by
|
|
49
|
+
All stylesheets provided by this can be pulled into the asset pipeline
|
|
52
50
|
with the normal require command:
|
|
53
51
|
|
|
54
52
|
//= require test
|
|
55
53
|
|
|
56
54
|
### Views/Partials
|
|
57
|
-
In order to include partials defined by
|
|
55
|
+
In order to include partials defined by the you will have to add the
|
|
58
56
|
styleguid's view path to your apps view path. The quickest way is by creating
|
|
59
57
|
a before filter in either the action where you want the views to be accessible
|
|
60
58
|
or, if you will be using the views often, you can define the filter in the
|
|
61
59
|
application controller.
|
|
62
60
|
|
|
63
|
-
before_filter :
|
|
61
|
+
before_filter :_view_path
|
|
64
62
|
|
|
65
63
|
private
|
|
66
|
-
def
|
|
64
|
+
def _view_path
|
|
67
65
|
gem = Gem.loaded_specs['plinth']
|
|
68
66
|
if gem
|
|
69
67
|
prepend_view_path "#{gem.full_gem_path}/vendor/assets/views"
|
|
@@ -16,6 +16,24 @@ $mother: 'mother-', 8, 20px, "min", $container-width;
|
|
|
16
16
|
$grids : $baby, $sister, $mother;
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
|
|
20
|
+
// Module scale
|
|
21
|
+
$baseFontSize: 14px !default;
|
|
22
|
+
$importantModNum: 300px !default;
|
|
23
|
+
$base-size: $baseFontSize $importantModNum;
|
|
24
|
+
|
|
25
|
+
$base-font-family: "Helvetica Neue", helvetica, arial, sans-serif !default;
|
|
26
|
+
$base-line-height: 1.57;
|
|
27
|
+
$base-line-height-px: 22px;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
$header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
|
|
31
|
+
$header-font-weight: bold !default;
|
|
32
|
+
$header-font-color: #222 !default;
|
|
33
|
+
$body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
|
|
34
|
+
$body-font-weight: normal !default;
|
|
35
|
+
$body-font-color: $txt-color !default;
|
|
36
|
+
|
|
19
37
|
// ======================================================
|
|
20
38
|
// Plinth
|
|
21
39
|
// ======================================================
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
%
|
|
2
|
-
:markdown
|
|
3
|
-
Image sizes are set with a 16:9 ratio
|
|
4
|
-
*(please note the 1280 x 720 image below is not to scale)*
|
|
5
|
-
|
|
6
|
-
%figure
|
|
7
|
-
%img{src: "http://placehold.it/1280x720"}
|
|
8
|
-
%figcaption This is the caption!
|
|
9
|
-
|
|
10
|
-
%figure
|
|
11
|
-
%img{src: "http://placehold.it/640x360"}
|
|
12
|
-
%figcaption This is the caption!
|
|
13
|
-
|
|
14
|
-
%figure
|
|
15
|
-
%img{src: "http://placehold.it/310x175"}
|
|
16
|
-
%figcaption This is the caption!
|
|
17
|
-
|
|
18
|
-
%figure
|
|
19
|
-
%img{src: "http://placehold.it/145x82"}
|
|
20
|
-
%figcaption This is the caption!
|
|
1
|
+
%h1 Hello Barrie
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
:coderay
|
|
17
17
|
#!SCSS
|
|
18
18
|
|
|
19
|
-
$baseFontSize:
|
|
20
|
-
$importantModNum:
|
|
19
|
+
$baseFontSize: 14px;
|
|
20
|
+
$importantModNum: 300px;
|
|
21
21
|
:markdown
|
|
22
|
-
The default ratio for the scale is
|
|
23
|
-
the variable `$ratio`. There are several predefined
|
|
22
|
+
The default ratio for the scale is the golden section (1:1.618). To change the ratio you should change
|
|
23
|
+
the variable `$ratio`. There are several predefined ration to be found [here](https://github.com/scottkellum/modular-scale#ratios):
|
|
24
24
|
:coderay
|
|
25
25
|
#!SCSS
|
|
26
26
|
|
|
27
|
-
//
|
|
28
|
-
$ratio:
|
|
27
|
+
// Minor Seventh
|
|
28
|
+
$ratio: 1.778;
|
|
29
29
|
%hr
|
|
30
30
|
|
|
31
31
|
%h3#setting-fonts Setting Fonts
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
:coderay
|
|
35
35
|
#!SCSS
|
|
36
36
|
|
|
37
|
-
$base-line-height: 1.
|
|
38
|
-
$base-line-height-px:
|
|
37
|
+
$base-line-height: 1.57;
|
|
38
|
+
$base-line-height-px: 22px;
|
|
39
39
|
|
|
40
40
|
$base-font-family: "Helvetica Neue", helvetica, arial, sans-serif;
|
|
41
41
|
$header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
|
|
42
42
|
$header-font-weight: bold;
|
|
43
|
-
$header-font-color: #
|
|
43
|
+
$header-font-color: #222;
|
|
44
44
|
$body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
|
|
45
45
|
$body-font-weight: normal;
|
|
46
|
-
$body-font-color: #
|
|
46
|
+
$body-font-color: #444;
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
:markdown
|
|
2
|
-
|
|
2
|
+
RoR makes great use of [flash messages](http://guides.rubyonrails.org/action_controller_overview.html#the-flash) to give the
|
|
3
3
|
users important information as they navigate the site.
|
|
4
4
|
|
|
5
5
|
Within each project we **need** to have an alert for standard messages, success messages and alert messages.
|
data/lib/plinth/version.rb
CHANGED
data/lib/plinth.rb
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
require "plinth/version"
|
|
2
|
-
require '
|
|
3
|
-
require 'sass
|
|
4
|
-
|
|
2
|
+
require 'sprockets/railtie'
|
|
3
|
+
require 'sass-rails'
|
|
4
|
+
|
|
5
|
+
module Plinth
|
|
6
|
+
class Railtie < ::Rails::Railtie
|
|
7
|
+
require "modular-scale"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
require 'sass/rails'
|
data/plinth.gemspec
CHANGED
|
@@ -11,7 +11,6 @@ Gem::Specification.new do |gem|
|
|
|
11
11
|
gem.homepage = "https://github.com/thebeansgroup/plinth"
|
|
12
12
|
|
|
13
13
|
gem.files = `git ls-files`.split($\).grep(/^(?!config)/)
|
|
14
|
-
#gem.files = `git ls-files lib`.split($\) + `git ls-files vendor`.split($\)
|
|
15
14
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
16
15
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
17
16
|
gem.name = "plinth"
|
|
@@ -31,7 +31,7 @@ $old-ie: false !default;
|
|
|
31
31
|
// Can be extended to add more shades:
|
|
32
32
|
// $blue-shades: join($blue-shades, rgb(13, 89, 224) );
|
|
33
33
|
|
|
34
|
-
$mono-shades: #
|
|
34
|
+
$mono-shades: #32353a, #999999, #e3e3e0, #f0f0ed !default;
|
|
35
35
|
@function mono($shade:1) {
|
|
36
36
|
@return nth($mono-shades, $shade);
|
|
37
37
|
}
|
|
@@ -57,12 +57,12 @@ $green-shades: #6b9b20, #557821 !default;
|
|
|
57
57
|
// Colours
|
|
58
58
|
// ==========================================================================
|
|
59
59
|
|
|
60
|
-
$main-color:
|
|
61
|
-
$main-color-hover:
|
|
60
|
+
$main-color: orange() !default;
|
|
61
|
+
$main-color-hover: orange(2) !default;
|
|
62
62
|
$secondary-color: blue() !default;
|
|
63
63
|
$alert-color: #c60f13 !default;
|
|
64
64
|
$success-color: green() !default;
|
|
65
|
-
$txt-color: mono(
|
|
65
|
+
$txt-color: mono() !default;
|
|
66
66
|
$body-color: #fff !default;
|
|
67
67
|
$bg-cover: mono(3) !default;
|
|
68
68
|
$black: mono() !default;
|
|
@@ -81,14 +81,13 @@ $email-color: #f70015 !default;
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
// Module scale
|
|
84
|
-
$baseFontSize:
|
|
85
|
-
$importantModNum:
|
|
84
|
+
$baseFontSize: 14px !default;
|
|
85
|
+
$importantModNum: 300px !default;
|
|
86
86
|
$base-size: $baseFontSize $importantModNum;
|
|
87
|
-
$ratio: fifth() !default;
|
|
88
87
|
|
|
89
88
|
$base-font-family: "Helvetica Neue", helvetica, arial, sans-serif !default;
|
|
90
|
-
$base-line-height: 1.
|
|
91
|
-
$base-line-height-px:
|
|
89
|
+
$base-line-height: 1.57;
|
|
90
|
+
$base-line-height-px: 22px;
|
|
92
91
|
|
|
93
92
|
|
|
94
93
|
$header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
|
|
@@ -66,11 +66,11 @@ a.is-active,
|
|
|
66
66
|
a:hover {
|
|
67
67
|
border-color: $main-color;
|
|
68
68
|
outline: 0;
|
|
69
|
-
color: $main-color
|
|
69
|
+
color: $main-color;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
a.prominent {
|
|
73
|
-
color: $
|
|
73
|
+
color: $main-color;
|
|
74
74
|
text-decoration: none;
|
|
75
75
|
font-weight: bold;
|
|
76
76
|
|
|
@@ -78,7 +78,6 @@ a.prominent {
|
|
|
78
78
|
&.is-active,
|
|
79
79
|
&:hover {
|
|
80
80
|
border-bottom: 1px dotted $main-color;
|
|
81
|
-
color: $main-color-hover;
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
83
|
|
|
@@ -96,25 +95,25 @@ h4, .h4, h5, .h5 {
|
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
h1, .h1 {
|
|
99
|
-
font-size: ms(
|
|
98
|
+
font-size: ms(3);
|
|
100
99
|
line-height: 1.19;
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
h2, .h2 {
|
|
104
|
-
font-size: ms(
|
|
103
|
+
font-size: ms(4);
|
|
105
104
|
line-height: 1.19;
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
h3, .h3 {
|
|
109
|
-
font-size: ms(
|
|
108
|
+
font-size: ms(3);
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
h4, .h4{
|
|
113
|
-
font-size: ms(
|
|
112
|
+
font-size: ms(2);
|
|
114
113
|
}
|
|
115
114
|
|
|
116
115
|
h5, .h5 {
|
|
117
|
-
font-size: ms(
|
|
116
|
+
font-size: ms(1);
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
.h-light {
|
|
@@ -125,7 +124,7 @@ h5, .h5 {
|
|
|
125
124
|
// Pass true to output outside
|
|
126
125
|
// media query for IE
|
|
127
126
|
h1, .h1 {
|
|
128
|
-
font-size: ms(
|
|
127
|
+
font-size: ms(5);
|
|
129
128
|
line-height: 1.34;
|
|
130
129
|
}
|
|
131
130
|
}
|
|
@@ -237,14 +236,6 @@ sub {
|
|
|
237
236
|
bottom: -0.25em;
|
|
238
237
|
}
|
|
239
238
|
|
|
240
|
-
figure {
|
|
241
|
-
margin-bottom: ms(2);
|
|
242
|
-
figcaption {
|
|
243
|
-
font-size: ms(0)*0.8;
|
|
244
|
-
color: mono(2);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
239
|
|
|
249
240
|
// ==========================================================================
|
|
250
241
|
// Web fonts
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plinth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.1.
|
|
4
|
+
version: 0.0.1.pre
|
|
5
5
|
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2013-09-16 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: haml
|
|
@@ -380,7 +380,6 @@ files:
|
|
|
380
380
|
- doc/README_FOR_APP
|
|
381
381
|
- lib/assets/.gitkeep
|
|
382
382
|
- lib/plinth.rb
|
|
383
|
-
- lib/plinth/railtie.rb
|
|
384
383
|
- lib/plinth/version.rb
|
|
385
384
|
- lib/tasks/.gitkeep
|
|
386
385
|
- lib/templates/haml/scaffold/_form.html.haml
|
|
@@ -511,9 +510,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
511
510
|
- - ! '>='
|
|
512
511
|
- !ruby/object:Gem::Version
|
|
513
512
|
version: '0'
|
|
514
|
-
segments:
|
|
515
|
-
- 0
|
|
516
|
-
hash: 1391096960664269115
|
|
517
513
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
518
514
|
none: false
|
|
519
515
|
requirements:
|
|
@@ -538,3 +534,4 @@ test_files:
|
|
|
538
534
|
- spec/javascripts/plugins/tbg-ga-events_spec.js.coffee
|
|
539
535
|
- spec/javascripts/plugins/tbg-switch_spec.js.coffee
|
|
540
536
|
- spec/javascripts/spec.js.coffee
|
|
537
|
+
has_rdoc:
|
data/lib/plinth/railtie.rb
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
require 'rails'
|
|
2
|
-
|
|
3
|
-
module Plinth
|
|
4
|
-
class Engine < Rails::Railtie
|
|
5
|
-
require "modular-scale"
|
|
6
|
-
initializer :append_assets_path, group: :all do |app|
|
|
7
|
-
app.config.assets.paths.unshift("#{File.expand_path "../..", __FILE__}/../vendor/assets/javascripts")
|
|
8
|
-
app.config.assets.paths.unshift("#{File.expand_path "../..", __FILE__}/../vendor/assets/stylesheets")
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
end
|