admin_help 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +53 -3
- data/README.md +9 -6
- data/admin_help.gemspec +2 -0
- data/app/assets/fonts/iconfont.eot +0 -0
- data/app/assets/fonts/iconfont.svg +68 -0
- data/app/assets/fonts/iconfont.ttf +0 -0
- data/app/assets/fonts/iconfont.woff +0 -0
- data/app/assets/fonts/iconfont.woff2 +0 -0
- data/app/assets/javascripts/admin_help.js +2 -3
- data/app/assets/javascripts/aiui.js +31 -0
- data/app/assets/javascripts/chosen.jquery.js +1359 -0
- data/app/assets/stylesheets/admin_help.scss +2 -0
- data/app/assets/stylesheets/aiui.scss +82 -0
- data/app/assets/stylesheets/alert.scss +34 -0
- data/app/assets/stylesheets/aside.scss +85 -0
- data/app/assets/stylesheets/button.scss +122 -0
- data/app/assets/stylesheets/chosen.css.erb +495 -0
- data/app/assets/stylesheets/form.scss +151 -0
- data/app/assets/stylesheets/icon.scss.erb +72 -0
- data/app/assets/stylesheets/input.scss +52 -0
- data/app/assets/stylesheets/nav.scss +28 -0
- data/app/assets/stylesheets/pagination.scss +49 -0
- data/app/assets/stylesheets/table.scss +73 -0
- data/app/assets/stylesheets/tooltip.scss +38 -0
- data/app/controllers/admin_help_controller.rb +2 -0
- data/app/controllers/frontend_controller.rb +8 -0
- data/app/views/frontend/buttons.html.erb +78 -0
- data/app/views/frontend/index.html.erb +0 -0
- data/app/views/frontend/nav.html.erb +0 -0
- data/app/views/frontend/paginate.html.erb +32 -0
- data/app/views/frontend/table.html.erb +34 -0
- data/{lib/generators/admin_help/templates/layouts → app/views/layouts/frontend}/flash.html.erb +0 -0
- data/app/views/layouts/frontend/frontend.html.erb +30 -0
- data/app/views/layouts/frontend/header.html.erb +3 -0
- data/app/views/layouts/frontend/left_nav.html.erb +29 -0
- data/config/routes.rb +24 -0
- data/lib/admin_help/engine.rb +4 -0
- data/lib/admin_help/version.rb +1 -1
- data/lib/generators/admin/scaffold_controller/templates/views/erb/_form.html.erb.erb +9 -34
- data/lib/generators/admin/scaffold_controller/templates/views/erb/edit.html.erb.erb +2 -5
- data/lib/generators/admin/scaffold_controller/templates/views/erb/index.html.erb.erb +23 -30
- data/lib/generators/admin/scaffold_controller/templates/views/erb/new.html.erb.erb +2 -5
- data/lib/generators/admin/scaffold_controller/templates/views/erb/show.html.erb.erb +20 -21
- data/lib/generators/admin_help/install_generator.rb +12 -4
- data/lib/generators/admin_help/templates/app/controllers/admin/home_controller.rb +4 -0
- data/lib/generators/admin_help/templates/app/views/admin/home/index.html.erb +1 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_first_page.html.erb +15 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_gap.html.erb +9 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_last_page.html.erb +15 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_next_page.html.erb +12 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_page.html.erb +12 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_paginator.html.erb +32 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_prev_page.html.erb +12 -0
- data/lib/generators/admin_help/templates/{layouts/application.html.erb → app/views/layouts/admin_help.html.erb} +7 -3
- data/lib/generators/admin_help/templates/app/views/layouts/flash.html.erb +6 -0
- data/lib/generators/admin_help/templates/app/views/layouts/header.html.erb +3 -0
- data/lib/generators/admin_help/templates/app/views/layouts/left_nav.html.erb +36 -0
- data/lib/generators/admin_help/templates/config/initializers/locale.rb +4 -0
- data/lib/generators/admin_help/templates/config/locales/models/en.models.yml +7 -0
- data/lib/generators/admin_help/templates/config/locales/models/zh-cn.models.yml +7 -0
- data/lib/generators/admin_help/templates/config/locales/views/en.common.yml +28 -0
- data/lib/generators/admin_help/templates/config/locales/views/zh-cn.common.yml +235 -0
- data/lib/generators/admin_help/templates/config/routes.rb +4 -0
- metadata +68 -16
- data/app/assets/fonts/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +0 -2671
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/assets/stylesheets/admin_help.css +0 -4
- data/app/assets/stylesheets/aiui.scss.erb +0 -387
- data/app/assets/stylesheets/font-awesome.css.erb +0 -2342
- data/lib/generators/admin_help/templates/layouts/header.html.erb +0 -41
- data/lib/generators/admin_help/templates/layouts/left_nav.html.erb +0 -13
@@ -0,0 +1,82 @@
|
|
1
|
+
$primary: #3598DC !default;
|
2
|
+
$primary-hover: #2f8ac7 !default;
|
3
|
+
$primary-active: #266fa0 !default;
|
4
|
+
$aside-hover: rgba(0, 0, 0, 0.08) !default;
|
5
|
+
$button-colors:
|
6
|
+
('default'#FFF #F2F2F2 #F6F6F6)
|
7
|
+
('primary'$primary $primary-hover $primary-active)
|
8
|
+
('success'#21BA45 #16ab39 #198f35)
|
9
|
+
('warning'#ff9c59 #e67e38 #b1632f)
|
10
|
+
('danger'#ff4e4e #e24444 #b33b3b)
|
11
|
+
('royal'#8775A7 #7C6B99 #6b5d83)
|
12
|
+
('info'#c9c9c9 #afafaf #9b9b9b);
|
13
|
+
|
14
|
+
@import 'nav';
|
15
|
+
@import 'aside';
|
16
|
+
@import 'button';
|
17
|
+
@import 'table';
|
18
|
+
@import 'form';
|
19
|
+
@import 'alert';
|
20
|
+
@import 'input';
|
21
|
+
@import 'tooltip';
|
22
|
+
@import 'icon';
|
23
|
+
@import 'pagination';
|
24
|
+
|
25
|
+
body {
|
26
|
+
margin: 0;
|
27
|
+
height: 100vh;
|
28
|
+
display: flex;
|
29
|
+
flex-direction: column;
|
30
|
+
overflow: hidden;
|
31
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
32
|
+
}
|
33
|
+
|
34
|
+
content {
|
35
|
+
flex: auto;
|
36
|
+
display: flex;
|
37
|
+
overflow-y: scroll;
|
38
|
+
-webkit-overflow-scrolling: touch;
|
39
|
+
|
40
|
+
article {
|
41
|
+
flex: auto;
|
42
|
+
overflow-y: scroll;
|
43
|
+
-webkit-overflow-scrolling: touch;
|
44
|
+
background-color: #ffffff;
|
45
|
+
}
|
46
|
+
|
47
|
+
aside {
|
48
|
+
flex: none;
|
49
|
+
width: 240px;
|
50
|
+
overflow-y: auto;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.panel {
|
55
|
+
margin: 70px 13px;
|
56
|
+
padding: 20px 20px 30px 20px;
|
57
|
+
margin-bottom: 10px;
|
58
|
+
background-color: #fff;
|
59
|
+
-webkit-box-shadow: 0px 0px 10px 0 rgba(0, 0, 0, 0.06);
|
60
|
+
box-shadow: 0px 0px 10px 0 rgba(0, 0, 0, 0.06);
|
61
|
+
border-radius: 1px;
|
62
|
+
overflow: auto;
|
63
|
+
.panel-body {
|
64
|
+
min-width: 600px;
|
65
|
+
}
|
66
|
+
.panel-header {
|
67
|
+
margin: 10px 0px;
|
68
|
+
}
|
69
|
+
.pagination {
|
70
|
+
padding-top: 20px;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.login--panel {
|
75
|
+
width: 300px;
|
76
|
+
position: relative;
|
77
|
+
margin: auto;
|
78
|
+
|
79
|
+
input {
|
80
|
+
margin-top: 10px;
|
81
|
+
}
|
82
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
.alert {
|
2
|
+
position: relative;
|
3
|
+
padding: .75rem 1.25rem;
|
4
|
+
margin-bottom: 1rem;
|
5
|
+
border: 1px solid transparent;
|
6
|
+
border-radius: .25rem;
|
7
|
+
}
|
8
|
+
|
9
|
+
.alert-success {
|
10
|
+
color: #155724;
|
11
|
+
background-color: #d4edda;
|
12
|
+
border-color: #c3e6cb;
|
13
|
+
}
|
14
|
+
|
15
|
+
.alert-danger {
|
16
|
+
background-color: #f2dede;
|
17
|
+
border-color: #ebccd1;
|
18
|
+
color: #a94442;
|
19
|
+
}
|
20
|
+
|
21
|
+
.closebtn {
|
22
|
+
float: right;
|
23
|
+
font-size: 1.5rem;
|
24
|
+
margin-left: 15px;
|
25
|
+
color: inherit;
|
26
|
+
font-weight: bold;
|
27
|
+
line-height: 0.7;
|
28
|
+
cursor: pointer;
|
29
|
+
transition: 0.3s;
|
30
|
+
}
|
31
|
+
|
32
|
+
.closebtn:hover {
|
33
|
+
color: black;
|
34
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
aside {
|
2
|
+
width: 240px;
|
3
|
+
z-index: 999;
|
4
|
+
background: #393D49;
|
5
|
+
border-right: 1px solid #dadfe6;
|
6
|
+
.logo {
|
7
|
+
display: block;
|
8
|
+
color: #ffffff;
|
9
|
+
font-size: 30px;
|
10
|
+
text-align: center;
|
11
|
+
padding: 20px 0px;
|
12
|
+
border-bottom: 1px solid rgba(0,0,0,.3);;
|
13
|
+
}
|
14
|
+
|
15
|
+
ul {
|
16
|
+
width: 100%;
|
17
|
+
margin: 0px;
|
18
|
+
padding-left: 0px;
|
19
|
+
}
|
20
|
+
|
21
|
+
ul li {
|
22
|
+
display: block;
|
23
|
+
font-size: 14px;
|
24
|
+
width: 100%;
|
25
|
+
}
|
26
|
+
|
27
|
+
ul li a {
|
28
|
+
display: block;
|
29
|
+
padding: 10px 0px 10px 30px;
|
30
|
+
color: rgba(255,255,255,.7);
|
31
|
+
transition: .3s;
|
32
|
+
}
|
33
|
+
|
34
|
+
ul li a:hover {
|
35
|
+
display: block;
|
36
|
+
color: #ffffff;
|
37
|
+
text-decoration: none;
|
38
|
+
transition: .5s;
|
39
|
+
}
|
40
|
+
.nav-item {
|
41
|
+
dl {
|
42
|
+
display: none;
|
43
|
+
margin: 0;
|
44
|
+
background: rgba(0,0,0,.3);
|
45
|
+
dd {
|
46
|
+
margin: 0px;
|
47
|
+
a {
|
48
|
+
padding: 10px 0px 10px 67px;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
.active a{
|
52
|
+
display: block;
|
53
|
+
color: #ffffff;
|
54
|
+
background: #009688;
|
55
|
+
text-decoration: none;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
.nav-item-open {
|
60
|
+
dl {
|
61
|
+
display: block;
|
62
|
+
padding: 7px 0px;
|
63
|
+
background: rgba(0,0,0,.3);
|
64
|
+
dd {
|
65
|
+
margin: 0px;
|
66
|
+
a {
|
67
|
+
padding: 10px 0px 10px 67px;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
.active a{
|
71
|
+
display: block;
|
72
|
+
color: #ffffff;
|
73
|
+
background: #009688;
|
74
|
+
text-decoration: none;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
ul li a i {
|
80
|
+
vertical-align: middle;
|
81
|
+
margin-bottom: 2px;
|
82
|
+
margin-right: 5px;
|
83
|
+
margin-left: 20px;
|
84
|
+
}
|
85
|
+
}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
a {
|
2
|
+
-webkit-tap-highlight-color: rgba(255, 0, 0, 0);
|
3
|
+
text-decoration: none;
|
4
|
+
}
|
5
|
+
.ui.button {
|
6
|
+
cursor: pointer;
|
7
|
+
display: inline-block;
|
8
|
+
min-height: 1em;
|
9
|
+
outline: none;
|
10
|
+
border: none;
|
11
|
+
vertical-align: baseline;
|
12
|
+
background: #E0E1E2 none;
|
13
|
+
color: rgba(0, 0, 0, 0.6);
|
14
|
+
font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
15
|
+
margin: 0em 0.25em 0em 0em;
|
16
|
+
padding: 0.78571429em 1.5em 0.78571429em;
|
17
|
+
text-transform: none;
|
18
|
+
text-shadow: none;
|
19
|
+
font-weight: bold;
|
20
|
+
font-size: 14px;
|
21
|
+
line-height: 1em;
|
22
|
+
font-style: normal;
|
23
|
+
text-align: center;
|
24
|
+
text-decoration: none;
|
25
|
+
border-radius: 0.28571429rem;
|
26
|
+
-webkit-box-shadow: 0px 0px 0px 1px transparent inset, 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;
|
27
|
+
box-shadow: 0px 0px 0px 1px transparent inset, 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;
|
28
|
+
-webkit-user-select: none;
|
29
|
+
-moz-user-select: none;
|
30
|
+
-ms-user-select: none;
|
31
|
+
user-select: none;
|
32
|
+
-webkit-transition: opacity 0.1s ease, background-color 0.1s ease, color 0.1s ease, background 0.1s ease, -webkit-box-shadow 0.1s ease;
|
33
|
+
-webkit-appearance: none;
|
34
|
+
transition: opacity 0.1s ease, background-color 0.1s ease, color 0.1s ease, background 0.1s ease, -webkit-box-shadow 0.1s ease;
|
35
|
+
transition: opacity 0.1s ease, background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
|
36
|
+
transition: opacity 0.1s ease, background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, -webkit-box-shadow 0.1s ease;
|
37
|
+
will-change: '';
|
38
|
+
-webkit-tap-highlight-color: transparent;
|
39
|
+
}
|
40
|
+
|
41
|
+
.ui.button:hover {
|
42
|
+
background-color: #CACBCD;
|
43
|
+
background-image: none;
|
44
|
+
-webkit-box-shadow: 0px 0px 0px 1px transparent inset, 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;
|
45
|
+
box-shadow: 0px 0px 0px 1px transparent inset, 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;
|
46
|
+
color: rgba(0, 0, 0, 0.8);
|
47
|
+
}
|
48
|
+
|
49
|
+
.ui.button:hover .icon {
|
50
|
+
opacity: 0.85;
|
51
|
+
}
|
52
|
+
|
53
|
+
.ui.button:focus {
|
54
|
+
background-color: #CACBCD;
|
55
|
+
color: rgba(0, 0, 0, 0.8);
|
56
|
+
background-image: '' !important;
|
57
|
+
-webkit-box-shadow: '' !important;
|
58
|
+
box-shadow: '' !important;
|
59
|
+
}
|
60
|
+
|
61
|
+
.ui.button:focus .icon {
|
62
|
+
opacity: 0.85;
|
63
|
+
}
|
64
|
+
|
65
|
+
.ui.button:active,
|
66
|
+
.ui.active.button:active {
|
67
|
+
background-color: #BABBBC;
|
68
|
+
background-image: '';
|
69
|
+
color: rgba(0, 0, 0, 0.9);
|
70
|
+
-webkit-box-shadow: 0px 0px 0px 1px transparent inset, none;
|
71
|
+
box-shadow: 0px 0px 0px 1px transparent inset, none;
|
72
|
+
}
|
73
|
+
|
74
|
+
.ui.active.button {
|
75
|
+
background-color: #C0C1C2;
|
76
|
+
background-image: none;
|
77
|
+
-webkit-box-shadow: 0px 0px 0px 1px transparent inset;
|
78
|
+
box-shadow: 0px 0px 0px 1px transparent inset;
|
79
|
+
color: rgba(0, 0, 0, 0.95);
|
80
|
+
}
|
81
|
+
|
82
|
+
.ui.active.button:hover {
|
83
|
+
background-color: #C0C1C2;
|
84
|
+
background-image: none;
|
85
|
+
color: rgba(0, 0, 0, 0.95);
|
86
|
+
}
|
87
|
+
|
88
|
+
.ui.active.button:active {
|
89
|
+
background-color: #C0C1C2;
|
90
|
+
background-image: none;
|
91
|
+
}
|
92
|
+
|
93
|
+
@each $button-color in $button-colors {
|
94
|
+
.ui.button.#{nth($button-color, 1)} {
|
95
|
+
background: nth($button-color, 2);
|
96
|
+
color: #FFFFFF;
|
97
|
+
text-shadow: none;
|
98
|
+
background-image: none;
|
99
|
+
-webkit-box-shadow: 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;
|
100
|
+
box-shadow: 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;
|
101
|
+
}
|
102
|
+
|
103
|
+
.ui.button.#{nth($button-color, 1)}:hover {
|
104
|
+
background: nth($button-color, 3);
|
105
|
+
}
|
106
|
+
|
107
|
+
.ui.button.#{nth($button-color, 1)}:active {
|
108
|
+
background: nth($button-color, 4);
|
109
|
+
}
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
.ui.button.round {
|
114
|
+
border-radius: 20px;
|
115
|
+
padding: 12px 23px;
|
116
|
+
}
|
117
|
+
|
118
|
+
.ui.button.tiny {
|
119
|
+
border-radius: 3px;
|
120
|
+
padding: 4px 7px;
|
121
|
+
font-size: 12px;
|
122
|
+
}
|
@@ -0,0 +1,495 @@
|
|
1
|
+
/*!
|
2
|
+
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3
|
+
by Patrick Filler for Harvest, http://getharvest.com
|
4
|
+
|
5
|
+
Version 1.8.7
|
6
|
+
Full source at https://github.com/harvesthq/chosen
|
7
|
+
Copyright (c) 2011-2018 Harvest http://getharvest.com
|
8
|
+
|
9
|
+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10
|
+
This file is generated by `grunt build`, do not edit it by hand.
|
11
|
+
*/
|
12
|
+
|
13
|
+
/* @group Base */
|
14
|
+
.chosen-container {
|
15
|
+
position: relative;
|
16
|
+
display: inline-block;
|
17
|
+
vertical-align: middle;
|
18
|
+
font-size: 13px;
|
19
|
+
-webkit-user-select: none;
|
20
|
+
-moz-user-select: none;
|
21
|
+
-ms-user-select: none;
|
22
|
+
user-select: none;
|
23
|
+
}
|
24
|
+
|
25
|
+
.chosen-container * {
|
26
|
+
-webkit-box-sizing: border-box;
|
27
|
+
box-sizing: border-box;
|
28
|
+
}
|
29
|
+
|
30
|
+
.chosen-container .chosen-drop {
|
31
|
+
position: absolute;
|
32
|
+
top: 100%;
|
33
|
+
z-index: 1010;
|
34
|
+
width: 100%;
|
35
|
+
border: 1px solid #aaa;
|
36
|
+
border-top: 0;
|
37
|
+
background: #fff;
|
38
|
+
// -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
39
|
+
// box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
40
|
+
clip: rect(0, 0, 0, 0);
|
41
|
+
-webkit-clip-path: inset(100% 100%);
|
42
|
+
clip-path: inset(100% 100%);
|
43
|
+
}
|
44
|
+
|
45
|
+
.chosen-container.chosen-with-drop .chosen-drop {
|
46
|
+
clip: auto;
|
47
|
+
-webkit-clip-path: none;
|
48
|
+
clip-path: none;
|
49
|
+
}
|
50
|
+
|
51
|
+
.chosen-container a {
|
52
|
+
cursor: pointer;
|
53
|
+
}
|
54
|
+
|
55
|
+
.chosen-container .search-choice .group-name, .chosen-container .chosen-single .group-name {
|
56
|
+
margin-right: 4px;
|
57
|
+
overflow: hidden;
|
58
|
+
white-space: nowrap;
|
59
|
+
text-overflow: ellipsis;
|
60
|
+
font-weight: normal;
|
61
|
+
color: #999999;
|
62
|
+
}
|
63
|
+
|
64
|
+
.chosen-container .search-choice .group-name:after, .chosen-container .chosen-single .group-name:after {
|
65
|
+
content: ":";
|
66
|
+
padding-left: 2px;
|
67
|
+
vertical-align: top;
|
68
|
+
}
|
69
|
+
|
70
|
+
/* @end */
|
71
|
+
/* @group Single Chosen */
|
72
|
+
.chosen-container-single .chosen-single {
|
73
|
+
-webkit-appearance: none;
|
74
|
+
position: relative;
|
75
|
+
display: block;
|
76
|
+
overflow: hidden;
|
77
|
+
height: 40px;
|
78
|
+
border: 1px solid #dcdfe6;
|
79
|
+
border-radius: 4px;
|
80
|
+
background-color: #fff;
|
81
|
+
color: #606266;
|
82
|
+
text-decoration: none;
|
83
|
+
white-space: nowrap;
|
84
|
+
line-height: 24px;
|
85
|
+
outline: none;
|
86
|
+
font-size: initial;
|
87
|
+
padding: 7px 15px;
|
88
|
+
width: 100%;
|
89
|
+
}
|
90
|
+
|
91
|
+
.chosen-container-single .chosen-default {
|
92
|
+
color: #999;
|
93
|
+
}
|
94
|
+
|
95
|
+
.chosen-container-single .chosen-single span {
|
96
|
+
display: block;
|
97
|
+
overflow: hidden;
|
98
|
+
margin-right: 26px;
|
99
|
+
text-overflow: ellipsis;
|
100
|
+
white-space: nowrap;
|
101
|
+
}
|
102
|
+
|
103
|
+
.chosen-container-single .chosen-single-with-deselect span {
|
104
|
+
margin-right: 38px;
|
105
|
+
}
|
106
|
+
|
107
|
+
.chosen-container-single .chosen-single abbr {
|
108
|
+
position: absolute;
|
109
|
+
top: 6px;
|
110
|
+
right: 26px;
|
111
|
+
display: block;
|
112
|
+
width: 12px;
|
113
|
+
height: 12px;
|
114
|
+
background: url('<%#= image_path('chosen/chosen-sprite.png') %>') -42px 1px no-repeat;
|
115
|
+
font-size: 1px;
|
116
|
+
}
|
117
|
+
|
118
|
+
.chosen-container-single .chosen-single abbr:hover {
|
119
|
+
background-position: -42px -10px;
|
120
|
+
}
|
121
|
+
|
122
|
+
.chosen-container-single.chosen-disabled .chosen-single abbr:hover {
|
123
|
+
background-position: -42px -10px;
|
124
|
+
}
|
125
|
+
|
126
|
+
.chosen-container-single .chosen-single div {
|
127
|
+
position: absolute;
|
128
|
+
top: 0;
|
129
|
+
right: 0;
|
130
|
+
display: block;
|
131
|
+
width: 18px;
|
132
|
+
height: 100%;
|
133
|
+
}
|
134
|
+
|
135
|
+
.chosen-container-single .chosen-single div b {
|
136
|
+
display: block;
|
137
|
+
width: 100%;
|
138
|
+
height: 100%;
|
139
|
+
background: url("chosen-sprite.png") no-repeat 0px 2px;
|
140
|
+
}
|
141
|
+
|
142
|
+
.chosen-container-single .chosen-search {
|
143
|
+
position: relative;
|
144
|
+
z-index: 1010;
|
145
|
+
margin: 0;
|
146
|
+
padding: 3px 4px;
|
147
|
+
white-space: nowrap;
|
148
|
+
}
|
149
|
+
|
150
|
+
.chosen-container-single .chosen-search input[type="text"] {
|
151
|
+
margin: 1px 0;
|
152
|
+
padding: 4px 20px 4px 5px;
|
153
|
+
width: 100%;
|
154
|
+
height: auto;
|
155
|
+
outline: 0;
|
156
|
+
border: 1px solid #aaa;
|
157
|
+
background: url("chosen-sprite.png") no-repeat 100% -20px;
|
158
|
+
font-size: 1em;
|
159
|
+
font-family: sans-serif;
|
160
|
+
line-height: normal;
|
161
|
+
border-radius: 0;
|
162
|
+
}
|
163
|
+
|
164
|
+
.chosen-container-single .chosen-drop {
|
165
|
+
margin-top: -1px;
|
166
|
+
border-radius: 0 0 4px 4px;
|
167
|
+
background-clip: padding-box;
|
168
|
+
}
|
169
|
+
|
170
|
+
.chosen-container-single.chosen-container-single-nosearch .chosen-search {
|
171
|
+
position: absolute;
|
172
|
+
clip: rect(0, 0, 0, 0);
|
173
|
+
-webkit-clip-path: inset(100% 100%);
|
174
|
+
clip-path: inset(100% 100%);
|
175
|
+
}
|
176
|
+
|
177
|
+
/* @end */
|
178
|
+
/* @group Results */
|
179
|
+
.chosen-container .chosen-results {
|
180
|
+
color: #444;
|
181
|
+
position: relative;
|
182
|
+
overflow-x: hidden;
|
183
|
+
overflow-y: auto;
|
184
|
+
margin: 0 4px 4px 0;
|
185
|
+
padding: 0 0 0 4px;
|
186
|
+
max-height: 240px;
|
187
|
+
-webkit-overflow-scrolling: touch;
|
188
|
+
}
|
189
|
+
|
190
|
+
.chosen-container .chosen-results li {
|
191
|
+
display: none;
|
192
|
+
margin: 0;
|
193
|
+
padding: 5px 6px;
|
194
|
+
list-style: none;
|
195
|
+
line-height: 15px;
|
196
|
+
word-wrap: break-word;
|
197
|
+
-webkit-touch-callout: none;
|
198
|
+
}
|
199
|
+
|
200
|
+
.chosen-container .chosen-results li.active-result {
|
201
|
+
display: list-item;
|
202
|
+
cursor: pointer;
|
203
|
+
}
|
204
|
+
|
205
|
+
.chosen-container .chosen-results li.disabled-result {
|
206
|
+
display: list-item;
|
207
|
+
color: #ccc;
|
208
|
+
cursor: default;
|
209
|
+
}
|
210
|
+
|
211
|
+
.chosen-container .chosen-results li.highlighted {
|
212
|
+
background-color: #3875d7;
|
213
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
|
214
|
+
background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
|
215
|
+
color: #fff;
|
216
|
+
}
|
217
|
+
|
218
|
+
.chosen-container .chosen-results li.no-results {
|
219
|
+
color: #777;
|
220
|
+
display: list-item;
|
221
|
+
background: #f4f4f4;
|
222
|
+
}
|
223
|
+
|
224
|
+
.chosen-container .chosen-results li.group-result {
|
225
|
+
display: list-item;
|
226
|
+
font-weight: bold;
|
227
|
+
cursor: default;
|
228
|
+
}
|
229
|
+
|
230
|
+
.chosen-container .chosen-results li.group-option {
|
231
|
+
padding-left: 15px;
|
232
|
+
}
|
233
|
+
|
234
|
+
.chosen-container .chosen-results li em {
|
235
|
+
font-style: normal;
|
236
|
+
text-decoration: underline;
|
237
|
+
}
|
238
|
+
|
239
|
+
/* @end */
|
240
|
+
/* @group Multi Chosen */
|
241
|
+
.chosen-container-multi .chosen-choices {
|
242
|
+
position: relative;
|
243
|
+
overflow: hidden;
|
244
|
+
margin: 0;
|
245
|
+
padding: 0 5px;
|
246
|
+
width: 100%;
|
247
|
+
height: auto;
|
248
|
+
border: 1px solid #aaa;
|
249
|
+
background-color: #fff;
|
250
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #eee), color-stop(15%, #fff));
|
251
|
+
background-image: linear-gradient(#eee 1%, #fff 15%);
|
252
|
+
cursor: text;
|
253
|
+
}
|
254
|
+
|
255
|
+
.chosen-container-multi .chosen-choices li {
|
256
|
+
float: left;
|
257
|
+
list-style: none;
|
258
|
+
}
|
259
|
+
|
260
|
+
.chosen-container-multi .chosen-choices li.search-field {
|
261
|
+
margin: 0;
|
262
|
+
padding: 0;
|
263
|
+
white-space: nowrap;
|
264
|
+
}
|
265
|
+
|
266
|
+
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
|
267
|
+
margin: 1px 0;
|
268
|
+
padding: 0;
|
269
|
+
height: 25px;
|
270
|
+
outline: 0;
|
271
|
+
border: 0 !important;
|
272
|
+
background: transparent !important;
|
273
|
+
-webkit-box-shadow: none;
|
274
|
+
box-shadow: none;
|
275
|
+
color: #999;
|
276
|
+
font-size: 100%;
|
277
|
+
font-family: sans-serif;
|
278
|
+
line-height: normal;
|
279
|
+
border-radius: 0;
|
280
|
+
width: 25px;
|
281
|
+
}
|
282
|
+
|
283
|
+
.chosen-container-multi .chosen-choices li.search-choice {
|
284
|
+
position: relative;
|
285
|
+
margin: 3px 5px 3px 0;
|
286
|
+
padding: 3px 20px 3px 5px;
|
287
|
+
border: 1px solid #aaa;
|
288
|
+
max-width: 100%;
|
289
|
+
border-radius: 3px;
|
290
|
+
background-color: #eeeeee;
|
291
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), to(#eee));
|
292
|
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
293
|
+
background-size: 100% 19px;
|
294
|
+
background-repeat: repeat-x;
|
295
|
+
background-clip: padding-box;
|
296
|
+
// -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
297
|
+
// box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
298
|
+
color: #333;
|
299
|
+
line-height: 13px;
|
300
|
+
cursor: default;
|
301
|
+
}
|
302
|
+
|
303
|
+
.chosen-container-multi .chosen-choices li.search-choice span {
|
304
|
+
word-wrap: break-word;
|
305
|
+
}
|
306
|
+
|
307
|
+
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
|
308
|
+
position: absolute;
|
309
|
+
top: 4px;
|
310
|
+
right: 3px;
|
311
|
+
display: block;
|
312
|
+
width: 12px;
|
313
|
+
height: 12px;
|
314
|
+
background: url("chosen-sprite.png") -42px 1px no-repeat;
|
315
|
+
font-size: 1px;
|
316
|
+
}
|
317
|
+
|
318
|
+
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
|
319
|
+
background-position: -42px -10px;
|
320
|
+
}
|
321
|
+
|
322
|
+
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
323
|
+
padding-right: 5px;
|
324
|
+
border: 1px solid #ccc;
|
325
|
+
background-color: #e4e4e4;
|
326
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), to(#eee));
|
327
|
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
328
|
+
color: #666;
|
329
|
+
}
|
330
|
+
|
331
|
+
.chosen-container-multi .chosen-choices li.search-choice-focus {
|
332
|
+
background: #d4d4d4;
|
333
|
+
}
|
334
|
+
|
335
|
+
.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
|
336
|
+
background-position: -42px -10px;
|
337
|
+
}
|
338
|
+
|
339
|
+
.chosen-container-multi .chosen-results {
|
340
|
+
margin: 0;
|
341
|
+
padding: 0;
|
342
|
+
}
|
343
|
+
|
344
|
+
.chosen-container-multi .chosen-drop .result-selected {
|
345
|
+
display: list-item;
|
346
|
+
color: #ccc;
|
347
|
+
cursor: default;
|
348
|
+
}
|
349
|
+
|
350
|
+
/* @end */
|
351
|
+
/* @group Active */
|
352
|
+
.chosen-container-active .chosen-single {
|
353
|
+
border: 1px solid #5897fb;
|
354
|
+
// -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
355
|
+
// box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
356
|
+
}
|
357
|
+
|
358
|
+
.chosen-container-active.chosen-with-drop .chosen-single {
|
359
|
+
border: 1px solid #aaa;
|
360
|
+
border-bottom-right-radius: 0;
|
361
|
+
border-bottom-left-radius: 0;
|
362
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #eee), color-stop(80%, #fff));
|
363
|
+
background-image: linear-gradient(#eee 20%, #fff 80%);
|
364
|
+
// -webkit-box-shadow: 0 1px 0 #fff inset;
|
365
|
+
// box-shadow: 0 1px 0 #fff inset;
|
366
|
+
}
|
367
|
+
|
368
|
+
.chosen-container-active.chosen-with-drop .chosen-single div {
|
369
|
+
border-left: none;
|
370
|
+
background: transparent;
|
371
|
+
}
|
372
|
+
|
373
|
+
.chosen-container-active.chosen-with-drop .chosen-single div b {
|
374
|
+
background-position: -18px 2px;
|
375
|
+
}
|
376
|
+
|
377
|
+
.chosen-container-active .chosen-choices {
|
378
|
+
border: 1px solid #5897fb;
|
379
|
+
// -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
380
|
+
// box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
381
|
+
}
|
382
|
+
|
383
|
+
.chosen-container-active .chosen-choices li.search-field input[type="text"] {
|
384
|
+
color: #222 !important;
|
385
|
+
}
|
386
|
+
|
387
|
+
/* @end */
|
388
|
+
/* @group Disabled Support */
|
389
|
+
.chosen-disabled {
|
390
|
+
opacity: 0.5 !important;
|
391
|
+
cursor: default;
|
392
|
+
}
|
393
|
+
|
394
|
+
.chosen-disabled .chosen-single {
|
395
|
+
cursor: default;
|
396
|
+
}
|
397
|
+
|
398
|
+
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
|
399
|
+
cursor: default;
|
400
|
+
}
|
401
|
+
|
402
|
+
/* @end */
|
403
|
+
/* @group Right to Left */
|
404
|
+
.chosen-rtl {
|
405
|
+
text-align: right;
|
406
|
+
}
|
407
|
+
|
408
|
+
.chosen-rtl .chosen-single {
|
409
|
+
overflow: visible;
|
410
|
+
padding: 0 8px 0 0;
|
411
|
+
}
|
412
|
+
|
413
|
+
.chosen-rtl .chosen-single span {
|
414
|
+
margin-right: 0;
|
415
|
+
margin-left: 26px;
|
416
|
+
direction: rtl;
|
417
|
+
}
|
418
|
+
|
419
|
+
.chosen-rtl .chosen-single-with-deselect span {
|
420
|
+
margin-left: 38px;
|
421
|
+
}
|
422
|
+
|
423
|
+
.chosen-rtl .chosen-single div {
|
424
|
+
right: auto;
|
425
|
+
left: 3px;
|
426
|
+
}
|
427
|
+
|
428
|
+
.chosen-rtl .chosen-single abbr {
|
429
|
+
right: auto;
|
430
|
+
left: 26px;
|
431
|
+
}
|
432
|
+
|
433
|
+
.chosen-rtl .chosen-choices li {
|
434
|
+
float: right;
|
435
|
+
}
|
436
|
+
|
437
|
+
.chosen-rtl .chosen-choices li.search-field input[type="text"] {
|
438
|
+
direction: rtl;
|
439
|
+
}
|
440
|
+
|
441
|
+
.chosen-rtl .chosen-choices li.search-choice {
|
442
|
+
margin: 3px 5px 3px 0;
|
443
|
+
padding: 3px 5px 3px 19px;
|
444
|
+
}
|
445
|
+
|
446
|
+
.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
|
447
|
+
right: auto;
|
448
|
+
left: 4px;
|
449
|
+
}
|
450
|
+
|
451
|
+
.chosen-rtl.chosen-container-single .chosen-results {
|
452
|
+
margin: 0 0 4px 4px;
|
453
|
+
padding: 0 4px 0 0;
|
454
|
+
}
|
455
|
+
|
456
|
+
.chosen-rtl .chosen-results li.group-option {
|
457
|
+
padding-right: 15px;
|
458
|
+
padding-left: 0;
|
459
|
+
}
|
460
|
+
|
461
|
+
.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
|
462
|
+
border-right: none;
|
463
|
+
}
|
464
|
+
|
465
|
+
.chosen-rtl .chosen-search input[type="text"] {
|
466
|
+
padding: 4px 5px 4px 20px;
|
467
|
+
background: url("chosen-sprite.png") no-repeat -30px -20px;
|
468
|
+
direction: rtl;
|
469
|
+
}
|
470
|
+
|
471
|
+
.chosen-rtl.chosen-container-single .chosen-single div b {
|
472
|
+
background-position: 6px 2px;
|
473
|
+
}
|
474
|
+
|
475
|
+
.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
|
476
|
+
background-position: -12px 2px;
|
477
|
+
}
|
478
|
+
|
479
|
+
/* @end */
|
480
|
+
/* @group Retina compatibility */
|
481
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
|
482
|
+
.chosen-rtl .chosen-search input[type="text"],
|
483
|
+
.chosen-container-single .chosen-single abbr,
|
484
|
+
.chosen-container-single .chosen-single div b,
|
485
|
+
.chosen-container-single .chosen-search input[type="text"],
|
486
|
+
.chosen-container-multi .chosen-choices .search-choice .search-choice-close,
|
487
|
+
.chosen-container .chosen-results-scroll-down span,
|
488
|
+
.chosen-container .chosen-results-scroll-up span {
|
489
|
+
background-image: url('<%#= image_path('chosen/chosen-sprite@2x.png') %>') !important;
|
490
|
+
background-size: 52px 37px !important;
|
491
|
+
background-repeat: no-repeat !important;
|
492
|
+
}
|
493
|
+
}
|
494
|
+
|
495
|
+
/* @end */
|