formadmin 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +45 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +21 -0
- data/README.md +40 -0
- data/Rakefile +1 -0
- data/app/assets/stylesheets/formadmin/_formadmin.scss +11 -0
- data/app/assets/stylesheets/formadmin/atoms/_box.scss +6 -0
- data/app/assets/stylesheets/formadmin/atoms/_button.scss +28 -0
- data/app/assets/stylesheets/formadmin/atoms/_drag.scss +12 -0
- data/app/assets/stylesheets/formadmin/atoms/_header.scss +7 -0
- data/app/assets/stylesheets/formadmin/atoms/_input.scss +19 -0
- data/app/assets/stylesheets/formadmin/atoms/_turbolinks.scss +7 -0
- data/app/assets/stylesheets/formadmin/components/_blank.scss +19 -0
- data/app/assets/stylesheets/formadmin/components/_button.scss +28 -0
- data/app/assets/stylesheets/formadmin/components/_comments.scss +82 -0
- data/app/assets/stylesheets/formadmin/components/_datepicker.scss +100 -0
- data/app/assets/stylesheets/formadmin/components/_dropdown.scss +88 -0
- data/app/assets/stylesheets/formadmin/components/_flash.scss +41 -0
- data/app/assets/stylesheets/formadmin/components/_form.scss +329 -0
- data/app/assets/stylesheets/formadmin/components/_grid.scss +16 -0
- data/app/assets/stylesheets/formadmin/components/_indexes.scss +67 -0
- data/app/assets/stylesheets/formadmin/components/_modal.scss +66 -0
- data/app/assets/stylesheets/formadmin/components/_pagination.scss +76 -0
- data/app/assets/stylesheets/formadmin/components/_panel.scss +21 -0
- data/app/assets/stylesheets/formadmin/components/_status-tag.scss +38 -0
- data/app/assets/stylesheets/formadmin/components/_table.scss +167 -0
- data/app/assets/stylesheets/formadmin/components/_tabs.scss +42 -0
- data/app/assets/stylesheets/formadmin/components/_tools.scss +68 -0
- data/app/assets/stylesheets/formadmin/components/_unsupported_browser.scss +12 -0
- data/app/assets/stylesheets/formadmin/core/_animations.scss +25 -0
- data/app/assets/stylesheets/formadmin/core/_core.scss +44 -0
- data/app/assets/stylesheets/formadmin/core/_mixins.scss +15 -0
- data/app/assets/stylesheets/formadmin/core/_reset.scss +227 -0
- data/app/assets/stylesheets/formadmin/core/_settings.scss +94 -0
- data/app/assets/stylesheets/formadmin/layouts/_footer.scss +14 -0
- data/app/assets/stylesheets/formadmin/layouts/_header.scss +167 -0
- data/app/assets/stylesheets/formadmin/layouts/_main.scss +30 -0
- data/app/assets/stylesheets/formadmin/layouts/_title-bar.scss +66 -0
- data/app/assets/stylesheets/formadmin/pages/_logged-out.scss +45 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/formadmin.gemspec +24 -0
- data/lib/formadmin/version.rb +3 -0
- data/lib/formadmin.rb +8 -0
- metadata +116 -0
@@ -0,0 +1,167 @@
|
|
1
|
+
.header {
|
2
|
+
background-color: rgba($primary-color, 0.95);
|
3
|
+
backdrop-filter: blur(3px);
|
4
|
+
display: table;
|
5
|
+
color: $white;
|
6
|
+
height: 50px;
|
7
|
+
position: fixed;
|
8
|
+
text-shadow: $black 0 1px 0;
|
9
|
+
top: 0;
|
10
|
+
white-space: nowrap;
|
11
|
+
width: 100%;
|
12
|
+
z-index: 10;
|
13
|
+
|
14
|
+
.site_title {
|
15
|
+
display: table-cell;
|
16
|
+
font-weight: bold;
|
17
|
+
margin: 0 20px 0 0;
|
18
|
+
padding: 0 30px;
|
19
|
+
vertical-align: middle;
|
20
|
+
}
|
21
|
+
|
22
|
+
#site_title_image {
|
23
|
+
display: block;
|
24
|
+
height: 30px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.header-item {
|
28
|
+
display: table-cell;
|
29
|
+
vertical-align: middle;
|
30
|
+
|
31
|
+
&,
|
32
|
+
ul {
|
33
|
+
margin: 0;
|
34
|
+
padding: 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
a {
|
38
|
+
color: rgba($white, 0.9);
|
39
|
+
text-decoration: none;
|
40
|
+
transition: background 250ms, color 250ms;
|
41
|
+
}
|
42
|
+
|
43
|
+
li {
|
44
|
+
font-size: 14px;
|
45
|
+
list-style: none;
|
46
|
+
position: relative;
|
47
|
+
}
|
48
|
+
|
49
|
+
> li {
|
50
|
+
display: inline-block;
|
51
|
+
margin: 10px 5px 10px 0;
|
52
|
+
|
53
|
+
&.current > a,
|
54
|
+
&:hover > a {
|
55
|
+
background: tint($primary-color, 25%);
|
56
|
+
color: $white;
|
57
|
+
}
|
58
|
+
|
59
|
+
> a {
|
60
|
+
border-radius: $radius;
|
61
|
+
padding: 5px 10px;
|
62
|
+
}
|
63
|
+
|
64
|
+
&.has_nested {
|
65
|
+
> a:before {
|
66
|
+
border: 3px solid transparent;
|
67
|
+
border-bottom: 0;
|
68
|
+
border-top-color: rgba($white, 0.5);
|
69
|
+
}
|
70
|
+
|
71
|
+
&:hover > a:before,
|
72
|
+
&.current > a:before {
|
73
|
+
border-left-color: transparent;
|
74
|
+
border-top-color: $primary-color;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
.has_nested > ul {
|
79
|
+
right: -100%;
|
80
|
+
top: 0;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
ul {
|
85
|
+
background: tint($primary-color, 25%);
|
86
|
+
border-radius: 0 $radius $radius $radius;
|
87
|
+
height: 0;
|
88
|
+
max-width: calc(100% + 20px);
|
89
|
+
min-width: 175px;
|
90
|
+
opacity: 0;
|
91
|
+
padding: 5px 0;
|
92
|
+
position: absolute;
|
93
|
+
transform: scale(0);
|
94
|
+
transform-origin: left top;
|
95
|
+
transition: opacity 250ms, transform 250ms;
|
96
|
+
width: 20%;
|
97
|
+
z-index: 11;
|
98
|
+
|
99
|
+
a {
|
100
|
+
display: block;
|
101
|
+
padding: 5px 10px;
|
102
|
+
transition: all 250ms;
|
103
|
+
}
|
104
|
+
|
105
|
+
li:hover > a,
|
106
|
+
a:hover {
|
107
|
+
background-color: rgba($primary-color, 0.5);
|
108
|
+
color: $white;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
.has_nested {
|
113
|
+
&:hover > ul {
|
114
|
+
height: auto;
|
115
|
+
opacity: 1;
|
116
|
+
transform: scale(1);
|
117
|
+
}
|
118
|
+
|
119
|
+
> a {
|
120
|
+
padding-right: 23px;
|
121
|
+
position: relative;
|
122
|
+
|
123
|
+
&:before {
|
124
|
+
border: 3px solid transparent;
|
125
|
+
border-right: 0;
|
126
|
+
border-left-color: rgba($white, 0.5);
|
127
|
+
content: '';
|
128
|
+
position: absolute;
|
129
|
+
top: 50%;
|
130
|
+
transition: border-color 250ms;
|
131
|
+
right: 10px;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
&:hover > a:before,
|
136
|
+
&.current > a:before {
|
137
|
+
border-left-color: $primary-color;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
#tabs {
|
143
|
+
width: 100%;
|
144
|
+
}
|
145
|
+
|
146
|
+
#utility_nav {
|
147
|
+
color: $silver;
|
148
|
+
display: table-cell;
|
149
|
+
margin: 0;
|
150
|
+
padding: 0 20px 0 0;
|
151
|
+
text-align: right;
|
152
|
+
transition: color 250ms;
|
153
|
+
white-space: nowrap;
|
154
|
+
|
155
|
+
a {
|
156
|
+
text-decoration: none;
|
157
|
+
|
158
|
+
&:hover {
|
159
|
+
color: $white;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
li {
|
164
|
+
display: inline;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#active_admin_content {
|
2
|
+
padding: 30px 30px 0;
|
3
|
+
flex: 1;
|
4
|
+
|
5
|
+
@include clearfix;
|
6
|
+
|
7
|
+
#main_content_wrapper {
|
8
|
+
float: left;
|
9
|
+
width: 100%;
|
10
|
+
}
|
11
|
+
|
12
|
+
// Sidebar Stuffs
|
13
|
+
&.with_sidebar #main_content {
|
14
|
+
margin-right: 300px;
|
15
|
+
}
|
16
|
+
|
17
|
+
#sidebar {
|
18
|
+
float: left;
|
19
|
+
margin-left: -270px;
|
20
|
+
width: 270px;
|
21
|
+
|
22
|
+
.panel_contents {
|
23
|
+
padding: 0;
|
24
|
+
|
25
|
+
> div {
|
26
|
+
padding: 15px;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
.title_bar {
|
2
|
+
background-color: $white;
|
3
|
+
border-bottom: 1px solid $silver;
|
4
|
+
box-shadow: 0 0 10px rgba($black, 0.1);
|
5
|
+
display: table;
|
6
|
+
margin-top: 50px;
|
7
|
+
padding: 20px 30px;
|
8
|
+
width: 100%;
|
9
|
+
|
10
|
+
#page_title {
|
11
|
+
font-size: 42px;
|
12
|
+
font-weight: 100;
|
13
|
+
line-height: 1;
|
14
|
+
margin: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
#titlebar_left,
|
18
|
+
#titlebar_right {
|
19
|
+
display: table-cell;
|
20
|
+
vertical-align: middle;
|
21
|
+
}
|
22
|
+
|
23
|
+
#titlebar_right {
|
24
|
+
text-align: right;
|
25
|
+
|
26
|
+
.action_item {
|
27
|
+
display: inline-block;
|
28
|
+
|
29
|
+
a {
|
30
|
+
border: 2px solid rgba($primary-color, 0.25);
|
31
|
+
border-radius: $radius;
|
32
|
+
color: rgba($primary-color, 0.75);
|
33
|
+
display: block;
|
34
|
+
font-weight: bold;
|
35
|
+
padding: 10px 15px;
|
36
|
+
text-decoration: none;
|
37
|
+
text-transform: uppercase;
|
38
|
+
transition: all 250ms;
|
39
|
+
|
40
|
+
&:hover {
|
41
|
+
border-color: $primary-color;
|
42
|
+
color: $primary-color;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.breadcrumb {
|
49
|
+
font-size: 10px;
|
50
|
+
font-weight: bold;
|
51
|
+
text-transform: uppercase;
|
52
|
+
|
53
|
+
a {
|
54
|
+
opacity: 0.75;
|
55
|
+
text-decoration: none;
|
56
|
+
|
57
|
+
&:hover {
|
58
|
+
text-decoration: underline;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
.breadcrumb_sep {
|
63
|
+
opacity: 0.5;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
body.logged_out {
|
2
|
+
#active_admin_content {
|
3
|
+
@extend %box;
|
4
|
+
padding: 0 0 20px;
|
5
|
+
overflow: hidden;
|
6
|
+
}
|
7
|
+
|
8
|
+
#content_wrapper {
|
9
|
+
margin: 70px auto;
|
10
|
+
padding: 0;
|
11
|
+
width: 500px;
|
12
|
+
}
|
13
|
+
|
14
|
+
h2 {
|
15
|
+
@extend %header;
|
16
|
+
margin: 0;
|
17
|
+
padding: 15px;
|
18
|
+
}
|
19
|
+
|
20
|
+
fieldset {
|
21
|
+
border: 0;
|
22
|
+
margin: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
.inputs {
|
26
|
+
margin-bottom: 20px;
|
27
|
+
}
|
28
|
+
|
29
|
+
.actions {
|
30
|
+
float: left;
|
31
|
+
margin-left: 20px;
|
32
|
+
}
|
33
|
+
|
34
|
+
#login a {
|
35
|
+
font-size: 80%;
|
36
|
+
float: right;
|
37
|
+
margin-right: 20px;
|
38
|
+
}
|
39
|
+
|
40
|
+
.flash {
|
41
|
+
border-radius: $radius;
|
42
|
+
border-width: 1px;
|
43
|
+
margin-bottom: 20px;
|
44
|
+
}
|
45
|
+
}
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "formadmin"
|
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
data/formadmin.gemspec
ADDED
@@ -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 'formadmin/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'formadmin'
|
8
|
+
spec.version = Formadmin::VERSION
|
9
|
+
spec.authors = ['Caio Tarifa']
|
10
|
+
spec.email = ['caio@formaweb.com.br']
|
11
|
+
|
12
|
+
spec.summary = 'Modern theme for Active Admin used by Formaweb.'
|
13
|
+
spec.description = 'Modern theme for Active Admin used by Formaweb.'
|
14
|
+
spec.homepage = 'http://github.com/formaweb/formadmin'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
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.10"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
end
|
data/lib/formadmin.rb
ADDED
metadata
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: formadmin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Caio Tarifa
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-27 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.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
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: Modern theme for Active Admin used by Formaweb.
|
42
|
+
email:
|
43
|
+
- caio@formaweb.com.br
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- Gemfile
|
50
|
+
- LICENSE.txt
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- app/assets/stylesheets/formadmin/_formadmin.scss
|
54
|
+
- app/assets/stylesheets/formadmin/atoms/_box.scss
|
55
|
+
- app/assets/stylesheets/formadmin/atoms/_button.scss
|
56
|
+
- app/assets/stylesheets/formadmin/atoms/_drag.scss
|
57
|
+
- app/assets/stylesheets/formadmin/atoms/_header.scss
|
58
|
+
- app/assets/stylesheets/formadmin/atoms/_input.scss
|
59
|
+
- app/assets/stylesheets/formadmin/atoms/_turbolinks.scss
|
60
|
+
- app/assets/stylesheets/formadmin/components/_blank.scss
|
61
|
+
- app/assets/stylesheets/formadmin/components/_button.scss
|
62
|
+
- app/assets/stylesheets/formadmin/components/_comments.scss
|
63
|
+
- app/assets/stylesheets/formadmin/components/_datepicker.scss
|
64
|
+
- app/assets/stylesheets/formadmin/components/_dropdown.scss
|
65
|
+
- app/assets/stylesheets/formadmin/components/_flash.scss
|
66
|
+
- app/assets/stylesheets/formadmin/components/_form.scss
|
67
|
+
- app/assets/stylesheets/formadmin/components/_grid.scss
|
68
|
+
- app/assets/stylesheets/formadmin/components/_indexes.scss
|
69
|
+
- app/assets/stylesheets/formadmin/components/_modal.scss
|
70
|
+
- app/assets/stylesheets/formadmin/components/_pagination.scss
|
71
|
+
- app/assets/stylesheets/formadmin/components/_panel.scss
|
72
|
+
- app/assets/stylesheets/formadmin/components/_status-tag.scss
|
73
|
+
- app/assets/stylesheets/formadmin/components/_table.scss
|
74
|
+
- app/assets/stylesheets/formadmin/components/_tabs.scss
|
75
|
+
- app/assets/stylesheets/formadmin/components/_tools.scss
|
76
|
+
- app/assets/stylesheets/formadmin/components/_unsupported_browser.scss
|
77
|
+
- app/assets/stylesheets/formadmin/core/_animations.scss
|
78
|
+
- app/assets/stylesheets/formadmin/core/_core.scss
|
79
|
+
- app/assets/stylesheets/formadmin/core/_mixins.scss
|
80
|
+
- app/assets/stylesheets/formadmin/core/_reset.scss
|
81
|
+
- app/assets/stylesheets/formadmin/core/_settings.scss
|
82
|
+
- app/assets/stylesheets/formadmin/layouts/_footer.scss
|
83
|
+
- app/assets/stylesheets/formadmin/layouts/_header.scss
|
84
|
+
- app/assets/stylesheets/formadmin/layouts/_main.scss
|
85
|
+
- app/assets/stylesheets/formadmin/layouts/_title-bar.scss
|
86
|
+
- app/assets/stylesheets/formadmin/pages/_logged-out.scss
|
87
|
+
- bin/console
|
88
|
+
- bin/setup
|
89
|
+
- formadmin.gemspec
|
90
|
+
- lib/formadmin.rb
|
91
|
+
- lib/formadmin/version.rb
|
92
|
+
homepage: http://github.com/formaweb/formadmin
|
93
|
+
licenses:
|
94
|
+
- MIT
|
95
|
+
metadata: {}
|
96
|
+
post_install_message:
|
97
|
+
rdoc_options: []
|
98
|
+
require_paths:
|
99
|
+
- lib
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
requirements: []
|
111
|
+
rubyforge_project:
|
112
|
+
rubygems_version: 2.5.1
|
113
|
+
signing_key:
|
114
|
+
specification_version: 4
|
115
|
+
summary: Modern theme for Active Admin used by Formaweb.
|
116
|
+
test_files: []
|