administrate-bootstrap-theme 0.2.2 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +65 -32
- data/app/assets/javascripts/administrate-bootstrap-theme/{bootstrap/bootstrap.bundle.js → bootstrap.bundle.js} +1058 -973
- data/app/assets/stylesheets/administrate-bootstrap-theme/_base.scss +4 -21
- data/app/assets/stylesheets/administrate-bootstrap-theme/_variables.scss +4 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_card.scss +7 -6
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_carousel.scss +2 -2
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_dropdown.scss +4 -4
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_functions.scss +100 -3
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_grid.scss +11 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_helpers.scss +2 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_images.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_mixins.scss +1 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_modal.scss +5 -15
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_navbar.scss +30 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_offcanvas.scss +8 -2
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_placeholders.scss +51 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_popover.scss +10 -10
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_reboot.scss +12 -8
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_root.scss +40 -2
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tables.scss +9 -5
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_toasts.scss +3 -3
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tooltip.scss +4 -4
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_transitions.scss +6 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_utilities.scss +44 -8
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_variables.scss +206 -29
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-grid.scss +3 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-reboot.scss +2 -4
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-utilities.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap.scss +2 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_floating-labels.scss +3 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-check.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-control.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-range.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-select.scss +5 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_stacks.scss +15 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_vr.scss +8 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_backdrop.scss +14 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_buttons.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_grid.scss +35 -9
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_utilities.scss +27 -6
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_visually-hidden.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/vendor/_rfs.scss +55 -13
- data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_autumn.scss +8 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_default.scss +8 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_forest.scss +9 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_industrial.scss +8 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_water.scss +8 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss +28 -10
- data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_header.scss +4 -6
- data/app/assets/stylesheets/administrate-bootstrap-theme/components/_form.scss +6 -6
- data/app/assets/stylesheets/administrate-bootstrap-theme/components/_navigation.scss +26 -3
- data/app/assets/stylesheets/administrate-bootstrap-theme/components/_pagination.scss +1 -1
- data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_lato.scss +5 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_montserrat.scss +5 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_open_sans.scss +5 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_roboto.scss +5 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_source_sans_pro.scss +5 -0
- data/app/assets/stylesheets/administrate-bootstrap-theme/theme.scss +10 -61
- data/lib/administrate-bootstrap-theme/version.rb +3 -1
- data/lib/generators/administrate_bootstrap_theme/install/USAGE +10 -0
- data/lib/generators/administrate_bootstrap_theme/install/install_generator.rb +33 -0
- data/package.json +2 -3
- metadata +22 -8
- data/app/assets/javascripts/administrate-bootstrap-theme/flatpickr/flatpickr.js +0 -2673
- data/app/assets/javascripts/administrate-bootstrap-theme/theme.js +0 -22
- data/app/assets/stylesheets/administrate-bootstrap-theme/flatpickr/flatpickr.scss +0 -791
@@ -1,13 +1,36 @@
|
|
1
1
|
nav.navigation {
|
2
|
-
@extend .nav, .nav-pills, .flex-column, .p-3;
|
2
|
+
@extend .nav, .nav-pills, .flex-column, .p-3, .text-white;
|
3
3
|
|
4
|
+
background: $navigation-bg;
|
4
5
|
width: $navigation-width;
|
5
6
|
|
6
7
|
.button--alt {
|
7
|
-
@extend .btn, .mb-2;
|
8
|
+
@extend .btn, .btn-outline-light, .mb-2;
|
9
|
+
|
10
|
+
color: $navigation-fg;
|
11
|
+
}
|
12
|
+
|
13
|
+
.button--title {
|
14
|
+
@extend .btn, .mb-2, .pb-3, .fs-3, .border-bottom, .fw-bold, .text-start;
|
15
|
+
|
16
|
+
color: $navigation-fg;
|
17
|
+
|
18
|
+
&:hover {
|
19
|
+
color: $navigation-fg;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.copy {
|
24
|
+
@extend .pt-2, .border-top, .text-center;
|
8
25
|
}
|
9
26
|
|
10
27
|
.navigation__link {
|
11
|
-
@extend .nav-link;
|
28
|
+
@extend .btn-outline-light, .nav-link;
|
29
|
+
|
30
|
+
color: $navigation-fg;
|
31
|
+
}
|
32
|
+
|
33
|
+
.navigation__link--active {
|
34
|
+
background: $navigation-bg-active;
|
12
35
|
}
|
13
36
|
}
|
@@ -1,65 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
nav.navigation {
|
4
|
-
@extend .text-white;
|
5
|
-
|
6
|
-
background: $navigation-bg;
|
7
|
-
|
8
|
-
.button--alt {
|
9
|
-
@extend .btn-outline-light;
|
10
|
-
|
11
|
-
color: $navigation-fg;
|
12
|
-
}
|
13
|
-
|
14
|
-
.navigation__link {
|
15
|
-
@extend .btn-outline-light;
|
16
|
-
|
17
|
-
color: $navigation-fg;
|
18
|
-
}
|
1
|
+
// from: node_modules/bootstrap/scss
|
2
|
+
@import "bootstrap/bootstrap";
|
19
3
|
|
20
|
-
|
21
|
-
background: $navigation-bg-active;
|
22
|
-
}
|
23
|
-
}
|
4
|
+
@import "selectize"; // included in Administrate
|
24
5
|
|
25
|
-
|
26
|
-
@extend .border;
|
27
|
-
}
|
6
|
+
@import "variables";
|
28
7
|
|
29
|
-
|
30
|
-
|
31
|
-
|
8
|
+
@import "components/navigation";
|
9
|
+
@import "components/content_header";
|
10
|
+
@import "components/content_body";
|
11
|
+
@import "components/form";
|
12
|
+
@import "components/pagination";
|
32
13
|
|
33
|
-
|
34
|
-
table {
|
35
|
-
@extend .table-striped;
|
36
|
-
}
|
37
|
-
|
38
|
-
.attribute-data > table {
|
39
|
-
@extend .table-bordered;
|
40
|
-
}
|
41
|
-
|
42
|
-
.form-actions > input {
|
43
|
-
@extend .btn-primary;
|
44
|
-
}
|
45
|
-
|
46
|
-
.js-table-row {
|
47
|
-
.action-show {
|
48
|
-
@extend .link-secondary;
|
49
|
-
}
|
50
|
-
|
51
|
-
.action-edit {
|
52
|
-
@extend .btn-secondary;
|
53
|
-
}
|
54
|
-
|
55
|
-
[data-method="delete"] {
|
56
|
-
@extend .btn-danger;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
.main-content__header {
|
62
|
-
.button {
|
63
|
-
@extend .btn-primary;
|
64
|
-
}
|
65
|
-
}
|
14
|
+
@import "base";
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Description:
|
2
|
+
AdministrateBootstrapTheme installer
|
3
|
+
|
4
|
+
Example:
|
5
|
+
bin/rails generate administrate_bootstrap_theme:install
|
6
|
+
|
7
|
+
This will:
|
8
|
+
- create a new initializer: administrate_bootstrap_theme
|
9
|
+
- create a new SCSS stylesheet: administrate-bootstrap-theme.scss
|
10
|
+
- append the necessary assets to: config/initializers/assets.rb
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AdministrateBootstrapTheme
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
5
|
+
source_root File.expand_path('templates', __dir__)
|
6
|
+
|
7
|
+
def append_assets
|
8
|
+
append_file 'config/initializers/assets.rb', <<~FILE
|
9
|
+
Rails.application.config.assets.precompile += %w[
|
10
|
+
administrate-bootstrap-theme.scss
|
11
|
+
administrate-bootstrap-theme/theme.css
|
12
|
+
administrate-bootstrap-theme/bootstrap.bundle.js
|
13
|
+
]
|
14
|
+
FILE
|
15
|
+
end
|
16
|
+
|
17
|
+
def create_stylesheets_assets
|
18
|
+
create_file 'app/assets/stylesheets/administrate-bootstrap-theme.scss', <<~FILE
|
19
|
+
@import 'administrate-bootstrap-theme/colors/default';
|
20
|
+
@import 'administrate-bootstrap-theme/fonts/source_sans_pro';
|
21
|
+
@import 'administrate-bootstrap-theme/theme';
|
22
|
+
FILE
|
23
|
+
end
|
24
|
+
|
25
|
+
def create_initializer
|
26
|
+
initializer 'administrate_bootstrap_theme.rb', <<~FILE
|
27
|
+
Administrate::Engine.stylesheets.clear # required to remove Administrate base styles
|
28
|
+
Administrate::Engine.add_stylesheet('administrate-bootstrap-theme')
|
29
|
+
Administrate::Engine.add_javascript('administrate-bootstrap-theme/bootstrap.bundle.js')
|
30
|
+
FILE
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/package.json
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "administrate-bootstrap-theme",
|
3
|
-
"version": "0.
|
3
|
+
"version": "1.0.6",
|
4
4
|
"main": "index.js",
|
5
5
|
"author": "Mattia Roccoberton <mat@blocknot.es>",
|
6
6
|
"license": "MIT",
|
7
7
|
"dependencies": {
|
8
|
-
"bootstrap": "^5.0.1"
|
9
|
-
"flatpickr": "^4.6.9"
|
8
|
+
"bootstrap": "^5.0.1"
|
10
9
|
}
|
11
10
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate-bootstrap-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattia Roccoberton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|
@@ -34,9 +34,7 @@ files:
|
|
34
34
|
- MIT-LICENSE
|
35
35
|
- README.md
|
36
36
|
- app/assets/config/administrate-bootstrap-theme_manifest.js
|
37
|
-
- app/assets/javascripts/administrate-bootstrap-theme/bootstrap
|
38
|
-
- app/assets/javascripts/administrate-bootstrap-theme/flatpickr/flatpickr.js
|
39
|
-
- app/assets/javascripts/administrate-bootstrap-theme/theme.js
|
37
|
+
- app/assets/javascripts/administrate-bootstrap-theme/bootstrap.bundle.js
|
40
38
|
- app/assets/stylesheets/administrate-bootstrap-theme/_base.scss
|
41
39
|
- app/assets/stylesheets/administrate-bootstrap-theme/_variables.scss
|
42
40
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_accordion.scss
|
@@ -62,6 +60,7 @@ files:
|
|
62
60
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_navbar.scss
|
63
61
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_offcanvas.scss
|
64
62
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_pagination.scss
|
63
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_placeholders.scss
|
65
64
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_popover.scss
|
66
65
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_progress.scss
|
67
66
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_reboot.scss
|
@@ -91,10 +90,13 @@ files:
|
|
91
90
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_colored-links.scss
|
92
91
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_position.scss
|
93
92
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_ratio.scss
|
93
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_stacks.scss
|
94
94
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_stretched-link.scss
|
95
95
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_text-truncation.scss
|
96
96
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_visually-hidden.scss
|
97
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_vr.scss
|
97
98
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_alert.scss
|
99
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_backdrop.scss
|
98
100
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_border-radius.scss
|
99
101
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_box-shadow.scss
|
100
102
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_breakpoints.scss
|
@@ -120,16 +122,27 @@ files:
|
|
120
122
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_visually-hidden.scss
|
121
123
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/utilities/_api.scss
|
122
124
|
- app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/vendor/_rfs.scss
|
125
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/colors/_autumn.scss
|
126
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/colors/_default.scss
|
127
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/colors/_forest.scss
|
128
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/colors/_industrial.scss
|
129
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/colors/_water.scss
|
123
130
|
- app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss
|
124
131
|
- app/assets/stylesheets/administrate-bootstrap-theme/components/_content_header.scss
|
125
132
|
- app/assets/stylesheets/administrate-bootstrap-theme/components/_form.scss
|
126
133
|
- app/assets/stylesheets/administrate-bootstrap-theme/components/_navigation.scss
|
127
134
|
- app/assets/stylesheets/administrate-bootstrap-theme/components/_pagination.scss
|
128
|
-
- app/assets/stylesheets/administrate-bootstrap-theme/
|
135
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/fonts/_lato.scss
|
136
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/fonts/_montserrat.scss
|
137
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/fonts/_open_sans.scss
|
138
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/fonts/_roboto.scss
|
139
|
+
- app/assets/stylesheets/administrate-bootstrap-theme/fonts/_source_sans_pro.scss
|
129
140
|
- app/assets/stylesheets/administrate-bootstrap-theme/theme.scss
|
130
141
|
- lib/administrate-bootstrap-theme.rb
|
131
142
|
- lib/administrate-bootstrap-theme/engine.rb
|
132
143
|
- lib/administrate-bootstrap-theme/version.rb
|
144
|
+
- lib/generators/administrate_bootstrap_theme/install/USAGE
|
145
|
+
- lib/generators/administrate_bootstrap_theme/install/install_generator.rb
|
133
146
|
- package.json
|
134
147
|
homepage: https://github.com/blocknotes/administrate-bootstrap-theme
|
135
148
|
licenses:
|
@@ -137,6 +150,7 @@ licenses:
|
|
137
150
|
metadata:
|
138
151
|
homepage_uri: https://github.com/blocknotes/administrate-bootstrap-theme
|
139
152
|
source_code_uri: https://github.com/blocknotes/administrate-bootstrap-theme
|
153
|
+
rubygems_mfa_required: 'true'
|
140
154
|
post_install_message:
|
141
155
|
rdoc_options: []
|
142
156
|
require_paths:
|
@@ -145,14 +159,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
159
|
requirements:
|
146
160
|
- - ">="
|
147
161
|
- !ruby/object:Gem::Version
|
148
|
-
version: 2.
|
162
|
+
version: 2.6.0
|
149
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
164
|
requirements:
|
151
165
|
- - ">="
|
152
166
|
- !ruby/object:Gem::Version
|
153
167
|
version: '0'
|
154
168
|
requirements: []
|
155
|
-
rubygems_version: 3.1.
|
169
|
+
rubygems_version: 3.1.6
|
156
170
|
signing_key:
|
157
171
|
specification_version: 4
|
158
172
|
summary: Administrate Bootstrap Theme
|