activeadmin_tiny_improvements 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile +5 -0
  4. data/Gemfile.lock +96 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +29 -0
  7. data/Rakefile +51 -0
  8. data/activeadmin_tiny_improvements.gemspec +41 -0
  9. data/app/assets/.DS_Store +0 -0
  10. data/app/assets/stylesheets/.DS_Store +0 -0
  11. data/app/assets/stylesheets/_activeadmin-tiny-improvements.sass +20 -0
  12. data/app/assets/stylesheets/activeadmin-tiny-improvements/addons/best-in-place.sass +46 -0
  13. data/app/assets/stylesheets/activeadmin-tiny-improvements/addons/select2.sass +26 -0
  14. data/app/assets/stylesheets/activeadmin-tiny-improvements/addons/toggl-bool-switches.sass +14 -0
  15. data/app/assets/stylesheets/activeadmin-tiny-improvements/breadcrumbs.sass +4 -0
  16. data/app/assets/stylesheets/activeadmin-tiny-improvements/buttons.sass +26 -0
  17. data/app/assets/stylesheets/activeadmin-tiny-improvements/hints.sass +7 -0
  18. data/app/assets/stylesheets/activeadmin-tiny-improvements/inputs-radio.sass +32 -0
  19. data/app/assets/stylesheets/activeadmin-tiny-improvements/inputs.sass +49 -0
  20. data/app/assets/stylesheets/activeadmin-tiny-improvements/labels.sass +11 -0
  21. data/app/assets/stylesheets/activeadmin-tiny-improvements/login-screen.sass +4 -0
  22. data/app/assets/stylesheets/activeadmin-tiny-improvements/note.sass +30 -0
  23. data/app/assets/stylesheets/activeadmin-tiny-improvements/panel.sass +15 -0
  24. data/app/assets/stylesheets/activeadmin-tiny-improvements/scopes.sass +2 -0
  25. data/app/assets/stylesheets/activeadmin-tiny-improvements/sidebar.sass +5 -0
  26. data/app/assets/stylesheets/activeadmin-tiny-improvements/status-tags.sass +7 -0
  27. data/app/assets/stylesheets/activeadmin-tiny-improvements/table-attributes.sass +4 -0
  28. data/app/assets/stylesheets/activeadmin-tiny-improvements/table-index.sass +14 -0
  29. data/app/assets/stylesheets/activeadmin-tiny-improvements/table-panel.sass +4 -0
  30. data/app/assets/stylesheets/activeadmin-tiny-improvements/typography.sass +18 -0
  31. data/lib/activeadmin/tiny_improvements/engine.rb +12 -0
  32. data/lib/activeadmin/tiny_improvements/version.rb +7 -0
  33. data/lib/activeadmin/tiny_improvements.rb +24 -0
  34. data/lib/activeadmin_tiny_improvements.rb +3 -0
  35. data/sig/activeadmin_tiny_improvements.rbs +4 -0
  36. metadata +164 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: da0869c1579a59317e1abf49a5ce79f0a1c6c38f3cb29cd5cfc4a5fd93356fcf
4
+ data.tar.gz: a5c2f3d9f719efae51e0befcd5b282523572bb035415f15d2126c097d91bba08
5
+ SHA512:
6
+ metadata.gz: 3ef2f92ef7f9e335f6a31ed87471160e0294a95de7465c28977767b13bb53955f5f52c1eba0d3a51bc0fe495cb9ca3f0a248e1a226fade15de745d8eb398093d
7
+ data.tar.gz: 5b3fe8dc6b5bb0c27d51a49d146f004daca17161959b039ad8371de51c897c50d1464e8a9dde14292df19df274761bc2dfba4fe560f225c67e274db39eaab5d6
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-06-12
4
+
5
+ - Initial release
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,96 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ activeadmin_tiny_improvements (0.1.0)
5
+ railties (>= 4)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionpack (7.0.3)
11
+ actionview (= 7.0.3)
12
+ activesupport (= 7.0.3)
13
+ rack (~> 2.0, >= 2.2.0)
14
+ rack-test (>= 0.6.3)
15
+ rails-dom-testing (~> 2.0)
16
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
+ actionview (7.0.3)
18
+ activesupport (= 7.0.3)
19
+ builder (~> 3.1)
20
+ erubi (~> 1.4)
21
+ rails-dom-testing (~> 2.0)
22
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
+ activesupport (7.0.3)
24
+ concurrent-ruby (~> 1.0, >= 1.0.2)
25
+ i18n (>= 1.6, < 2)
26
+ minitest (>= 5.1)
27
+ tzinfo (~> 2.0)
28
+ builder (3.2.4)
29
+ concurrent-ruby (1.1.10)
30
+ crass (1.0.6)
31
+ diff-lcs (1.5.0)
32
+ erubi (1.10.0)
33
+ ffi (1.15.5)
34
+ i18n (1.10.0)
35
+ concurrent-ruby (~> 1.0)
36
+ loofah (2.18.0)
37
+ crass (~> 1.0.2)
38
+ nokogiri (>= 1.5.9)
39
+ method_source (1.0.0)
40
+ minitest (5.15.0)
41
+ nokogiri (1.13.6-arm64-darwin)
42
+ racc (~> 1.4)
43
+ racc (1.6.0)
44
+ rack (2.2.3.1)
45
+ rack-test (1.1.0)
46
+ rack (>= 1.0, < 3)
47
+ rails-dom-testing (2.0.3)
48
+ activesupport (>= 4.2.0)
49
+ nokogiri (>= 1.6)
50
+ rails-html-sanitizer (1.4.3)
51
+ loofah (~> 2.3)
52
+ railties (7.0.3)
53
+ actionpack (= 7.0.3)
54
+ activesupport (= 7.0.3)
55
+ method_source
56
+ rake (>= 12.2)
57
+ thor (~> 1.0)
58
+ zeitwerk (~> 2.5)
59
+ rake (13.0.6)
60
+ rspec (3.11.0)
61
+ rspec-core (~> 3.11.0)
62
+ rspec-expectations (~> 3.11.0)
63
+ rspec-mocks (~> 3.11.0)
64
+ rspec-core (3.11.0)
65
+ rspec-support (~> 3.11.0)
66
+ rspec-expectations (3.11.0)
67
+ diff-lcs (>= 1.2.0, < 2.0)
68
+ rspec-support (~> 3.11.0)
69
+ rspec-mocks (3.11.1)
70
+ diff-lcs (>= 1.2.0, < 2.0)
71
+ rspec-support (~> 3.11.0)
72
+ rspec-support (3.11.0)
73
+ sassc (2.4.0)
74
+ ffi (~> 1.9)
75
+ sync (0.5.0)
76
+ term-ansicolor (1.7.1)
77
+ tins (~> 1.0)
78
+ thor (1.2.1)
79
+ tins (1.31.1)
80
+ sync
81
+ tzinfo (2.0.4)
82
+ concurrent-ruby (~> 1.0)
83
+ zeitwerk (2.5.4)
84
+
85
+ PLATFORMS
86
+ arm64-darwin-21
87
+
88
+ DEPENDENCIES
89
+ activeadmin_tiny_improvements!
90
+ rake (~> 13)
91
+ rspec (~> 3)
92
+ sassc (~> 2, >= 2.0.0)
93
+ term-ansicolor (~> 1)
94
+
95
+ BUNDLED WITH
96
+ 2.3.15
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Sergey Pedan
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,29 @@
1
+ # Tiny improvements to the default theme of ActiveAdmin
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/activeadmin_tiny_improvements.svg)](https://badge.fury.io/rb/activeadmin_tiny_improvements)
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem "activeadmin_dark_color_scheme"
11
+ ```
12
+
13
+ Import our Sass file “activeadmin-tiny-improvements” in your CSS entrypoint that compiles ActiveAdmin CSS files:
14
+
15
+ ```sass
16
+ // app/assets/stylesheets/active_admin.sass
17
+
18
+ // Your regular ActiveAdmin files
19
+ @import "active_admin/mixins"
20
+ @import "active_admin/base"
21
+
22
+ // Dark scheme
23
+ @import "activeadmin-tiny-improvements"
24
+ ```
25
+
26
+ ## ActiveAdmin version compatibility
27
+
28
+ The current version of ActiveAdmin is 2.13.1. Our styles are and will be targeted on the latest version.
29
+
data/Rakefile ADDED
@@ -0,0 +1,51 @@
1
+ require "bundler/setup"
2
+ require "bundler/gem_tasks"
3
+ require "rspec/core/rake_task"
4
+ require "term/ansicolor"
5
+
6
+ require "./lib/activeadmin/tiny_improvements"
7
+
8
+ RSpec::Core::RakeTask.new(:spec)
9
+
10
+ # APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
11
+ # load "rails/tasks/engine.rake"
12
+ load "rails/tasks/statistics.rake"
13
+
14
+ task default: :spec
15
+
16
+ desc "Dumps output to a CSS file for testing"
17
+ task :debug do
18
+ require "sassc"
19
+ require "rails"
20
+
21
+ path = Activeadmin::TinyImprovements.stylesheets_path
22
+ entrypoins = %w(_activeadmin-tiny-improvements)
23
+
24
+ entrypoins.each do |file|
25
+ css = File.read("#{path}/#{file}.sass")
26
+ engine = SassC::Engine.new(css, syntax: :sass, load_paths: [path])
27
+ out = File.join("tmp", "#{file[1..-1]}.css")
28
+ css = engine.render
29
+ File.open(out, "w+") do |f|
30
+ f << css
31
+ end
32
+ $stderr.puts Term::ANSIColor.green "Compiled #{out}"
33
+ $stderr.puts css
34
+ end
35
+ end
36
+
37
+ # desc "Publish"
38
+ # task :publish do
39
+ # puts `gem push pkg/activeadmin_tiny_improvements-#{Activeadmin::TinyImprovements::VERSION}.gem`
40
+ # end
41
+
42
+ # desc 'Start a dummy Rails app server'
43
+ # task :rails_server do
44
+ # require 'rack'
45
+ # require 'term/ansicolor'
46
+ # port = ENV['PORT'] || 9292
47
+ # puts %Q(Starting on #{Term::ANSIColor.cyan "http://localhost:#{port}"})
48
+ # Rack::Server.start(
49
+ # config: 'test/dummy_rails/config.ru',
50
+ # Port: port)
51
+ # end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/activeadmin/tiny_improvements/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "activeadmin_tiny_improvements"
7
+ spec.version = Activeadmin::TinyImprovements::VERSION
8
+ spec.authors = ["Sergey Pedan"]
9
+ spec.email = ["sergey.pedan@gmail.com"]
10
+ spec.license = "MIT"
11
+
12
+ spec.summary = "A collection of small visual improvements to classic ActiveAdmin theme"
13
+ spec.description = <<~HEREDOC
14
+ #{spec.summary}. This gem provides Sass files that you can include via Sprockets.
15
+ HEREDOC
16
+
17
+ spec.homepage = "https://github.com/sergeypedan/#{spec.name.gsub('_', '-')}"
18
+ spec.extra_rdoc_files = ["README.md", "CHANGELOG.md"]
19
+ spec.rdoc_options = ["--charset=UTF-8"]
20
+ spec.metadata = { "changelog_uri" => "#{spec.homepage}/blob/master/CHANGELOG.md",
21
+ "documentation_uri" => "https://www.rubydoc.info/gems/#{spec.name}",
22
+ "homepage_uri" => spec.homepage,
23
+ "source_code_uri" => spec.homepage }
24
+
25
+ spec.require_paths = ["app", "lib"]
26
+
27
+ spec.bindir = "exe"
28
+ spec.executables = []
29
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
30
+ `git ls-files`.split("\n")
31
+ .reject { |f| %w[bin spec test].any? { |dir| f.start_with? dir } }
32
+ .reject { |f| f.start_with? "." }
33
+ end
34
+
35
+ spec.add_runtime_dependency "railties", ">= 4"
36
+
37
+ spec.add_development_dependency "rake", "~> 13"
38
+ spec.add_development_dependency "rspec", "~> 3"
39
+ spec.add_development_dependency "sassc", "~> 2", ">= 2.0.0"
40
+ spec.add_development_dependency "term-ansicolor", "~> 1"
41
+ end
Binary file
Binary file
@@ -0,0 +1,20 @@
1
+ @import "./activeadmin-tiny-improvements/breadcrumbs"
2
+ @import "./activeadmin-tiny-improvements/buttons"
3
+ @import "./activeadmin-tiny-improvements/inputs"
4
+ @import "./activeadmin-tiny-improvements/inputs-radio"
5
+ @import "./activeadmin-tiny-improvements/hints"
6
+ @import "./activeadmin-tiny-improvements/labels"
7
+ @import "./activeadmin-tiny-improvements/login-screen"
8
+ @import "./activeadmin-tiny-improvements/note"
9
+ @import "./activeadmin-tiny-improvements/panel"
10
+ @import "./activeadmin-tiny-improvements/scopes"
11
+ @import "./activeadmin-tiny-improvements/sidebar"
12
+ @import "./activeadmin-tiny-improvements/status-tags"
13
+ @import "./activeadmin-tiny-improvements/table-attributes"
14
+ @import "./activeadmin-tiny-improvements/table-index"
15
+ @import "./activeadmin-tiny-improvements/table-panel"
16
+ @import "./activeadmin-tiny-improvements/typography"
17
+
18
+ @import "./activeadmin-tiny-improvements/addons/best-in-place"
19
+ @import "./activeadmin-tiny-improvements/addons/select2"
20
+ @import "./activeadmin-tiny-improvements/addons/toggl-bool-switches"
@@ -0,0 +1,46 @@
1
+ .best_in_place:hover
2
+ cursor: pointer
3
+
4
+
5
+ span.status_tag
6
+
7
+ &[data-bip-value=false]
8
+ background: grey
9
+
10
+ &[data-bip-value=true]
11
+ background: #6090DB
12
+
13
+ .best_in_place[data-bip-type="checkbox"]
14
+ .status_tag
15
+ background: none
16
+ color: inherit
17
+ padding: 0
18
+ font-weight: 500
19
+
20
+ &:before
21
+ -moz-osx-font-smoothing: grayscale
22
+ -webkit-font-smoothing: antialiased
23
+ display: inline-block
24
+ font-family: FontAwesome
25
+ font-size: 18px
26
+ line-height: 13px
27
+ margin-right: 3px
28
+ text-rendering: auto
29
+ vertical-align: middle
30
+
31
+ &.yes:before
32
+ content: "\f205"
33
+ // toggle-on
34
+ color: hsl(110, 67%, 43%)
35
+
36
+ &.no:before
37
+ content: "\f204"
38
+ // toggle-off
39
+ color: hsl(0, 0%, 60%)
40
+
41
+ // &.unknown:before
42
+ // // content: "\f29c"
43
+ // // question-circle-o
44
+ // content: "\f204"
45
+ // // toggle-off
46
+ // color: hsl(0, 0%, 60%)
@@ -0,0 +1,26 @@
1
+ .select2-container
2
+ $height: 35px
3
+
4
+ max-width: 700px
5
+ top: -1px
6
+
7
+ &--default
8
+
9
+ .select2-selection
10
+ &--single
11
+ border-color: hsl(208, 14%, 81%)
12
+ border-radius: 3px
13
+
14
+ .select2-selection
15
+ &__rendered
16
+ color: black
17
+ font-size: 13px
18
+ line-height: $height
19
+
20
+ &__arrow
21
+ height: $height
22
+
23
+
24
+ .select2-selection
25
+ &--single
26
+ height: $height + 1
@@ -0,0 +1,14 @@
1
+ .toggle-bool-switches-container
2
+ .toggle-bool-switch
3
+ width: 35px
4
+ border-radius: 2px
5
+
6
+ &::before
7
+ border-radius: 2px
8
+ width: 15px
9
+
10
+ &.on
11
+ background-image: linear-gradient(#33c514, #0ebf53)
12
+
13
+ &::before
14
+ left: calc(100% - 17px)
@@ -0,0 +1,4 @@
1
+ .breadcrumb
2
+ font-size: 1em
3
+ text-shadow: none
4
+ text-transform: none
@@ -0,0 +1,26 @@
1
+ .aa-btn-default
2
+ background-color: white
3
+ background-image: linear-gradient(180deg, white, #E7E7E7)
4
+ border-radius: 200px
5
+ border: solid 1px #c7c7c7
6
+ border-top-color: #d3d3d3
7
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(255, 255, 255, 0.8) inset
8
+ color: #5E6469
9
+ display: inline-block
10
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif
11
+ font-size: 1.0em
12
+ font-weight: bold
13
+ line-height: 12px
14
+ margin-right: 3px
15
+ margin: 0px
16
+ padding: 12px 17px 10px
17
+ text-decoration: none
18
+ text-shadow: white 0 1px 0
19
+
20
+ &:not(.disabled):hover
21
+ background-color: white
22
+ background-image: linear-gradient(180deg, white, #F1F1F1)
23
+
24
+ .action_item
25
+ button
26
+ @extend .aa-btn-default
@@ -0,0 +1,7 @@
1
+ form
2
+ fieldset
3
+ > ol
4
+ > li
5
+ p.inline-hints
6
+ color: hsl(0, 0%, 60%)
7
+ font-style: normal
@@ -0,0 +1,32 @@
1
+ li.input.radio,
2
+ li.input.tristate_radio
3
+
4
+ fieldset.choices
5
+ legend.label
6
+ margin-bottom: 7px
7
+
8
+ label
9
+ width: 100%
10
+
11
+ form
12
+ fieldset
13
+ ol
14
+ > li.radio,
15
+ > li.tristate_radio
16
+ clear: both
17
+
18
+ label
19
+ float: none
20
+ font-weight: 500
21
+
22
+ li.radio, li.tristate_radio
23
+ fieldset.choices
24
+ ol.choices-group
25
+ > li.choice
26
+ margin: 0.1em 0 0.5em 0
27
+
28
+ label
29
+ width: unset
30
+
31
+ input
32
+ margin-right: 5px
@@ -0,0 +1,49 @@
1
+ form
2
+ input[type="date"],
3
+ input[type="email"],
4
+ input[type="number"],
5
+ input[type="password"],
6
+ input[type="tel"],
7
+ input[type="text"],
8
+ input[type="time"],
9
+ input[type="url"],
10
+ textarea
11
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif
12
+ font-size: 13px
13
+ line-height: 1.5em
14
+ max-width: 700px
15
+
16
+ &:focus
17
+ box-shadow: unset
18
+ border-color: #c9d0d6
19
+ outline-color: -webkit-focus-ring-color
20
+ outline-style: auto
21
+ // outline-offset: 0px
22
+ // outline-width: 5px
23
+
24
+ fieldset
25
+ > ol
26
+ > li.radio
27
+ fieldset
28
+ ol
29
+ li
30
+ label
31
+ font-weight: 500
32
+
33
+ input
34
+ margin-right: 5px
35
+ ol
36
+ > li.radio
37
+ label
38
+ float: none
39
+
40
+ ::-webkit-input-placeholder
41
+ color: hsl(0, 0%, 70%)
42
+
43
+ input[disabled],
44
+ input[readonly]
45
+ background-color: hsl(0, 0%, 94%)
46
+
47
+ li.input.number.numeric
48
+ input
49
+ max-width: 100px
@@ -0,0 +1,11 @@
1
+ abbr[title="required"]
2
+ color: crimson
3
+ text-decoration: none
4
+ margin-left: 1px
5
+
6
+ fieldset.fragments
7
+ label
8
+ float: none
9
+
10
+ label.label
11
+ word-break: normal
@@ -0,0 +1,4 @@
1
+ .active_admin.logged_out
2
+ .flash
3
+ &.flash_alert
4
+ color: crimson
@@ -0,0 +1,30 @@
1
+ li.note
2
+ margin-left: 20%
3
+ margin-top: -15px
4
+
5
+ code
6
+ background-color: hsl(0, 0%, 90%)
7
+ color: hsl(200, 53%, 38%)
8
+ letter-spacing: -0.03em
9
+ padding: 0 2px
10
+
11
+ p + p
12
+ margin-top: 1em
13
+
14
+ table
15
+ width: auto
16
+ margin-top: 10px
17
+ margin-bottom: 0
18
+
19
+ caption
20
+ text-align: left
21
+
22
+ thead
23
+ th
24
+ background: none
25
+
26
+ blockquote
27
+ background-color: hsl(0, 0%, 90%)
28
+ border-radius: 2px
29
+ margin: 5px 0
30
+ padding: 7px 13px
@@ -0,0 +1,15 @@
1
+ .panel.label-block
2
+ label
3
+ display: block
4
+
5
+ .panel.toggle
6
+ > legend
7
+ > span
8
+ cursor: pointer
9
+
10
+ &:hover
11
+ text-decoration: underline
12
+
13
+ > ol
14
+ display: none
15
+
@@ -0,0 +1,2 @@
1
+ .scope.selected
2
+ background: none
@@ -0,0 +1,5 @@
1
+ .sidebar_section
2
+ label
3
+ font-size: 1em
4
+ text-transform: none
5
+ margin-bottom: 2px
@@ -0,0 +1,7 @@
1
+ .status_tag
2
+ border-radius: 2px
3
+ font-size: smaller
4
+ font-variant-caps: all-small-caps
5
+ letter-spacing: 0.03em
6
+ line-height: 1
7
+ padding-block: 3px
@@ -0,0 +1,4 @@
1
+ .attributes_table
2
+ table
3
+ th
4
+ text-transform: none
@@ -0,0 +1,14 @@
1
+ table.index_table
2
+ tr.even
3
+ td
4
+ background-color: hsl(180, 4%, 97%)
5
+
6
+ th
7
+ line-height: 1.4
8
+
9
+ td
10
+ line-height: 1.15
11
+ vertical-align: middle
12
+
13
+ a, a:link, a:visited
14
+ white-space: normal
@@ -0,0 +1,4 @@
1
+ .panel_contents
2
+ table
3
+ th
4
+ text-transform: none
@@ -0,0 +1,18 @@
1
+ body
2
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif
3
+
4
+ code
5
+ background-color: floralwhite
6
+ border-radius: 2px
7
+ font-family: "Fira Code", Menlo, monospace
8
+ font-size: 11px
9
+ line-height: 1.25
10
+ padding: 3px
11
+
12
+ abbr, .small-caps
13
+ font-variant-caps: all-small-caps
14
+ letter-spacing: 0.03em
15
+
16
+ .tnum
17
+ font-feature-settings: "tnum"
18
+ font-variant-numeric: tabular-nums
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This is standard Rails way to autoload gem’s contents dynamically as an “engine”
4
+ # @see https://guides.rubyonrails.org/engines.html Rails guide on engines
5
+ #
6
+ module Activeadmin
7
+ class Engine < ::Rails::Engine
8
+ initializer "activeadmin_tiny_improvements.assets" do |app|
9
+ app.config.assets.paths << root.join("assets", "stylesheets").to_s
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Activeadmin
4
+ module TinyImprovements
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "tiny_improvements/version"
4
+ require_relative "tiny_improvements/engine"
5
+
6
+ module Activeadmin
7
+ module TinyImprovements
8
+ class << self
9
+
10
+ def gem_path
11
+ @gem_path ||= File.expand_path "../../app", File.dirname(__FILE__)
12
+ end
13
+
14
+ def assets_path
15
+ @assets_path ||= File.join gem_path, "assets"
16
+ end
17
+
18
+ def stylesheets_path
19
+ File.join assets_path, "stylesheets"
20
+ end
21
+
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "activeadmin/tiny_improvements"
@@ -0,0 +1,4 @@
1
+ module Activeadmin::TinyImprovements
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,164 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activeadmin_tiny_improvements
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Sergey Pedan
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-06-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sassc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 2.0.0
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '2'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 2.0.0
75
+ - !ruby/object:Gem::Dependency
76
+ name: term-ansicolor
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '1'
89
+ description: 'A collection of small visual improvements to classic ActiveAdmin theme.
90
+ This gem provides Sass files that you can include via Sprockets.
91
+
92
+ '
93
+ email:
94
+ - sergey.pedan@gmail.com
95
+ executables: []
96
+ extensions: []
97
+ extra_rdoc_files:
98
+ - README.md
99
+ - CHANGELOG.md
100
+ files:
101
+ - CHANGELOG.md
102
+ - Gemfile
103
+ - Gemfile.lock
104
+ - LICENSE.txt
105
+ - README.md
106
+ - Rakefile
107
+ - activeadmin_tiny_improvements.gemspec
108
+ - app/assets/.DS_Store
109
+ - app/assets/stylesheets/.DS_Store
110
+ - app/assets/stylesheets/_activeadmin-tiny-improvements.sass
111
+ - app/assets/stylesheets/activeadmin-tiny-improvements/addons/best-in-place.sass
112
+ - app/assets/stylesheets/activeadmin-tiny-improvements/addons/select2.sass
113
+ - app/assets/stylesheets/activeadmin-tiny-improvements/addons/toggl-bool-switches.sass
114
+ - app/assets/stylesheets/activeadmin-tiny-improvements/breadcrumbs.sass
115
+ - app/assets/stylesheets/activeadmin-tiny-improvements/buttons.sass
116
+ - app/assets/stylesheets/activeadmin-tiny-improvements/hints.sass
117
+ - app/assets/stylesheets/activeadmin-tiny-improvements/inputs-radio.sass
118
+ - app/assets/stylesheets/activeadmin-tiny-improvements/inputs.sass
119
+ - app/assets/stylesheets/activeadmin-tiny-improvements/labels.sass
120
+ - app/assets/stylesheets/activeadmin-tiny-improvements/login-screen.sass
121
+ - app/assets/stylesheets/activeadmin-tiny-improvements/note.sass
122
+ - app/assets/stylesheets/activeadmin-tiny-improvements/panel.sass
123
+ - app/assets/stylesheets/activeadmin-tiny-improvements/scopes.sass
124
+ - app/assets/stylesheets/activeadmin-tiny-improvements/sidebar.sass
125
+ - app/assets/stylesheets/activeadmin-tiny-improvements/status-tags.sass
126
+ - app/assets/stylesheets/activeadmin-tiny-improvements/table-attributes.sass
127
+ - app/assets/stylesheets/activeadmin-tiny-improvements/table-index.sass
128
+ - app/assets/stylesheets/activeadmin-tiny-improvements/table-panel.sass
129
+ - app/assets/stylesheets/activeadmin-tiny-improvements/typography.sass
130
+ - lib/activeadmin/tiny_improvements.rb
131
+ - lib/activeadmin/tiny_improvements/engine.rb
132
+ - lib/activeadmin/tiny_improvements/version.rb
133
+ - lib/activeadmin_tiny_improvements.rb
134
+ - sig/activeadmin_tiny_improvements.rbs
135
+ homepage: https://github.com/sergeypedan/activeadmin-tiny-improvements
136
+ licenses:
137
+ - MIT
138
+ metadata:
139
+ changelog_uri: https://github.com/sergeypedan/activeadmin-tiny-improvements/blob/master/CHANGELOG.md
140
+ documentation_uri: https://www.rubydoc.info/gems/activeadmin_tiny_improvements
141
+ homepage_uri: https://github.com/sergeypedan/activeadmin-tiny-improvements
142
+ source_code_uri: https://github.com/sergeypedan/activeadmin-tiny-improvements
143
+ post_install_message:
144
+ rdoc_options:
145
+ - "--charset=UTF-8"
146
+ require_paths:
147
+ - app
148
+ - lib
149
+ required_ruby_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ requirements: []
160
+ rubygems_version: 3.3.7
161
+ signing_key:
162
+ specification_version: 4
163
+ summary: A collection of small visual improvements to classic ActiveAdmin theme
164
+ test_files: []