keppler 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile.lock +26 -0
- data/LICENSE.txt +21 -0
- data/README.md +93 -22
- data/Rakefile +6 -0
- data/bin/keppler +6 -2
- data/bin/setup +2 -1
- data/exe/keppler +6 -0
- data/installer/core/.gitignore +87 -0
- data/installer/core/.ruby-version +1 -0
- data/installer/core/Gemfile +6 -4
- data/installer/core/README.md +86 -50
- data/installer/core/app/assets/images/.keep +0 -0
- data/installer/core/app/assets/images/admin/astronauta_keppler.svg +123 -0
- data/installer/core/app/assets/images/admin/avatar_keppler.svg +100 -0
- data/installer/core/app/assets/images/admin/image_default.png +0 -0
- data/installer/core/app/assets/images/app/fondo.svg +19 -0
- data/installer/core/app/assets/javascripts/admin/file_upload.coffee +11 -0
- data/installer/core/app/assets/javascripts/admin/main.coffee +23 -12
- data/installer/core/app/assets/javascripts/admin/preview_template.js +2 -2
- data/installer/core/app/assets/javascripts/admin/sidebar.js +8 -7
- data/installer/core/app/assets/javascripts/admin/swal.js +37 -0
- data/installer/core/app/assets/javascripts/admin/switch.js +6 -0
- data/installer/core/app/assets/javascripts/admin/tooltips.coffee +3 -0
- data/installer/core/app/assets/javascripts/errors/application.js.coffee +1 -0
- data/installer/core/app/assets/javascripts/errors/errors.js +113 -0
- data/installer/core/app/assets/javascripts/keppler_ga_dashboard/view-selector2.js +1 -1
- data/installer/core/app/assets/javascripts/vue_admin/index.js +34 -9
- data/installer/core/app/assets/stylesheets/admin/application.scss +4 -14
- data/installer/core/app/assets/stylesheets/admin/components/navigation/_navbar.scss +4 -5
- data/installer/core/app/assets/stylesheets/admin/components/navigation/_sidebar.scss +26 -17
- data/installer/core/app/assets/stylesheets/admin/pages/_appearance.scss +5 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_customize.scss +21 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_datepicker.scss +1088 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_files.scss +26 -9
- data/installer/core/app/assets/stylesheets/admin/pages/_form.scss +19 -6
- data/installer/core/app/assets/stylesheets/admin/pages/_index.scss +4 -8
- data/installer/core/app/assets/stylesheets/admin/pages/_listing.scss +5 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_navbar.scss +9 -2
- data/installer/core/app/assets/stylesheets/admin/pages/_roles.scss +6 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_search.scss +24 -28
- data/installer/core/app/assets/stylesheets/admin/pages/_sidebar.scss +1 -1
- data/installer/core/app/assets/stylesheets/admin/pages/_switchs.scss +135 -39
- data/installer/core/app/assets/stylesheets/admin/pages/_timepicker.scss +16 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_user.scss +6 -0
- data/installer/core/app/assets/stylesheets/admin/utils/_base.scss +6 -1
- data/installer/core/app/assets/stylesheets/admin/utils/_theme.scss +24 -11
- data/installer/core/app/assets/stylesheets/admin/utils/_variables.scss +1 -1
- data/installer/core/app/assets/stylesheets/app/pages/_front.sass +70 -56
- data/installer/core/app/assets/stylesheets/errors/errors.scss +161 -120
- data/installer/core/app/assets/stylesheets/vendor/admin-lte/_skin-blue.scss +1 -1
- data/installer/core/app/controllers/admin/admin_controller.rb +1 -1
- data/installer/core/app/controllers/admin/customizes_controller.rb +6 -8
- data/installer/core/app/controllers/admin/meta_tags_controller.rb +14 -18
- data/installer/core/app/controllers/admin/roles_controller.rb +176 -0
- data/installer/core/app/controllers/admin/scripts_controller.rb +14 -33
- data/installer/core/app/controllers/admin/settings_controller.rb +26 -27
- data/installer/core/app/controllers/admin/users_controller.rb +35 -29
- data/installer/core/app/controllers/app/app_controller.rb +27 -4
- data/installer/core/app/controllers/application_controller.rb +39 -1
- data/installer/core/app/controllers/concerns/.keep +0 -0
- data/installer/core/app/helpers/admin_helper.rb +5 -0
- data/installer/core/app/helpers/application_helper.rb +9 -0
- data/installer/core/app/helpers/roles_helper.rb +2 -0
- data/installer/core/app/inputs/file_material_input.rb +4 -2
- data/installer/core/app/inputs/keppler_boolean_input.rb +74 -0
- data/installer/core/app/inputs/keppler_file_input.rb +70 -0
- data/installer/core/app/mailers/.keep +0 -0
- data/installer/core/app/mailers/application_mailer.rb +13 -13
- data/installer/core/app/models/.keep +0 -0
- data/installer/core/app/models/appearance.rb +2 -0
- data/installer/core/app/models/application_record.rb +3 -0
- data/installer/core/app/models/concerns/.keep +0 -0
- data/installer/core/app/models/concerns/downloadable.rb +13 -0
- data/installer/core/app/models/concerns/sortable.rb +9 -0
- data/installer/core/app/models/concerns/uploadable.rb +10 -0
- data/installer/core/app/models/customize.rb +8 -6
- data/installer/core/app/models/front.rb +3 -0
- data/installer/core/app/models/google_analytics_setting.rb +2 -0
- data/installer/core/app/models/meta_tag.rb +27 -14
- data/installer/core/app/models/permission.rb +3 -0
- data/installer/core/app/models/role.rb +62 -5
- data/installer/core/app/models/script.rb +6 -15
- data/installer/core/app/models/setting.rb +2 -0
- data/installer/core/app/models/smtp_setting.rb +2 -0
- data/installer/core/app/models/social_account.rb +2 -0
- data/installer/core/app/models/user.rb +17 -1
- data/installer/core/app/policies/application_policy.rb +4 -4
- data/installer/core/app/policies/controller_policy.rb +15 -11
- data/installer/core/app/policies/role_policy.rb +25 -0
- data/installer/core/app/policies/user_policy.rb +1 -1
- data/installer/core/app/uploaders/attachment_uploader.rb +18 -1
- data/installer/core/app/views/admin/customizes/_description.html.haml +4 -4
- data/installer/core/app/views/admin/customizes/_form.html.haml +4 -4
- data/installer/core/app/views/admin/customizes/_listing.html.haml +1 -1
- data/installer/core/app/views/admin/customizes/_switch_default_template.html.haml +8 -13
- data/installer/core/app/views/admin/customizes/_switch_template.html.haml +8 -11
- data/installer/core/app/views/admin/customizes/index.html.haml +9 -9
- data/installer/core/app/views/admin/layouts/_head.html.haml +3 -3
- data/installer/core/app/views/admin/layouts/_keppler_boolean_script.haml +12 -0
- data/installer/core/app/views/admin/layouts/_navigation.html.haml +17 -16
- data/installer/core/app/views/admin/layouts/_sidebar.html.haml +27 -36
- data/installer/core/app/views/admin/layouts/application.html.haml +1 -0
- data/installer/core/app/views/admin/layouts/index/remote_messages.js.haml +6 -6
- data/installer/core/app/views/admin/meta_tags/_index_show.html.haml +2 -2
- data/installer/core/app/views/admin/meta_tags/_listing.html.haml +6 -6
- data/installer/core/app/views/admin/meta_tags/index.html.haml +15 -29
- data/installer/core/app/views/admin/meta_tags/show.html.haml +7 -8
- data/installer/core/app/views/admin/roles/_description.html.haml +13 -0
- data/installer/core/app/views/admin/roles/_form.html.haml +27 -0
- data/installer/core/app/views/admin/roles/_index_show.html.haml +24 -0
- data/installer/core/app/views/admin/roles/_listing.html.haml +46 -0
- data/installer/core/app/views/admin/roles/_switch.html.haml +20 -0
- data/installer/core/app/views/admin/roles/add_permissions.html.haml +60 -0
- data/installer/core/app/views/admin/roles/create_permissions.html.haml +0 -0
- data/installer/core/app/views/admin/roles/create_permissions.js.erb +1 -0
- data/installer/core/app/views/admin/roles/edit.html.haml +1 -0
- data/installer/core/app/views/admin/roles/index.html.haml +80 -0
- data/installer/core/app/views/admin/roles/new.html.haml +1 -0
- data/installer/core/app/views/admin/roles/reload.js.haml +5 -0
- data/installer/core/app/views/admin/roles/show.html.haml +32 -0
- data/installer/core/app/views/admin/roles/show.js.haml +4 -0
- data/installer/core/app/views/admin/roles/show_description.js.erb +2 -0
- data/installer/core/app/views/admin/scripts/_index_show.html.haml +2 -2
- data/installer/core/app/views/admin/scripts/_listing.html.haml +13 -13
- data/installer/core/app/views/admin/scripts/index.html.haml +12 -26
- data/installer/core/app/views/admin/scripts/show.html.haml +4 -4
- data/installer/core/app/views/admin/settings/components/_preview.html.haml +1 -1
- data/installer/core/app/views/admin/settings/fields/_appearance.html.haml +25 -17
- data/installer/core/app/views/admin/settings/fields/_basic_information.html.haml +13 -7
- data/installer/core/app/views/admin/settings/fields/_email_setting.html.haml +16 -16
- data/installer/core/app/views/admin/settings/fields/_google_analytics_setting.html.haml +1 -1
- data/installer/core/app/views/admin/settings/fields/_social_accounts.html.haml +39 -39
- data/installer/core/app/views/admin/users/_form.html.haml +18 -25
- data/installer/core/app/views/admin/users/_index_show.html.haml +2 -2
- data/installer/core/app/views/admin/users/_listing.html.haml +6 -6
- data/installer/core/app/views/admin/users/delete_avatar.js.haml +3 -0
- data/installer/core/app/views/admin/users/filter_by_role.js.erb +9 -0
- data/installer/core/app/views/admin/users/index.html.haml +22 -22
- data/installer/core/app/views/admin/users/show.html.haml +10 -12
- data/installer/core/app/views/app/front/index.html.haml +137 -87
- data/installer/core/app/views/app/layouts/_footer.html.haml +2 -2
- data/installer/core/app/views/app/layouts/_head.html.haml +4 -12
- data/installer/core/app/views/app/layouts/_meta_tags.html.haml +38 -6
- data/installer/core/app/views/app/layouts/application.html.haml +8 -8
- data/installer/core/app/views/devise/sessions/new.html.haml +32 -28
- data/installer/core/app/views/errors/internal_server_error.html.haml +50 -7
- data/installer/core/app/views/errors/not_authorized.html.haml +75 -6
- data/installer/core/app/views/errors/not_found.html.haml +101 -7
- data/installer/core/app/views/errors/unprocessable.html.haml +50 -7
- data/installer/core/bin/update +31 -0
- data/installer/core/bin/yarn +11 -0
- data/installer/core/config/application.rb +1 -1
- data/installer/core/config/environments/production.rb +1 -1
- data/installer/core/config/initializers/carrierwave.rb +12 -0
- data/installer/core/config/initializers/mime_types.rb +2 -2
- data/installer/core/config/initializers/simple_form_bootstrap.rb +20 -1
- data/installer/core/config/initializers/simple_form_components.rb +61 -0
- data/installer/core/config/locales/en.yml +29 -6
- data/installer/core/config/locales/es.yml +32 -5
- data/installer/core/config/locales/simple_form.en.yml +1 -0
- data/installer/core/config/locales/simple_form.es.yml +3 -2
- data/installer/core/config/menu.yml +34 -8
- data/installer/core/config/permissions.yml +21 -0
- data/installer/core/config/routes.rb +56 -14
- data/installer/core/db/migrate/20140812210925_rolify_create_roles.rb +2 -0
- data/installer/core/db/migrate/20160128131802_create_scripts.rb +1 -0
- data/installer/core/db/migrate/20180503174351_create_permissions.rb +11 -0
- data/installer/core/db/seeds.rb +12 -6
- data/installer/core/lib/generators/keppler_front/templates/views/template.html.haml +222 -177
- data/installer/core/lib/generators/keppler_relation/keppler_relation_generator.rb +1 -1
- data/installer/core/lib/generators/keppler_scaffold/keppler_scaffold_generator.rb +57 -40
- data/installer/core/lib/generators/keppler_scaffold/templates/controllers/controller.rb +29 -30
- data/installer/core/lib/generators/keppler_scaffold/templates/models/model.rb +14 -20
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_form.html.haml +24 -35
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.html.haml +12 -11
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_listing.html.haml +7 -7
- data/installer/core/lib/generators/keppler_scaffold/templates/views/index.html.haml +17 -33
- data/installer/core/lib/generators/keppler_scaffold/templates/views/show.html.haml +23 -24
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/images/keppler_ga_dashboard/.keep +0 -0
- data/installer/core/plugins/keppler_ga_dashboard/config/permissions.yml +4 -0
- data/installer/core/plugins/keppler_ga_dashboard/keppler_ga_dashboard.gemspec +1 -1
- data/installer/core/test/controllers/.keep +0 -0
- data/installer/core/test/controllers/roles_controller_test.rb +48 -0
- data/installer/core/test/fixtures/.keep +0 -0
- data/installer/core/test/fixtures/permissions.yml +9 -0
- data/installer/core/test/helpers/.keep +0 -0
- data/installer/core/test/integration/.keep +0 -0
- data/installer/core/test/mailers/.keep +0 -0
- data/installer/core/test/models/.keep +0 -0
- data/installer/core/test/models/permission_test.rb +7 -0
- data/installer/core/test/system/roles_test.rb +43 -0
- data/installer/core/vendor/assets/javascripts/.keep +0 -0
- data/installer/core/vendor/assets/stylesheets/.keep +0 -0
- data/installer/plugins/concerns/commons.rb +47 -0
- data/installer/plugins/concerns/destroy_multiple.rb +33 -0
- data/installer/plugins/concerns/history.rb +24 -0
- data/installer/plugins/config/locales/en.yml +104 -0
- data/installer/plugins/config/locales/es.yml +139 -0
- data/installer/plugins/config/menu.yml +12 -0
- data/installer/plugins/config/permissions.yml +1 -0
- data/installer/plugins/generators/keppler_scaffold/keppler_scaffold_generator.rb +203 -0
- data/installer/plugins/generators/keppler_scaffold/templates/controllers/controller.rb +171 -0
- data/installer/plugins/generators/keppler_scaffold/templates/models/model.rb +41 -0
- data/installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb +11 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_description.html.haml +13 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_form.html.haml +49 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_index_show.html.haml +26 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_listing.html.haml +65 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/edit.html.haml +1 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/index.html.haml +97 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/new.html.haml +1 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/reload.js.haml +5 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/show.html.haml +66 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/show.js.haml +4 -0
- data/installer/plugins/install.rb +156 -0
- data/installer/plugins/layouts/_navigation.html.haml +47 -0
- data/installer/plugins/layouts/application.html.haml +24 -0
- data/keppler.gemspec +35 -0
- data/lib/keppler.rb +0 -1
- data/lib/keppler/add.rb +13 -0
- data/lib/keppler/cli.rb +134 -5
- data/lib/keppler/delete.rb +13 -0
- data/lib/keppler/version.rb +1 -1
- metadata +117 -23
- data/installer/core/app/assets/images/admin/space.png +0 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_header.scss +0 -34
- data/installer/core/app/assets/stylesheets/admin/pages/_pageslide.scss +0 -125
- data/installer/core/db/schema.rb +0 -172
- data/installer/lib/conf.rb +0 -31
- data/installer/lib/scaffold.rb +0 -10
- data/installer/run.sh +0 -17
- data/installer/scripts/bin.sh +0 -61
- data/lib/keppler/cli/generate.rb +0 -19
@@ -5,14 +5,20 @@
|
|
5
5
|
width: 100% !important;
|
6
6
|
}
|
7
7
|
|
8
|
-
.
|
9
|
-
max-width:
|
8
|
+
.upload_image {
|
9
|
+
max-width: 325px;
|
10
|
+
min-height: 300px;
|
10
11
|
margin: 0 auto;
|
11
12
|
.files {
|
12
13
|
position: relative;
|
13
|
-
|
14
|
+
background-image: url(/assets/admin/image_default.png);
|
15
|
+
background-size: 50px;
|
16
|
+
background-repeat: no-repeat;
|
17
|
+
background-position: center 80px;
|
18
|
+
.icon-file {
|
14
19
|
position: absolute;
|
15
20
|
left: 50%;
|
21
|
+
transform: translateX(-50%);
|
16
22
|
top: 35%;
|
17
23
|
font-size: 4rem;
|
18
24
|
opacity: .7;
|
@@ -23,14 +29,15 @@
|
|
23
29
|
outline-offset: -10px;
|
24
30
|
-webkit-transition: outline-offset .15s ease-in-out, background-color .15s linear;
|
25
31
|
transition: outline-offset .15s ease-in-out, background-color .15s linear;
|
26
|
-
padding: 160px 25px 70px;
|
27
32
|
text-align: center !important;
|
28
|
-
|
33
|
+
padding: 160px 25px 70px;
|
29
34
|
width: 100% !important;
|
35
|
+
margin: 0;
|
30
36
|
&:before {
|
31
37
|
position: absolute;
|
32
38
|
bottom: 5px;
|
33
|
-
left: 0;
|
39
|
+
left: 0;
|
40
|
+
pointer-events: none;
|
34
41
|
width: 100%;
|
35
42
|
right: 0;
|
36
43
|
height: 57px;
|
@@ -49,7 +56,8 @@
|
|
49
56
|
top: 200px;
|
50
57
|
width: 100%;
|
51
58
|
left: 50%;
|
52
|
-
transform: translateX(-
|
59
|
+
transform: translateX(-50%);
|
60
|
+
text-align: center;
|
53
61
|
}
|
54
62
|
}
|
55
63
|
&-icon {
|
@@ -71,13 +79,22 @@
|
|
71
79
|
}
|
72
80
|
|
73
81
|
.image_to_upload {
|
82
|
+
max-height: 300px;
|
83
|
+
max-width: 325px;
|
74
84
|
width: 100%;
|
75
85
|
}
|
76
86
|
|
77
87
|
.files-absolute {
|
78
88
|
position: absolute;
|
89
|
+
left: 50%;
|
90
|
+
transform: translateX(-50%);
|
91
|
+
width: 100%;
|
92
|
+
max-width: 325px;
|
79
93
|
opacity: 0;
|
80
|
-
|
81
|
-
|
94
|
+
transition: opacity .3s;
|
95
|
+
&:hover {
|
96
|
+
opacity: .5;
|
97
|
+
transition: opacity .3s;
|
98
|
+
}
|
82
99
|
}
|
83
100
|
}
|
@@ -1,3 +1,9 @@
|
|
1
|
+
.keppler-custom-field {
|
2
|
+
i {
|
3
|
+
margin-right: 5px;
|
4
|
+
}
|
5
|
+
}
|
6
|
+
|
1
7
|
.form-group {
|
2
8
|
.control-label {
|
3
9
|
abbr {
|
@@ -53,7 +59,7 @@
|
|
53
59
|
left: 0;
|
54
60
|
right: 0;
|
55
61
|
bottom: 0;
|
56
|
-
background: #
|
62
|
+
background: #5a5a5a;
|
57
63
|
-webkit-transform: scaleX(0);
|
58
64
|
transform: scaleX(0);
|
59
65
|
-webkit-transform-origin: 0 50%;
|
@@ -75,6 +81,9 @@
|
|
75
81
|
|
76
82
|
.form-padding {
|
77
83
|
padding: 2rem;
|
84
|
+
@include respond-to(xs){
|
85
|
+
padding: 2rem 0;
|
86
|
+
}
|
78
87
|
}
|
79
88
|
|
80
89
|
.btn-primary {
|
@@ -87,8 +96,12 @@
|
|
87
96
|
|
88
97
|
&:hover,
|
89
98
|
&:focus,
|
90
|
-
&:active
|
91
|
-
|
99
|
+
&:active,
|
100
|
+
&:active:focus,
|
101
|
+
&[disabled]:hover {
|
102
|
+
background-color: $keppler-color;
|
103
|
+
filter: brightness(120%);
|
104
|
+
outline: none;
|
92
105
|
}
|
93
106
|
}
|
94
107
|
|
@@ -121,7 +134,7 @@
|
|
121
134
|
& + .cr > .cr-icon {
|
122
135
|
transform: scale(3) rotateZ(-20deg);
|
123
136
|
opacity: 0;
|
124
|
-
color: #
|
137
|
+
color: #fff;
|
125
138
|
transition: all .3s ease-in;
|
126
139
|
}
|
127
140
|
&:checked + .cr {
|
@@ -131,7 +144,7 @@
|
|
131
144
|
.cr-icon {
|
132
145
|
transform: scale(1) rotateZ(0deg);
|
133
146
|
opacity: 1;
|
134
|
-
color: #
|
147
|
+
color: #fff;
|
135
148
|
transition: all .3s ease-in;
|
136
149
|
}
|
137
150
|
}
|
@@ -156,7 +169,7 @@
|
|
156
169
|
top: 0;
|
157
170
|
left: 1px;
|
158
171
|
padding: 0px;
|
159
|
-
color: #
|
172
|
+
color: #fff;
|
160
173
|
}
|
161
174
|
}
|
162
175
|
}
|
@@ -96,7 +96,7 @@
|
|
96
96
|
}
|
97
97
|
#preview{
|
98
98
|
position: absolute;
|
99
|
-
background: #
|
99
|
+
background: #5a5a5a;
|
100
100
|
padding: 3px;
|
101
101
|
visibility: none;
|
102
102
|
color: #fff;
|
@@ -313,17 +313,13 @@
|
|
313
313
|
cursor: pointer;
|
314
314
|
}
|
315
315
|
}
|
316
|
-
&:last-child{
|
317
|
-
|
318
|
-
}
|
316
|
+
// &:last-child{
|
317
|
+
// border: none;
|
318
|
+
// }
|
319
319
|
|
320
320
|
}
|
321
321
|
}
|
322
322
|
|
323
|
-
.ui-sortable-helper{
|
324
|
-
display: table;
|
325
|
-
background-color: #fdfdfd;
|
326
|
-
}
|
327
323
|
#tools{
|
328
324
|
padding: {
|
329
325
|
top: 5px;
|
@@ -7,19 +7,26 @@ header.main-header{
|
|
7
7
|
}
|
8
8
|
}
|
9
9
|
}
|
10
|
-
.nav-profile-img{
|
10
|
+
.nav-profile-img {
|
11
11
|
@extend %circle-img;
|
12
12
|
width: 90px;
|
13
13
|
height: 90px;
|
14
14
|
margin: 0 auto;
|
15
|
+
object-fit: cover;
|
16
|
+
background: $keppler-color;
|
15
17
|
}
|
16
|
-
.small-profile-img{
|
18
|
+
.small-profile-img {
|
17
19
|
@extend %circle-img;
|
18
20
|
float: left;
|
19
21
|
width: 25px;
|
20
22
|
height: 25px;
|
21
23
|
margin-right: 10px;
|
22
24
|
margin-top: -2px;
|
25
|
+
object-fit: cover;
|
26
|
+
background-color: $keppler-color;
|
27
|
+
@include respond-to(xs){
|
28
|
+
margin-right: 0;
|
29
|
+
}
|
23
30
|
}
|
24
31
|
}
|
25
32
|
|
@@ -1,8 +1,9 @@
|
|
1
1
|
#search {
|
2
2
|
margin: 8px 0;
|
3
3
|
float: left;
|
4
|
-
width:
|
5
|
-
|
4
|
+
width: 50%;
|
5
|
+
max-width: 0;
|
6
|
+
// animation: .5s ease-out 1s grow_width forwards;
|
6
7
|
transition: .3s ease-in-out;
|
7
8
|
@include respond-to(xs) {
|
8
9
|
animation: none;
|
@@ -12,9 +13,9 @@
|
|
12
13
|
}
|
13
14
|
.input-group {
|
14
15
|
.search-bar {
|
15
|
-
border
|
16
|
+
border: solid .5px #d2d6de;
|
16
17
|
padding: 0;
|
17
|
-
animation: .5s cubic-bezier(0.4, 0, 0.2, 1) 1s change_input forwards;
|
18
|
+
// animation: .5s cubic-bezier(0.4, 0, 0.2, 1) 1s change_input forwards;
|
18
19
|
transition: .3s ease-in-out;
|
19
20
|
&:focus {
|
20
21
|
border-color: $keppler-color;
|
@@ -30,7 +31,8 @@
|
|
30
31
|
.input-group-btn {
|
31
32
|
.search-button {
|
32
33
|
background-color: transparent;
|
33
|
-
animation: .3s ease-in-out .5s change_button forwards;
|
34
|
+
// animation: .3s ease-in-out .5s change_button forwards;
|
35
|
+
border: 50%;
|
34
36
|
transition: .3s ease-in-out;
|
35
37
|
&:active {
|
36
38
|
box-shadow: none;
|
@@ -45,8 +47,8 @@
|
|
45
47
|
animation: none;
|
46
48
|
}
|
47
49
|
.search-icon {
|
48
|
-
color:
|
49
|
-
animation: .3s ease-in-out .5s change_color forwards;
|
50
|
+
color: #999;
|
51
|
+
// animation: .3s ease-in-out .5s change_color forwards;
|
50
52
|
transition: .3s ease-in-out;
|
51
53
|
@include respond-to(xs) {
|
52
54
|
animation: none;
|
@@ -65,7 +67,7 @@
|
|
65
67
|
height: 34px;
|
66
68
|
width: 34px;
|
67
69
|
padding: 5px;
|
68
|
-
margin:
|
70
|
+
margin: 10px;
|
69
71
|
color: #999;
|
70
72
|
opacity: 0;
|
71
73
|
border-radius: 50%;
|
@@ -89,13 +91,16 @@
|
|
89
91
|
transition: .3s .5s ease-in-out;
|
90
92
|
}
|
91
93
|
|
92
|
-
.navbar-
|
93
|
-
transform: translateX(100%);
|
94
|
+
.navbar-custom-menu{
|
94
95
|
transition: .2s .5s ease-in-out;
|
96
|
+
&.translate {
|
97
|
+
transform: translateX(100%);
|
98
|
+
transition: .2s .5s ease-in-out;
|
99
|
+
}
|
95
100
|
}
|
96
101
|
|
97
102
|
#search.display-search {
|
98
|
-
animation: .5s ease-in-out .5s
|
103
|
+
animation: .5s ease-in-out .5s grow_width forwards;
|
99
104
|
.input-group {
|
100
105
|
.search-bar {
|
101
106
|
animation: .5s cubic-bezier(0.4, 0, 0.2, 1) .5s change_input forwards;
|
@@ -113,7 +118,7 @@
|
|
113
118
|
|
114
119
|
#search.hidding-search {
|
115
120
|
animation: .3s ease-out .5s width_down forwards;
|
116
|
-
width:
|
121
|
+
max-width: 500px;
|
117
122
|
.input-group {
|
118
123
|
.search-bar {
|
119
124
|
animation: .5s cubic-bezier(0.4, 0, 0.2, 1) .5s hide_input forwards;
|
@@ -139,21 +144,12 @@
|
|
139
144
|
}
|
140
145
|
}
|
141
146
|
|
142
|
-
@keyframes
|
143
|
-
from {
|
144
|
-
width: 0;
|
145
|
-
}
|
146
|
-
to {
|
147
|
-
width: 40%;
|
148
|
-
}
|
149
|
-
}
|
150
|
-
|
151
|
-
@keyframes grow_width_70 {
|
147
|
+
@keyframes grow_width {
|
152
148
|
from {
|
153
|
-
width: 0;
|
149
|
+
max-width: 0;
|
154
150
|
}
|
155
151
|
to {
|
156
|
-
width:
|
152
|
+
max-width: 500px;
|
157
153
|
}
|
158
154
|
}
|
159
155
|
|
@@ -172,7 +168,7 @@
|
|
172
168
|
|
173
169
|
@keyframes change_color {
|
174
170
|
from {
|
175
|
-
color:
|
171
|
+
color: #999;
|
176
172
|
}
|
177
173
|
to {
|
178
174
|
color: #fff;
|
@@ -190,10 +186,10 @@
|
|
190
186
|
|
191
187
|
@keyframes width_down {
|
192
188
|
from {
|
193
|
-
width:
|
189
|
+
max-width: 50%;
|
194
190
|
}
|
195
191
|
to {
|
196
|
-
width: 0;
|
192
|
+
max-width: 0;
|
197
193
|
}
|
198
194
|
}
|
199
195
|
|
@@ -215,6 +211,6 @@
|
|
215
211
|
color: #fff;
|
216
212
|
}
|
217
213
|
to {
|
218
|
-
color:
|
214
|
+
color: #999;
|
219
215
|
}
|
220
216
|
}
|
@@ -1,47 +1,143 @@
|
|
1
|
-
.switch
|
1
|
+
label.keppler-switch {
|
2
|
+
margin-bottom: 0px !important;
|
3
|
+
position: relative;
|
4
|
+
display: block;
|
5
|
+
width: 40px;
|
6
|
+
height: 24px;
|
7
|
+
input {
|
8
|
+
display:none;
|
9
|
+
|
10
|
+
&.active + .slider {
|
11
|
+
background-color: $keppler-color;
|
12
|
+
}
|
13
|
+
|
14
|
+
&.active + .slider {
|
15
|
+
box-shadow: 0 0 1px $keppler-color;
|
16
|
+
}
|
17
|
+
|
18
|
+
&.active + .slider:before {
|
19
|
+
-webkit-transform: translateX(16px);
|
20
|
+
-ms-transform: translateX(16px);
|
21
|
+
transform: translateX(16px);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.slider {
|
26
|
+
position: absolute;
|
27
|
+
cursor: pointer;
|
28
|
+
top: 0;
|
29
|
+
left: 0;
|
30
|
+
right: 0;
|
31
|
+
bottom: 0;
|
32
|
+
background-color: #ccc;
|
33
|
+
-webkit-transition: .4s;
|
34
|
+
transition: .4s;
|
35
|
+
&:before {
|
36
|
+
position: absolute;
|
37
|
+
content: "";
|
38
|
+
height: 16px;
|
39
|
+
width: 16px;
|
40
|
+
left: 4px;
|
41
|
+
bottom: 4px;
|
42
|
+
background-color: white;
|
43
|
+
-webkit-transition: .4s;
|
44
|
+
transition: .4s;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.slider.round {
|
49
|
+
border-radius: 34px;
|
50
|
+
&:before {
|
51
|
+
border-radius: 50%;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.inline-label {
|
56
|
+
margin-left: 50px;
|
57
|
+
opacity: .5;
|
58
|
+
transition: opacity .3s;
|
59
|
+
&.active {
|
60
|
+
opacity: 1;
|
61
|
+
transition: opacity .3s;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
a {
|
66
|
+
text-decoration: none;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
.no-visible {
|
2
71
|
display: none;
|
3
72
|
}
|
4
73
|
|
5
|
-
.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
74
|
+
.row-selectable:hover {
|
75
|
+
background-color: #f3f0f0;
|
76
|
+
transition: all ease .3s;
|
77
|
+
cursor: pointer;
|
78
|
+
}
|
79
|
+
|
80
|
+
label {
|
81
|
+
margin-bottom: 0px !important;
|
82
|
+
}
|
83
|
+
|
84
|
+
.switch {
|
85
|
+
position: relative;
|
86
|
+
display: inline-block;
|
87
|
+
width: 40px;
|
88
|
+
height: 24px;
|
89
|
+
}
|
90
|
+
|
91
|
+
.switch input {
|
92
|
+
display:none;
|
93
|
+
}
|
94
|
+
|
95
|
+
.slider {
|
96
|
+
position: absolute;
|
97
|
+
cursor: pointer;
|
98
|
+
top: 0;
|
99
|
+
left: 0;
|
100
|
+
right: 0;
|
101
|
+
bottom: 0;
|
102
|
+
background-color: #ccc;
|
103
|
+
-webkit-transition: .4s;
|
104
|
+
transition: .4s;
|
105
|
+
}
|
106
|
+
|
107
|
+
.slider:before {
|
108
|
+
position: absolute;
|
109
|
+
content: "";
|
110
|
+
height: 16px;
|
111
|
+
width: 16px;
|
112
|
+
left: 4px;
|
113
|
+
bottom: 4px;
|
114
|
+
background-color: white;
|
115
|
+
-webkit-transition: .4s;
|
116
|
+
transition: .4s;
|
117
|
+
}
|
118
|
+
|
119
|
+
input.active + .slider {
|
120
|
+
background-color: $keppler-color;
|
121
|
+
}
|
122
|
+
|
123
|
+
input.active + .slider {
|
124
|
+
box-shadow: 0 0 1px $keppler-color;
|
125
|
+
}
|
126
|
+
|
127
|
+
input.active + .slider:before {
|
128
|
+
-webkit-transform: translateX(16px);
|
129
|
+
-ms-transform: translateX(16px);
|
130
|
+
transform: translateX(16px);
|
131
|
+
}
|
132
|
+
|
133
|
+
.slider.round {
|
134
|
+
border-radius: 34px;
|
37
135
|
}
|
38
136
|
|
39
|
-
.
|
40
|
-
|
41
|
-
opacity: 0.5;
|
137
|
+
.slider.round:before {
|
138
|
+
border-radius: 50%;
|
42
139
|
}
|
43
140
|
|
44
|
-
|
45
|
-
|
46
|
-
left: 20px;
|
141
|
+
a {
|
142
|
+
text-decoration: none;
|
47
143
|
}
|