pure-admin-rails 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +131 -0
- data/app/assets/images/menu-fade-left.png +0 -0
- data/app/assets/images/menu-fade-right.png +0 -0
- data/app/assets/images/pending.gif +0 -0
- data/app/assets/javascripts/pure_admin.js +6 -0
- data/app/assets/javascripts/pure_admin/dropdown.js +178 -0
- data/app/assets/javascripts/pure_admin/flash_messages.js +13 -0
- data/app/assets/javascripts/pure_admin/inputs.js +24 -0
- data/app/assets/javascripts/pure_admin/inputs/select.js +21 -0
- data/app/assets/javascripts/pure_admin/main_header.js +21 -0
- data/app/assets/javascripts/pure_admin/main_menu.js +108 -0
- data/app/assets/javascripts/pure_admin/modals.js +228 -0
- data/app/assets/javascripts/pure_admin/partial_refresh.js +92 -0
- data/app/assets/javascripts/pure_admin/portlets.js +139 -0
- data/app/assets/javascripts/pure_admin/tabs.js +14 -0
- data/app/assets/stylesheets/pure_admin.css.scss +23 -0
- data/app/assets/stylesheets/pure_admin/_dropdowns.scss +58 -0
- data/app/assets/stylesheets/pure_admin/_tabs.scss +76 -0
- data/app/assets/stylesheets/pure_admin/auth.css.scss +22 -0
- data/app/assets/stylesheets/pure_admin/breadcrumbs.css.scss +69 -0
- data/app/assets/stylesheets/pure_admin/buttons.css.scss +48 -0
- data/app/assets/stylesheets/pure_admin/details_panels.css.scss +99 -0
- data/app/assets/stylesheets/pure_admin/flash_messages.css.scss +97 -0
- data/app/assets/stylesheets/pure_admin/forms.css.scss +129 -0
- data/app/assets/stylesheets/pure_admin/inputs/select.css.scss +99 -0
- data/app/assets/stylesheets/pure_admin/jquery.tagsinput.css.scss +67 -0
- data/app/assets/stylesheets/pure_admin/main_menu.css.scss +146 -0
- data/app/assets/stylesheets/pure_admin/modals.css.scss +122 -0
- data/app/assets/stylesheets/pure_admin/pagination.css.scss +67 -0
- data/app/assets/stylesheets/pure_admin/portlets.css.scss +154 -0
- data/app/assets/stylesheets/pure_admin/scopes.css.scss +44 -0
- data/app/assets/stylesheets/pure_admin/shell.css.scss +222 -0
- data/app/assets/stylesheets/pure_admin/side_menu.css.scss +70 -0
- data/app/assets/stylesheets/pure_admin/table_filters.css.scss +90 -0
- data/app/assets/stylesheets/pure_admin/tables.css.scss +70 -0
- data/app/assets/stylesheets/pure_admin/tags.css.scss +37 -0
- data/app/assets/stylesheets/pure_admin/utilities.css.scss +24 -0
- data/app/assets/stylesheets/pure_admin/variables.css.scss +38 -0
- data/app/helpers/pure_admin/application_helper.rb +12 -0
- data/app/helpers/pure_admin/button_helper.rb +58 -0
- data/app/helpers/pure_admin/details_panel_helper.rb +121 -0
- data/app/helpers/pure_admin/dropdown_helper.rb +40 -0
- data/app/helpers/pure_admin/menu_helper.rb +120 -0
- data/app/helpers/pure_admin/portlet_helper.rb +75 -0
- data/app/helpers/pure_admin/table_filters_helper.rb +158 -0
- data/app/inputs/addon_input.rb +17 -0
- data/app/inputs/collection_select_input.rb +17 -0
- data/app/inputs/email_input.rb +5 -0
- data/app/inputs/tel_input.rb +5 -0
- data/lib/generators/pure_admin/layout/USAGE +10 -0
- data/lib/generators/pure_admin/layout/layout_generator.rb +8 -0
- data/lib/generators/pure_admin/layout/templates/admin.css.scss +8 -0
- data/lib/generators/pure_admin/layout/templates/admin.html.erb +105 -0
- data/lib/generators/pure_admin/scaffold/USAGE +11 -0
- data/lib/generators/pure_admin/scaffold/scaffold_generator.rb +66 -0
- data/lib/generators/pure_admin/scaffold/templates/_form.html.erb +12 -0
- data/lib/generators/pure_admin/scaffold/templates/_show.html.erb +11 -0
- data/lib/generators/pure_admin/scaffold/templates/_table.html.erb +21 -0
- data/lib/generators/pure_admin/scaffold/templates/models_controller.rb +69 -0
- data/lib/generators/pure_admin/simple_form/USAGE +8 -0
- data/lib/generators/pure_admin/simple_form/simple_form_generator.rb +7 -0
- data/lib/pure-admin-rails.rb +8 -0
- data/lib/pure-admin-rails/version.rb +5 -0
- metadata +261 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
div.pagination-info {
|
2
|
+
font-size: 12px;
|
3
|
+
display: block;
|
4
|
+
color: #777777;
|
5
|
+
line-height: 3em;
|
6
|
+
|
7
|
+
@media (min-width: 35.5em) {
|
8
|
+
float: left;
|
9
|
+
line-height: 2em;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
nav.pagination {
|
14
|
+
font-size: 12px;
|
15
|
+
text-transform: uppercase;
|
16
|
+
line-height: 100%;
|
17
|
+
|
18
|
+
@media (min-width: 35.5em) {
|
19
|
+
float: right;
|
20
|
+
}
|
21
|
+
|
22
|
+
span {
|
23
|
+
display: inline-block;
|
24
|
+
background: #fefefe;
|
25
|
+
border: 1px solid #dbdbdb;
|
26
|
+
height: 20px;
|
27
|
+
|
28
|
+
&:hover {
|
29
|
+
background: #efefef;
|
30
|
+
}
|
31
|
+
|
32
|
+
&.prev, &.next {
|
33
|
+
position: relative;
|
34
|
+
top: 1px;
|
35
|
+
|
36
|
+
a {
|
37
|
+
position: relative;
|
38
|
+
top: -1px;
|
39
|
+
font-family: 'FontAwesome';
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
&.current {
|
44
|
+
display: inline-block;
|
45
|
+
padding: 4px 6px;
|
46
|
+
background: #efefef;
|
47
|
+
line-height: 100%;
|
48
|
+
}
|
49
|
+
|
50
|
+
&.gap {
|
51
|
+
display: inline-block;
|
52
|
+
padding: 4px 4px;
|
53
|
+
border: none;
|
54
|
+
background: transparent;
|
55
|
+
}
|
56
|
+
|
57
|
+
a {
|
58
|
+
display: inline-block;
|
59
|
+
padding: 4px 6px;
|
60
|
+
color: #555555;
|
61
|
+
|
62
|
+
&:hover {
|
63
|
+
color: #555555;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
@@ -0,0 +1,154 @@
|
|
1
|
+
$icon-chevron-up: '\f077';
|
2
|
+
$icon-chevron-down: '\f078';
|
3
|
+
$icon-minus: '\f068';
|
4
|
+
|
5
|
+
.portlet {
|
6
|
+
background: $white;
|
7
|
+
border: 1px solid $grey-medium;
|
8
|
+
clear: both;
|
9
|
+
margin-bottom: $base-font-size * 2;
|
10
|
+
margin-top: $base-font-size;
|
11
|
+
position: relative;
|
12
|
+
|
13
|
+
@media (min-width: 48em) {
|
14
|
+
margin-left: $base-font-size * 0.4;
|
15
|
+
margin-right: $base-font-size * 0.4;
|
16
|
+
}
|
17
|
+
|
18
|
+
&.expanded {
|
19
|
+
.portlet-indicator:before {
|
20
|
+
content: $icon-chevron-up;
|
21
|
+
}
|
22
|
+
|
23
|
+
.portlet-body {
|
24
|
+
display: block;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
&.loading {
|
29
|
+
.portlet-indicator:before {
|
30
|
+
// Line ( - )
|
31
|
+
content: $icon-minus;
|
32
|
+
}
|
33
|
+
|
34
|
+
.portlet-body {
|
35
|
+
background-image: image-url('pending.gif');
|
36
|
+
background-position: center;
|
37
|
+
background-repeat: no-repeat;
|
38
|
+
background-size: contain;
|
39
|
+
height: auto;
|
40
|
+
margin: 0 auto;
|
41
|
+
padding: 1em;
|
42
|
+
width: 3em;
|
43
|
+
|
44
|
+
-webkit-transition: all 0.2s linear;
|
45
|
+
-moz-transition: all 0.2s linear;
|
46
|
+
-ms-transition: all 0.2s linear;
|
47
|
+
-o-transition: all 0.2s linear;
|
48
|
+
transition: all 0.2s linear;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.portlet-heading {
|
54
|
+
background: $grey-light;
|
55
|
+
min-height: $base-font-size * 2;
|
56
|
+
padding: $base-font-size * 0.4 0;
|
57
|
+
|
58
|
+
h4 {
|
59
|
+
display: inline-block;
|
60
|
+
font-size: 1em;
|
61
|
+
font-weight: 400;
|
62
|
+
line-height: $base-font-size * 1.5;
|
63
|
+
padding: 0 $base-font-size * 0.8;
|
64
|
+
margin: 0;
|
65
|
+
text-transform: uppercase;
|
66
|
+
position: relative;
|
67
|
+
top: 1px;
|
68
|
+
display: table-cell;
|
69
|
+
width: 100%;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
.portlet.expanded {
|
74
|
+
.portlet-heading {
|
75
|
+
border-bottom: 1px solid $grey-medium;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
.portlet[data-closable=true] {
|
80
|
+
.portlet-heading {
|
81
|
+
cursor: pointer;
|
82
|
+
|
83
|
+
&:hover {
|
84
|
+
background: lighten($grey-light, 1.5%);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.portlet-heading-icon.fa {
|
90
|
+
line-height: $base-font-size * 1.5;
|
91
|
+
border-right: 1px solid $grey-medium-dark;
|
92
|
+
padding: 0 $base-font-size * 0.8;
|
93
|
+
display: table-cell;
|
94
|
+
vertical-align: middle;
|
95
|
+
}
|
96
|
+
|
97
|
+
.portlet-controls {
|
98
|
+
line-height: $base-font-size * 1.5;
|
99
|
+
border-left: 1px solid $grey-medium-dark;
|
100
|
+
padding: 0 $base-font-size * 0.8;
|
101
|
+
padding-right: 0;
|
102
|
+
display: table-cell;
|
103
|
+
vertical-align: middle;
|
104
|
+
white-space: nowrap;
|
105
|
+
|
106
|
+
.portlet-control-item {
|
107
|
+
display: inline-block;
|
108
|
+
margin-right: $base-font-size * 0.8;
|
109
|
+
|
110
|
+
.pure-button,
|
111
|
+
.pure-menu-link {
|
112
|
+
font-size: 0.75rem;
|
113
|
+
}
|
114
|
+
|
115
|
+
.dropdown {
|
116
|
+
float: none;
|
117
|
+
}
|
118
|
+
|
119
|
+
.pure-menu-has-children {
|
120
|
+
display: block;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
.portlet-indicator {
|
126
|
+
padding-right: $base-font-size * 0.8;
|
127
|
+
|
128
|
+
&:hover {
|
129
|
+
cursor: pointer;
|
130
|
+
}
|
131
|
+
|
132
|
+
&:before {
|
133
|
+
font-family: FontAwesome;
|
134
|
+
content: $icon-chevron-down;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
.portlet-body {
|
139
|
+
display: none;
|
140
|
+
font-size: 14px;
|
141
|
+
padding: 0 $base-font-size;
|
142
|
+
|
143
|
+
&.vertically-padded {
|
144
|
+
padding: 16px;
|
145
|
+
}
|
146
|
+
|
147
|
+
&.top-padded {
|
148
|
+
padding-top: 16px;
|
149
|
+
}
|
150
|
+
|
151
|
+
&.bottom-padded {
|
152
|
+
padding-bottom: 16px;
|
153
|
+
}
|
154
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
.scopes {
|
2
|
+
list-style: none;
|
3
|
+
margin: 0;
|
4
|
+
padding: 0;
|
5
|
+
padding-top: 0.9em;
|
6
|
+
font-size: 0.75em;
|
7
|
+
text-transform: uppercase;
|
8
|
+
line-height: 1em;
|
9
|
+
|
10
|
+
@media (min-width: 35.5em) {
|
11
|
+
float: left;
|
12
|
+
}
|
13
|
+
|
14
|
+
span {
|
15
|
+
color: #777777;
|
16
|
+
font-size: 0.8em;
|
17
|
+
padding-right: 0.75em;
|
18
|
+
margin-bottom: 0.5em;
|
19
|
+
display: block;
|
20
|
+
|
21
|
+
@media (min-width: 35.5em) {
|
22
|
+
display: inline;
|
23
|
+
margin-bottom: 0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
li {
|
28
|
+
display: inline-block;
|
29
|
+
padding-right: 0.5em;
|
30
|
+
margin-bottom: 0.5em;
|
31
|
+
|
32
|
+
@media (min-width: 35.5em) {
|
33
|
+
margin-bottom: 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
a {
|
37
|
+
color: #777777;
|
38
|
+
|
39
|
+
&:hover {
|
40
|
+
text-decoration: underline;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,222 @@
|
|
1
|
+
* {
|
2
|
+
font-family: "Exo 2", "Helvetica", "Arial", sans-serif;
|
3
|
+
}
|
4
|
+
|
5
|
+
body {
|
6
|
+
background-color: #fafafa;
|
7
|
+
}
|
8
|
+
|
9
|
+
a {
|
10
|
+
color: darken($link-color, 10%);
|
11
|
+
text-decoration: none;
|
12
|
+
|
13
|
+
&:hover {
|
14
|
+
color: $link-color;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
h1, h2, h3 {
|
19
|
+
font-family: "Exo 2", "Helvetica", "Arial", sans-serif;
|
20
|
+
text-transform: uppercase;
|
21
|
+
font-weight: 700;
|
22
|
+
}
|
23
|
+
|
24
|
+
h1 {
|
25
|
+
font-size: 1.75em;
|
26
|
+
margin: 0.7em 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
h2 {
|
30
|
+
font-size: 1.6em;
|
31
|
+
margin: 0.7em 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
h3 {
|
35
|
+
font-size: 1.4em;
|
36
|
+
}
|
37
|
+
|
38
|
+
h4, h5 {
|
39
|
+
text-transform: uppercase;
|
40
|
+
}
|
41
|
+
|
42
|
+
h4, h5, h6 {
|
43
|
+
font-family: "Exo 2", "Helvetica", "Arial", sans-serif;
|
44
|
+
}
|
45
|
+
|
46
|
+
.pure-form {
|
47
|
+
input[type="text"],
|
48
|
+
input[type="password"],
|
49
|
+
input[type="email"],
|
50
|
+
input[type="url"],
|
51
|
+
input[type="date"],
|
52
|
+
input[type="month"],
|
53
|
+
input[type="time"],
|
54
|
+
input[type="datetime"],
|
55
|
+
input[type="datetime-local"],
|
56
|
+
input[type="week"],
|
57
|
+
input[type="number"],
|
58
|
+
input[type="search"],
|
59
|
+
input[type="tel"],
|
60
|
+
input[type="color"],
|
61
|
+
textarea,
|
62
|
+
select {
|
63
|
+
font-family: "Exo 2", "Helvetica", "Arial", sans-serif;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
.pure-g [class*="pure-u"] {
|
68
|
+
font-family: "Exo 2", "Helvetica", "Arial", sans-serif;
|
69
|
+
}
|
70
|
+
|
71
|
+
#wrap {
|
72
|
+
position: relative;
|
73
|
+
padding-top: 106px;
|
74
|
+
padding-left: 0;
|
75
|
+
left: 0;
|
76
|
+
-webkit-transition: all 0.1s linear;
|
77
|
+
-moz-transition: all 0.1s linear;
|
78
|
+
-ms-transition: all 0.1s linear;
|
79
|
+
-o-transition: all 0.1s linear;
|
80
|
+
transition: all 0.1s linear;
|
81
|
+
}
|
82
|
+
|
83
|
+
#main-header {
|
84
|
+
background: #272a2a;
|
85
|
+
position: fixed;
|
86
|
+
top: 0;
|
87
|
+
left: 0;
|
88
|
+
width: 100%;
|
89
|
+
z-index: 10;
|
90
|
+
-webkit-transition: all 0.1s linear;
|
91
|
+
-moz-transition: all 0.1s linear;
|
92
|
+
-ms-transition: all 0.1s linear;
|
93
|
+
-o-transition: all 0.1s linear;
|
94
|
+
transition: all 0.1s linear;
|
95
|
+
|
96
|
+
h1 {
|
97
|
+
margin: 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
.pure-menu-heading {
|
101
|
+
padding: 12px 0 9px 16px;
|
102
|
+
height: 46px;
|
103
|
+
font-weight: 400;
|
104
|
+
font-size: 120%;
|
105
|
+
float: left;
|
106
|
+
|
107
|
+
a {
|
108
|
+
color: #ffffff;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
.pure-menu-selected a {
|
113
|
+
color: white;
|
114
|
+
}
|
115
|
+
|
116
|
+
#account-menu {
|
117
|
+
ul {
|
118
|
+
float: right;
|
119
|
+
position: relative;
|
120
|
+
top: 6px;
|
121
|
+
right: 8px;
|
122
|
+
|
123
|
+
li {
|
124
|
+
color: #cccccc;
|
125
|
+
|
126
|
+
&.user-details {
|
127
|
+
padding: 0 1em;
|
128
|
+
}
|
129
|
+
|
130
|
+
&:last-child {
|
131
|
+
padding-right: 0;
|
132
|
+
|
133
|
+
a {
|
134
|
+
padding-right: 0;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
a {
|
139
|
+
color: #eeeeee;
|
140
|
+
}
|
141
|
+
|
142
|
+
a:hover, a:focus {
|
143
|
+
background: none;
|
144
|
+
border: none;
|
145
|
+
color: #ffffff;
|
146
|
+
}
|
147
|
+
|
148
|
+
.fa {
|
149
|
+
margin-right: 0.2em;
|
150
|
+
position: relative;
|
151
|
+
top: 1px;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
#wrap.no-header {
|
159
|
+
padding-top: 58px;
|
160
|
+
|
161
|
+
#main-header {
|
162
|
+
top: -48px;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
#wrap {
|
167
|
+
-webkit-transition: all 0.1s linear;
|
168
|
+
-moz-transition: all 0.1s linear;
|
169
|
+
-ms-transition: all 0.1s linear;
|
170
|
+
-o-transition: all 0.1s linear;
|
171
|
+
transition: all 0.1s linear;
|
172
|
+
}
|
173
|
+
|
174
|
+
#main {
|
175
|
+
padding-left: $base-font-size;
|
176
|
+
padding-right: $base-font-size;
|
177
|
+
padding-bottom: $base-font-size;
|
178
|
+
|
179
|
+
@media (min-width: 35.5em) {
|
180
|
+
padding-left: $base-font-size * 1.5;
|
181
|
+
padding-right: $base-font-size * 1.5;
|
182
|
+
}
|
183
|
+
|
184
|
+
@media (min-width: 64em) {
|
185
|
+
padding-left: $base-font-size * 2;
|
186
|
+
padding-right: $base-font-size * 2;
|
187
|
+
padding-bottom: $base-font-size * 1.5;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
#main-title {
|
192
|
+
background: #e4e4e4;
|
193
|
+
padding: $base-font-size * 0.5 $base-font-size;
|
194
|
+
margin-bottom: $base-font-size * 0.5;
|
195
|
+
margin-top: $base-font-size * 2;
|
196
|
+
border: 1px solid #dbdbdb;
|
197
|
+
|
198
|
+
h1 {
|
199
|
+
padding: 0;
|
200
|
+
margin: 0;
|
201
|
+
line-height: 1.1em;
|
202
|
+
float: left;
|
203
|
+
max-width: 100%;
|
204
|
+
overflow: hidden;
|
205
|
+
white-space: nowrap;
|
206
|
+
text-overflow: ellipsis;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
#main-content {
|
211
|
+
padding-top: 15px;
|
212
|
+
padding-bottom: 15px;
|
213
|
+
line-height: 1.6em;
|
214
|
+
}
|
215
|
+
|
216
|
+
#main-footer {
|
217
|
+
border-top: 1px solid #e5e5e5;
|
218
|
+
padding: 1em;
|
219
|
+
margin-top: 1em;
|
220
|
+
font-size: 14px;
|
221
|
+
color: #aaaaaa;
|
222
|
+
}
|