active-admin-skin 0.1.0

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: e041219b80e38e3dbe2b1b9118056a71517141d9
4
+ data.tar.gz: f9f4df92c0250303acff129d47d000ce84a8e7f7
5
+ SHA512:
6
+ metadata.gz: 3adf1f993ff178f98ea94966b0b153eaa47f1837f624f993f2f0c2d0cb47b1409e6f7904dcb4476675b58a24f913ae38d7249ebb1927aa5546f23fe16b42751d
7
+ data.tar.gz: 03fdec46fb8bf180a925c62807052e7dce384cb5254ea74070e9f30a0ff65328829ffb0db4d8589a5cf4cd6159aa620124ea7eff57171f28d24730a9ba3e4efb
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in active-admin-skin.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Armand Niampa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Active::Admin::Skin
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/active/admin/skin`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'active-admin-skin'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install active-admin-skin
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it ( https://github.com/ayann/active-admin-skin/fork )
36
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
37
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
38
+ 4. Push to the branch (`git push origin my-new-feature`)
39
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'active/admin/skin/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "active-admin-skin"
8
+ spec.version = Active::Admin::Skin::VERSION
9
+ spec.authors = ["Armand Niampa"]
10
+ spec.email = ["armand.niampa@gmail.com"]
11
+
12
+ spec.summary = %q{skin for active admin.}
13
+ spec.description = %q{skin for active admin.}
14
+ spec.homepage = "https://github.com/ayann/active-admin-skin"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.8"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "active/admin/skin"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,10 @@
1
+ require "active/admin/skin/version"
2
+
3
+ module Active
4
+ module Admin
5
+ module Skin
6
+ class Engine < ::Rails::Engine
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ module Active
2
+ module Admin
3
+ module Skin
4
+ VERSION = "0.1.0"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,451 @@
1
+ @import url(//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&subset=latin,latin-ext)
2
+ $skinTextColor: #1e2a33 !default
3
+ $skinTextActiveColor: #fff !default
4
+ $skinTextTable: #7f8c8d !default
5
+ // $skinActiveColor: #e73c3c !default
6
+ $skinActiveColor: #eda600 !default
7
+ $skinHeaderBck: #1e2a33 !default
8
+ $panelHeaderBck: #2c3e50 !default
9
+ $skinLogo: #fff image-url("active_skin/default_logo.png") no-repeat 30px 0 !default
10
+
11
+ html
12
+ background: #ecf0f1
13
+ font-family: 'Source Sans Pro', sans-serif
14
+ height: 100%
15
+ min-height: 100%
16
+
17
+ body.active_admin
18
+ background: #ecf0f1
19
+ font-family: 'Source Sans Pro', sans-serif
20
+ padding-bottom: 80px
21
+
22
+ #header
23
+ background: #ecf0f1
24
+ border: none
25
+ text-shadow: none
26
+ // height: 40px
27
+
28
+ margin-top: -2px
29
+ padding: 0
30
+ h1.site_title
31
+ background-color: #fff
32
+ background: $skinLogo
33
+ // padding-left: 130px
34
+ color: $skinTextColor
35
+ // text-indent: -999999px
36
+
37
+ a, a:link
38
+ color: $skinTextColor
39
+ ul.tabs
40
+ padding: 0
41
+ font-size: 0
42
+
43
+ ul.tabs > li:hover > a, ul.tabs > li.current > a
44
+ color: $skinTextActiveColor
45
+ background: $skinActiveColor
46
+ border-radius: 0 !important
47
+ margin: -10px 0
48
+ display: block
49
+
50
+ ul.tabs > li
51
+ font-size: 12px
52
+ margin: 0
53
+ a
54
+ // padding: 13px 20px
55
+ display: block
56
+ padding: 6px 20px
57
+ margin: 0
58
+ ul.tabs > li.has_nested a
59
+ background-position: 93% 50%
60
+ padding-right: 30px
61
+ ul.tabs > li.has_nested:hover
62
+ a
63
+ border-radius: 0 !important
64
+ background-color: $skinActiveColor
65
+ border: none
66
+ background-position: 93% 50%
67
+ ul
68
+ background: $skinActiveColor
69
+ box-shadow: none !important
70
+ border-radius: 0 !important
71
+ border: none
72
+ li a
73
+ color: #fff
74
+ &:hover
75
+ color: $skinTextColor
76
+ ul.tabs > li.has_nested.current a
77
+ background-color: $skinActiveColor
78
+ background-position: 93% 50%
79
+ padding-right: 30px
80
+
81
+ #utility_nav
82
+ background: #fff
83
+ padding: 0
84
+ li#logout a
85
+ font-weight: bold
86
+ text-decoration: underline
87
+ &:hover
88
+ text-decoration: none
89
+ li a
90
+ &:hover
91
+ background: none
92
+ color: $skinTextColor
93
+
94
+ #utility_nav
95
+ li
96
+ display: block !important
97
+ height: 29px !important
98
+ width: 120px !important
99
+ text-align: left !important
100
+ padding: 0 0 0 10px !important
101
+ overflow: hidden
102
+ &:hover
103
+ margin: 0 !important
104
+ padding: 0 0 0 10px !important
105
+ a
106
+ margin: 0 !important
107
+ background: none !important
108
+ color: $skinActiveColor !important
109
+ &#logout
110
+ padding-bottom: 4px !important
111
+
112
+ .panel
113
+ background: #fff
114
+ border: 1px solid #d3d8dc
115
+ position: relative
116
+ box-shadow: none
117
+ border-radius: 0
118
+ > h3
119
+ background: #f0f4f5
120
+ color: $panelHeaderBck
121
+ padding: 8px 15px
122
+ box-shadow: 0
123
+ border-radius: 0
124
+ text-shadow: none
125
+ font-weight: bold
126
+ border-style: none none solid
127
+
128
+ #title_bar
129
+ background: $skinHeaderBck
130
+ text-shadow: none
131
+ border: none
132
+ padding: 15px 30px
133
+ box-shadow: none
134
+ border-bottom: 4px solid $skinActiveColor
135
+ margin: 0
136
+ h2
137
+ color: #fff
138
+ .action_items a
139
+ border-radius: 0 !important
140
+ background: $skinActiveColor !important
141
+ color: #fff !important
142
+ box-shadow: none !important
143
+ text-shadow: none !important
144
+ border: none !important
145
+ padding: 17px
146
+ font-size: 14px
147
+ &:hover
148
+ background: lighten( $skinActiveColor, 10% ) !important
149
+
150
+ table.index_table
151
+ border: 1px solid #d3d8dc
152
+ background: #fff
153
+ th
154
+ background: #f1f5f6
155
+ border: 1px #d3d8dc
156
+ border-style: none solid solid none
157
+ padding: 7px 10px
158
+ box-shadow: none
159
+ color: $skinTextColor
160
+ a, a:link, a:visited
161
+ color: $skinTextColor
162
+ &:last-child
163
+ border-right: none
164
+ td
165
+ color: $skinTextTable
166
+ a, a:link, a:visited
167
+ color: $skinTextTable
168
+ display: inline-block
169
+ padding: 2px 3px
170
+ margin: -2px 0
171
+ &:hover
172
+ color: #fff
173
+ background: $skinActiveColor
174
+ tr.even td
175
+ background: #ecf0f1
176
+
177
+ #active_admin_content
178
+ &::after
179
+ clear: both
180
+ content: ""
181
+ display: table
182
+
183
+ .table_tools
184
+ height: 30px
185
+ a.table_tools_button, .table_tools .dropdown_menu_button
186
+ border-radius: 0
187
+ box-shadow: 0
188
+ color: $skinTextColor
189
+ background: #fff
190
+ padding: 7px 10px !important
191
+ font-weight: normal
192
+ text-shadow: none
193
+ a.table_tools_button:hover
194
+ background-color: $skinActiveColor
195
+ color: #fff
196
+ .count
197
+ color: #fff
198
+ .table_tools_segmented_control li
199
+ a
200
+ border-radius: 0
201
+ box-shadow: 0 1px 1px rgba(0,0,0,.1)
202
+ color: $skinTextColor
203
+ background: #fff
204
+ padding: 7px 15px
205
+ font-weight: normal
206
+ text-shadow: none
207
+ border-color: #d3d8dc
208
+ span.count
209
+ color: $skinActiveColor
210
+ &.selected
211
+ a
212
+ color: #fff
213
+ background-color: $skinActiveColor
214
+ span.count
215
+ color: #fff
216
+
217
+ .download_links
218
+ color: $skinTextTable
219
+ font-size: 12px
220
+ a
221
+ color: $skinActiveColor
222
+ font-weight: bold
223
+
224
+ .pagination_information
225
+ font-size: 12px
226
+ color: $skinTextTable
227
+
228
+ .pagination
229
+ margin-top: -2px
230
+ a, span.page.current
231
+ font-family: 'Source Sans Pro', sans-serif
232
+ border: 1px solid #d3d8dc
233
+ background: #ecf0f1
234
+ box-shadow: none !important
235
+ text-shadow: none
236
+ font-size: 12px
237
+ font-weight: normal
238
+ padding: 4px 6px
239
+ margin-right: 1px
240
+ span.page.current,
241
+ a:not(.disabled):hover
242
+ background: $skinActiveColor
243
+ color: #fff
244
+ span.page.current
245
+ font-weight: 600
246
+ span.page.current:not(.disabled):hover
247
+ background: $skinActiveColor
248
+ .page.gap
249
+ display: none
250
+
251
+ .sidebar_section.panel
252
+ background: #fff
253
+ border: 1px solid #d3d8dc
254
+ box-shadow: none
255
+ border-radius: 0
256
+ form .buttons
257
+ background: #f1f5f6
258
+ margin: 25px -15px -15px
259
+ padding: 10px 15px
260
+ form fieldset
261
+ margin-bottom: 0
262
+ & > h3
263
+ background: $panelHeaderBck
264
+ color: #fff
265
+ border: none
266
+ margin: 0
267
+ padding: 8px 15px
268
+ box-shadow: none
269
+ border-radius: 0
270
+ text-shadow: none
271
+ font-weight: bold
272
+ .filter_form_field
273
+ label
274
+ color: #95a5a6
275
+ font-weight: normal
276
+ font-size: 13px
277
+ text-transform: uppercase
278
+ font-family: 'Source Sans Pro', sans-serif
279
+ padding: 7px 0
280
+
281
+ .attributes_table table th, .attributes_table table td
282
+ padding: 10px
283
+ font-family: 'Source Sans Pro', sans-serif
284
+ color: #95a5a6
285
+ .panel_contents table th, .attributes_table table th
286
+ font-weight: normal
287
+ font-size: 13px
288
+ text-transform: uppercase
289
+
290
+ #footer
291
+ position: fixed
292
+ bottom: 0
293
+ left: 0
294
+ right: 0
295
+ background: #fff
296
+ padding: 15px 30px
297
+ font-size: 13px
298
+ color: $skinTextTable
299
+ border-top: 1px solid #d3d8dc
300
+ p
301
+ margin: 0
302
+ padding: 0
303
+
304
+ form input[type=submit],
305
+ a.button,
306
+ a:link.button,
307
+ a:visited.button
308
+ box-shadow: none
309
+ border-radius: 0
310
+ background: $skinActiveColor
311
+ color: #fff
312
+ border: none
313
+ text-shadow: none
314
+ padding: 11px 15px
315
+ &:hover
316
+ background: lighten( $skinActiveColor, 10% ) !important
317
+ form fieldset.buttons li.cancel a,
318
+ form fieldset.actions li.cancel a,
319
+ form.filter_form a.clear_filters_btn
320
+ background: #ecf0f1
321
+ box-shadow: none
322
+ border-radius: 0
323
+ text-shadow: none
324
+ padding: 10px 20px
325
+ color: #95a5a6
326
+ &:hover
327
+ background: lighten( #ecf0f1, 5% ) !important
328
+
329
+ form fieldset.inputs
330
+ background: #fff
331
+ border: 1px solid #d3d8dc
332
+ position: relative
333
+ padding-top: 50px
334
+ box-shadow: none !important
335
+ border-radius: 0 !important
336
+ > legend
337
+ border-bottom: 1px solid #d3d8dc
338
+ position: absolute
339
+ top: 0
340
+ span
341
+ background: #f0f4f5
342
+ color: $panelHeaderBck
343
+ border: none
344
+ margin: 0
345
+ padding: 8px 15px
346
+ box-shadow: none !important
347
+ border-radius: 0 !important
348
+ text-shadow: none
349
+ font-weight: bold
350
+ ol > li
351
+ label
352
+ padding-top: 7px
353
+ text-transform: uppercase
354
+ &.boolean label
355
+ padding-top: 0px
356
+ margin-bottom: 15px
357
+
358
+ input[type=text],
359
+ input[type=password],
360
+ input[type=email],
361
+ input[type=date],
362
+ input[type=tel],
363
+ input[type=number],
364
+ button
365
+ height: 20px !important
366
+ border-radius: 0
367
+
368
+ $width-list: 50 60 70 75 80 85 90
369
+ @each $width in $width-list
370
+ .block-#{$width}
371
+ float: none
372
+ width: #{$width}% !important
373
+ display: block
374
+ margin: 0 auto
375
+ overflow: hidden
376
+
377
+ form input[type=text],
378
+ form input[type=password],
379
+ form input[type=email],
380
+ form input[type=number],
381
+ form input[type=url],
382
+ form input[type=tel],
383
+ form textarea
384
+ border-radius: 0
385
+ font-family: 'Source Sans Pro', sans-serif
386
+
387
+ form.filter_form .filter_form_field.filter_date_range input[type=text]
388
+ background-position: 100% 4px
389
+
390
+ body.logged_in
391
+ .flashes
392
+ .flash
393
+ position: inherit
394
+ top: 0
395
+ text-shadow: none
396
+
397
+ strong, b
398
+ font-weight: 600
399
+
400
+ .blank_slate_container .blank_slate
401
+ color: #7f8c8d
402
+
403
+ .comments form.active_admin_comment
404
+ margin: 0
405
+ .actions
406
+ margin-bottom: 0
407
+ fieldset.inputs
408
+ border: none
409
+ li
410
+ margin-bottom: 0 !important
411
+ textarea
412
+ width: 95%
413
+
414
+ body.logged_out
415
+ height: 100%
416
+ #footer
417
+ display: none
418
+ #content_wrapper
419
+ margin-top: 150px
420
+ #active_admin_content
421
+ padding-bottom: 0
422
+ #login
423
+ form fieldset
424
+ border: none
425
+ > h2
426
+ background: $panelHeaderBck
427
+ font-family: 'Source Sans Pro', sans-serif
428
+ color: #fff
429
+ box-shadow: none !important
430
+ border-radius: 0 !important
431
+ padding: 8px 15px
432
+ fieldset.actions
433
+ background: #f1f5f6
434
+ margin: 0 -30px -17px
435
+ padding: 6px 30px
436
+ a
437
+ margin-top: -25px
438
+
439
+ .flash
440
+ background: #F2ECBF
441
+ position: absolute
442
+ top: 0
443
+ left: 0
444
+ right: 0
445
+ padding: 15px
446
+ border-bottom: 1px solid #DEDE8B
447
+ text-shadow: none
448
+
449
+ .sidebar_section
450
+ ul
451
+ margin-bottom: 0
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active-admin-skin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Armand Niampa
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-02-22 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.8'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: skin for active admin.
42
+ email:
43
+ - armand.niampa@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - CODE_OF_CONDUCT.md
50
+ - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
53
+ - Rakefile
54
+ - active-admin-skin.gemspec
55
+ - bin/console
56
+ - bin/setup
57
+ - lib/active/admin/skin.rb
58
+ - lib/active/admin/skin/version.rb
59
+ - vendor/assets/stylesheets/active-admin-skin.css.sass
60
+ homepage: https://github.com/ayann/active-admin-skin
61
+ licenses:
62
+ - MIT
63
+ metadata: {}
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubyforge_project:
80
+ rubygems_version: 2.4.5
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: skin for active admin.
84
+ test_files: []