face_of_active_admin 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +21 -0
- data/app/assets/images/face_of_active_admin/logo.jpg +0 -0
- data/app/assets/javascripts/face_of_active_admin/base.js.coffee +34 -0
- data/app/assets/stylesheets/face_of_active_admin/_base.scss +38 -0
- data/app/assets/stylesheets/face_of_active_admin/_forms.scss +551 -0
- data/app/assets/stylesheets/face_of_active_admin/_header.scss +283 -0
- data/app/assets/stylesheets/face_of_active_admin/_mixins.scss +1 -0
- data/app/assets/stylesheets/face_of_active_admin/_typography.scss +250 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_batch_actions.scss +13 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_blank_slates.scss +32 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_breadcrumbs.scss +27 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_buttons.scss +16 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_ckeditor.scss +6 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_columns.scss +3 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_comments.scss +52 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_date_picker.scss +315 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_dropdown_menu.scss +161 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_flash_messages.scss +44 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_grid.scss +57 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_index_list.scss +12 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_init.scss +16 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_links.scss +8 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_modal_dialog.scss +67 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_nav.scss +64 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_pagination.scss +70 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_panels.scss +89 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_popovers.scss +124 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_scopes.scss +10 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_status_tags.scss +28 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_table_tools.scss +70 -0
- data/app/assets/stylesheets/face_of_active_admin/components/_tables.scss +305 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_all.scss +11 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_buttons.scss +71 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_gradients.scss +52 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_icons.scss +31 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_reset.scss +214 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_rounded.scss +42 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_sections.scss +38 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_select.scss +22 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_shadows.scss +21 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_utilities.scss +17 -0
- data/app/assets/stylesheets/face_of_active_admin/mixins/_variables.scss +69 -0
- data/app/assets/stylesheets/face_of_active_admin/pages/_logged_out.scss +96 -0
- data/app/assets/stylesheets/face_of_active_admin/print.scss +283 -0
- data/app/assets/stylesheets/face_of_active_admin/structure/_footer.scss +28 -0
- data/app/assets/stylesheets/face_of_active_admin/structure/_main_structure.scss +86 -0
- data/app/assets/stylesheets/face_of_active_admin/structure/_title_bar.scss +69 -0
- data/config/routes.rb +2 -0
- data/lib/face_of_active_admin/version.rb +3 -0
- data/lib/face_of_active_admin.rb +10 -0
- data/lib/generators/face_of_active_admin/variables/USAGE +8 -0
- data/lib/generators/face_of_active_admin/variables/variables_generator.rb +12 -0
- metadata +126 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 56d344859c2edf36901fab22af3442e6cbf42ce5
|
4
|
+
data.tar.gz: 93f04a463e4b04443e6e79e2ca0eddac35077cfc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7272273c107842fb981c0177b652ad8bef1f21d40923d41eb74978a9cdf6e95419b06b3879d6900ba873664b63630be2bda581266ea8c0681c562f0f93e422ad
|
7
|
+
data.tar.gz: 64f096a7cd9c1b166d91600fa887b070a24d942e5a1e8aa9446db521911a03c4e5665ae69f2cad7a6ef1aad5a5ab5adb3c8214d87b088f205b9379b487f8085c
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2016 KVOKKA
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'FaceOfActiveAdmin'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.MD')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
Bundler::GemHelper.install_tasks
|
21
|
+
|
Binary file
|
@@ -0,0 +1,34 @@
|
|
1
|
+
$(document).on 'ready page:load', ->
|
2
|
+
$(document).on 'focus', 'input.datepicker:not(.hasDatepicker)', ->
|
3
|
+
input = $(@)
|
4
|
+
|
5
|
+
# Only create datepickers in compatible browsers
|
6
|
+
return if input[0].type is 'date'
|
7
|
+
input.datepicker( "option", "dateFormat", "dd-mm-yy" );
|
8
|
+
# defaults = dateFormat: 'dd-mm-yy'
|
9
|
+
# options = input.data 'datepicker-options'
|
10
|
+
# input.datepicker $.extend(defaults, options)
|
11
|
+
|
12
|
+
datepickers = $('.datepicker')
|
13
|
+
$.each datepickers, (_, date) ->
|
14
|
+
date_attr = $(date).attr('value')
|
15
|
+
return if date_attr == undefined
|
16
|
+
if date_attr.length != 0
|
17
|
+
year = date_attr.slice(0,4)
|
18
|
+
month = date_attr.slice(5,7)
|
19
|
+
day = date_attr.slice(8,10)
|
20
|
+
date.value = (day+'-'+month+'-'+year)
|
21
|
+
|
22
|
+
|
23
|
+
change_to_icon('.view_link', 'eye')
|
24
|
+
change_to_icon('.delete_link', 'trash')
|
25
|
+
change_to_icon('.edit_link', 'pencil')
|
26
|
+
|
27
|
+
|
28
|
+
# klass is class of group, icon_klass is icon name from font awesome
|
29
|
+
change_to_icon = (klass, icon_name) ->
|
30
|
+
buttons = $(klass)
|
31
|
+
$.each buttons, (_, button) ->
|
32
|
+
button.text = ''
|
33
|
+
$(button).addClass(klass+'_image fa fa-'+icon_name)
|
34
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/* Active Admin CSS */
|
2
|
+
// Reset Away!
|
3
|
+
@include global-reset;
|
4
|
+
|
5
|
+
@import "font-awesome-sprockets";
|
6
|
+
@import "font-awesome";
|
7
|
+
|
8
|
+
// Partials
|
9
|
+
@import "face_of_active_admin/typography";
|
10
|
+
@import "face_of_active_admin/header";
|
11
|
+
@import "face_of_active_admin/forms";
|
12
|
+
@import "face_of_active_admin/components/init";
|
13
|
+
@import "face_of_active_admin/components/comments";
|
14
|
+
@import "face_of_active_admin/components/flash_messages";
|
15
|
+
@import "face_of_active_admin/components/date_picker";
|
16
|
+
@import "face_of_active_admin/components/popovers";
|
17
|
+
@import "face_of_active_admin/components/tables";
|
18
|
+
@import "face_of_active_admin/components/batch_actions";
|
19
|
+
@import "face_of_active_admin/components/modal_dialog";
|
20
|
+
@import "face_of_active_admin/components/blank_slates";
|
21
|
+
@import "face_of_active_admin/components/breadcrumbs";
|
22
|
+
@import "face_of_active_admin/components/dropdown_menu";
|
23
|
+
@import "face_of_active_admin/components/buttons";
|
24
|
+
@import "face_of_active_admin/components/grid";
|
25
|
+
@import "face_of_active_admin/components/nav";
|
26
|
+
@import "face_of_active_admin/components/links";
|
27
|
+
@import "face_of_active_admin/components/pagination";
|
28
|
+
@import "face_of_active_admin/components/panels";
|
29
|
+
@import "face_of_active_admin/components/columns";
|
30
|
+
@import "face_of_active_admin/components/scopes";
|
31
|
+
@import "face_of_active_admin/components/status_tags";
|
32
|
+
@import "face_of_active_admin/components/table_tools";
|
33
|
+
@import "face_of_active_admin/components/index_list";
|
34
|
+
@import "face_of_active_admin/components/ckeditor";
|
35
|
+
@import "face_of_active_admin/pages/logged_out";
|
36
|
+
@import "face_of_active_admin/structure/footer";
|
37
|
+
@import "face_of_active_admin/structure/main_structure";
|
38
|
+
@import "face_of_active_admin/structure/title_bar";
|
@@ -0,0 +1,551 @@
|
|
1
|
+
// -------------------------------------- Active Admin Forms
|
2
|
+
form {
|
3
|
+
/* Reset margins & Padding */
|
4
|
+
ul, ol, li, fieldset, legend, input, textarea, select, p {
|
5
|
+
margin: 0;
|
6
|
+
padding: 0;
|
7
|
+
}
|
8
|
+
|
9
|
+
ol, ul {
|
10
|
+
list-style: none;
|
11
|
+
}
|
12
|
+
|
13
|
+
fieldset {
|
14
|
+
border: 0;
|
15
|
+
padding: 10px 0;
|
16
|
+
margin-bottom: 20px;
|
17
|
+
|
18
|
+
&.inputs {
|
19
|
+
fieldset.inputs {
|
20
|
+
background: #fff;
|
21
|
+
border: 1px solid #d3d8dc;
|
22
|
+
position: relative;
|
23
|
+
padding-top: 50px;
|
24
|
+
|
25
|
+
@include no-shadow;
|
26
|
+
|
27
|
+
@include rounded(0);
|
28
|
+
|
29
|
+
legend {
|
30
|
+
border-bottom: 1px solid #d3d8dc;
|
31
|
+
position: absolute;
|
32
|
+
top: 0;
|
33
|
+
|
34
|
+
span {
|
35
|
+
background: #f0f4f5;
|
36
|
+
color: #5E6469;
|
37
|
+
border: none;
|
38
|
+
margin: 0;
|
39
|
+
padding: 8px 15px;
|
40
|
+
|
41
|
+
@include no-shadow;
|
42
|
+
|
43
|
+
@include rounded(0);
|
44
|
+
|
45
|
+
text-shadow: none;
|
46
|
+
font-weight: bold;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
ol > li {
|
51
|
+
label {
|
52
|
+
padding-top: 7px;
|
53
|
+
text-transform: uppercase;
|
54
|
+
}
|
55
|
+
|
56
|
+
&.boolean label {
|
57
|
+
padding-top: 0px;
|
58
|
+
margin-bottom: 15px;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
legend {
|
65
|
+
width: 100%;
|
66
|
+
|
67
|
+
span {
|
68
|
+
display: block;
|
69
|
+
|
70
|
+
@include section-header;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
ol > li {
|
75
|
+
padding: 10px;
|
76
|
+
|
77
|
+
label {
|
78
|
+
display: block;
|
79
|
+
width: 20%;
|
80
|
+
float: left;
|
81
|
+
font-size: 1.0em;
|
82
|
+
font-weight: bold;
|
83
|
+
color: $form-label-color;
|
84
|
+
|
85
|
+
abbr {
|
86
|
+
border: none;
|
87
|
+
color: $required-field-marker-color;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
ol > li.has_many_container {
|
93
|
+
padding: 20px 10px;
|
94
|
+
|
95
|
+
h3 {
|
96
|
+
font-size: 12px;
|
97
|
+
font-weight: bold;
|
98
|
+
}
|
99
|
+
|
100
|
+
.has_many_fields {
|
101
|
+
margin: 10px 0;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
ol > li > li label {
|
106
|
+
line-height: 100%;
|
107
|
+
padding-top: 0;
|
108
|
+
|
109
|
+
input {
|
110
|
+
line-height: 100%;
|
111
|
+
vertical-align: middle;
|
112
|
+
margin-top: -0.1em;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
// relative so the absolutely-positioned handle will fit
|
118
|
+
.has_many_fields {
|
119
|
+
position: relative;
|
120
|
+
}
|
121
|
+
|
122
|
+
.has_many_container {
|
123
|
+
.handle {
|
124
|
+
position: absolute;
|
125
|
+
|
126
|
+
@include icon-size(3em);
|
127
|
+
|
128
|
+
top: calc(50% - 3em / 2);
|
129
|
+
right: 2px;
|
130
|
+
padding: 0;
|
131
|
+
cursor: move;
|
132
|
+
}
|
133
|
+
|
134
|
+
// If a sortable is nested in a sortable, give the parent handle space!
|
135
|
+
&.ui-sortable .has_many_container {
|
136
|
+
margin-right: 2em;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
.ui-sortable {
|
141
|
+
// give the handle space!
|
142
|
+
input[type=text], input[type=password], input[type=email], input[type=number], input[type=url], input[type=tel], textarea {
|
143
|
+
width: calc(80% - #{$text-input-total-padding} - 2em - 1px);
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
/* Nested Fieldsets and Legends */
|
148
|
+
|
149
|
+
fieldset > ol > li {
|
150
|
+
fieldset {
|
151
|
+
position: relative;
|
152
|
+
padding: 0;
|
153
|
+
margin-bottom: 0;
|
154
|
+
|
155
|
+
legend {
|
156
|
+
position: absolute;
|
157
|
+
width: 95%;
|
158
|
+
padding-top: 0.1em;
|
159
|
+
left: 0px;
|
160
|
+
font-size: 100%;
|
161
|
+
font-weight: normal;
|
162
|
+
|
163
|
+
span {
|
164
|
+
position: absolute;
|
165
|
+
}
|
166
|
+
|
167
|
+
&.label label {
|
168
|
+
position: absolute;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
&:not(.has_many_fields) ol {
|
173
|
+
float: left;
|
174
|
+
width: 74%;
|
175
|
+
margin: 0;
|
176
|
+
padding: 0 0 0 20%;
|
177
|
+
|
178
|
+
li {
|
179
|
+
padding: 0;
|
180
|
+
border: 0;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
&.has_many_fields ol {
|
185
|
+
float: left;
|
186
|
+
width: 100%;
|
187
|
+
margin: 0;
|
188
|
+
padding: 0;
|
189
|
+
}
|
190
|
+
|
191
|
+
ol li {
|
192
|
+
clear: both;
|
193
|
+
|
194
|
+
select {
|
195
|
+
margin-top: 6px;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
/* Text Fields */
|
202
|
+
input[type=text], input[type=password], input[type=email], input[type=number], input[type=url], input[type=tel], textarea {
|
203
|
+
width: calc(80% - #{$text-input-total-padding});
|
204
|
+
border: $border-width solid #c9d0d6;
|
205
|
+
|
206
|
+
@include rounded(0);
|
207
|
+
|
208
|
+
font-size: 0.95em;
|
209
|
+
font-family: $skinFontFamily;
|
210
|
+
outline: none;
|
211
|
+
padding: 5px 10px;
|
212
|
+
|
213
|
+
&:focus {
|
214
|
+
border: $border-width solid #99a2aa;
|
215
|
+
|
216
|
+
@include shadow(0, 0, 4px, #99a2aa);
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
// Selects
|
221
|
+
select {
|
222
|
+
width: 264px;
|
223
|
+
padding-left: 5px;
|
224
|
+
line-height: 1;
|
225
|
+
border: 1px solid #5e6469;
|
226
|
+
border-radius: 5px;
|
227
|
+
height: 30px;
|
228
|
+
|
229
|
+
@include select_arrow;
|
230
|
+
}
|
231
|
+
|
232
|
+
fieldset > ol > li {
|
233
|
+
/* Hints */
|
234
|
+
p.inline-hints {
|
235
|
+
font-size: 0.95em;
|
236
|
+
font-style: italic;
|
237
|
+
color: #666;
|
238
|
+
margin: 0.5em 0 0 20%;
|
239
|
+
}
|
240
|
+
|
241
|
+
/* Date and Time Fields */
|
242
|
+
&.date, &.time, &.datetime, &.date_select {
|
243
|
+
fieldset ol li {
|
244
|
+
float: left;
|
245
|
+
width: auto;
|
246
|
+
margin: 0 0.5em 0 0;
|
247
|
+
|
248
|
+
label {
|
249
|
+
display: none;
|
250
|
+
}
|
251
|
+
|
252
|
+
input {
|
253
|
+
display: inline;
|
254
|
+
margin: 0;
|
255
|
+
padding: 0;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
}
|
259
|
+
|
260
|
+
/* Check Boxes or Radio fields */
|
261
|
+
&.check_boxes, &.radio {
|
262
|
+
fieldset ol {
|
263
|
+
margin-bottom: -0.6em;
|
264
|
+
|
265
|
+
li {
|
266
|
+
margin: 0.1em 0 0.5em 0;
|
267
|
+
|
268
|
+
label {
|
269
|
+
float: none;
|
270
|
+
width: 100%;
|
271
|
+
|
272
|
+
input {
|
273
|
+
margin-right: 0.2em;
|
274
|
+
}
|
275
|
+
}
|
276
|
+
}
|
277
|
+
}
|
278
|
+
}
|
279
|
+
|
280
|
+
/* Boolean Field */
|
281
|
+
&.boolean {
|
282
|
+
height: 1.1em;
|
283
|
+
|
284
|
+
label {
|
285
|
+
width: 80%;
|
286
|
+
padding-left: 20%;
|
287
|
+
padding-right: 10px;
|
288
|
+
text-transform: none !important;
|
289
|
+
font-weight: normal;
|
290
|
+
|
291
|
+
input {
|
292
|
+
margin: 0 0.5em 0 0.2em;
|
293
|
+
}
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
/* Hidden fields */
|
298
|
+
&.hidden {
|
299
|
+
padding: 0;
|
300
|
+
}
|
301
|
+
|
302
|
+
/* Errors */
|
303
|
+
p.inline-errors {
|
304
|
+
color: $error-color;
|
305
|
+
font-weight: bold;
|
306
|
+
margin: 0.3em 0 0 20%;
|
307
|
+
}
|
308
|
+
|
309
|
+
ul.errors {
|
310
|
+
color: $error-color;
|
311
|
+
margin: 0.5em 0 0 20%;
|
312
|
+
list-style: square;
|
313
|
+
|
314
|
+
li {
|
315
|
+
padding: 0;
|
316
|
+
border: none;
|
317
|
+
display: list-item;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
|
321
|
+
&.error {
|
322
|
+
input[type=text], input[type=password], input[type=email], input[type=number], input[type=url], input[type=tel], textarea {
|
323
|
+
border: $border-width solid $error-color;
|
324
|
+
}
|
325
|
+
}
|
326
|
+
}
|
327
|
+
|
328
|
+
/* semantic_errors */
|
329
|
+
ul.errors {
|
330
|
+
background: lighten($error-color, 60%);
|
331
|
+
|
332
|
+
@include rounded(4px);
|
333
|
+
|
334
|
+
color: $error-color;
|
335
|
+
font-weight: bold;
|
336
|
+
margin-bottom: 10px;
|
337
|
+
padding: 10px;
|
338
|
+
list-style: square;
|
339
|
+
|
340
|
+
li {
|
341
|
+
margin-left: 15px;
|
342
|
+
padding: 0;
|
343
|
+
border: none;
|
344
|
+
display: list-item;
|
345
|
+
}
|
346
|
+
}
|
347
|
+
|
348
|
+
/* Buttons */
|
349
|
+
|
350
|
+
input[type=submit] {
|
351
|
+
@include dark-button;
|
352
|
+
|
353
|
+
cursor: pointer;
|
354
|
+
transition: $link_transition_dutarion;
|
355
|
+
}
|
356
|
+
|
357
|
+
.buttons, .actions {
|
358
|
+
margin-top: 15px;
|
359
|
+
|
360
|
+
input[type=submit] {
|
361
|
+
margin-right: 10px;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
365
|
+
fieldset.buttons li, fieldset.actions li {
|
366
|
+
float: left;
|
367
|
+
padding: 0;
|
368
|
+
|
369
|
+
&.cancel {
|
370
|
+
a {
|
371
|
+
@include light-button;
|
372
|
+
|
373
|
+
@include icon(#777, 9px);
|
374
|
+
|
375
|
+
background: $main-background-color;
|
376
|
+
transition: $link_transition_dutarion;
|
377
|
+
|
378
|
+
@include no-shadow;
|
379
|
+
|
380
|
+
@include rounded(0);
|
381
|
+
|
382
|
+
text-shadow: none;
|
383
|
+
padding: 10px 20px;
|
384
|
+
color: #95a5a6;
|
385
|
+
|
386
|
+
&:hover {
|
387
|
+
background: lighten($body-background-color, 5%) !important;
|
388
|
+
}
|
389
|
+
}
|
390
|
+
}
|
391
|
+
}
|
392
|
+
|
393
|
+
.filter_form a.clear_filters_btn {
|
394
|
+
background: $body-background-color;
|
395
|
+
|
396
|
+
@include no-shadow;
|
397
|
+
|
398
|
+
@include rounded(0);
|
399
|
+
|
400
|
+
text-shadow: none;
|
401
|
+
padding: 11px 20px;
|
402
|
+
color: #95a5a6;
|
403
|
+
|
404
|
+
&:hover {
|
405
|
+
background: lighten($body-background-color, 5%) !important;
|
406
|
+
}
|
407
|
+
}
|
408
|
+
|
409
|
+
input[type=submit],
|
410
|
+
a.button,
|
411
|
+
a:link.button,
|
412
|
+
a:visited.button {
|
413
|
+
@include no-shadow;
|
414
|
+
|
415
|
+
@include rounded(0);
|
416
|
+
|
417
|
+
background: $skinActiveColor;
|
418
|
+
color: #fff;
|
419
|
+
border: none;
|
420
|
+
text-shadow: none;
|
421
|
+
padding: 11px 20px;
|
422
|
+
|
423
|
+
&:hover {
|
424
|
+
background: lighten($skinActiveColor, 10%);
|
425
|
+
}
|
426
|
+
}
|
427
|
+
}
|
428
|
+
|
429
|
+
// -------------------------------------- Sidebar Forms
|
430
|
+
|
431
|
+
$sidebar-inner-content-width: $sidebar-width - $section-padding * 2;
|
432
|
+
|
433
|
+
.sidebar_section {
|
434
|
+
label {
|
435
|
+
display: block;
|
436
|
+
text-transform: uppercase;
|
437
|
+
color: $form-label-color;
|
438
|
+
font-size: 0.9em;
|
439
|
+
font-weight: bold;
|
440
|
+
}
|
441
|
+
|
442
|
+
select {
|
443
|
+
width: $sidebar-inner-content-width;
|
444
|
+
padding-left: 5px;
|
445
|
+
line-height: 1;
|
446
|
+
border: 1px solid #5e6469;
|
447
|
+
border-radius: 5px;
|
448
|
+
height: 30px;
|
449
|
+
|
450
|
+
@include select_arrow;
|
451
|
+
}
|
452
|
+
|
453
|
+
input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], textarea {
|
454
|
+
width: $sidebar-inner-content-width - $text-input-horizontal-padding * 2;
|
455
|
+
}
|
456
|
+
}
|
457
|
+
|
458
|
+
// -------------------------------------- Filter Forms
|
459
|
+
|
460
|
+
$filter-field-seperator-width: 12px;
|
461
|
+
|
462
|
+
$side-by-side-filter-input-width: $sidebar-inner-content-width / 2 - $text-input-horizontal-padding * 2 - $filter-field-seperator-width;
|
463
|
+
$side-by-side-filter-select-width: $sidebar-inner-content-width / 2 - $filter-field-seperator-width;
|
464
|
+
|
465
|
+
$date-range-filter-input-right-padding: 27px;
|
466
|
+
$date-range-filter-input-horizontal-padding: $date-range-filter-input-right-padding + $text-input-horizontal-padding;
|
467
|
+
$date-range-filter-input-width: $sidebar-inner-content-width / 2 - $filter-field-seperator-width - $date-range-filter-input-horizontal-padding - 1px;
|
468
|
+
|
469
|
+
form.filter_form {
|
470
|
+
.filter_form_field {
|
471
|
+
margin-bottom: 10px;
|
472
|
+
clear: both;
|
473
|
+
|
474
|
+
&.filter_date_range input[type=text] {
|
475
|
+
background-position: 100% 4px;
|
476
|
+
}
|
477
|
+
|
478
|
+
&.select_and_search {
|
479
|
+
input[type=text] {
|
480
|
+
margin-left: $filter-field-seperator-width + 4;
|
481
|
+
width: $side-by-side-filter-input-width;
|
482
|
+
}
|
483
|
+
|
484
|
+
select {
|
485
|
+
width: $side-by-side-filter-select-width;
|
486
|
+
padding-left: 5px;
|
487
|
+
line-height: 1;
|
488
|
+
border: 1px solid #5e6469;
|
489
|
+
border-radius: 5px;
|
490
|
+
height: 30px;
|
491
|
+
|
492
|
+
@include select_arrow;
|
493
|
+
}
|
494
|
+
}
|
495
|
+
|
496
|
+
&.filter_check_boxes {
|
497
|
+
label {
|
498
|
+
margin-bottom: 3px;
|
499
|
+
}
|
500
|
+
|
501
|
+
fieldset {
|
502
|
+
margin-bottom: 0px;
|
503
|
+
padding-bottom: 0px;
|
504
|
+
}
|
505
|
+
|
506
|
+
.check_boxes_wrapper label {
|
507
|
+
font-weight: normal;
|
508
|
+
margin-bottom: 3px;
|
509
|
+
text-transform: none;
|
510
|
+
font-size: 1.0em;
|
511
|
+
|
512
|
+
input {
|
513
|
+
vertical-align: baseline;
|
514
|
+
}
|
515
|
+
}
|
516
|
+
}
|
517
|
+
|
518
|
+
&.filter_date_range {
|
519
|
+
.seperator {
|
520
|
+
display: inline-block;
|
521
|
+
text-align: center;
|
522
|
+
width: $filter-field-seperator-width;
|
523
|
+
}
|
524
|
+
|
525
|
+
input[type=text] {
|
526
|
+
background-image: none;
|
527
|
+
padding-right: $date-range-filter-input-right-padding;
|
528
|
+
width: $date-range-filter-input-width;
|
529
|
+
}
|
530
|
+
|
531
|
+
label {
|
532
|
+
&::before {
|
533
|
+
font-family: 'FontAwesome';
|
534
|
+
color: $skinActiveColor;
|
535
|
+
position: relative;
|
536
|
+
left: -5px;
|
537
|
+
content: "\f073";
|
538
|
+
font-size: 1.5em;
|
539
|
+
}
|
540
|
+
}
|
541
|
+
}
|
542
|
+
}
|
543
|
+
|
544
|
+
a.clear_filters_btn {
|
545
|
+
@include light-button;
|
546
|
+
|
547
|
+
@include rounded(0);
|
548
|
+
|
549
|
+
padding: 11px 20px;
|
550
|
+
}
|
551
|
+
}
|