active_skin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a114788036bfce6d8fedae032fdb42cc50393c97
4
+ data.tar.gz: 675930a070881a35a651f3895ae733501aa97046
5
+ SHA512:
6
+ metadata.gz: 318761da74bcbac6fe541286d9c7161e8c08790ed726c89df8acf9c96d87d9f9305d402feb45d24d0c04fde16a6a4b377765f9af9b42c5041f51d9ca9ef0bdbe
7
+ data.tar.gz: 140b2ce96aae9ddd828768f560b8ac6b20c9de3afd1d63dd97a584a44bfca39707c8474c80c0fbb19fa3ce870f6d37f9c7069c8f86d1c032c8890f6862c818f6
data/.gitignore ADDED
@@ -0,0 +1,16 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ lib/bundler/man
11
+ pkg
12
+ rdoc
13
+ spec/reports
14
+ test/tmp
15
+ test/version_tmp
16
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in active_skin.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Wojtek Krysiak
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,52 @@
1
+ # ActiveSkin
2
+
3
+ Flat skin for active admin.
4
+
5
+ ## Screens
6
+
7
+ <table>
8
+ <tr>
9
+ <td>
10
+ <a href="./doc/active-skin-login.png"><img src="./doc/active-skin-login.png"></a>
11
+ </td>
12
+ <td>
13
+ <a href="./doc/active-skin-menu.png"><img src="./doc/active-skin-menu.png"></a>
14
+ </td>
15
+ </tr>
16
+ <tr>
17
+ <td>
18
+ <a href="./doc/active-skin-users.png"><img src="./doc/active-skin-users.png"></a>
19
+ </td>
20
+ <td>
21
+ <a href="./doc/active-skin-edit.png"><img src="./doc/active-skin-edit.png"></a>
22
+ </td>
23
+ </tr>
24
+ </table>
25
+
26
+ ## Installation
27
+
28
+ Add this line to your application's Gemfile:
29
+
30
+ gem 'active_skin'
31
+
32
+ ## Usage
33
+
34
+ inlcude active skin css
35
+
36
+ # active_admin.css.scss
37
+
38
+ @import "active_admin/mixins";
39
+ @import "active_admin/base";
40
+ ...
41
+ @import "active_skin";
42
+ ...
43
+
44
+ Add logo to app/assets/images/admin_logo.png (max 130x40px, best 100x25px)
45
+
46
+ ## Contributing
47
+
48
+ 1. Fork it ( http://github.com/<my-github-username>/active_skin/fork )
49
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
50
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
51
+ 4. Push to the branch (`git push origin my-new-feature`)
52
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'active_skin/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "active_skin"
8
+ spec.version = ActiveSkin::VERSION
9
+ spec.authors = ["Wojtek Krysiak"]
10
+ spec.email = ["wojciech.g.krysiak@gmail.com"]
11
+ spec.summary = %q{active_admin skin}
12
+ spec.description = %q{active_admin skin}
13
+ spec.homepage = "https://github.com/KMPgroup/active_skin"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.5"
22
+ spec.add_development_dependency "rake"
23
+ end
@@ -0,0 +1,380 @@
1
+ @import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700)
2
+ $skinTextColor: #1e2a33
3
+ $skinTextActiveColor: #fff
4
+ $skinTextTable: #7f8c8d
5
+ $skinActiveColor: #e73c3c
6
+ $skinHeaderBck: #1e2a33
7
+
8
+ html
9
+ background: #ecf0f1
10
+ font-family: 'Source Sans Pro', sans-serif
11
+
12
+ body.active_admin
13
+ background: #ecf0f1
14
+ font-family: 'Source Sans Pro', sans-serif
15
+ padding-bottom: 80px
16
+
17
+ #header
18
+ background: #ecf0f1
19
+ border: none
20
+ text-shadow: none
21
+ height: 40px
22
+ padding: 0
23
+ h1.site_title
24
+ background: #fff image-url("admin_logo.png") no-repeat 30px 50%
25
+ padding-left: 130px
26
+ color: $skinTextColor
27
+ text-indent: -999999px
28
+ a, a:link
29
+ color: $skinTextColor
30
+ ul.tabs
31
+ padding: 0
32
+ font-size: 0
33
+ ul.tabs > li:hover > a, ul.tabs > li.current > a
34
+ color: $skinTextActiveColor
35
+ background: $skinActiveColor
36
+ @include rounded(0)
37
+ margin: -10px 0
38
+ ul.tabs > li
39
+ font-size: 12px
40
+ margin: 0
41
+ a
42
+ padding: 13px 20px
43
+ margin: 0
44
+ ul.tabs > li.has_nested a
45
+ background-position: 93% 50%
46
+ ul.tabs > li.has_nested:hover
47
+ a
48
+ @include rounded(0)
49
+ background-color: $skinActiveColor
50
+ border: none
51
+ background-position: 93% 50%
52
+ ul
53
+ background: $skinActiveColor
54
+ @include no-shadow()
55
+ @include rounded(0)
56
+ border: none
57
+ li a
58
+ color: #fff
59
+ &:hover
60
+ color: $skinTextColor
61
+ ul.tabs > li.has_nested.current a
62
+ background-color: $skinActiveColor
63
+ background-position: 93% 50%
64
+ #utility_nav
65
+ background: #fff
66
+ padding: 0
67
+ li#logout a
68
+ font-weight: bold
69
+ text-decoration: underline
70
+ &:hover
71
+ text-decoration: none
72
+ li a
73
+ &:hover
74
+ background: none
75
+ color: $skinTextColor
76
+
77
+ #title_bar
78
+ background: $skinHeaderBck
79
+ text-shadow: none
80
+ border: none
81
+ padding: 15px 30px
82
+ @include no-shadow()
83
+ border-bottom: 4px solid $skinActiveColor
84
+ margin: 0
85
+ h2
86
+ color: #fff
87
+ .action_items a
88
+ @include rounded(0)
89
+ background: $skinActiveColor
90
+ color: #fff
91
+ @include no-shadow()
92
+ text-shadow: none
93
+ border: none
94
+ padding: 17px
95
+ font-size: 14px
96
+ &:hover
97
+ background: lighten( $skinActiveColor, 10% ) !important
98
+
99
+ #active_admin_content
100
+ .table_tools
101
+ height: 30px
102
+ a.table_tools_button, .table_tools .dropdown_menu_button
103
+ @include rounded(0)
104
+ @include no-shadow()
105
+ color: $skinTextColor
106
+ background: #fff
107
+ padding: 7px 15px
108
+ font-weight: normal
109
+ text-shadow: none
110
+ .table_tools_segmented_control li
111
+ a
112
+ @include rounded(0)
113
+ @include no-shadow()
114
+ color: $skinTextColor
115
+ background: #fff
116
+ padding: 7px 15px
117
+ font-weight: normal
118
+ text-shadow: none
119
+ border-color: #d3d8dc
120
+ span.count
121
+ color: $skinActiveColor
122
+ &.selected
123
+ a
124
+ color: #fff
125
+ background-color: $skinActiveColor
126
+ span.count
127
+ color: #fff
128
+
129
+ table.index_table
130
+ border: 1px solid #d3d8dc
131
+ background: #fff
132
+ th
133
+ background: #f1f5f6
134
+ border: 1px #d3d8dc
135
+ border-style: none solid solid none
136
+ padding: 7px 10px
137
+ @include no-shadow()
138
+ color: $skinTextColor
139
+ a, a:link, a:visited
140
+ color: $skinTextColor
141
+ &:last-child
142
+ border-right: none
143
+ td
144
+ color: $skinTextTable
145
+ a, a:link, a:visited
146
+ color: $skinTextTable
147
+ display: inline-block
148
+ padding: 2px 3px
149
+ margin: -2px 0
150
+ &:hover
151
+ color: #fff
152
+ background: $skinActiveColor
153
+ tr.even td
154
+ background: #ecf0f1
155
+
156
+
157
+ .download_links
158
+ color: $skinTextTable
159
+ font-size: 12px
160
+ a
161
+ color: $skinActiveColor
162
+ font-weight: bold
163
+ .pagination_information
164
+ font-size: 12px
165
+ color: $skinTextTable
166
+ .pagination
167
+ margin-top: -2px
168
+ a, span.page.current
169
+ font-family: 'Source Sans Pro', sans-serif
170
+ border: 1px solid #d3d8dc
171
+ background: #ecf0f1
172
+ @include no-shadow()
173
+ text-shadow: none
174
+ font-size: 12px
175
+ font-weight: normal
176
+ padding: 4px 6px
177
+ margin-right: 1px
178
+ span.page.current,
179
+ a:not(.disabled):hover
180
+ background: $skinActiveColor
181
+ color: #fff
182
+ span.page.current
183
+ font-weight: 600
184
+ span.page.current:not(.disabled):hover
185
+ background: $skinActiveColor
186
+ .page.gap
187
+ display: none
188
+
189
+
190
+
191
+ .sidebar_section.panel
192
+ background: #fff
193
+ border: 1px solid #d3d8dc
194
+ @include no-shadow()
195
+ @include rounded(0)
196
+ form .buttons
197
+ background: #f1f5f6
198
+ margin: 25px -15px -15px
199
+ padding: 10px 15px
200
+ form fieldset
201
+ margin-bottom: 0
202
+ & > h3
203
+ background: #2c3e50
204
+ color: #fff
205
+ border: none
206
+ margin: 0
207
+ padding: 8px 15px
208
+ @include no-shadow()
209
+ @include rounded(0)
210
+ text-shadow: none
211
+ font-weight: bold
212
+ .filter_form_field
213
+ label
214
+ color: #95a5a6
215
+ font-weight: normal
216
+ font-size: 13px
217
+ text-transform: uppercase
218
+ font-family: 'Source Sans Pro', sans-serif
219
+ padding: 7px 0
220
+
221
+ #footer
222
+ position: fixed
223
+ bottom: 0
224
+ left: 0
225
+ right: 0
226
+ background: #fff
227
+ padding: 15px 30px
228
+ font-size: 13px
229
+ color: $skinTextTable
230
+ border-top: 1px solid #d3d8dc
231
+ p
232
+ margin: 0
233
+ padding: 0
234
+
235
+
236
+ form input[type=submit]
237
+ @include no-shadow()
238
+ @include rounded(0)
239
+ background: $skinActiveColor
240
+ color: #fff
241
+ border: none
242
+ text-shadow: none
243
+ padding: 11px 20px
244
+ &:hover
245
+ background: lighten( $skinActiveColor, 10% ) !important
246
+ form fieldset.buttons li.cancel a,
247
+ form fieldset.actions li.cancel a,
248
+ form.filter_form a.clear_filters_btn
249
+ background: #ecf0f1
250
+ @include no-shadow()
251
+ @include rounded(0)
252
+ text-shadow: none
253
+ padding: 10px 20px
254
+ color: #95a5a6
255
+ &:hover
256
+ background: lighten( #ecf0f1, 5% ) !important
257
+
258
+ form fieldset.inputs
259
+ background: #fff
260
+ border: 1px solid #d3d8dc
261
+ position: relative
262
+ padding-top: 50px
263
+ @include no-shadow()
264
+ @include rounded(0)
265
+ legend
266
+ border-bottom: 1px solid #d3d8dc
267
+ position: absolute
268
+ top: 0
269
+ span
270
+ background: #f0f4f5
271
+ color: #2c3e50
272
+ border: none
273
+ margin: 0
274
+ padding: 8px 15px
275
+ @include no-shadow()
276
+ @include rounded(0)
277
+ text-shadow: none
278
+ font-weight: bold
279
+ ol > li
280
+ label
281
+ padding-top: 7px
282
+ text-transform: uppercase
283
+ &.boolean label
284
+ padding-top: 0px
285
+ margin-bottom: 15px
286
+
287
+ .panel
288
+ background: #fff
289
+ border: 1px solid #d3d8dc
290
+ position: relative
291
+ @include no-shadow()
292
+ @include rounded(0)
293
+ > h3
294
+ background: #f0f4f5
295
+ color: #2c3e50
296
+ padding: 8px 15px
297
+ @include no-shadow()
298
+ @include rounded(0)
299
+ text-shadow: none
300
+ font-weight: bold
301
+ border-style: none none solid
302
+
303
+ .attributes_table table th, .attributes_table table td
304
+ padding: 10px 0
305
+ font-family: 'Source Sans Pro', sans-serif
306
+ color: #95a5a6
307
+ .attributes_table table th
308
+ font-weight: normal
309
+ font-size: 13px
310
+ text-transform: uppercase
311
+
312
+ .comments form.active_admin_comment fieldset.inputs
313
+ border: none
314
+
315
+ html
316
+ height: 100%
317
+ min-height: 100%
318
+ body.logged_out
319
+ height: 100%
320
+ #footer
321
+ display: none
322
+ #content_wrapper
323
+ margin-top: 150px
324
+ #active_admin_content
325
+ padding-bottom: 0
326
+ #login
327
+ form fieldset
328
+ border: none
329
+ > h2
330
+ background: #2c3e50
331
+ font-family: 'Source Sans Pro', sans-serif
332
+ color: #fff
333
+ @include no-shadow()
334
+ @include rounded(0)
335
+ padding: 8px 15px
336
+ fieldset.actions
337
+ background: #f1f5f6
338
+ margin: 0 -30px -17px
339
+ padding: 6px 30px
340
+ a
341
+ margin-top: -25px
342
+
343
+ .flash
344
+ background: #F2ECBF
345
+ position: absolute
346
+ top: 0
347
+ left: 0
348
+ right: 0
349
+ padding: 15px
350
+ border-bottom: 1px solid #DEDE8B
351
+ text-shadow: none
352
+
353
+
354
+ form input[type=text],
355
+ form input[type=password],
356
+ form input[type=email],
357
+ form input[type=number],
358
+ form input[type=url],
359
+ form input[type=tel],
360
+ form textarea
361
+ @include rounded(0)
362
+ font-family: 'Source Sans Pro', sans-serif
363
+ padding: 5px 10px
364
+
365
+ form.filter_form .filter_form_field.filter_date_range input[type=text]
366
+ background-position: 100% 4px
367
+
368
+
369
+ body.logged_in
370
+ .flashes
371
+ .flash
372
+ position: inherit
373
+ top: 0
374
+ text-shadow: none
375
+
376
+ strong, b
377
+ font-weight: 600
378
+
379
+ .blank_slate_container .blank_slate
380
+ color: #7f8c8d
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,8 @@
1
+ require "active_skin/version"
2
+
3
+ module ActiveSkin
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ module ActiveSkin
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_skin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Wojtek Krysiak
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: active_admin skin
42
+ email:
43
+ - wojciech.g.krysiak@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - active_skin.gemspec
54
+ - app/assets/stylesheets/active_skin.css.sass
55
+ - doc/active-skin-edit.png
56
+ - doc/active-skin-login.png
57
+ - doc/active-skin-menu.png
58
+ - doc/active-skin-users.png
59
+ - lib/active_skin.rb
60
+ - lib/active_skin/version.rb
61
+ homepage: https://github.com/KMPgroup/active_skin
62
+ licenses:
63
+ - MIT
64
+ metadata: {}
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubyforge_project:
81
+ rubygems_version: 2.2.2
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: active_admin skin
85
+ test_files: []