comable_backend 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/Rakefile +16 -4
- data/app/assets/javascripts/comable/admin/application.coffee +88 -0
- data/app/assets/stylesheets/comable/admin/application.scss +590 -0
- data/app/controllers/comable/admin/application_controller.rb +28 -0
- data/app/controllers/comable/admin/categories_controller.rb +14 -0
- data/app/controllers/comable/admin/customers_controller.rb +36 -0
- data/app/controllers/comable/admin/dashboard_controller.rb +20 -0
- data/app/controllers/comable/admin/orders_controller.rb +14 -0
- data/app/controllers/comable/admin/payment_methods_controller.rb +52 -0
- data/app/controllers/comable/admin/products_controller.rb +50 -1
- data/app/controllers/comable/admin/shipment_methods_controller.rb +11 -27
- data/app/controllers/comable/admin/stocks_controller.rb +69 -0
- data/app/controllers/comable/admin/store_controller.rb +12 -29
- data/app/views/comable/admin/categories/index.slim +94 -0
- data/app/views/comable/admin/customers/edit.slim +94 -0
- data/app/views/comable/admin/customers/index.slim +68 -0
- data/app/views/comable/admin/customers/show.slim +93 -0
- data/app/views/comable/admin/dashboard/_widget.slim +13 -0
- data/app/views/comable/admin/dashboard/show.slim +63 -0
- data/app/views/comable/admin/orders/index.slim +79 -0
- data/app/views/comable/admin/orders/show.slim +116 -0
- data/app/views/comable/admin/payment_methods/_form.slim +46 -0
- data/app/views/comable/admin/payment_methods/edit.slim +28 -0
- data/app/views/comable/admin/payment_methods/index.slim +53 -0
- data/app/views/comable/admin/payment_methods/new.slim +17 -0
- data/app/views/comable/admin/products/_form.slim +130 -0
- data/app/views/comable/admin/products/edit.slim +40 -0
- data/app/views/comable/admin/products/index.slim +75 -5
- data/app/views/comable/admin/products/new.slim +17 -0
- data/app/views/comable/admin/shipment_methods/_form.slim +35 -19
- data/app/views/comable/admin/shipment_methods/edit.slim +26 -5
- data/app/views/comable/admin/shipment_methods/index.slim +46 -13
- data/app/views/comable/admin/shipment_methods/new.slim +15 -3
- data/app/views/comable/admin/stocks/_form.slim +40 -0
- data/app/views/comable/admin/stocks/edit.slim +46 -0
- data/app/views/comable/admin/stocks/index.slim +81 -0
- data/app/views/comable/admin/stocks/new.slim +17 -0
- data/app/views/comable/admin/store/_form.slim +43 -31
- data/app/views/comable/admin/store/edit.slim +11 -3
- data/app/views/kaminari/comable_backend/_first_page.html.slim +2 -0
- data/app/views/kaminari/comable_backend/_gap.html.slim +2 -0
- data/app/views/kaminari/comable_backend/_last_page.html.slim +2 -0
- data/app/views/kaminari/comable_backend/_next_page.html.slim +2 -0
- data/app/views/kaminari/comable_backend/_page.html.slim +3 -0
- data/app/views/kaminari/comable_backend/_paginator.html.slim +15 -0
- data/app/views/kaminari/comable_backend/_prev_page.html.slim +2 -0
- data/app/views/layouts/comable/admin/application.slim +103 -2
- data/config/routes.rb +14 -2
- data/lib/comable/backend/engine.rb +22 -0
- metadata +240 -9
- data/app/assets/javascripts/comable/admin/application.js +0 -13
- data/app/assets/stylesheets/comable/admin/application.css +0 -15
- data/app/views/comable/admin/shipment_methods/show.slim +0 -22
- data/app/views/comable/admin/store/new.slim +0 -3
- data/app/views/comable/admin/store/show.slim +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92f84c8ca6bc38b812a910e36580c6bf3158aac7
|
4
|
+
data.tar.gz: 1932a7773969a1f3b7e126ef0e2f48e6d78167f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a26954f1b75261d88ed6c8ef98ce657a1be6d6f2f313cb2b7084bc6f412444d42daab5d1b28ea417cb8161235daa7668cd292330baa545a6c5324ff35afdd3c
|
7
|
+
data.tar.gz: b9e51a79389724b5857cd6bff5d3f3a5734467efa422e0abe9b99cfae628c6b5ee99ca66e251020da6861495e56e7516fb8732cb8b52f9e7e8c2b0171f50784a
|
data/MIT-LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -69,16 +69,28 @@ if File.exist?('comable.gemspec')
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
task default: ['app:spec:all', 'rubocop']
|
72
|
+
task default: ['app:spec:all', 'rubocop', 'brakeman:all']
|
73
|
+
else
|
74
|
+
task default: ['app:spec', 'rubocop', 'brakeman']
|
73
75
|
end
|
74
76
|
|
75
|
-
task default: ['app:spec', 'rubocop']
|
76
|
-
|
77
77
|
Bundler::GemHelper.install_tasks
|
78
78
|
|
79
79
|
# from https://github.com/rspec/rspec-rails/issues/936
|
80
80
|
task 'test:prepare'
|
81
81
|
|
82
82
|
task :rubocop do
|
83
|
-
|
83
|
+
sh 'rubocop'
|
84
|
+
end
|
85
|
+
|
86
|
+
task :brakeman do
|
87
|
+
sh 'brakeman --exit-on-warn --ignore-config .brakeman.ignore'
|
88
|
+
end
|
89
|
+
|
90
|
+
namespace :brakeman do
|
91
|
+
task :all do
|
92
|
+
FRAMEWORKS.each do |framework|
|
93
|
+
sh "brakeman --exit-on-warn --ignore-config .brakeman.ignore #{framework}"
|
94
|
+
end
|
95
|
+
end
|
84
96
|
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
#= require jquery
|
2
|
+
#= require jquery-ujs
|
3
|
+
#= require jquery-ui
|
4
|
+
#= require jstree
|
5
|
+
#= require bootstrap-sprockets
|
6
|
+
#= require raphael
|
7
|
+
#= require morris
|
8
|
+
#= require pace
|
9
|
+
#= require_tree .
|
10
|
+
|
11
|
+
$( ->
|
12
|
+
# ---
|
13
|
+
# functions
|
14
|
+
# ---
|
15
|
+
|
16
|
+
initialize_vertical_navigation = ->
|
17
|
+
$vnavigation = $('.vnavigation').find('ul')
|
18
|
+
|
19
|
+
$('.vnavigation ul li ul').each( ->
|
20
|
+
$target_navitem = $(this).parent()
|
21
|
+
$target_navitem.addClass('parent')
|
22
|
+
)
|
23
|
+
|
24
|
+
$('.vnavigation ul li ul li.active').each( ->
|
25
|
+
$target_navitem_children = $(this).parent()
|
26
|
+
$target_navitem_children.css(display: 'block')
|
27
|
+
$target_navitem_children.parent().addClass('open')
|
28
|
+
)
|
29
|
+
|
30
|
+
$vnavigation.delegate('.parent > a', 'click', (event) ->
|
31
|
+
$target_navitem = $(this).parent()
|
32
|
+
$target_navitem_children = $target_navitem.find('ul')
|
33
|
+
|
34
|
+
$vnavigation.find('.parent.open > ul').not($target_navitem_children).slideUp(300, 'swing', ->
|
35
|
+
$target_navitem.removeClass('open')
|
36
|
+
)
|
37
|
+
|
38
|
+
$target_navitem_children.slideToggle(300, 'swing', ->
|
39
|
+
$target_navitem.toggleClass('open')
|
40
|
+
#$('#cl-wrapper .nscroller').nanoScroller(preventPageScrolling: true)
|
41
|
+
)
|
42
|
+
|
43
|
+
event.preventDefault()
|
44
|
+
)
|
45
|
+
|
46
|
+
initialize_comable_affix = ->
|
47
|
+
$affix = $('#comable-affix')
|
48
|
+
$affix_top = $affix.offset().top
|
49
|
+
$affix.affix({
|
50
|
+
offset: {
|
51
|
+
top: ->
|
52
|
+
if $affix.hasClass('affix-top')
|
53
|
+
$affix_top - $('header').height() - 20
|
54
|
+
else
|
55
|
+
$affix_top
|
56
|
+
}
|
57
|
+
})
|
58
|
+
|
59
|
+
resize_comable_affix = ->
|
60
|
+
$affix = $('#comable-affix')
|
61
|
+
$affix.css('width', $affix.parent().width())
|
62
|
+
|
63
|
+
notify_flash_message = ->
|
64
|
+
$notifier = $('#comable-notifier')
|
65
|
+
return if $notifier.length <= 0
|
66
|
+
$notifier.on('click', -> $(this).clearQueue().animate({ height: 0 }))
|
67
|
+
height = $notifier.css('height')
|
68
|
+
$notifier
|
69
|
+
.removeClass('hidden')
|
70
|
+
.css({ height: 0 })
|
71
|
+
.delay(400)
|
72
|
+
.animate({ height: height })
|
73
|
+
.delay(5 * 1000)
|
74
|
+
.animate({ height: 0 })
|
75
|
+
|
76
|
+
# ---
|
77
|
+
# main
|
78
|
+
# ---
|
79
|
+
|
80
|
+
initialize_vertical_navigation()
|
81
|
+
|
82
|
+
if $('#comable-affix').length != 0
|
83
|
+
initialize_comable_affix()
|
84
|
+
resize_comable_affix()
|
85
|
+
$(window).on('resize', resize_comable_affix)
|
86
|
+
|
87
|
+
notify_flash_message()
|
88
|
+
)
|
@@ -0,0 +1,590 @@
|
|
1
|
+
//= require jquery-ui
|
2
|
+
//= require jstree
|
3
|
+
//= require morris
|
4
|
+
//= require pace/themes/purple/pace-theme-minimal
|
5
|
+
//= require_self
|
6
|
+
//= require_tree .
|
7
|
+
|
8
|
+
@import 'compass/utilities';
|
9
|
+
@import 'compass/css3';
|
10
|
+
@import 'bootstrap-sprockets';
|
11
|
+
@import 'bootstrap';
|
12
|
+
@import 'font-awesome';
|
13
|
+
|
14
|
+
// ---
|
15
|
+
// mixins
|
16
|
+
// ---
|
17
|
+
|
18
|
+
// from https://github.com/FortAwesome/Font-Awesome/issues/213
|
19
|
+
@mixin glyphicon($name, $float: none) {
|
20
|
+
&:before {
|
21
|
+
float: $float;
|
22
|
+
@extend .glyphicon;
|
23
|
+
}
|
24
|
+
@extend .glyphicon-#{$name};
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin fa($name, $float: none) {
|
28
|
+
&:before {
|
29
|
+
float: $float;
|
30
|
+
@extend .fa;
|
31
|
+
}
|
32
|
+
@extend .fa-#{$name};
|
33
|
+
}
|
34
|
+
|
35
|
+
// ---
|
36
|
+
// common
|
37
|
+
// ---
|
38
|
+
|
39
|
+
body {
|
40
|
+
font-size: 12px;
|
41
|
+
font-family: Verdana, '游ゴシック', YuGothic, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
|
42
|
+
}
|
43
|
+
|
44
|
+
#wrapper {
|
45
|
+
display: table;
|
46
|
+
width: 100%;
|
47
|
+
position: absolute;
|
48
|
+
height: 100%;
|
49
|
+
|
50
|
+
body.animated & {
|
51
|
+
opacity: 0;
|
52
|
+
margin-left: -20px;
|
53
|
+
transition: margin-left 600ms ease, opacity 600ms;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
.container {
|
58
|
+
&.right {
|
59
|
+
display: table-cell;
|
60
|
+
vertical-align: top;
|
61
|
+
|
62
|
+
margin-left: 216px;
|
63
|
+
position: relative;
|
64
|
+
}
|
65
|
+
|
66
|
+
padding: 0;
|
67
|
+
overflow: hidden;
|
68
|
+
|
69
|
+
margin-right: auto;
|
70
|
+
}
|
71
|
+
|
72
|
+
.sidebar {
|
73
|
+
display: table-cell;
|
74
|
+
position: relative;
|
75
|
+
vertical-align: top;
|
76
|
+
padding-bottom: 200px;
|
77
|
+
|
78
|
+
& {
|
79
|
+
background: #272930;
|
80
|
+
width: 280px;
|
81
|
+
z-index: 2;
|
82
|
+
}
|
83
|
+
&.small {
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
.logo {
|
88
|
+
padding: 0 20px;
|
89
|
+
height: 64px;
|
90
|
+
line-height: 64px;
|
91
|
+
background-color: #fc796b;
|
92
|
+
background-color: #e55466;
|
93
|
+
background-color: #7761a7;
|
94
|
+
|
95
|
+
a {
|
96
|
+
font-size: x-large;
|
97
|
+
text-decoration: none;
|
98
|
+
|
99
|
+
&:link,
|
100
|
+
&:visited,
|
101
|
+
&:hover,
|
102
|
+
&:active {
|
103
|
+
color: #fff;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
.vnavigation {
|
109
|
+
background-color: #272930;
|
110
|
+
|
111
|
+
a {
|
112
|
+
&:link,
|
113
|
+
&:visited,
|
114
|
+
&:hover,
|
115
|
+
&:active {
|
116
|
+
color: #aaa;
|
117
|
+
text-decoration: none;
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
&:hover {
|
123
|
+
color: #fff;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
|
128
|
+
ul {
|
129
|
+
margin: 0;
|
130
|
+
padding: 0;
|
131
|
+
}
|
132
|
+
|
133
|
+
& > ul {
|
134
|
+
& > li > a {
|
135
|
+
border-top: 1px solid #2f3137;
|
136
|
+
display: block;
|
137
|
+
padding: 12px 25px;
|
138
|
+
font-size: 13px;
|
139
|
+
font-weight: 400;
|
140
|
+
white-space: nowrap;
|
141
|
+
@include transition(color 250ms ease);
|
142
|
+
|
143
|
+
border-left: 2px solid transparent;
|
144
|
+
}
|
145
|
+
|
146
|
+
&> li.active > a {
|
147
|
+
color: #fff;
|
148
|
+
background-color: #7761a7;
|
149
|
+
|
150
|
+
&:hover {
|
151
|
+
background-color: rgba(#7761a7, 0.9);
|
152
|
+
@include transition(background-color 250ms ease);
|
153
|
+
}
|
154
|
+
|
155
|
+
i {
|
156
|
+
text-align: center;
|
157
|
+
width: 20px;
|
158
|
+
font-size: 14px;
|
159
|
+
margin-right: 7px;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
li {
|
165
|
+
margin: 0;
|
166
|
+
padding: 0;
|
167
|
+
list-style: none;
|
168
|
+
}
|
169
|
+
|
170
|
+
& > ul > li > a {
|
171
|
+
&:hover {
|
172
|
+
background-color: rgba(0, 0, 0, 0.1);
|
173
|
+
@include transition(background-color 250ms ease);
|
174
|
+
}
|
175
|
+
|
176
|
+
i {
|
177
|
+
text-align: center;
|
178
|
+
width: 20px;
|
179
|
+
font-size: 14px;
|
180
|
+
margin-right: 7px;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
li.parent {
|
185
|
+
& > a {
|
186
|
+
//@include glyphicon(chevron-right, $float: right);
|
187
|
+
@include fa(angle-right, $float: right);
|
188
|
+
}
|
189
|
+
|
190
|
+
& > ul {
|
191
|
+
padding: 14px 0;
|
192
|
+
background-color: #1d1f26;
|
193
|
+
display: none;
|
194
|
+
|
195
|
+
a {
|
196
|
+
display: block;
|
197
|
+
padding: 7px 42px;
|
198
|
+
|
199
|
+
&:hover {
|
200
|
+
background-color: rgba(0, 0, 0, 0.2);
|
201
|
+
@include transition(background-color 250ms ease);
|
202
|
+
}
|
203
|
+
border-left: 2px solid transparent;
|
204
|
+
}
|
205
|
+
|
206
|
+
.active > a {
|
207
|
+
color: #fff;
|
208
|
+
border-left: 2px solid #7761a7;
|
209
|
+
background-color: rgba(0, 0, 0, 0.2);
|
210
|
+
}
|
211
|
+
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
// ---
|
217
|
+
// apply Bootstrap
|
218
|
+
// ---
|
219
|
+
body {
|
220
|
+
margin-top: $navbar-height;
|
221
|
+
background-color: #d9e0e7;
|
222
|
+
}
|
223
|
+
|
224
|
+
.navbar {
|
225
|
+
@include box-shadow(rgba(0, 0, 0, 0.3) 0 0 2px);
|
226
|
+
}
|
227
|
+
|
228
|
+
.panel {
|
229
|
+
border: none;
|
230
|
+
|
231
|
+
&.panel-inverse > .panel-heading {
|
232
|
+
background: #313239;
|
233
|
+
color: #fff;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
.page-header {
|
238
|
+
font-size: 24px;
|
239
|
+
margin: 0 0 20px;
|
240
|
+
padding: 0;
|
241
|
+
border: none;
|
242
|
+
line-height: 28px;
|
243
|
+
}
|
244
|
+
|
245
|
+
.panel > .panel-footer {
|
246
|
+
form {
|
247
|
+
@extend .text-right;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
.breadcrumb {
|
252
|
+
@extend .pull-right;
|
253
|
+
margin-bottom: 0;
|
254
|
+
padding-right: 0;
|
255
|
+
background-color: transparent;
|
256
|
+
|
257
|
+
& > li {
|
258
|
+
float: right;
|
259
|
+
}
|
260
|
+
|
261
|
+
& > li + li:after {
|
262
|
+
content: '/';
|
263
|
+
padding: 0 5px;
|
264
|
+
color: darken(#d9e0e7, 20%);
|
265
|
+
}
|
266
|
+
|
267
|
+
& > li + li:before {
|
268
|
+
display: none;
|
269
|
+
}
|
270
|
+
}
|
271
|
+
|
272
|
+
button {
|
273
|
+
@extend .btn;
|
274
|
+
}
|
275
|
+
|
276
|
+
input[type="submit"] {
|
277
|
+
@extend .btn;
|
278
|
+
}
|
279
|
+
|
280
|
+
section {
|
281
|
+
input[type="submit"] {
|
282
|
+
@extend .btn-primary;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
nav {
|
287
|
+
input[type="submit"] {
|
288
|
+
@extend .btn-default;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
|
292
|
+
select,
|
293
|
+
input[type="password"],
|
294
|
+
input[type="email"],
|
295
|
+
input[type="text"] {
|
296
|
+
@extend .form-control;
|
297
|
+
margin-right: 0.5em;
|
298
|
+
|
299
|
+
&:last-child {
|
300
|
+
margin-right: 0;
|
301
|
+
}
|
302
|
+
}
|
303
|
+
|
304
|
+
table {
|
305
|
+
@extend .table;
|
306
|
+
|
307
|
+
th > a {
|
308
|
+
&:link, &:visited, &:hover, &:active {
|
309
|
+
color: $text-color;
|
310
|
+
}
|
311
|
+
}
|
312
|
+
}
|
313
|
+
|
314
|
+
#comable-product {
|
315
|
+
label.remove {
|
316
|
+
display: block;
|
317
|
+
margin: 0;
|
318
|
+
}
|
319
|
+
|
320
|
+
.table tbody > tr > td {
|
321
|
+
.thumbnail {
|
322
|
+
margin-bottom: 0;
|
323
|
+
}
|
324
|
+
&.comable-image {
|
325
|
+
width: 180px;
|
326
|
+
}
|
327
|
+
&:not(.comable-image) {
|
328
|
+
vertical-align: middle;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
}
|
332
|
+
|
333
|
+
#comable-order {
|
334
|
+
.panel > .panel-body > h3 {
|
335
|
+
margin-top: 10px;
|
336
|
+
}
|
337
|
+
}
|
338
|
+
|
339
|
+
legend {
|
340
|
+
border-bottom: 0;
|
341
|
+
}
|
342
|
+
|
343
|
+
#comable-affix {
|
344
|
+
@extend .hidden-sm;
|
345
|
+
@extend .hidden-xs;
|
346
|
+
|
347
|
+
&.affix {
|
348
|
+
top: $navbar-height + 20px;
|
349
|
+
}
|
350
|
+
|
351
|
+
.list-group > a:before {
|
352
|
+
@include fa(angle-right);
|
353
|
+
margin-right: 1em;
|
354
|
+
}
|
355
|
+
}
|
356
|
+
|
357
|
+
table > tbody > tr > td > ul {
|
358
|
+
margin-bottom: 0;
|
359
|
+
}
|
360
|
+
|
361
|
+
main.container-fluid {
|
362
|
+
padding: 20px;
|
363
|
+
}
|
364
|
+
|
365
|
+
footer {
|
366
|
+
@extend .text-muted;
|
367
|
+
margin: 25px;
|
368
|
+
text-align: center;
|
369
|
+
|
370
|
+
& > ul > li + li:before {
|
371
|
+
content: '·';
|
372
|
+
padding-right: 10px;
|
373
|
+
}
|
374
|
+
}
|
375
|
+
|
376
|
+
hr {
|
377
|
+
border-color: darken(#d9e0e7, 5%);
|
378
|
+
}
|
379
|
+
|
380
|
+
// ---
|
381
|
+
// tag-it
|
382
|
+
// ---
|
383
|
+
ul.tagit > li > input[type="text"] {
|
384
|
+
height: auto;
|
385
|
+
}
|
386
|
+
|
387
|
+
ul.tagit-autocomplete.ui-menu {
|
388
|
+
@include border-radius($border-radius-base);
|
389
|
+
@include box-shadow(0 6px 12px rgba(0, 0, 0, 0.175));
|
390
|
+
padding: 5px 0;
|
391
|
+
border-color: $dropdown-border;
|
392
|
+
|
393
|
+
li.ui-menu-item {
|
394
|
+
padding: $padding-base-vertical $padding-base-horizontal;
|
395
|
+
color: $dropdown-link-color;
|
396
|
+
background-color: $dropdown-bg;
|
397
|
+
border: none;
|
398
|
+
|
399
|
+
&.ui-state-focus {
|
400
|
+
color: $dropdown-link-active-color;
|
401
|
+
background-color: $dropdown-link-active-bg;
|
402
|
+
}
|
403
|
+
}
|
404
|
+
}
|
405
|
+
|
406
|
+
// ---
|
407
|
+
// jstree
|
408
|
+
// ---
|
409
|
+
.jstree {
|
410
|
+
@include border-radius($input-border-radius);
|
411
|
+
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075));
|
412
|
+
padding: 5px 0;
|
413
|
+
border: 1px solid $input-border;
|
414
|
+
|
415
|
+
.jstree-wholerow {
|
416
|
+
@include transition(none);
|
417
|
+
}
|
418
|
+
|
419
|
+
.jstree-wholerow-hovered {
|
420
|
+
color: $dropdown-link-color;
|
421
|
+
background: $dropdown-link-hover-bg;
|
422
|
+
}
|
423
|
+
|
424
|
+
.jstree-wholerow-clicked {
|
425
|
+
color: $dropdown-link-active-color;
|
426
|
+
background: $dropdown-link-active-bg;
|
427
|
+
}
|
428
|
+
|
429
|
+
.jstree-anchor.jstree-clicked {
|
430
|
+
color: $dropdown-link-active-color;
|
431
|
+
|
432
|
+
&:link, &:visited, &:hover, &:active {
|
433
|
+
color: $dropdown-link-active-color;
|
434
|
+
}
|
435
|
+
|
436
|
+
& > input {
|
437
|
+
@include border-radius($input-border-radius);
|
438
|
+
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075));
|
439
|
+
color: $dropdown-link-color;
|
440
|
+
padding-left: 5px !important;
|
441
|
+
padding-right: 5px !important;
|
442
|
+
}
|
443
|
+
}
|
444
|
+
}
|
445
|
+
|
446
|
+
ul.vakata-context.jstree-contextmenu {
|
447
|
+
@include border-radius($border-radius-base);
|
448
|
+
@include box-shadow(0 6px 12px rgba(0, 0, 0, 0.175));
|
449
|
+
|
450
|
+
padding: 5px 0;
|
451
|
+
background-color: $dropdown-bg;
|
452
|
+
border-color: $dropdown-border;
|
453
|
+
|
454
|
+
& > li {
|
455
|
+
@include border-radius(0);
|
456
|
+
|
457
|
+
& > a {
|
458
|
+
padding-top: 0;
|
459
|
+
padding-bottom: 0;
|
460
|
+
line-height: $line-height-computed;
|
461
|
+
color: $dropdown-link-color;
|
462
|
+
background-color: $dropdown-bg;
|
463
|
+
|
464
|
+
& > i,
|
465
|
+
& > .vakata-contextmenu-sep {
|
466
|
+
display: none;
|
467
|
+
}
|
468
|
+
}
|
469
|
+
|
470
|
+
&.vakata-context-hover > a {
|
471
|
+
@include box-shadow(none);
|
472
|
+
background-color: $dropdown-bg;
|
473
|
+
|
474
|
+
&:hover {
|
475
|
+
background-color: $dropdown-link-hover-bg;
|
476
|
+
}
|
477
|
+
}
|
478
|
+
}
|
479
|
+
}
|
480
|
+
|
481
|
+
#comable-notifier {
|
482
|
+
@include opacity(0.95);
|
483
|
+
width: 100%;
|
484
|
+
overflow: hidden;
|
485
|
+
position: fixed;
|
486
|
+
top: 0;
|
487
|
+
left: 0;
|
488
|
+
z-index: 999999;
|
489
|
+
|
490
|
+
& > * {
|
491
|
+
padding: 0 1em;
|
492
|
+
height: $navbar-height;
|
493
|
+
line-height: $navbar-height;
|
494
|
+
|
495
|
+
&.comable-alert {
|
496
|
+
color: $alert-danger-text;
|
497
|
+
background-color: $alert-danger-bg;
|
498
|
+
}
|
499
|
+
|
500
|
+
&.comable-notice {
|
501
|
+
color: $alert-success-text;
|
502
|
+
background-color: $alert-success-bg;
|
503
|
+
}
|
504
|
+
}
|
505
|
+
}
|
506
|
+
|
507
|
+
// Dashboard
|
508
|
+
|
509
|
+
.widget {
|
510
|
+
border-radius: 3px;
|
511
|
+
margin-bottom: 20px;
|
512
|
+
color: #fff;
|
513
|
+
padding: 15px;
|
514
|
+
overflow: hidden;
|
515
|
+
|
516
|
+
&.widget-stats {
|
517
|
+
position: relative;
|
518
|
+
|
519
|
+
& > .stats-icon {
|
520
|
+
@include opacity(0.2);
|
521
|
+
font-size: 42px;
|
522
|
+
height: 56px;
|
523
|
+
width: 56px;
|
524
|
+
text-align: center;
|
525
|
+
line-height: 56px;
|
526
|
+
margin-left: 15px;
|
527
|
+
color: #fff;
|
528
|
+
position: absolute;
|
529
|
+
right: 15px;
|
530
|
+
top: 15px;
|
531
|
+
|
532
|
+
&.stats-icon-lg {
|
533
|
+
font-size: 52px;
|
534
|
+
top: 12px;
|
535
|
+
right: 21px;
|
536
|
+
}
|
537
|
+
}
|
538
|
+
|
539
|
+
& > .stats-desc,
|
540
|
+
& > .stats-title {
|
541
|
+
color: #fff;
|
542
|
+
color: rgba(255, 255, 255, 0.6);
|
543
|
+
}
|
544
|
+
|
545
|
+
& > .stats-title {
|
546
|
+
margin: 2px 0 7px;
|
547
|
+
font-size: 12px;
|
548
|
+
line-height: 1.1;
|
549
|
+
position: relative;
|
550
|
+
}
|
551
|
+
|
552
|
+
& > .stats-number {
|
553
|
+
margin-bottom: 10px;
|
554
|
+
font-size: 24px;
|
555
|
+
font-weight: normal;
|
556
|
+
}
|
557
|
+
|
558
|
+
& > .stats-progress {
|
559
|
+
margin: 0 -15px 12px;
|
560
|
+
height: 2px;
|
561
|
+
background: #000;
|
562
|
+
background: rgba(0, 0, 0, 0.2);
|
563
|
+
|
564
|
+
& > .progress-bar {
|
565
|
+
@include box-shadow(none);
|
566
|
+
background: #fff;
|
567
|
+
}
|
568
|
+
}
|
569
|
+
}
|
570
|
+
|
571
|
+
&.widget-bg-green {
|
572
|
+
background: #00acac !important;
|
573
|
+
}
|
574
|
+
|
575
|
+
&.widget-bg-blue {
|
576
|
+
background: #348fe2 !important;
|
577
|
+
}
|
578
|
+
|
579
|
+
&.widget-bg-black {
|
580
|
+
background: #272930 !important;
|
581
|
+
}
|
582
|
+
}
|
583
|
+
|
584
|
+
.morris > .morris-hover {
|
585
|
+
@include border-radius($border-radius-base !important);
|
586
|
+
padding: 8px !important;
|
587
|
+
color: #ccc !important;
|
588
|
+
background: rgba(0, 0, 0, 0.75) !important;
|
589
|
+
border: none !important;
|
590
|
+
}
|