trusty-cms 4.0.1 → 4.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -3
- data/Gemfile.lock +106 -106
- data/Rakefile +7 -7
- data/app/assets/images/admin/spinner.gif +0 -0
- data/app/assets/javascripts/admin.js +3 -0
- data/app/assets/javascripts/admin/more-or-less.js +2 -2
- data/app/assets/javascripts/admin/tabcontrol.js.erb +1 -2
- data/app/assets/stylesheets/admin/_base.scss +22 -6
- data/app/assets/stylesheets/admin/_multi_site_main.scss +28 -29
- data/app/assets/stylesheets/admin/_reset.scss +5 -4
- data/app/assets/stylesheets/admin/_site_chooser.scss +44 -69
- data/app/assets/stylesheets/admin/assets.scss +138 -141
- data/app/assets/stylesheets/admin/main.scss +10 -12
- data/app/assets/stylesheets/admin/modules/_boxes.scss +0 -3
- data/app/assets/stylesheets/admin/modules/_buttons.scss +30 -0
- data/app/assets/stylesheets/admin/modules/_links.scss +1 -1
- data/app/assets/stylesheets/admin/partials/_actions.scss +29 -46
- data/app/assets/stylesheets/admin/partials/_avatars.scss +3 -2
- data/app/assets/stylesheets/admin/partials/_content.scss +15 -38
- data/app/assets/stylesheets/admin/partials/_dateinput.scss +23 -14
- data/app/assets/stylesheets/admin/partials/_drawer.scss +78 -0
- data/app/assets/stylesheets/admin/partials/_dropdown.scss +9 -12
- data/app/assets/stylesheets/admin/partials/_footer.scss +4 -3
- data/app/assets/stylesheets/admin/partials/_forms.scss +64 -491
- data/app/assets/stylesheets/admin/partials/_header.scss +9 -118
- data/app/assets/stylesheets/admin/partials/_layout.scss +26 -2
- data/app/assets/stylesheets/admin/partials/_login_form.scss +28 -0
- data/app/assets/stylesheets/admin/partials/_messages.scss +10 -5
- data/app/assets/stylesheets/admin/partials/_popup.scss +61 -50
- data/app/assets/stylesheets/admin/partials/_preferences.scss +37 -0
- data/app/assets/stylesheets/admin/partials/_sidebar.scss +55 -0
- data/app/assets/stylesheets/admin/partials/_tabcontrol.scss +24 -36
- data/app/assets/stylesheets/admin/partials/{_index.scss → _table.scss} +53 -84
- data/app/assets/stylesheets/admin/partials/_toolbar.scss +11 -6
- data/app/assets/stylesheets/admin/partials/_treetable.scss +1 -71
- data/app/assets/stylesheets/admin/partials/_typography.scss +30 -55
- data/app/assets/stylesheets/admin/partials/_validations.scss +6 -5
- data/app/assets/stylesheets/rad_social/rad_screen.scss +65 -64
- data/app/controllers/admin/assets_controller.rb +21 -31
- data/app/controllers/admin/configuration_controller.rb +9 -11
- data/app/controllers/admin/extensions_controller.rb +3 -3
- data/app/controllers/admin/layouts_controller.rb +3 -4
- data/app/controllers/admin/page_attachments_controller.rb +5 -5
- data/app/controllers/admin/page_fields_controller.rb +3 -4
- data/app/controllers/admin/page_parts_controller.rb +4 -5
- data/app/controllers/admin/pages_controller.rb +55 -56
- data/app/controllers/admin/references_controller.rb +1 -1
- data/app/controllers/admin/resource_controller.rb +132 -128
- data/app/controllers/admin/sites_controller.rb +4 -4
- data/app/controllers/admin/snippets_controller.rb +3 -4
- data/app/controllers/admin/users_controller.rb +16 -16
- data/app/controllers/application_controller.rb +47 -48
- data/app/controllers/site_controller.rb +51 -48
- data/app/controllers/social_mailer_controller.rb +13 -16
- data/app/helpers/admin/configuration_helper.rb +19 -20
- data/app/helpers/admin/layouts_helper.rb +0 -1
- data/app/helpers/admin/node_helper.rb +27 -24
- data/app/helpers/admin/pages_helper.rb +2 -2
- data/app/helpers/admin/preferences_helper.rb +0 -1
- data/app/helpers/admin/references_helper.rb +9 -10
- data/app/helpers/admin/regions_helper.rb +3 -3
- data/app/helpers/application_helper.rb +34 -35
- data/app/helpers/rad_social_helper.rb +8 -11
- data/app/helpers/scoped_helper.rb +1 -3
- data/app/helpers/sites_helper.rb +4 -4
- data/app/mailers/devise_mailer.rb +3 -4
- data/app/mailers/rad_social_mailer.rb +8 -8
- data/app/models/asset.rb +62 -63
- data/app/models/asset_type.rb +38 -39
- data/app/models/deprecated_tags.rb +3 -4
- data/app/models/file_not_found_page.rb +1 -3
- data/app/models/haml_filter.rb +1 -1
- data/app/models/layout.rb +4 -5
- data/app/models/legacy_user.rb +2 -2
- data/app/models/menu_renderer.rb +16 -18
- data/app/models/page.rb +96 -93
- data/app/models/page_attachment.rb +1 -2
- data/app/models/page_context.rb +11 -12
- data/app/models/page_part.rb +3 -4
- data/app/models/rails_page.rb +10 -12
- data/app/models/site.rb +22 -21
- data/app/models/snippet.rb +6 -8
- data/app/models/snippet_finder.rb +3 -3
- data/app/models/snippet_tags.rb +4 -4
- data/app/models/standard_tags.rb +258 -252
- data/app/models/status.rb +8 -8
- data/app/models/trusty_cms/config.rb +25 -25
- data/app/models/trusty_cms/page_response_cache_director.rb +2 -3
- data/app/models/user.rb +15 -14
- data/app/models/user_action_observer.rb +3 -3
- data/app/users/_choose_site.html.haml +3 -7
- data/app/views/admin/assets/_form.html.haml +2 -1
- data/app/views/admin/assets/_search.html.haml +2 -1
- data/app/views/admin/assets/edit.html.haml +2 -10
- data/app/views/admin/assets/index.html.haml +4 -2
- data/app/views/admin/assets/new.html.haml +4 -8
- data/app/views/admin/assets/remove.html.haml +2 -1
- data/app/views/admin/configuration/edit.html.haml +7 -7
- data/app/views/admin/configuration/show.html.haml +6 -8
- data/app/views/admin/layouts/_choose_site.html.haml +2 -3
- data/app/views/admin/layouts/_form.html.haml +13 -12
- data/app/views/admin/layouts/_site_chooser.html.haml +2 -2
- data/app/views/admin/layouts/index.html.haml +11 -4
- data/app/views/admin/layouts/remove.html.haml +6 -5
- data/app/views/admin/page_attachments/_attachment.html.haml +2 -2
- data/app/views/admin/page_fields/_page_field.html.haml +3 -3
- data/app/views/admin/page_parts/_page_part.html.haml +5 -6
- data/app/views/admin/pages/_asset_popups.html.haml +15 -16
- data/app/views/admin/pages/_assets.html.haml +8 -7
- data/app/views/admin/pages/_fields.html.haml +16 -13
- data/app/views/admin/pages/_node.html.haml +3 -3
- data/app/views/admin/pages/_popups.html.haml +11 -11
- data/app/views/admin/pages/edit.html.haml +2 -2
- data/app/views/admin/pages/index.html.haml +5 -2
- data/app/views/admin/pages/new.html.haml +3 -3
- data/app/views/admin/pages/remove.html.haml +4 -3
- data/app/views/admin/preferences/edit.html.haml +5 -5
- data/app/views/admin/references/filters.haml +1 -1
- data/app/views/admin/references/tags.haml +3 -3
- data/app/views/admin/removed/_assets_bucket.html.haml +3 -3
- data/app/views/admin/removed/_assets_container.html.haml +18 -18
- data/app/views/admin/removed/_bucket.html.haml +1 -1
- data/app/views/admin/removed/_bucket_asset.html.haml +3 -3
- data/app/views/admin/removed/_show_bucket_link.html.haml +1 -1
- data/app/views/admin/removed/_upload_to_page.html.haml +5 -5
- data/app/views/admin/sites/_form.haml +18 -18
- data/app/views/admin/sites/edit.haml +1 -1
- data/app/views/admin/sites/index.haml +8 -4
- data/app/views/admin/sites/new.haml +1 -1
- data/app/views/admin/snippets/_choose_site.html.haml +4 -5
- data/app/views/admin/snippets/_form.html.haml +8 -9
- data/app/views/admin/snippets/edit.html.haml +1 -1
- data/app/views/admin/snippets/index.html.haml +11 -4
- data/app/views/admin/snippets/new.html.haml +1 -1
- data/app/views/admin/snippets/remove.html.haml +7 -6
- data/app/views/admin/users/_avatar.html.haml +2 -2
- data/app/views/admin/users/_choose_site.html.haml +3 -7
- data/app/views/admin/users/_form.html.haml +18 -21
- data/app/views/admin/users/_password_fields.html.haml +6 -6
- data/app/views/admin/users/index.html.haml +13 -6
- data/app/views/admin/users/remove.html.haml +4 -4
- data/app/views/admin/welcome/login.html.haml +8 -8
- data/app/views/devise/passwords/edit.html.haml +6 -6
- data/app/views/devise/passwords/new.html.haml +3 -3
- data/app/views/devise/sessions/new.html.haml +8 -8
- data/app/views/devise/shared/_links.html.haml +2 -2
- data/app/views/layouts/application.html.haml +24 -19
- data/app/views/rad_social_mailer/social_mail_form.html.haml +15 -15
- data/app/views/widget/_email_form.html.haml +14 -14
- data/app/views/widget/_horizontal_widget.html.haml +5 -5
- data/bin/rails +4 -4
- data/bin/trusty_cms +3 -5
- data/config.ru +1 -1
- data/config/application.rb +14 -15
- data/config/boot.rb +1 -2
- data/config/environment.rb +1 -1
- data/config/environments/production.rb +0 -1
- data/config/environments/test.rb +1 -2
- data/config/initializers/devise.rb +1 -1
- data/config/initializers/kraken.rb +2 -2
- data/config/initializers/tmp.rb +1 -1
- data/config/initializers/trusty_cms_config.rb +48 -48
- data/config/locales/en.yml +8 -8
- data/config/routes.rb +6 -7
- data/lib/active_record_extensions/active_record_extensions.rb +1 -2
- data/lib/annotatable.rb +3 -5
- data/lib/configuration_extensions/configuration_extensions.rb +1 -1
- data/lib/inheritable_class_attributes.rb +13 -9
- data/lib/login_system.rb +73 -73
- data/lib/method_observer.rb +13 -12
- data/lib/ostruct.rb +7 -10
- data/lib/simpleton.rb +0 -4
- data/lib/string_extensions/string_extensions.rb +3 -3
- data/lib/symbol_extensions/symbol_extensions.rb +1 -1
- data/lib/tasks/database.rake +28 -28
- data/lib/tasks/extensions.rake +18 -18
- data/lib/tasks/framework.rake +68 -68
- data/lib/tasks/radiant_config.rake +4 -4
- data/lib/tasks/snippets_extension_tasks.rake +11 -11
- data/lib/tasks/translate.rake +14 -14
- data/lib/tasks/upgrade_to_devise.rake +1 -1
- data/lib/translation_support.rb +22 -22
- data/lib/trusty_cms.rb +2 -2
- data/lib/trusty_cms/admin_ui.rb +19 -16
- data/lib/trusty_cms/admin_ui/region_partials.rb +4 -3
- data/lib/trusty_cms/admin_ui/region_set.rb +4 -5
- data/lib/trusty_cms/available_locales.rb +2 -4
- data/lib/trusty_cms/config/definition.rb +11 -8
- data/lib/trusty_cms/engine.rb +14 -14
- data/lib/trusty_cms/extension.rb +14 -16
- data/lib/trusty_cms/extension_loader.rb +6 -6
- data/lib/trusty_cms/extension_migrator.rb +42 -41
- data/lib/trusty_cms/extension_path.rb +20 -19
- data/lib/trusty_cms/initializer.rb +5 -8
- data/lib/trusty_cms/pagination/controller.rb +7 -10
- data/lib/trusty_cms/pagination/link_renderer.rb +2 -2
- data/lib/trusty_cms/resource_responses.rb +3 -3
- data/lib/trusty_cms/setup.rb +130 -132
- data/lib/trusty_cms/taggable.rb +19 -22
- data/lib/trusty_cms/task_support.rb +9 -6
- data/package.json +10 -2
- data/public/dispatch.fcgi +1 -1
- data/public/dispatch.rb +2 -2
- data/script/extension +1 -1
- data/script/rails +2 -2
- data/spec/dummy/package.json +1 -1
- data/spec/dummy/yarn.lock +3 -3
- data/trusty_cms.gemspec +25 -25
- data/vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb +1 -1
- data/yarn.lock +1992 -4
- metadata +54 -42
- data/app/assets/stylesheets/admin/partials/_deprecated.scss +0 -65
- data/app/assets/stylesheets/admin/partials/_jquery-ui-structure.scss +0 -258
- data/app/assets/stylesheets/admin/partials/_jquery-ui-theme.scss +0 -410
- data/app/assets/stylesheets/admin/partials/_jquery-ui.scss +0 -650
- data/app/views/admin/assets/refresh.html.haml +0 -14
@@ -33,8 +33,7 @@
|
|
33
33
|
}
|
34
34
|
|
35
35
|
TabControl.addTab = function(tabText) {
|
36
|
-
|
37
|
-
$('div#tab_control .tabs').append("<a id='tab_" + tabText + "' href='#' class='tab'><span>" + tabText + "</span><img src='" + relative_url_root + "<%= asset_path('admin/tab_close.png') %>' class='close' alt='Remove part' title='Remove part' /></a>");
|
36
|
+
$('div#tab_control .tabs').append("<a id='tab_" + tabText + "' href='#' class='tab'><span>" + tabText + "</span><i class='fas fa-times-circle close' title='Remove part'></i></a>");
|
38
37
|
var $page_part_index = $('#page_part_index_field');
|
39
38
|
$page_part_index.val(parseInt($page_part_index.val()) + 1);
|
40
39
|
}
|
@@ -1,16 +1,32 @@
|
|
1
1
|
// Fonts
|
2
|
-
$base-font-family: "
|
3
|
-
$base-font-size:
|
2
|
+
$base-font-family: "Open Sans", sans-serif;
|
3
|
+
$base-font-size: 16px;
|
4
|
+
|
5
|
+
//colors
|
6
|
+
$white: #FFFFFF;
|
7
|
+
$light-blue: #e0f0ff;
|
8
|
+
$dark-blue: #3C3A4B;
|
9
|
+
$darker-blue: #292733;
|
10
|
+
|
11
|
+
$dark-gray: #3A3A3A;
|
12
|
+
$gray: #919191;
|
13
|
+
$light-gray: #F3F3F4;
|
14
|
+
|
15
|
+
$dark-red: #8C0E19;
|
16
|
+
$red: #BA1321;
|
17
|
+
$light-red: #f3c2c2;
|
18
|
+
|
4
19
|
|
5
20
|
// Links
|
6
|
-
$base-link-color
|
7
|
-
$alt-link-color:
|
21
|
+
$base-link-color: #3c3a4b;
|
22
|
+
$alt-link-color: #8C0E19;
|
8
23
|
|
9
24
|
// Header
|
10
|
-
$header: #
|
11
|
-
$primary-tab:
|
25
|
+
$header: #3c3a4b !default;
|
26
|
+
$primary-tab: #3c3a4b;
|
12
27
|
$primary-tab-current: white;
|
13
28
|
|
14
29
|
// Modules
|
15
30
|
@import "modules/links";
|
16
31
|
@import "modules/boxes";
|
32
|
+
@import "modules/buttons";
|
@@ -5,13 +5,14 @@ $font_2: Times New Roman;
|
|
5
5
|
$font_3: Times;
|
6
6
|
$font_4: serif;
|
7
7
|
|
8
|
-
|
8
|
+
.content {
|
9
9
|
table.index {
|
10
10
|
tr.node {
|
11
11
|
td {
|
12
12
|
padding: .5em;
|
13
13
|
}
|
14
14
|
}
|
15
|
+
|
15
16
|
&.node {
|
16
17
|
&.site {
|
17
18
|
small {
|
@@ -21,28 +22,45 @@ $font_4: serif;
|
|
21
22
|
font-weight: normal;
|
22
23
|
margin-left: .5em;
|
23
24
|
}
|
25
|
+
|
24
26
|
a {
|
25
27
|
&:visited {
|
28
|
+
color: black;
|
26
29
|
font-size: 115%;
|
27
30
|
font-weight: bold;
|
28
|
-
color: black;
|
29
31
|
text-decoration: none;
|
30
32
|
}
|
31
33
|
}
|
32
34
|
}
|
33
35
|
}
|
34
36
|
}
|
37
|
+
|
35
38
|
.form-area {
|
36
39
|
p {
|
37
40
|
&.domain {
|
38
41
|
float: left;
|
39
|
-
width: 40%;
|
40
42
|
margin: 1em 1em 0 0;
|
41
43
|
overflow: hidden;
|
44
|
+
width: 40%;
|
45
|
+
|
46
|
+
label {
|
47
|
+
display: block;
|
48
|
+
position: relative;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
&.homepage {
|
53
|
+
float: right;
|
54
|
+
margin: 1em 0 0;
|
55
|
+
overflow: hidden;
|
56
|
+
width: 16%;
|
57
|
+
|
42
58
|
label {
|
43
|
-
|
59
|
+
display: block;
|
60
|
+
position: relative;
|
44
61
|
}
|
45
62
|
}
|
63
|
+
|
46
64
|
&.subtitle {
|
47
65
|
margin: 1em 0 0 0;
|
48
66
|
}
|
@@ -50,28 +68,9 @@ $font_4: serif;
|
|
50
68
|
}
|
51
69
|
}
|
52
70
|
|
53
|
-
|
54
|
-
#content {
|
55
|
-
div.form-area p.homepage {
|
56
|
-
float: right;
|
57
|
-
width: 16%;
|
58
|
-
margin: 1em 0 0;
|
59
|
-
overflow: hidden;
|
60
|
-
}
|
61
|
-
.form-area p {
|
62
|
-
&.domain label {
|
63
|
-
display: block;
|
64
|
-
position: relative;
|
65
|
-
}
|
66
|
-
&.homepage label {
|
67
|
-
display: block;
|
68
|
-
position: relative;
|
69
|
-
}
|
70
|
-
}
|
71
|
-
}
|
72
71
|
p.formnote {
|
73
|
-
|
74
|
-
|
72
|
+
clear: both;
|
73
|
+
padding: 2em 0;
|
75
74
|
}
|
76
75
|
|
77
76
|
|
@@ -79,7 +78,7 @@ p.formnote {
|
|
79
78
|
//original selectors
|
80
79
|
//#content div.form-area p.domain .textbox, #content div.form-area p.homepage .textbox, #content div.form-area p.subtitle .textbox, #content div.form-area p.subtitle select
|
81
80
|
%extend_1 {
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
}
|
81
|
+
font-family: $font_0, $font_1, $font_2, $font_3, $font_4;
|
82
|
+
font-size: 140%;
|
83
|
+
width: 100%;
|
84
|
+
}
|
@@ -5,17 +5,17 @@ del, dfn, em, img, ins, kbd, q, s, samp,
|
|
5
5
|
small, strike, strong, sub, sup, tt, var,
|
6
6
|
b, u, i, center,
|
7
7
|
dl, dt, dd, ol, ul, li,
|
8
|
-
fieldset, form, label, legend,
|
8
|
+
fieldset, form, label, legend, input,
|
9
9
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
10
10
|
article, aside, canvas, details, embed,
|
11
11
|
figure, figcaption, footer, header, hgroup,
|
12
12
|
menu, nav, output, ruby, section, summary,
|
13
13
|
time, mark, audio, video {
|
14
|
-
margin: 0;
|
15
|
-
padding: 0;
|
16
14
|
border: 0;
|
17
15
|
font: inherit;
|
18
16
|
font-size: 100%;
|
17
|
+
margin: 0;
|
18
|
+
padding: 0;
|
19
19
|
vertical-align: baseline;
|
20
20
|
}
|
21
21
|
|
@@ -33,14 +33,15 @@ table {
|
|
33
33
|
}
|
34
34
|
|
35
35
|
caption, th, td {
|
36
|
-
text-align: left;
|
37
36
|
font-weight: normal;
|
37
|
+
text-align: left;
|
38
38
|
vertical-align: middle;
|
39
39
|
}
|
40
40
|
|
41
41
|
q, blockquote {
|
42
42
|
quotes: none;
|
43
43
|
}
|
44
|
+
|
44
45
|
q:before, q:after, blockquote:before, blockquote:after {
|
45
46
|
content: "";
|
46
47
|
content: none;
|
@@ -1,73 +1,48 @@
|
|
1
1
|
//colors
|
2
|
-
$color_turquoise_blue_approx: #66d9e0;
|
3
|
-
$white: #fff;
|
4
|
-
$black: #000;
|
5
2
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
.site_chooser {
|
4
|
+
border-collapse: collapse;
|
5
|
+
float: left;
|
6
|
+
padding-left: 1em;
|
7
|
+
width: fit-content;
|
10
8
|
}
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
}
|
51
|
-
ul {
|
52
|
-
background: $white;
|
53
|
-
background: rgba(255,255,255,0);
|
54
|
-
list-style: none;
|
55
|
-
position: absolute;
|
56
|
-
margin-top: 10px;
|
57
|
-
visibility: hidden;
|
58
|
-
opacity: 0;
|
59
|
-
transition: opacity 0.2s;
|
60
|
-
li {
|
61
|
-
float: none;
|
62
|
-
}
|
63
|
-
a {
|
64
|
-
white-space: nowrap;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
&:hover ul {
|
68
|
-
visibility: visible;
|
69
|
-
opacity: 1;
|
70
|
-
transition: opacity 0.2s;
|
71
|
-
z-index: 99999;
|
72
|
-
}
|
9
|
+
|
10
|
+
.nav {
|
11
|
+
color: $white;
|
12
|
+
cursor: pointer;
|
13
|
+
font-weight: bold;
|
14
|
+
list-style: none;
|
15
|
+
padding: 1em;
|
16
|
+
|
17
|
+
ul {
|
18
|
+
opacity: 0;
|
19
|
+
position: absolute;
|
20
|
+
transition: opacity 0.2s;
|
21
|
+
visibility: hidden;
|
22
|
+
|
23
|
+
li {
|
24
|
+
padding: 0.75em 5em 0.5em 1em;
|
25
|
+
position: relative;
|
26
|
+
|
27
|
+
&:hover {
|
28
|
+
background-color: darken($dark-blue, 15%);
|
29
|
+
cursor: pointer;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
a {
|
34
|
+
color: $white;
|
35
|
+
text-decoration: none;
|
36
|
+
white-space: nowrap;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
&:hover ul {
|
41
|
+
background-color: $dark-blue;
|
42
|
+
margin-top: 1em;
|
43
|
+
opacity: 1;
|
44
|
+
transition: opacity 0.2s;
|
45
|
+
visibility: visible;
|
46
|
+
z-index: 99999;
|
47
|
+
}
|
73
48
|
}
|
@@ -1,74 +1,50 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
box-shadow: 0 5px #333;
|
5
|
-
}
|
6
|
-
}
|
1
|
+
.search {
|
2
|
+
display: grid;
|
3
|
+
grid-template-columns: 1fr 1fr;
|
7
4
|
|
8
|
-
.asset_filters {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
5
|
+
.asset_filters {
|
6
|
+
|
7
|
+
a {
|
8
|
+
border: 1px solid #3c3a4b;
|
9
|
+
display: inline-block;
|
10
|
+
margin: 0.25em;
|
11
|
+
padding: 0.5em 0.75em;
|
12
|
+
text-decoration: none;
|
13
|
+
|
14
|
+
&:hover, &.pressed {
|
15
|
+
background-color: #3c3a4b;
|
16
|
+
color: #ffffff;
|
17
|
+
}
|
18
|
+
}
|
19
19
|
}
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
background: #888888;
|
27
|
-
box-shadow: inset 0 1px 1px #333;
|
28
|
-
color: white;
|
29
|
-
text-shadow: 0 1px 0 #333333;
|
20
|
+
|
21
|
+
.asset_search {
|
22
|
+
display: inline-block;
|
23
|
+
|
24
|
+
svg, input {
|
25
|
+
display: inline;
|
30
26
|
}
|
31
27
|
}
|
32
28
|
}
|
33
|
-
|
29
|
+
|
34
30
|
|
35
31
|
.popup {
|
36
32
|
div.toolbar {
|
37
|
-
|
38
|
-
|
39
|
-
border-bottom: 1px solid #cccccc;
|
40
|
-
box-shadow: 0 1px 0 white;
|
33
|
+
border-bottom: 1px solid #f3f3f4;
|
34
|
+
font-size: 95%;
|
41
35
|
margin: -20px -20px 0;
|
42
36
|
padding: 6px 10px 3px 10px;
|
43
|
-
|
44
|
-
height: 30px;
|
37
|
+
|
45
38
|
&:after {
|
46
39
|
clear: both;
|
47
40
|
content: "";
|
48
41
|
display: block;
|
49
42
|
}
|
50
|
-
.right {
|
51
|
-
float: right;
|
52
|
-
}
|
53
|
-
form.search {
|
54
|
-
padding: 4px 2px 0;
|
55
|
-
input[type=search] {
|
56
|
-
font-size: 12px;
|
57
|
-
border-radius: 100px;
|
58
|
-
border: 1px solid #cccccc;
|
59
|
-
border-top-color: #999999;
|
60
|
-
border-left-color: #b0b0b0;
|
61
|
-
border-right-color: #bbbbbb;
|
62
|
-
background: white url("/assets/admin/search.png") 4px center no-repeat;
|
63
|
-
box-shadow: inset 0 1px 0 rgba(black, 0.2);
|
64
|
-
width: 180px;
|
65
|
-
padding: 2px 8px 2px 20px;
|
66
|
-
}
|
67
43
|
}
|
68
|
-
|
44
|
+
|
69
45
|
#assets_table.assets {
|
70
46
|
overflow: auto;
|
71
|
-
}
|
47
|
+
}
|
72
48
|
}
|
73
49
|
|
74
50
|
#upload_holders {
|
@@ -77,215 +53,236 @@ p.asset {
|
|
77
53
|
|
78
54
|
#attach_asset {
|
79
55
|
.viewport {
|
56
|
+
height: 50vh;
|
80
57
|
overflow-x: hidden;
|
81
|
-
width:
|
82
|
-
|
83
|
-
}
|
58
|
+
width: 75vw;
|
59
|
+
}
|
84
60
|
}
|
85
61
|
|
86
62
|
.attachment_actions {
|
87
|
-
text-align: right;
|
88
63
|
margin-bottom: -1em;
|
64
|
+
text-align: right;
|
65
|
+
|
89
66
|
ul {
|
90
67
|
list-style-type: none;
|
68
|
+
|
91
69
|
&, & li {
|
70
|
+
display: inline;
|
92
71
|
margin: 0;
|
93
72
|
padding: 0;
|
94
|
-
display: inline;
|
95
73
|
}
|
96
74
|
}
|
75
|
+
|
97
76
|
li {
|
98
77
|
padding-left: 1em;
|
99
|
-
}
|
78
|
+
}
|
79
|
+
|
100
80
|
a {
|
101
81
|
color: white !important;
|
102
82
|
text-shadow: 1px 1px 0 #888888;
|
83
|
+
}
|
103
84
|
}
|
85
|
+
|
86
|
+
.asset_attachment {
|
87
|
+
margin-bottom: 2em;
|
88
|
+
position: relative;
|
89
|
+
|
90
|
+
.attach-assets {
|
91
|
+
.message {
|
92
|
+
margin: 1em 0;
|
93
|
+
}
|
94
|
+
}
|
104
95
|
}
|
105
96
|
|
106
97
|
.assets {
|
107
98
|
height: 150px;
|
108
|
-
|
109
|
-
padding-right: 5px;
|
99
|
+
|
110
100
|
ul {
|
111
101
|
li.asset {
|
112
102
|
display: block;
|
113
103
|
float: left;
|
104
|
+
height: 100px;
|
114
105
|
margin: 1em;
|
115
|
-
width: 110px;
|
116
|
-
height: 110px;
|
117
106
|
position: relative;
|
118
|
-
|
107
|
+
width: 100px;
|
108
|
+
|
119
109
|
.front, .back {
|
120
|
-
display: block;
|
121
110
|
background: #e6eaed;
|
122
111
|
border: 5px solid white;
|
123
|
-
|
124
|
-
width: 100px;
|
112
|
+
display: block;
|
125
113
|
height: 100px;
|
114
|
+
position: absolute;
|
126
115
|
text-align: center;
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
text-align: center;
|
131
|
-
}
|
116
|
+
width: 100px;
|
117
|
+
}
|
118
|
+
|
132
119
|
.back {
|
133
120
|
color: #333333;
|
134
|
-
overflow: hidden;
|
135
121
|
opacity: 0;
|
136
|
-
|
122
|
+
overflow: hidden;
|
123
|
+
}
|
124
|
+
|
137
125
|
.title {
|
138
126
|
color: #333333;
|
139
127
|
font-size: 10px;
|
140
|
-
overflow: hidden;
|
141
|
-
margin: 10px 4px;
|
142
128
|
height: 15px;
|
143
129
|
line-height: 15px;
|
130
|
+
margin: 10px 4px;
|
131
|
+
overflow: hidden;
|
144
132
|
text-overflow: ellipsis;
|
145
|
-
|
133
|
+
}
|
134
|
+
|
146
135
|
.icon {
|
147
136
|
height: 63px;
|
148
137
|
line-height: 63px;
|
138
|
+
|
149
139
|
img {
|
150
140
|
vertical-align: bottom;
|
141
|
+
}
|
151
142
|
}
|
152
|
-
|
143
|
+
|
153
144
|
ul.actions {
|
154
145
|
li {
|
146
|
+
font-size: 10px;
|
155
147
|
margin: 5px 0;
|
156
148
|
padding: 0 10px;
|
157
|
-
|
158
|
-
|
149
|
+
}
|
150
|
+
|
159
151
|
a {
|
160
152
|
background: #666666;
|
161
|
-
background: rgba(
|
162
|
-
|
163
|
-
color: #dddddd;
|
153
|
+
background: rgba(#000, 0.8);
|
154
|
+
color: #ffffff;
|
164
155
|
display: block;
|
165
|
-
padding:
|
156
|
+
padding: 0.5em;
|
166
157
|
text-decoration: none;
|
158
|
+
|
167
159
|
&:hover {
|
168
160
|
background: #999999;
|
169
161
|
background: rgba(black, 0.6);
|
170
162
|
color: white;
|
163
|
+
}
|
171
164
|
}
|
172
165
|
}
|
173
|
-
|
166
|
+
|
174
167
|
&.unsaved {
|
175
168
|
.front {
|
176
169
|
opacity: 0.4;
|
170
|
+
}
|
177
171
|
}
|
178
|
-
|
172
|
+
|
179
173
|
&:hover {
|
180
174
|
.back {
|
181
|
-
opacity: 1;
|
182
175
|
background: rgba(white, 0.6);
|
176
|
+
opacity: 1;
|
177
|
+
}
|
183
178
|
}
|
184
|
-
|
179
|
+
|
185
180
|
&.waiting {
|
186
181
|
background-color: #e6eaed;
|
182
|
+
|
187
183
|
.back {
|
188
184
|
display: none;
|
189
|
-
|
185
|
+
}
|
186
|
+
|
190
187
|
.front {
|
191
188
|
background: transparent url(/assets/admin/spinner.gif) no-repeat center center;
|
189
|
+
|
192
190
|
img {
|
193
191
|
opacity: 0.2;
|
192
|
+
}
|
194
193
|
}
|
195
194
|
}
|
196
195
|
}
|
197
196
|
}
|
198
197
|
}
|
199
|
-
|
198
|
+
|
200
199
|
|
201
200
|
#attachment_list.assets {
|
202
201
|
border-bottom-left-radius: 5px;
|
203
202
|
border-bottom-right-radius: 5px;
|
204
203
|
margin: -1em 0.5em 1em 0.5em;
|
205
|
-
overflow
|
206
|
-
|
204
|
+
overflow: auto;
|
205
|
+
|
207
206
|
ul.empty {
|
208
207
|
display: none;
|
209
|
-
}
|
208
|
+
}
|
209
|
+
|
210
210
|
p.note {
|
211
|
+
clear: left;
|
211
212
|
margin: 0;
|
212
213
|
padding: 8px;
|
213
|
-
|
214
|
+
|
214
215
|
span.message {
|
215
|
-
float: right;
|
216
216
|
color: #aaaaaa;
|
217
|
+
float: right;
|
218
|
+
|
217
219
|
&.important {
|
218
220
|
color: #dd9999;
|
221
|
+
}
|
219
222
|
}
|
220
223
|
}
|
221
|
-
|
224
|
+
|
222
225
|
ul.sortable {
|
223
226
|
li.asset {
|
224
227
|
div.back {
|
225
228
|
cursor: move;
|
229
|
+
}
|
226
230
|
}
|
227
231
|
}
|
228
232
|
}
|
229
|
-
}
|
230
233
|
|
231
234
|
#assets_table.assets {
|
232
|
-
position: relative;
|
233
235
|
font-size: 75%;
|
236
|
+
position: relative;
|
237
|
+
|
234
238
|
p {
|
235
|
-
padding: 40px {
|
236
|
-
top: 45px;
|
237
|
-
};
|
238
239
|
color: silver;
|
239
|
-
text-align: center;
|
240
240
|
font-style: oblique;
|
241
|
-
|
241
|
+
padding: 45px 40px;
|
242
|
+
text-align: center;
|
243
|
+
}
|
244
|
+
|
242
245
|
ul {
|
243
246
|
clear: both;
|
247
|
+
|
244
248
|
li.asset {
|
245
249
|
input {
|
246
250
|
display: none;
|
251
|
+
}
|
247
252
|
}
|
248
253
|
}
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
padding: 0.
|
261
|
-
margin: 1em 2px 1em 0;
|
262
|
-
border-radius: 2px;
|
254
|
+
|
255
|
+
.pagination {
|
256
|
+
clear: both;
|
257
|
+
padding: 1em;
|
258
|
+
|
259
|
+
a, .current {
|
260
|
+
border-bottom: 1px solid #3c3a4b;
|
261
|
+
border-left: 1px solid #3c3a4b;
|
262
|
+
border-right: 1px solid #3c3a4b;
|
263
|
+
border-top: 1px solid #3c3a4b;
|
264
|
+
margin-left: -5px;
|
265
|
+
padding: 0.15em 0.85em;
|
263
266
|
text-decoration: none;
|
264
|
-
|
265
|
-
span.current {
|
266
|
-
color: black;
|
267
|
-
font-weight: bold;
|
268
|
-
}
|
269
|
-
span.disabled {
|
270
|
-
background-color: #eeeeee;
|
271
|
-
color: #cccccc;
|
272
|
-
}
|
273
|
-
a {
|
274
|
-
background-color: #eeeeee;
|
275
|
-
color: #444444;
|
267
|
+
|
276
268
|
&:hover {
|
277
|
-
background-color: #
|
278
|
-
color:
|
269
|
+
background-color: #3c3a4b;
|
270
|
+
color: #ffffff;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
|
274
|
+
.current {
|
275
|
+
background-color: #3c3a4b;
|
276
|
+
color: #ffffff;
|
277
|
+
}
|
278
|
+
|
279
|
+
.previous_page, .next_page {
|
280
|
+
border: none;
|
281
|
+
margin-right: 0.5em;
|
282
|
+
}
|
283
|
+
|
284
|
+
.gap {
|
285
|
+
margin-right: 0.5em;
|
279
286
|
}
|
280
287
|
}
|
281
|
-
span {
|
282
|
-
color: #888888;
|
283
|
-
}
|
284
|
-
span, a {
|
285
|
-
display: block;
|
286
|
-
float: left;
|
287
|
-
padding: 2px 6px;
|
288
|
-
line-height: 1.5em;
|
289
|
-
}
|
290
|
-
}
|
291
288
|
}
|