thecore_ui_rails_admin 2.1.10 → 2.1.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cf64ac29415ff7be2ae88370d4bd3e533aeb86816a5f0b1966226b9982388e6
4
- data.tar.gz: a496d1564532b858780c3bd388227398f4beebf46a596ec8ea5f27f980d673ef
3
+ metadata.gz: '028bce49c0f73efcfa8b78093202f248e34e623c648e9bc19203298dfc327301'
4
+ data.tar.gz: 1fdb52d4e811e4261ef7379c9ea7cedbca9c2c0843d180afbdcc4412de9bdbe2
5
5
  SHA512:
6
- metadata.gz: 851c587fbdc7872d7cfe4cca5489792abb744643946e0f0e3bf4f497bafe291e6b39fb458fc5c9856c2d4cc19f0417134545504c77ec4b8f8d820280da5ea3b2
7
- data.tar.gz: dd5d457e9827e2667551879ab4da61a3d05554d2b68fab7ccc10e53b765f0b320cd96a8cc69e563faadc7b09515e34d49527e31dcb49e4a21f39ada8369e62c4
6
+ metadata.gz: 891f2616cd3226de3967443e7b916752f0d1c53fabff2f2082b6b0b742e5a2e91e7d2ce858819d20c6b97e3e2fc744198022fae735a6baa8bc65e0492e0c5a37
7
+ data.tar.gz: dc31275fed352d23a3e5bdc0c5990c96669e12c9ea57d54f7c11a549629102acc1dbab63798457f8b0fbf019f950d8c0c125fb7b7339d92afea83037ce464331
@@ -0,0 +1,13 @@
1
+ $RAbackground: #435761;
2
+ $RAelements: #303e45;
3
+ $RAtext: #dfe5e8;
4
+ $RAborder: #607d8b;
5
+ $RAlight: lighten( $RAbackground, 10% );
6
+ $RAdark: darken( $RAbackground, 10% );
7
+ $RAhighlight: lighten( $RAtext, 30% );
8
+
9
+ $RAclear: #706f6f;
10
+ $RAsuccess: #37BC9B;
11
+ $RAinfo: #3BAFDA;
12
+ $RAdanger: #E9573F;
13
+ $RAwarnig: #F6BB42;
@@ -1,11 +1,12 @@
1
1
  body {
2
2
  height: 100vh;
3
3
  // background: linear-gradient(-20deg, #09b7b9 30%, #1c51a4 100%);
4
- background-color: rgb(59, 78, 89);
4
+ background-color: $RAbackground;
5
5
  }
6
6
 
7
7
  .jumbotron {
8
- background-color: rgb(59, 78, 89);
8
+ background-color: $RAbackground;
9
+ color: $RAtext;
9
10
  }
10
11
 
11
12
  .vertical-center {
@@ -31,6 +32,12 @@ body {
31
32
  content: "\f044";
32
33
  }
33
34
 
34
- #new_user div.actions input.btn.btn-warning {
35
+ #new_user div.checkbox:hover {
36
+ color: $RAhighlight
37
+ }
38
+
39
+ #new_user div.actions input.btn {
35
40
  width: 100%;
41
+ background-color: $RAelements;
42
+ border-color: $RAborder;
36
43
  }
@@ -1,10 +1,3 @@
1
- $primary: #1c2c41;
2
- $secondary: #304158;
3
- $light: #47566c;
4
- $blue: #0C457D;
5
- $grey: #706f6f;
6
- $tertiary: #81C784;
7
-
8
1
  .devise {
9
2
  font-family: 'Raleway', sans-serif;
10
3
  height: 100vh;
@@ -19,11 +12,11 @@
19
12
  }
20
13
 
21
14
  .bckg-dark {
22
- // background: linear-gradient(-20deg, #09b7b9 30%, #1c51a4 100%);
23
- background-color: rgb(59, 78, 89);
15
+ background-color:$RAbackground;
24
16
  }
25
17
 
26
18
  .bckg-login {
19
+ background-color:$RAbackground;
27
20
  }
28
21
 
29
22
  .logo {
@@ -38,11 +31,11 @@
38
31
  }
39
32
 
40
33
  .bckg-dark-light {
41
- background: $secondary;
34
+ background: $RAtext;
42
35
  }
43
36
 
44
37
  .bckg-blue {
45
- background: $blue;
38
+ background: $RAinfo;
46
39
  }
47
40
 
48
41
  .centered {
@@ -54,7 +47,7 @@
54
47
 
55
48
  .login-form-user {
56
49
  width: 25%;
57
- color: #fff;
50
+ color: $RAlight;
58
51
  margin: 0 auto;
59
52
  margin-bottom: 25px;
60
53
 
@@ -65,7 +58,7 @@
65
58
  }
66
59
 
67
60
  .lost_id {
68
- color: #fff;
61
+ color: $RAlight;
69
62
  margin-bottom: 15px;
70
63
  display: block;
71
64
  font-size: .9em;
@@ -111,16 +104,16 @@
111
104
  border: 0;
112
105
  }
113
106
  input[type="submit"] {
114
- background: $grey;
107
+ background: $RAclear;
115
108
  border: 0;
116
109
  border-radius: 0;
117
110
  cursor: pointer;
118
111
  float: right;
119
- color: white;
112
+ color:$RAlight;
120
113
  width:100%;
121
114
  }
122
115
  h2 {
123
- background: $grey;
116
+ background: $RAclear;
124
117
  display: block;
125
118
  padding: 10px 15px;
126
119
  text-align: left;
@@ -129,15 +122,15 @@
129
122
  }
130
123
 
131
124
  .login-form {
132
- color: #fff;
125
+ color:$RAlight;
133
126
  width: 30%;
134
127
 
135
128
  .links-form {
136
129
  a {
137
- color: $light;
130
+ color:$RAlight;
138
131
  text-decoration: none;
139
132
  &:hover {
140
- color: $light;
133
+ color: $RAhighlight;
141
134
  }
142
135
  }
143
136
  }
@@ -174,8 +167,8 @@
174
167
 
175
168
  input[type="submit"] {
176
169
  cursor: pointer;
177
- background: $tertiary;
178
- color: #fff;
170
+ background: $RAborder;
171
+ color:$RAlight;
179
172
  border-radius: 3px;
180
173
  border: 0;
181
174
  display: block;
@@ -184,15 +177,15 @@
184
177
  margin-top: 55px;
185
178
  width: 100%;
186
179
  &:hover {
187
- background: darken($tertiary, 5%);
180
+ background: darken($RAborder, 5%);
188
181
  }
189
182
  }
190
183
 
191
184
  input[type="text"], input[type="email"], input[type="password"] {
192
185
  background-color: transparent;
193
186
  border: 0;
194
- border-bottom: 1px solid $light;
195
- color: #fff;
187
+ border-bottom: 1px solid $RAlight;
188
+ color:$RAlight;
196
189
  margin-top: 15px;
197
190
  padding-bottom: 15px;
198
191
  }
@@ -200,8 +193,8 @@
200
193
  .input-group-addon {
201
194
  background-color: transparent;
202
195
  border: 0;
203
- border-bottom: 1px solid $light;
204
- color: #fff;
196
+ border-bottom: 1px solid $RAlight;
197
+ color:$RAlight;
205
198
  margin-top: 15px;
206
199
  padding-bottom: 15px;
207
200
  padding-top: 12px;
@@ -11,18 +11,18 @@
11
11
 
12
12
  @-webkit-keyframes flash {
13
13
  0% { background-color: none; }
14
- 50% { background-color: #fbf8b2; }
14
+ 50% { background-color: $RAhighlight; }
15
15
  100% { background-color: none; }
16
16
  }
17
17
 
18
18
  @-moz-keyframes flash {
19
19
  0% { background-color: none; }
20
- 50% { background-color: #fbf8b2; }
20
+ 50% { background-color: $RAhighlight; }
21
21
  100% { background-color: none; }
22
22
  }
23
23
 
24
24
  @-ms-keyframes flash {
25
25
  0% { background-color: none; }
26
- 50% { background-color: #fbf8b2; }
26
+ 50% { background-color: $RAhighlight; }
27
27
  100% { background-color: none; }
28
28
  }
@@ -11,15 +11,196 @@
11
11
  * file per style scope.
12
12
  *
13
13
  *= required _colors
14
-
14
+ *= require thecore_ui_commons/thecore
15
+ *= require rails_admin/rails_admin
16
+ *= require rails_admin_selectize/index
15
17
  *= require_self
16
18
  */
17
19
  @import "jquery-ui";
18
20
  @import "jquery-ui/dialog";
19
21
  @import 'bootstrap-sprockets';
20
22
  @import 'bootstrap';
23
+ @import 'colors';
21
24
  @import 'common';
25
+ @import "flashing";
22
26
  @import 'devise';
23
27
  @import 'animate';
24
28
  @import 'mixins';
25
29
  @import 'apexcharts';
30
+ @import 'thecore_ui_commons/thecore';
31
+ @import "togglable-sidebar";
32
+
33
+ .page-header.dashboard {
34
+ border-color: $RAbackground;
35
+ }
36
+
37
+ .breadcrumb {
38
+ background: $RAinfo;
39
+ .false a, .false:before {
40
+ color: darken($RAinfo, 30%) !important;
41
+ }
42
+ .active, .active:before {
43
+ color: $RAlight;
44
+ }
45
+ }
46
+
47
+ .table-striped {
48
+ border-top-color: $RAinfo;
49
+ .links ul li {
50
+ padding-right: 0;
51
+ a {
52
+ border-radius: 50%;
53
+ }
54
+ }
55
+ }
56
+
57
+ .content {
58
+ margin: 0px 0 15px 0;
59
+ padding: 8px;
60
+ background: $RAbackground;
61
+ &.dashboard {
62
+ background: $RAbackground;
63
+ }
64
+ .page-header {
65
+ display: none;
66
+ }
67
+ }
68
+
69
+ a.delete {
70
+ color: $RAlight;
71
+ }
72
+
73
+ .box {
74
+ padding: 15px;
75
+ margin-bottom: 30px;
76
+ border: 1px solid $RAbackground;
77
+ position: relative;
78
+ min-height: 170px;
79
+ transition: all 0.3s ease;
80
+ color: rgba($RAlight,0.7);
81
+ overflow: hidden;
82
+ &:hover, &:focus {
83
+ border-color: $RAlight;
84
+ .icon-bg {
85
+ transform: scale(1.5) rotate(20deg);
86
+ }
87
+ }
88
+ p {
89
+ min-height: 30px;
90
+ font-size: 15px;
91
+ font-weight: 600;
92
+ a.btn {
93
+ border-radius: 3px;
94
+ color: rgba($RAlight,0.7) !important;
95
+ display: inline-block;
96
+ margin-bottom: 0;
97
+ font-weight: normal;
98
+ text-align: center;
99
+ vertical-align: middle;
100
+ cursor: pointer;
101
+ background-color: rgba($RAdark, 0.19);
102
+ border: 1px solid transparent;
103
+ white-space: nowrap;
104
+ padding: 6px 12px;
105
+ font-size: 14px;
106
+ line-height: 1.42857143;
107
+ border-radius: 4px;
108
+ -webkit-user-select: none;
109
+ -moz-user-select: none;
110
+ -ms-user-select: none;
111
+ user-select: none;
112
+ }
113
+ }
114
+ strong {
115
+ font-size: 36px;
116
+ font-weight: 600;
117
+ }
118
+ .icon-bg {
119
+ position: absolute;
120
+ right: 0;
121
+ bottom: 0;
122
+ font-size: 100px;
123
+ color: $RAdark;
124
+ opacity: 0.08;
125
+ filter: alpha(opacity=8);
126
+ transition: all 1s ease;
127
+ }
128
+ &.bg-info {
129
+ background-color: $RAinfo;
130
+ }
131
+ &.bg-success {
132
+ background-color: $RAsuccess;
133
+ }
134
+ &.bg-warning {
135
+ background-color: $RAwarnig;
136
+ }
137
+ &.bg-danger {
138
+ background-color: $RAdanger;
139
+ }
140
+ &.bg-clear {
141
+ background-color: $RAclear;
142
+ }
143
+ }
144
+
145
+ /* User sign in and sign forms. */
146
+ .border-form-div {
147
+ max-width: 300px;
148
+ padding: 19px 29px 29px;
149
+ margin: 0 auto 20px;
150
+ background-color: $RAlight;
151
+ border: 1px solid $RAborder;
152
+ -webkit-border-radius: 5px;
153
+ -moz-border-radius: 5px;
154
+ border-radius: 5px;
155
+ -webkit-box-shadow: 0 1px 2px rgba($RAdark,.05);
156
+ -moz-box-shadow: 0 1px 2px rgba($RAdark,.05);
157
+ box-shadow: 0 1px 2px rgba($RAdark,.05);
158
+ }
159
+ .border-form-div .form-signin-heading,
160
+ .border-form-div .checkbox {
161
+ margin-bottom: 10px;
162
+ }
163
+ .border-form-div input[type="text"],
164
+ .border-form-div input[type="email"],
165
+ .border-form-div input[type="password"] {
166
+ font-size: 16px;
167
+ height: auto;
168
+ margin-bottom: 15px;
169
+ padding: 7px 9px;
170
+ }
171
+
172
+ #sidebar-collapse {
173
+ background-color: transparent;
174
+ background-image: none;
175
+ border: 1px solid transparent;
176
+ color: $RAclear;
177
+ }
178
+ #sidebar-collapse:focus {
179
+ outline: 0;
180
+ }
181
+ #sidebar-collapse:hover {
182
+ color:$RAlight;
183
+ }
184
+
185
+ .exit-button {
186
+ padding-top: 9px;
187
+ padding-bottom: 9px;
188
+ margin-top: 8px;
189
+ margin-bottom: 8px;
190
+ margin-right: 7px;
191
+ }
192
+
193
+ #app-name {
194
+ font-size: 2em;
195
+ color: $RAclear;
196
+ font-family: 'Raleway', sans-serif;
197
+ word-wrap: normal;
198
+ }
199
+ #app-name:hover {
200
+ color: $RAlight;
201
+ text-decoration: none;
202
+ }
203
+
204
+ body.rails_admin {
205
+ padding-top: 0px;
206
+ }
@@ -16,189 +16,12 @@
16
16
  *= require rails_admin_selectize/index
17
17
  *= require_self
18
18
  */
19
- @import 'thecore';
20
- @import 'thecore_ui_commons/thecore';
21
- @import "togglable-sidebar";
22
- @import "flashing";
23
- @import 'common';
19
+ @import "thecore";
24
20
 
25
- $RAprimary: #1c2c41;
26
- $RAgreen: #37BC9B;
27
- $RAblue: #3BAFDA;
28
- $RAred: #E9573F;
29
- $RAyellow: #F6BB42;
30
-
31
- .page-header.dashboard {
32
- border-color: $RAprimary;
33
- }
34
-
35
- .breadcrumb {
36
- background: $RAblue;
37
- .false a, .false:before {
38
- color: darken($RAblue, 30%) !important;
39
- }
40
- .active, .active:before {
41
- color: #FFF;
42
- }
43
- }
44
-
45
- .table-striped {
46
- border-top-color: $RAblue;
47
- .links ul li {
48
- padding-right: 0;
49
- a {
50
- border-radius: 50%;
51
- }
52
- }
53
- }
54
-
55
- .content {
56
- margin: 0px 0 15px 0;
57
- padding: 8px;
58
- background: rgb(59, 78, 89);
59
- &.dashboard {
60
- background: rgb(59, 78, 89);
61
- }
62
- .page-header {
63
- display: none;
64
- }
65
- }
66
-
67
- a.delete {
68
- color: #FFF;
69
- }
70
-
71
- .box {
72
- padding: 15px;
73
- margin-bottom: 30px;
74
- border: 1px solid $RAprimary;
75
- position: relative;
76
- min-height: 170px;
77
- transition: all 0.3s ease;
78
- color: rgba(255,255,255,0.7);
79
- overflow: hidden;
80
- &:hover, &:focus {
81
- border-color: #FFF;
82
- .icon-bg {
83
- transform: scale(1.5) rotate(20deg);
84
- }
85
- }
86
- p {
87
- min-height: 30px;
88
- font-size: 15px;
89
- font-weight: 600;
90
- a.btn {
91
- border-radius: 3px;
92
- color: rgba(255,255,255,0.7) !important;
93
- display: inline-block;
94
- margin-bottom: 0;
95
- font-weight: normal;
96
- text-align: center;
97
- vertical-align: middle;
98
- cursor: pointer;
99
- background-color: rgba(0, 0, 0, 0.19);
100
- border: 1px solid transparent;
101
- white-space: nowrap;
102
- padding: 6px 12px;
103
- font-size: 14px;
104
- line-height: 1.42857143;
105
- border-radius: 4px;
106
- -webkit-user-select: none;
107
- -moz-user-select: none;
108
- -ms-user-select: none;
109
- user-select: none;
110
- }
111
- }
112
- strong {
113
- font-size: 36px;
114
- font-weight: 600;
115
- }
116
- .icon-bg {
117
- position: absolute;
118
- right: 0;
119
- bottom: 0;
120
- font-size: 100px;
121
- color: #000;
122
- opacity: 0.08;
123
- filter: alpha(opacity=8);
124
- transition: all 1s ease;
125
- }
126
- &.bg-info {
127
- background-color: $RAblue;
128
- }
129
- &.bg-success {
130
- background-color: $RAgreen;
131
- }
132
- &.bg-warning {
133
- background-color: $RAyellow;
134
- }
135
- &.bg-danger {
136
- background-color: $RAred;
137
- }
138
- &.bg-clear {
139
- background-color: rgb(204, 255, 204);
140
- }
141
- }
142
-
143
- /* User sign in and sign forms. */
144
- .border-form-div {
145
- max-width: 300px;
146
- padding: 19px 29px 29px;
147
- margin: 0 auto 20px;
148
- background-color: #fff;
149
- border: 1px solid #e5e5e5;
150
- -webkit-border-radius: 5px;
151
- -moz-border-radius: 5px;
152
- border-radius: 5px;
153
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
154
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
155
- box-shadow: 0 1px 2px rgba(0,0,0,.05);
156
- }
157
- .border-form-div .form-signin-heading,
158
- .border-form-div .checkbox {
159
- margin-bottom: 10px;
160
- }
161
- .border-form-div input[type="text"],
162
- .border-form-div input[type="email"],
163
- .border-form-div input[type="password"] {
164
- font-size: 16px;
165
- height: auto;
166
- margin-bottom: 15px;
167
- padding: 7px 9px;
168
- }
169
-
170
- #sidebar-collapse {
171
- background-color: transparent;
172
- background-image: none;
173
- border: 1px solid transparent;
174
- color: #888;
175
- }
176
- #sidebar-collapse:focus {
177
- outline: 0;
178
- }
179
- #sidebar-collapse:hover {
180
- color: white;
181
- }
182
-
183
- .exit-button {
184
- padding-top: 9px;
185
- padding-bottom: 9px;
186
- margin-top: 8px;
187
- margin-bottom: 8px;
188
- margin-right: 7px;
189
- }
190
-
191
- #app-name {
192
- font-size: 2em;
193
- color: #888;
194
- font-family: 'Raleway', sans-serif;
195
- word-wrap: normal;
196
- }
197
- #app-name:hover {
198
- color: white;
199
- text-decoration: none;
21
+ .box, .box p a.btn {
22
+ color: $RAtext !important;
200
23
  }
201
24
 
202
- body.rails_admin {
203
- padding-top: 0px;
25
+ .box:hover {
26
+ color: $RAhighlight;
204
27
  }
@@ -17,16 +17,12 @@
17
17
  .col-sm-4
18
18
  .box.bg.bg-clear= self.send(item)
19
19
 
20
- - @list_bg = ['info', 'success', 'danger', 'success', 'info', 'warning', 'danger', 'info', 'success']
21
20
  - if @abstract_models
22
21
  .row
23
- - index = 0
24
22
  - @abstract_models.each do |abstract_model|
25
23
  - index_path = index_path(model_name: abstract_model.to_param)
26
24
  - if authorized?(:index, abstract_model) && !index_path.include?("ckeditor")
27
- - if index == @list_bg.length
28
- - index = 0
29
- - row_class = "box bg-#{ @list_bg[index].to_s } #{"link" if index_path} #{abstract_model.param_key}_links #{abstract_model.config.label_plural}"
25
+ - row_class = "box bg-clear #{"link" if index_path} #{abstract_model.param_key}_links #{abstract_model.config.label_plural}"
30
26
  .col-sm-4
31
27
  .box{class: row_class, :"data-link" => index_path}
32
28
  %i{class: "icon-bg #{abstract_model.config.navigation_icon.present? ? abstract_model.config.navigation_icon : 'file' }"}
@@ -34,7 +30,6 @@
34
30
  %p= capitalize_first_letter(abstract_model.config.label_plural)
35
31
  %strong= @count[abstract_model.model.name].to_s
36
32
  %p= link_to content_tag("i", "", class: "fa fa-list-ul"), index_path, class: 'btn btn-black pjax'
37
- - index += 1
38
33
 
39
34
  - if @auditing_adapter && authorized?(:history_index)
40
35
  #block-tables.block
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiRailsAdmin
2
- VERSION = '2.1.10'
2
+ VERSION = '2.1.11'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.10
4
+ version: 2.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-29 00:00:00.000000000 Z
11
+ date: 2020-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons
@@ -194,6 +194,7 @@ files:
194
194
  - app/assets/javascripts/thecore_ui_rails_admin/thecore_rails_admin.js
195
195
  - app/assets/stylesheets/thecore_ui_rails_admin/animate.css
196
196
  - app/assets/stylesheets/thecore_ui_rails_admin/apexcharts.scss
197
+ - app/assets/stylesheets/thecore_ui_rails_admin/colors.scss
197
198
  - app/assets/stylesheets/thecore_ui_rails_admin/common.scss
198
199
  - app/assets/stylesheets/thecore_ui_rails_admin/devise.scss
199
200
  - app/assets/stylesheets/thecore_ui_rails_admin/flashing.scss