decidim-decidim_awesome 0.10.1 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -1
- data/README.md +134 -15
- data/app/cells/concerns/decidim/decidim_awesome/proposal_m_cell_override.rb +4 -24
- data/app/cells/decidim/decidim_awesome/content_blocks/map_cell.rb +9 -5
- data/app/commands/concerns/decidim/decidim_awesome/admin/needs_constraint_helpers.rb +1 -1
- data/app/commands/concerns/decidim/decidim_awesome/proposals/admin/update_proposal_override.rb +31 -0
- data/app/commands/concerns/decidim/decidim_awesome/proposals/create_collaborative_draft_override.rb +27 -0
- data/app/commands/concerns/decidim/decidim_awesome/proposals/create_proposal_override.rb +27 -0
- data/app/commands/concerns/decidim/decidim_awesome/proposals/update_collaborative_draft_override.rb +27 -0
- data/app/commands/concerns/decidim/decidim_awesome/proposals/update_proposal_override.rb +26 -0
- data/app/commands/decidim/decidim_awesome/admin/create_proposal_custom_field.rb +4 -3
- data/app/commands/decidim/decidim_awesome/admin/destroy_proposal_custom_field.rb +6 -3
- data/app/controllers/concerns/decidim/decidim_awesome/admin/maintenance_context.rb +43 -0
- data/app/controllers/concerns/decidim/decidim_awesome/admin_accountability/admin/filterable_helper.rb +3 -2
- data/app/controllers/concerns/decidim/decidim_awesome/limit_pending_amendments.rb +35 -0
- data/app/controllers/concerns/decidim/decidim_awesome/proposals/orderable_override.rb +9 -22
- data/app/controllers/decidim/decidim_awesome/admin/admin_accountability_controller.rb +7 -7
- data/app/controllers/decidim/decidim_awesome/admin/application_controller.rb +2 -0
- data/app/controllers/decidim/decidim_awesome/admin/checks_controller.rb +7 -3
- data/app/controllers/decidim/decidim_awesome/admin/config_controller.rb +8 -5
- data/app/controllers/decidim/decidim_awesome/admin/constraints_controller.rb +3 -1
- data/app/controllers/decidim/decidim_awesome/admin/custom_redirects_controller.rb +0 -2
- data/app/controllers/decidim/decidim_awesome/admin/maintenance_controller.rb +76 -0
- data/app/controllers/decidim/decidim_awesome/admin/menu_hacks_controller.rb +0 -2
- data/app/controllers/decidim/decidim_awesome/admin/proposal_custom_fields_controller.rb +12 -4
- data/app/controllers/decidim/decidim_awesome/iframe_component/iframe_controller.rb +8 -1
- data/app/forms/concerns/decidim/decidim_awesome/proposals/proposal_form_override.rb +21 -0
- data/app/forms/{decidim → concerns/decidim}/decidim_awesome/proposals/proposal_wizard_create_step_form_override.rb +1 -0
- data/app/forms/decidim/decidim_awesome/admin/config_form.rb +35 -9
- data/app/helpers/{decidim → concerns/decidim}/decidim_awesome/amendments_helper_override.rb +17 -7
- data/app/helpers/concerns/decidim/decidim_awesome/proposals/application_helper_override.rb +126 -0
- data/app/helpers/decidim/decidim_awesome/admin/config_constraints_helpers.rb +5 -26
- data/app/jobs/decidim/decidim_awesome/destroy_private_data_job.rb +22 -0
- data/app/models/concerns/decidim/decidim_awesome/has_proposal_extra_fields.rb +38 -9
- data/app/models/decidim/decidim_awesome/paper_trail_version.rb +5 -1
- data/app/models/decidim/decidim_awesome/proposal_extra_field.rb +35 -1
- data/app/overrides/decidim/proposals/admin/proposals/show/add_private_body.html.erb.deface +7 -0
- data/app/overrides/decidim/proposals/admin/proposals/show/replace_body.html.erb.deface +5 -0
- data/app/overrides/decidim/proposals/proposals/show/limit_amendments_modal.html.erb.deface +5 -0
- data/app/overrides/layouts/decidim/admin/_header/replace_scripts.html.erb.deface +3 -0
- data/app/packs/entrypoints/decidim_decidim_awesome_map.scss +1 -1
- data/app/packs/src/decidim/decidim_awesome/admin/auto_edit.js +5 -3
- data/app/packs/src/decidim/decidim_awesome/admin/constraints.js +1 -1
- data/app/packs/src/decidim/decidim_awesome/admin/custom_fields_builder.js +5 -4
- data/app/packs/src/decidim/decidim_awesome/amendments/show_modal_on_limits.js +30 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_application.js +1 -0
- data/app/packs/src/decidim/decidim_awesome/editors/editor.js +1 -6
- data/app/packs/src/decidim/decidim_awesome/editors/tabs_focus.js +18 -9
- data/app/packs/src/decidim/decidim_awesome/forms/custom_fields_renderer.js +35 -26
- data/app/packs/src/decidim/decidim_awesome/proposals/custom_fields.js +31 -15
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/codemirror.scss +12 -7
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/constraints.scss +69 -25
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/custom_fields.scss +34 -27
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/user_picker.scss +2 -2
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin.scss +3 -3
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin_global.scss +28 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_application.scss +3 -2
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +15 -15
- data/app/packs/stylesheets/decidim/decidim_awesome/editors/quill_editor.scss +3 -3
- data/app/packs/stylesheets/decidim/decidim_awesome/forms/autosave.scss +3 -3
- data/app/packs/stylesheets/decidim/decidim_awesome/forms/custom_fields.scss +187 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/shared/spinner.scss +47 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/voting/voting_cards.scss +7 -7
- data/app/permissions/decidim/decidim_awesome/admin/permissions.rb +14 -3
- data/app/presenters/concerns/decidim/decidim_awesome/proposals/proposal_presenter_override.rb +20 -0
- data/app/presenters/decidim/decidim_awesome/admin_log/component_presenter_override.rb +30 -0
- data/app/presenters/decidim/decidim_awesome/private_data_presenter.rb +70 -0
- data/app/queries/decidim/decidim_awesome/private_data_finder.rb +19 -0
- data/app/serializers/concerns/decidim/decidim_awesome/proposal_serializer_override.rb +1 -0
- data/app/serializers/concerns/decidim/decidim_awesome/proposals/proposal_serializer_methods.rb +72 -0
- data/app/serializers/concerns/decidim/decidim_awesome/proposals/proposal_serializer_override.rb +38 -0
- data/app/serializers/decidim/decidim_awesome/proposals/private_proposal_serializer.rb +42 -0
- data/app/types/concerns/decidim/decidim_awesome/add_proposal_type_custom_fields.rb +59 -0
- data/app/types/concerns/decidim/decidim_awesome/{proposal_type_override.rb → add_proposal_type_vote_weights.rb} +3 -1
- data/app/views/decidim/decidim_awesome/admin/checks/index.html.erb +52 -48
- data/app/views/decidim/decidim_awesome/admin/config/_autoedit_box_label.html.erb +7 -2
- data/app/views/decidim/decidim_awesome/admin/config/_constraints.html.erb +16 -8
- data/app/views/decidim/decidim_awesome/admin/config/_form_admins.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/admin/config/_form_editors.html.erb +12 -16
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_custom_fields.html.erb +35 -15
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_private_custom_fields.html.erb +1 -0
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposals.html.erb +22 -22
- data/app/views/decidim/decidim_awesome/admin/config/_form_styles.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/admin/config/show.html.erb +1 -1
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/index.html.erb +14 -13
- data/app/views/decidim/decidim_awesome/admin/maintenance/_private_data.html.erb +44 -0
- data/app/views/decidim/decidim_awesome/admin/maintenance/show.html.erb +44 -0
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb +28 -29
- data/app/views/decidim/decidim_awesome/admin/proposals/_editor.html.erb +8 -5
- data/app/views/decidim/decidim_awesome/admin/proposals/_private_body.html.erb +20 -0
- data/app/views/decidim/decidim_awesome/amendments/_modal.html.erb +16 -0
- data/app/views/decidim/decidim_awesome/custom_fields/_form_render.html.erb +10 -2
- data/app/views/layouts/decidim/decidim_awesome/admin/_base.html.erb +21 -0
- data/app/views/layouts/decidim/decidim_awesome/admin/application.html.erb +1 -73
- data/app/views/layouts/decidim/decidim_awesome/admin/maintenance.html.erb +19 -0
- data/config/i18n-tasks.yml +22 -3
- data/config/locales/ca.yml +97 -9
- data/config/locales/cs.yml +109 -6
- data/config/locales/de.yml +92 -6
- data/config/locales/en.yml +102 -8
- data/config/locales/es.yml +96 -8
- data/config/locales/eu.yml +15 -1
- data/config/locales/fr.yml +94 -6
- data/config/locales/hu.yml +53 -4
- data/config/locales/it.yml +16 -6
- data/config/locales/ja.yml +94 -6
- data/config/locales/lt.yml +0 -2
- data/config/locales/nl.yml +9 -4
- data/config/locales/pt-BR.yml +16 -7
- data/config/locales/ro-RO.yml +11 -2
- data/config/locales/sv.yml +17 -6
- data/db/migrate/20240531224204_add_decidim_awesome_proposal_private_fields.rb +29 -0
- data/db/migrate/20240729164227_add_decidim_awesome_proposal_private_fields_date.rb +20 -0
- data/lib/decidim/decidim_awesome/admin_engine.rb +22 -6
- data/lib/decidim/decidim_awesome/api/types/localized_custom_fields_type.rb +22 -0
- data/lib/decidim/decidim_awesome/api/types/translated_custom_fields_type.rb +52 -0
- data/lib/decidim/decidim_awesome/awesome.rb +45 -8
- data/lib/decidim/decidim_awesome/awesome_helpers.rb +5 -1
- data/lib/decidim/decidim_awesome/checksums.yml +23 -0
- data/lib/decidim/decidim_awesome/custom_fields.rb +8 -0
- data/lib/decidim/decidim_awesome/engine.rb +143 -52
- data/lib/decidim/decidim_awesome/lock.rb +47 -0
- data/lib/decidim/decidim_awesome/menu.rb +146 -0
- data/lib/decidim/decidim_awesome/test/initializer.rb +4 -1
- data/lib/decidim/decidim_awesome/test/shared_examples/{box_label_editor.rb → box_label_editor_examples.rb} +1 -1
- data/lib/decidim/decidim_awesome/test/shared_examples/config_examples.rb +20 -2
- data/lib/decidim/decidim_awesome/test/shared_examples/custom_fields_examples.rb +155 -0
- data/lib/decidim/decidim_awesome/test/shared_examples/editor_examples.rb +24 -0
- data/lib/decidim/decidim_awesome/test/shared_examples/menu_hack_contexts.rb +2 -2
- data/lib/decidim/decidim_awesome/test/shared_examples/scoped_admins_examples.rb +3 -5
- data/lib/decidim/decidim_awesome/test/shared_examples/summary_examples.rb +78 -12
- data/lib/decidim/decidim_awesome/version.rb +1 -1
- data/package.json +3 -3
- metadata +52 -14
- data/app/helpers/decidim/decidim_awesome/proposals/application_helper_override.rb +0 -78
- data/app/overrides/layouts/decidim/admin/_application/add_intergram.html.erb.deface +0 -5
- /data/app/presenters/{decidim → concerns/decidim}/decidim_awesome/menu_item_presenter_override.rb +0 -0
- /data/app/presenters/{decidim → concerns/decidim}/decidim_awesome/menu_presenter_override.rb +0 -0
@@ -1,49 +1,93 @@
|
|
1
1
|
.constraints-editor {
|
2
2
|
background: #f6f6f6;
|
3
3
|
padding: 1rem;
|
4
|
-
margin:
|
4
|
+
margin: 0.5rem 0 2rem;
|
5
5
|
border-radius: 5px;
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
h5 {
|
8
|
+
font-weight: 600;
|
9
|
+
color: rgb(62 76 92 / var(--tw-text-opacity));
|
10
|
+
font-size: 14px;
|
11
|
+
line-height: 18px;
|
12
|
+
}
|
13
|
+
|
14
|
+
.label {
|
15
|
+
font-weight: normal;
|
16
|
+
font-size: 0.8rem;
|
17
|
+
padding: 0.3rem 0.5rem;
|
18
|
+
|
19
|
+
&.participatory_space_manifest {
|
20
|
+
background-color: #f7b230;
|
21
|
+
color: #000;
|
13
22
|
}
|
14
23
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
24
|
+
&.participatory_space_slug {
|
25
|
+
background-color: #19b380;
|
26
|
+
color: #fff;
|
27
|
+
}
|
19
28
|
|
20
|
-
|
21
|
-
|
22
|
-
|
29
|
+
&.component_manifest {
|
30
|
+
background-color: #b31919;
|
31
|
+
color: #fff;
|
32
|
+
}
|
23
33
|
|
24
|
-
|
25
|
-
|
26
|
-
|
34
|
+
&.component_id {
|
35
|
+
background-color: #ee449c;
|
36
|
+
color: #fff;
|
37
|
+
}
|
27
38
|
|
28
|
-
|
29
|
-
|
39
|
+
&.constraint {
|
40
|
+
&-none {
|
41
|
+
background-color: #ff3000;
|
42
|
+
color: #fff;
|
30
43
|
}
|
44
|
+
}
|
45
|
+
}
|
31
46
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
47
|
+
.constraints-list {
|
48
|
+
margin: 16px 20px;
|
49
|
+
padding: 0 20px 0 0;
|
50
|
+
list-style-type: disc;
|
51
|
+
|
52
|
+
li {
|
53
|
+
margin: 0 1em 0 0;
|
54
|
+
padding: 0;
|
37
55
|
}
|
38
56
|
|
39
|
-
|
57
|
+
button.edit-condition,
|
58
|
+
a.delete-condition {
|
40
59
|
margin-left: 1rem;
|
41
60
|
}
|
42
61
|
|
62
|
+
button.edit-condition {
|
63
|
+
color: $secondary-color;
|
64
|
+
cursor: pointer;
|
65
|
+
|
66
|
+
&:hover {
|
67
|
+
text-decoration: underline;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
43
71
|
&.inactive {
|
44
72
|
.label:not(.constraint-none) {
|
45
73
|
filter: saturate(10%);
|
46
74
|
}
|
47
75
|
}
|
76
|
+
|
77
|
+
&.no-items {
|
78
|
+
margin: 0;
|
79
|
+
padding-bottom: 14px;
|
80
|
+
list-style-type: none;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.flash[hidden] {
|
85
|
+
display: none;
|
86
|
+
}
|
87
|
+
|
88
|
+
.add-condition .icon {
|
89
|
+
width: 11px;
|
90
|
+
height: 11px;
|
91
|
+
margin-right: 0.3rem;
|
48
92
|
}
|
49
93
|
}
|
@@ -9,44 +9,58 @@
|
|
9
9
|
&:first-child {
|
10
10
|
margin-left: 0;
|
11
11
|
}
|
12
|
+
|
12
13
|
$colors: (
|
13
|
-
"primary":
|
14
|
-
"secondary":
|
15
|
-
"success":
|
16
|
-
"warning":
|
17
|
-
"alert":
|
18
|
-
"highlight":
|
19
|
-
"highlight_alternative":
|
14
|
+
"primary": $primary,
|
15
|
+
"secondary": $secondary,
|
16
|
+
"success": $success,
|
17
|
+
"warning": $warning,
|
18
|
+
"alert": $alert,
|
19
|
+
"highlight": $highlight,
|
20
|
+
"highlight_alternative": $highlight_alternative,
|
20
21
|
);
|
21
22
|
|
22
23
|
@each $name, $color in $colors {
|
23
24
|
&.#{$name} {
|
24
|
-
background-color:
|
25
|
+
background-color: $color;
|
25
26
|
}
|
26
27
|
}
|
27
28
|
}
|
28
29
|
|
29
|
-
.tabs-content {
|
30
|
-
.proposal_custom_field {
|
31
|
-
display: none;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
30
|
.proposal_custom_fields {
|
36
31
|
&_editor {
|
37
32
|
background-color: #e0e0e0;
|
38
|
-
padding: .5em .5em 1em;
|
33
|
+
padding: 0.5em 0.5em 1em;
|
39
34
|
border-top-left-radius: 5px;
|
40
35
|
border-top-right-radius: 5px;
|
41
36
|
|
37
|
+
ul.frmb,
|
38
|
+
.form-wrap.form-builder .frmb li.form-field,
|
39
|
+
.form-wrap.form-builder .stage-wrap.empty {
|
40
|
+
background-color: $body-background;
|
41
|
+
margin-right: 0.5rem;
|
42
|
+
|
43
|
+
.field-actions {
|
44
|
+
display: flex;
|
45
|
+
justify-content: space-between;
|
46
|
+
align-items: center;
|
47
|
+
}
|
48
|
+
|
49
|
+
.field-actions .btn {
|
50
|
+
display: flex;
|
51
|
+
justify-content: center;
|
52
|
+
align-items: center;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
42
56
|
label {
|
43
57
|
display: inline-block;
|
44
58
|
max-width: 100%;
|
45
|
-
font-weight:
|
59
|
+
font-weight: $global-weight-bold !important;
|
46
60
|
}
|
47
61
|
|
48
62
|
li[type] {
|
49
|
-
display:
|
63
|
+
display: block;
|
50
64
|
width: 100%;
|
51
65
|
height: inherit;
|
52
66
|
margin: inherit;
|
@@ -72,22 +86,15 @@
|
|
72
86
|
color: #555;
|
73
87
|
background-color: #fff;
|
74
88
|
border: 1px solid #ccc;
|
75
|
-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
76
|
-
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
89
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
90
|
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
77
91
|
margin: 0;
|
78
92
|
padding: 6px 12px;
|
79
93
|
}
|
80
94
|
}
|
81
|
-
|
82
|
-
&_container {
|
83
|
-
.constraints-editor {
|
84
|
-
border-top-left-radius: 0;
|
85
|
-
border-top-right-radius: 0;
|
86
|
-
}
|
87
|
-
}
|
88
95
|
}
|
89
96
|
|
90
|
-
// Custom fields
|
97
|
+
// Custom fields tuning
|
91
98
|
.rendered-form .form-control.ql-container {
|
92
99
|
height: auto !important;
|
93
100
|
}
|
@@ -8,13 +8,13 @@
|
|
8
8
|
|
9
9
|
.pokecode-credits {
|
10
10
|
float: right;
|
11
|
-
margin: 0 1em .5em 0;
|
11
|
+
margin: 0 1em 0.5em 0;
|
12
12
|
|
13
13
|
// position: absolute;
|
14
14
|
// bottom: 0;
|
15
15
|
// right: 0;
|
16
16
|
// margin: 1em;
|
17
|
-
font-size: .8em;
|
17
|
+
font-size: 0.8em;
|
18
18
|
}
|
19
19
|
|
20
20
|
.decidim_awesome {
|
@@ -69,6 +69,6 @@ tbody tr.menu_hack-addition {
|
|
69
69
|
|
70
70
|
.secondary-nav {
|
71
71
|
li .icon {
|
72
|
-
margin-right: .5rem;
|
72
|
+
margin-right: 0.5rem;
|
73
73
|
}
|
74
74
|
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
@import "stylesheets/decidim/decidim_awesome/shared/spinner";
|
2
|
+
@import "stylesheets/decidim/decidim_awesome/admin/intergram_fixes";
|
3
|
+
@import "stylesheets/decidim/decidim_awesome/forms/custom_fields";
|
4
|
+
|
5
|
+
.component__show {
|
6
|
+
&_private_data {
|
7
|
+
&-grid {
|
8
|
+
background-color: $body-background;
|
9
|
+
display: grid;
|
10
|
+
grid-template-columns: repeat(2, 1fr);
|
11
|
+
gap: 1rem;
|
12
|
+
margin: 1rem 0;
|
13
|
+
padding: 0.5rem;
|
14
|
+
|
15
|
+
.date_info {
|
16
|
+
font-style: italic;
|
17
|
+
color: $medium-gray;
|
18
|
+
font-size: 0.875rem;
|
19
|
+
margin-top: 1rem;
|
20
|
+
|
21
|
+
a {
|
22
|
+
font-style: normal;
|
23
|
+
color: $secondary-color;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
@@ -2,16 +2,17 @@
|
|
2
2
|
@import "stylesheets/decidim/decidim_awesome/editors/markdown_editor";
|
3
3
|
@import "stylesheets/decidim/decidim_awesome/editors/quill_editor";
|
4
4
|
@import "stylesheets/decidim/decidim_awesome/forms/autosave";
|
5
|
+
@import "stylesheets/decidim/decidim_awesome/forms/custom_fields";
|
5
6
|
@import "stylesheets/decidim/decidim_awesome/voting/voting_cards";
|
6
7
|
|
7
8
|
.decidim_awesome-custom_fields {
|
8
9
|
dd {
|
9
|
-
>div:last-child {
|
10
|
+
> div:last-child {
|
10
11
|
margin-bottom: 1rem;
|
11
12
|
}
|
12
13
|
|
13
14
|
&[name="textarea"] {
|
14
|
-
>div > p {
|
15
|
+
> div > p {
|
15
16
|
margin-top: 1rem;
|
16
17
|
margin-bottom: 0;
|
17
18
|
}
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
.leaflet-control-layers-list {
|
47
47
|
hr {
|
48
|
-
margin: .5em 0;
|
48
|
+
margin: 0.5em 0;
|
49
49
|
}
|
50
50
|
|
51
51
|
b {
|
@@ -55,13 +55,13 @@
|
|
55
55
|
|
56
56
|
label {
|
57
57
|
line-height: 1;
|
58
|
-
font-size: .8rem;
|
59
|
-
margin: 0 .5em .5em;
|
58
|
+
font-size: 0.8rem;
|
59
|
+
margin: 0 0.5em 0.5em;
|
60
60
|
|
61
61
|
i {
|
62
62
|
display: inline-block;
|
63
|
-
width: .8rem;
|
64
|
-
height: .8rem;
|
63
|
+
width: 0.8rem;
|
64
|
+
height: 0.8rem;
|
65
65
|
background-color: var(--primary);
|
66
66
|
}
|
67
67
|
}
|
@@ -72,7 +72,7 @@
|
|
72
72
|
}
|
73
73
|
|
74
74
|
.map-legend {
|
75
|
-
background: rgba(255, 255, 255, .8);
|
75
|
+
background: rgba(255, 255, 255, 0.8);
|
76
76
|
padding: 1em;
|
77
77
|
border: 2px solid #bbb;
|
78
78
|
border-radius: 4px;
|
@@ -83,7 +83,7 @@
|
|
83
83
|
cursor: pointer;
|
84
84
|
|
85
85
|
&::after {
|
86
|
-
content:
|
86
|
+
content: "";
|
87
87
|
width: 0;
|
88
88
|
height: 0;
|
89
89
|
border-left: 5px solid transparent;
|
@@ -112,10 +112,10 @@
|
|
112
112
|
display: none;
|
113
113
|
|
114
114
|
i {
|
115
|
-
margin-left: .5em;
|
115
|
+
margin-left: 0.5em;
|
116
116
|
display: inline-block;
|
117
|
-
width: .8rem;
|
118
|
-
height: .8rem;
|
117
|
+
width: 0.8rem;
|
118
|
+
height: 0.8rem;
|
119
119
|
border-radius: 50%;
|
120
120
|
background-color: var(-- primary);
|
121
121
|
}
|
@@ -144,11 +144,11 @@
|
|
144
144
|
line-height: 1;
|
145
145
|
background-color: #f0f0f0;
|
146
146
|
border-radius: 5px;
|
147
|
-
margin: .5rem;
|
148
|
-
padding: .5rem;
|
147
|
+
margin: 0.5rem;
|
148
|
+
padding: 0.5rem;
|
149
149
|
|
150
150
|
span {
|
151
|
-
margin: 0 .5rem 2px 0;
|
151
|
+
margin: 0 0.5rem 2px 0;
|
152
152
|
}
|
153
153
|
|
154
154
|
input {
|
@@ -157,8 +157,8 @@
|
|
157
157
|
}
|
158
158
|
|
159
159
|
.awesome_map-toggle_all_tags {
|
160
|
-
margin: .5rem 1rem;
|
161
|
-
font-size: .875rem;
|
160
|
+
margin: 0.5rem 1rem;
|
161
|
+
font-size: 0.875rem;
|
162
162
|
}
|
163
163
|
|
164
164
|
.hashtags-container,
|
@@ -24,7 +24,7 @@
|
|
24
24
|
}
|
25
25
|
|
26
26
|
.editor.hashtags__container {
|
27
|
-
>p.help-text {
|
27
|
+
> p.help-text {
|
28
28
|
margin-top: -1rem;
|
29
29
|
margin-bottom: 1.5rem;
|
30
30
|
}
|
@@ -32,8 +32,8 @@
|
|
32
32
|
|
33
33
|
// For quill editors in custom fields
|
34
34
|
.form-control[type="richtext"] {
|
35
|
-
>p.help-text {
|
36
|
-
margin-top: .2rem !important;
|
35
|
+
> p.help-text {
|
36
|
+
margin-top: 0.2rem !important;
|
37
37
|
}
|
38
38
|
|
39
39
|
.ql-snow.ql-toolbar {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.awesome_autosave-notice {
|
2
|
-
background-color: rgba(var(--success-rgb), .8);
|
2
|
+
background-color: rgba(var(--success-rgb), 0.8);
|
3
3
|
position: fixed;
|
4
4
|
top: 0;
|
5
5
|
right: 0;
|
6
6
|
margin: 2em;
|
7
|
-
padding: .5em 1em;
|
7
|
+
padding: 0.5em 1em;
|
8
8
|
border-radius: 4px;
|
9
9
|
border: 1px solid var(--success);
|
10
10
|
font-weight: 600;
|
@@ -12,6 +12,6 @@
|
|
12
12
|
z-index: 1000;
|
13
13
|
|
14
14
|
&.error {
|
15
|
-
background-color: rgba(var(--alert-rgb), .8);
|
15
|
+
background-color: rgba(var(--alert-rgb), 0.8);
|
16
16
|
}
|
17
17
|
}
|
@@ -0,0 +1,187 @@
|
|
1
|
+
.decidim_awesome-custom_fields {
|
2
|
+
&.private_body {
|
3
|
+
padding: 1.5rem 1rem;
|
4
|
+
margin-top: 2rem;
|
5
|
+
border: 1px solid $medium-gray;
|
6
|
+
border-radius: $global-radius;
|
7
|
+
background-color: $medium-gray;
|
8
|
+
color: $black;
|
9
|
+
font-weight: $global-weight-normal;
|
10
|
+
}
|
11
|
+
|
12
|
+
.private_body-disclosure {
|
13
|
+
margin: -1rem 0 2rem;
|
14
|
+
font-size: 1.125rem;
|
15
|
+
font-style: italic;
|
16
|
+
|
17
|
+
svg {
|
18
|
+
display: inline-block;
|
19
|
+
width: 1.5rem;
|
20
|
+
height: 1.5rem;
|
21
|
+
margin-right: 0.5rem;
|
22
|
+
vertical-align: bottom;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
dt {
|
27
|
+
font-family: $body-font-family;
|
28
|
+
font-weight: $global-weight-bold;
|
29
|
+
}
|
30
|
+
|
31
|
+
dd {
|
32
|
+
padding: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
.proposal_custom_field {
|
36
|
+
h1 {
|
37
|
+
font-family: $body-font-family;
|
38
|
+
font-weight: $global-weight-bold;
|
39
|
+
font-size: 2.5rem;
|
40
|
+
margin-top: 1rem;
|
41
|
+
}
|
42
|
+
|
43
|
+
h2 {
|
44
|
+
font-family: $body-font-family;
|
45
|
+
font-weight: $global-weight-bold;
|
46
|
+
font-size: 2rem;
|
47
|
+
margin-top: 1rem;
|
48
|
+
}
|
49
|
+
|
50
|
+
h3 {
|
51
|
+
font-family: $body-font-family;
|
52
|
+
font-weight: $global-weight-bold;
|
53
|
+
font-size: 1.75rem;
|
54
|
+
margin-top: 1rem;
|
55
|
+
}
|
56
|
+
|
57
|
+
h4 {
|
58
|
+
font-family: $body-font-family;
|
59
|
+
font-weight: $global-weight-bold;
|
60
|
+
font-size: 1.5rem;
|
61
|
+
margin-top: 1rem;
|
62
|
+
}
|
63
|
+
|
64
|
+
h5 {
|
65
|
+
font-family: $body-font-family;
|
66
|
+
font-weight: $global-weight-bold;
|
67
|
+
font-size: 1.125rem;
|
68
|
+
margin-top: 1rem;
|
69
|
+
}
|
70
|
+
|
71
|
+
h6 {
|
72
|
+
font-family: $body-font-family;
|
73
|
+
font-weight: $global-weight-bold;
|
74
|
+
font-size: 1rem;
|
75
|
+
margin-top: 1rem;
|
76
|
+
}
|
77
|
+
|
78
|
+
p {
|
79
|
+
margin-top: 1rem;
|
80
|
+
}
|
81
|
+
|
82
|
+
label {
|
83
|
+
font-size: 0.875rem;
|
84
|
+
font-weight: $global-weight-bold;
|
85
|
+
|
86
|
+
.tooltip-element {
|
87
|
+
margin: 0;
|
88
|
+
padding: 0;
|
89
|
+
visibility: hidden;
|
90
|
+
display: block;
|
91
|
+
|
92
|
+
&::before {
|
93
|
+
visibility: visible;
|
94
|
+
font-size: 0.75rem;
|
95
|
+
color: $medium-gray;
|
96
|
+
font-weight: $global-weight-normal;
|
97
|
+
font-style: italic;
|
98
|
+
content: attr(tooltip);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.form-group:not(:first-of-type) {
|
104
|
+
margin-top: 1.5rem;
|
105
|
+
}
|
106
|
+
|
107
|
+
.form-control {
|
108
|
+
width: 100%;
|
109
|
+
display: block;
|
110
|
+
|
111
|
+
&:not(.reset-defaults) {
|
112
|
+
display: inline-block;
|
113
|
+
padding: 0.5rem 1rem;
|
114
|
+
border: 1px solid $medium-gray;
|
115
|
+
outline: 1px solid transparent;
|
116
|
+
border-radius: $global-radius;
|
117
|
+
background-color: $body-background;
|
118
|
+
color: $black;
|
119
|
+
font-weight: $global-weight-normal;
|
120
|
+
|
121
|
+
&:focus {
|
122
|
+
outline: 2px solid $secondary-color;
|
123
|
+
}
|
124
|
+
|
125
|
+
&:disabled {
|
126
|
+
background-color: $light-gray;
|
127
|
+
color: $medium-gray;
|
128
|
+
cursor: not-allowed;
|
129
|
+
}
|
130
|
+
|
131
|
+
&.sm {
|
132
|
+
padding: 0.25rem;
|
133
|
+
font-size: 0.875rem;
|
134
|
+
}
|
135
|
+
|
136
|
+
&.sm-icon {
|
137
|
+
padding: 0.25rem 0.25rem 0.25rem 1.5rem;
|
138
|
+
font-size: 0.875rem;
|
139
|
+
}
|
140
|
+
|
141
|
+
&.is-invalid-input:not(:focus) {
|
142
|
+
outline: 2px solid $alert-color;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
&:not(select) {
|
147
|
+
&:read-only {
|
148
|
+
background-color: $light-gray;
|
149
|
+
border: 0;
|
150
|
+
color: $medium-gray;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
.formbuilder-checkbox {
|
156
|
+
> label {
|
157
|
+
font-weight: $global-weight-normal;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
.formbuilder-autocomplete {
|
162
|
+
position: relative;
|
163
|
+
|
164
|
+
.formbuilder-autocomplete-list {
|
165
|
+
z-index: 20;
|
166
|
+
max-height: 13rem;
|
167
|
+
outline: 1px solid transparent;
|
168
|
+
border-radius: $global-radius;
|
169
|
+
border: 1px solid $medium-gray;
|
170
|
+
color: $black;
|
171
|
+
font-weight: $global-weight-normal;
|
172
|
+
display: none;
|
173
|
+
|
174
|
+
li {
|
175
|
+
cursor: pointer;
|
176
|
+
border-radius: $global-radius;
|
177
|
+
padding: 0.5rem 1rem;
|
178
|
+
background-color: $body-background;
|
179
|
+
|
180
|
+
&.active-option {
|
181
|
+
background-color: $light-gray;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
// Loading spinner does not ocuppy all the width and height as the new spinner-container
|
2
|
+
.loading-spinner {
|
3
|
+
position: relative;
|
4
|
+
cursor: wait;
|
5
|
+
|
6
|
+
&::before {
|
7
|
+
content: "";
|
8
|
+
display: block;
|
9
|
+
width: 1.5rem;
|
10
|
+
height: 1.5rem;
|
11
|
+
border-radius: 50%;
|
12
|
+
animation: spin 1s linear infinite;
|
13
|
+
border: 4px solid;
|
14
|
+
border-color: transparent transparent $secondary-color transparent;
|
15
|
+
z-index: 20;
|
16
|
+
margin-left: 50%;
|
17
|
+
transform: translateX(-50%);
|
18
|
+
}
|
19
|
+
|
20
|
+
&.alert {
|
21
|
+
&::before {
|
22
|
+
border-color: transparent transparent $alert-color transparent;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
&.warning {
|
27
|
+
&::before {
|
28
|
+
border-color: transparent transparent $warning-color transparent;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
&.primary {
|
33
|
+
&::before {
|
34
|
+
border-color: transparent transparent $primary-color transparent;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
@keyframes spin {
|
40
|
+
0% {
|
41
|
+
transform: rotate(0deg);
|
42
|
+
}
|
43
|
+
|
44
|
+
100% {
|
45
|
+
transform: rotate(360deg);
|
46
|
+
}
|
47
|
+
}
|