active_bootstrap_skin 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +2 -0
- data/active_bootstrap_skin.gemspec +26 -0
- data/app/assets/images/.gitkeep +0 -0
- data/app/assets/stylesheets/active_bootstrap_skin.scss +254 -0
- data/lib/active_bootstrap_skin/version.rb +1 -1
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f63ec1e9855409b9c6d083345307a199ab5e8a2
|
4
|
+
data.tar.gz: 66ef0dd8f74e810e68e7e6d59a37689fa825bb94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 019ca89510462a48d925b997785aa2fb033bb47e660afe02d0f0d2b1cd3f889c75e2d7d91414baebc9a06575a4cbc7ed3958c978ebeaedb3a4799253c51767a8
|
7
|
+
data.tar.gz: db4fadeedb636959b89a72aba1b5894a88be508dec038ebd63875333f335c8b26eef65f441bf3780b6d94d87fc7e77e764f4c0df7896d0ce5a3152a74cb09f36
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at TODO: Write your email address. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Vinh Nguyen
|
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,41 @@
|
|
1
|
+
# ActiveBootstrapSkin
|
2
|
+
|
3
|
+
Bootstrap skin for Active Admin.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
- Add the gem to your Gemfile:
|
8
|
+
|
9
|
+
```
|
10
|
+
# Note: The gem require the bootstrap-sass gem. So we need to add bootstrap-sass to Gemfile
|
11
|
+
|
12
|
+
gem 'bootstrap-sass'
|
13
|
+
gem 'active_bootstrap_skin'
|
14
|
+
```
|
15
|
+
|
16
|
+
## Usage
|
17
|
+
|
18
|
+
- Don't forget you have to config the [bootstraps-sass](https://github.com/twbs/bootstrap-sass#a-ruby-on-rails) first.
|
19
|
+
|
20
|
+
- In the `active_admin.scss` file, you include `active_bootstrap_skin`. **Note: You have to comment the active admin stylesheets.**
|
21
|
+
|
22
|
+
```
|
23
|
+
// Active Admin's got SASS!
|
24
|
+
// @import "active_admin/mixins";
|
25
|
+
// @import "active_admin/base";
|
26
|
+
|
27
|
+
// Active Bootstrap
|
28
|
+
@import "active_bootstrap_skin";
|
29
|
+
```
|
30
|
+
|
31
|
+
## Screens
|
32
|
+
|
33
|
+
![Login](https://cloud.githubusercontent.com/assets/1997137/14111523/49c1e80c-f5f5-11e5-9fd4-d1700428b167.png)
|
34
|
+
|
35
|
+
![Admin](https://cloud.githubusercontent.com/assets/1997137/14111565/6f684bd2-f5f5-11e5-9c8c-afc0ac8ab05e.png)
|
36
|
+
|
37
|
+
![Admin Responsive](https://cloud.githubusercontent.com/assets/1997137/14111613/8fd64eb4-f5f5-11e5-9024-0d0dbf4c4b88.png)
|
38
|
+
|
39
|
+
## Contributing
|
40
|
+
|
41
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/vinhnglx/active_bootstrap_skin. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org/) code of conduct.
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'active_bootstrap_skin/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "active_bootstrap_skin"
|
8
|
+
spec.version = ActiveBootstrapSkin::VERSION
|
9
|
+
spec.authors = ["Vinh Nguyen"]
|
10
|
+
spec.email = ["vinh.nglx@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Bootstrap skin for ActiveAdmin.}
|
13
|
+
spec.description = %q{Bootstrap skin for ActiveAdmin.}
|
14
|
+
spec.homepage = "https://github.com/vinhnglx/active_bootstrap_skin"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
|
25
|
+
spec.add_runtime_dependency "bootstrap-sass", "~> 3.3.6"
|
26
|
+
end
|
File without changes
|
@@ -0,0 +1,254 @@
|
|
1
|
+
@import 'bootstrap';
|
2
|
+
|
3
|
+
#wrapper {
|
4
|
+
@extend .container-fluid;
|
5
|
+
}
|
6
|
+
|
7
|
+
.flash {
|
8
|
+
@extend .alert;
|
9
|
+
margin-top: 30px;
|
10
|
+
}
|
11
|
+
|
12
|
+
.flash_alert {
|
13
|
+
@extend .alert-danger;
|
14
|
+
}
|
15
|
+
|
16
|
+
.flash_notice {
|
17
|
+
@extend .alert-success;
|
18
|
+
}
|
19
|
+
|
20
|
+
#error_explanation {
|
21
|
+
color: red;
|
22
|
+
h2 {
|
23
|
+
font-size: 15px
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.inline-errors {
|
28
|
+
color: red;
|
29
|
+
}
|
30
|
+
|
31
|
+
#login {
|
32
|
+
max-width: 400px;
|
33
|
+
padding: 15px;
|
34
|
+
margin: 0 auto;
|
35
|
+
|
36
|
+
#admin_user_remember_me {
|
37
|
+
width: 12px;
|
38
|
+
height: 12px;
|
39
|
+
display: inline-block;
|
40
|
+
margin-right: 10px;
|
41
|
+
}
|
42
|
+
|
43
|
+
#admin_user_submit_action, input[type="submit"] {
|
44
|
+
@extend .btn-block;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
/* Header and Nav */
|
49
|
+
#header {
|
50
|
+
@extend .navbar;
|
51
|
+
@extend .navbar-inverse;
|
52
|
+
|
53
|
+
@media (max-width: 768px) {
|
54
|
+
#site_title {
|
55
|
+
float: none;
|
56
|
+
}
|
57
|
+
|
58
|
+
.header-item.tabs {
|
59
|
+
margin: 7.5px 0;
|
60
|
+
}
|
61
|
+
|
62
|
+
#utility_nav {
|
63
|
+
float: none;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
@media (min-width: 769px) {
|
68
|
+
#utility_nav {
|
69
|
+
float: right;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
#site_title {
|
75
|
+
@extend .navbar-brand;
|
76
|
+
margin-top: 0;
|
77
|
+
margin-bottom: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
.header-item.tabs {
|
81
|
+
@extend .nav;
|
82
|
+
@extend .navbar-nav;
|
83
|
+
|
84
|
+
li.current {
|
85
|
+
@extend .active;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
|
90
|
+
.header-item.tab {
|
91
|
+
@extend .col-sm-3
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
#title_bar {
|
96
|
+
@extend .clearfix;
|
97
|
+
|
98
|
+
#titlebar_left {
|
99
|
+
@extend .pull-left;
|
100
|
+
}
|
101
|
+
|
102
|
+
#titlebar_right {
|
103
|
+
@extend .pull-right;
|
104
|
+
}
|
105
|
+
|
106
|
+
.action_item a {
|
107
|
+
@extend .btn;
|
108
|
+
@extend .btn-primary;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
/* Sidebar */
|
113
|
+
.filter_form {
|
114
|
+
.filter_form_field {
|
115
|
+
@extend .form-group;
|
116
|
+
|
117
|
+
input,select {
|
118
|
+
@extend .form-control;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
.buttons {
|
123
|
+
input, a {
|
124
|
+
@extend .btn;
|
125
|
+
@extend .btn-default;
|
126
|
+
}
|
127
|
+
input[type="submit"] {
|
128
|
+
@extend .btn-primary;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
/* Main Content */
|
134
|
+
#active_admin_content {
|
135
|
+
@extend .row;
|
136
|
+
|
137
|
+
&.without_sidebar {
|
138
|
+
#main_content_wrapper {
|
139
|
+
@extend .col-lg-6;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
&.with_sidebar {
|
144
|
+
#main_content_wrapper {
|
145
|
+
@extend .col-lg-9;
|
146
|
+
}
|
147
|
+
#sidebar {
|
148
|
+
@extend .col-lg-3;
|
149
|
+
input {
|
150
|
+
margin-top: 10px;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
#main_content_wrapper {
|
157
|
+
.member_link {
|
158
|
+
margin-right: 10px;
|
159
|
+
}
|
160
|
+
input[type="checkbox"] {
|
161
|
+
display: inline-block;
|
162
|
+
width: auto;
|
163
|
+
height: auto;
|
164
|
+
margin-right: 10px;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
#ui-datepicker-div {
|
169
|
+
background: white;
|
170
|
+
padding: 5px;
|
171
|
+
border: 1px solid rgba(0,0,0,0.15);
|
172
|
+
border-radius: 5px;
|
173
|
+
.ui-datepicker-calendar {
|
174
|
+
th, td {
|
175
|
+
width: 30px;
|
176
|
+
height: 30px;
|
177
|
+
text-align: center;
|
178
|
+
&:hover {
|
179
|
+
background: #eeeeee;
|
180
|
+
cursor: pointer;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
.ui-datepicker-prev {
|
186
|
+
@extend .pull-left;
|
187
|
+
}
|
188
|
+
|
189
|
+
.ui-datepicker-next {
|
190
|
+
@extend .pull-right;
|
191
|
+
}
|
192
|
+
|
193
|
+
.ui-datepicker-today {
|
194
|
+
font-weight: bold;
|
195
|
+
}
|
196
|
+
|
197
|
+
.ui-datepicker-title {
|
198
|
+
text-align: center;
|
199
|
+
font-weight: bold;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
/* Tables */
|
204
|
+
.index_table {
|
205
|
+
@extend .table;
|
206
|
+
}
|
207
|
+
.attributes_table table {
|
208
|
+
@extend .table;
|
209
|
+
}
|
210
|
+
|
211
|
+
/* Forms */
|
212
|
+
form {
|
213
|
+
.inputs, .actions {
|
214
|
+
ol {
|
215
|
+
padding-left: 0;
|
216
|
+
list-style: none;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
.inputs {
|
221
|
+
li {
|
222
|
+
@extend .form-group;
|
223
|
+
|
224
|
+
input,select,textarea { @extend .form-control; }
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
.actions {
|
229
|
+
li {
|
230
|
+
display: inline-block;
|
231
|
+
|
232
|
+
input, a { @extend .btn; @extend .btn-default; }
|
233
|
+
input[type="submit"] { @extend .btn-primary; }
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
.actions li {
|
238
|
+
margin-right: 10px;
|
239
|
+
}
|
240
|
+
|
241
|
+
label.label {
|
242
|
+
display: inline-block;
|
243
|
+
font-weight: bold;
|
244
|
+
|
245
|
+
padding: inherit;
|
246
|
+
font-size: inherit;
|
247
|
+
line-height: inherit;
|
248
|
+
color: inherit;
|
249
|
+
text-align: inherit;
|
250
|
+
white-space: inherit;
|
251
|
+
vertical-align: inherit;
|
252
|
+
border-radius: inherit;
|
253
|
+
}
|
254
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_bootstrap_skin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vinh Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -61,6 +61,15 @@ executables:
|
|
61
61
|
extensions: []
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
|
+
- ".gitignore"
|
65
|
+
- CODE_OF_CONDUCT.md
|
66
|
+
- Gemfile
|
67
|
+
- LICENSE.txt
|
68
|
+
- README.md
|
69
|
+
- Rakefile
|
70
|
+
- active_bootstrap_skin.gemspec
|
71
|
+
- app/assets/images/.gitkeep
|
72
|
+
- app/assets/stylesheets/active_bootstrap_skin.scss
|
64
73
|
- bin/console
|
65
74
|
- bin/setup
|
66
75
|
- lib/active_bootstrap_skin.rb
|