mumuki-laboratory 9.0.2 → 9.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/codemirror.js +10 -2
- data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +49 -8
- data/app/assets/javascripts/mumuki_laboratory/application/faqs.js +14 -4
- data/app/assets/javascripts/mumuki_laboratory/application/gamification.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/kids.js +11 -7
- data/app/assets/javascripts/mumuki_laboratory/application/kindergarten.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/messages.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/mu-modal-carrousel.js +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-files.js +18 -5
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-scenarios.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/organization.js +32 -0
- data/app/assets/javascripts/mumuki_laboratory/application/primary.js +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/profile.js +0 -6
- data/app/assets/javascripts/mumuki_laboratory/application/progress.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/speech-bubble-renderer.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/submission.js +4 -3
- data/app/assets/javascripts/mumuki_laboratory/application/submissions-store.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/toast.js +3 -0
- data/app/assets/javascripts/mumuki_laboratory/application/tooltip.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/upload.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/user.js +49 -5
- data/app/assets/stylesheets/mumuki_laboratory/application.scss +0 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/_errors.scss +1 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/_layout.scss +1 -27
- data/app/assets/stylesheets/mumuki_laboratory/application/_modules.scss +1 -2
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_activity.scss +14 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_avatar.scss +5 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_breadcrumb.scss +2 -2
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_datepicker.scss +0 -4
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_discussion.scss +49 -59
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_editor.scss +16 -18
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_exercise_assignment.scss +2 -11
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_exercise_results.scss +1 -7
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_faqs.scss +30 -8
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_flash.scss +7 -46
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss +19 -4
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss +18 -23
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss +1 -9
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_overlap.scss +1 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_progress_bar.scss +5 -5
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_terms.scss +3 -2
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_timer.scss +1 -3
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_menu.scss +38 -3
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_profile.scss +1 -2
- data/app/controllers/application_controller.rb +4 -2
- data/app/controllers/discussions_messages_controller.rb +9 -3
- data/app/controllers/users_controller.rb +13 -0
- data/app/helpers/application_helper.rb +5 -5
- data/app/helpers/assignment_result_helper.rb +3 -2
- data/app/helpers/assistance_box_helper.rb +1 -1
- data/app/helpers/concerns/with_student_path_navigation.rb +8 -3
- data/app/helpers/concerns/with_student_path_navigation/continue_navigation.rb +1 -1
- data/app/helpers/concerns/with_student_path_navigation/finish_navigation.rb +1 -1
- data/app/helpers/concerns/with_student_path_navigation/next_parent_navigation.rb +7 -0
- data/app/helpers/concerns/with_student_path_navigation/revisit_navigation.rb +1 -1
- data/app/helpers/discussions_helper.rb +64 -23
- data/app/helpers/editor_tabs_helper.rb +10 -6
- data/app/helpers/email_helper.rb +2 -2
- data/app/helpers/exercise_input_helper.rb +2 -3
- data/app/helpers/links_helper.rb +12 -9
- data/app/helpers/menu_bar_helper.rb +1 -1
- data/app/helpers/messages_helper.rb +1 -1
- data/app/helpers/multiple_file_editor_helper.rb +2 -1
- data/app/helpers/overlapped_buttons_helper.rb +22 -12
- data/app/helpers/profile_helper.rb +3 -3
- data/app/helpers/toast_helper.rb +27 -0
- data/app/helpers/user_activity_helper.rb +48 -0
- data/app/helpers/user_menu_helper.rb +24 -6
- data/app/views/book/show.html.erb +2 -2
- data/app/views/certificates/verify.html.erb +1 -1
- data/app/views/chapters/show.html.erb +2 -2
- data/app/views/discussions/_description_message.html.erb +1 -1
- data/app/views/discussions/_message.html.erb +32 -7
- data/app/views/discussions/_new_message.html.erb +13 -2
- data/app/views/discussions/index.html.erb +8 -10
- data/app/views/discussions/new.html.erb +2 -2
- data/app/views/discussions/show.html.erb +20 -12
- data/app/views/exam_registrations/show.html.erb +10 -11
- data/app/views/exercise_solutions/_assistant_rules_box.html.erb +1 -1
- data/app/views/exercise_solutions/_contextualization_results_body.html.erb +1 -1
- data/app/views/exercise_solutions/_contextualization_results_container.html.erb +1 -1
- data/app/views/exercise_solutions/_kids_results_button.html.erb +2 -2
- data/app/views/exercise_solutions/_results.html.erb +1 -1
- data/app/views/exercises/_exercise_assignment.html.erb +2 -2
- data/app/views/exercises/_exercise_skipped.html.erb +1 -1
- data/app/views/exercises/_read_only.html.erb +108 -105
- data/app/views/exercises/show.html.erb +7 -7
- data/app/views/faqs/index.html.erb +5 -1
- data/app/views/guides/_guide.html.erb +1 -1
- data/app/views/guides/_guide_container.html.erb +4 -4
- data/app/views/invitations/_invitation_form.html.erb +5 -4
- data/app/views/layouts/_authoring.html.erb +1 -1
- data/app/views/layouts/_discussions.html.erb +7 -7
- data/app/views/layouts/_kids.html.erb +5 -5
- data/app/views/layouts/_kindergarten.html.erb +10 -6
- data/app/views/layouts/_main.html.erb +10 -10
- data/app/views/layouts/_organizations_listing.html.erb +2 -2
- data/app/views/layouts/_progress_bar.html.erb +2 -0
- data/app/views/layouts/_submission_result_error.html.erb +1 -1
- data/app/views/layouts/_test_results.html.erb +1 -1
- data/app/views/layouts/_timer.html.erb +1 -1
- data/app/views/layouts/_user_menu.html.erb +13 -20
- data/app/views/layouts/application.html.erb +39 -42
- data/app/views/layouts/exercise_inputs/editors/_code.html.erb +4 -4
- data/app/views/layouts/exercise_inputs/editors/_free_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/editors/_multiple_choice.html.erb +7 -9
- data/app/views/layouts/exercise_inputs/editors/_multiple_files.html.erb +10 -10
- data/app/views/layouts/exercise_inputs/editors/_single_choice.html.erb +6 -8
- data/app/views/layouts/exercise_inputs/editors/_text.html.erb +2 -3
- data/app/views/layouts/exercise_inputs/editors/_upload.html.erb +5 -5
- data/app/views/layouts/exercise_inputs/forms/_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb +2 -2
- data/app/views/layouts/exercise_inputs/forms/_kids_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/forms/_playground_form.html.erb +2 -2
- data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +13 -9
- data/app/views/layouts/exercise_inputs/layouts/_input_primary.html.erb +2 -2
- data/app/views/layouts/exercise_inputs/layouts/_input_right.html.erb +2 -2
- data/app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/read_only_editors/_free_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_choice.html.erb +4 -4
- data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_files.html.erb +2 -2
- data/app/views/layouts/exercise_inputs/read_only_editors/_single_choice.html.erb +4 -4
- data/app/views/layouts/exercise_inputs/read_only_editors/_text.erb +1 -1
- data/app/views/layouts/modals/_avatar_picker.html.erb +2 -5
- data/app/views/layouts/modals/_guide_corollary.html.erb +4 -8
- data/app/views/layouts/modals/_kids_context.html.erb +7 -5
- data/app/views/layouts/modals/_kids_results.html.erb +2 -2
- data/app/views/layouts/modals/_kids_results_aborted.html.erb +2 -2
- data/app/views/layouts/modals/_kindergarten_context.html.erb +3 -3
- data/app/views/layouts/modals/_kindergarten_results.html.erb +3 -3
- data/app/views/layouts/modals/_kindergarten_results_aborted.html.erb +2 -2
- data/app/views/layouts/modals/_level_up.html.erb +2 -5
- data/app/views/layouts/modals/_new_message.html.erb +5 -5
- data/app/views/notifications/_dropdown.html.erb +3 -3
- data/app/views/users/_activity_indicator.html.erb +17 -0
- data/app/views/users/_edit_user_form.html.erb +6 -6
- data/app/views/users/_profile_fields.html.erb +6 -6
- data/app/views/users/_user_form.html.erb +2 -2
- data/app/views/users/activity.html.erb +37 -0
- data/app/views/users/certificates.html.erb +26 -24
- data/app/views/users/discussions.html.erb +23 -21
- data/app/views/users/messages.html.erb +22 -20
- data/app/views/users/show.html.erb +5 -3
- data/app/views/users/terms.html.erb +4 -2
- data/config/initializers/inflections.rb +3 -0
- data/config/routes.rb +3 -0
- data/lib/mumuki/laboratory.rb +1 -1
- data/lib/mumuki/laboratory/extensions.rb +1 -0
- data/lib/mumuki/laboratory/extensions/date_and_time.rb +11 -0
- data/lib/mumuki/laboratory/locales/en.yml +28 -2
- data/lib/mumuki/laboratory/locales/es-CL.yml +33 -4
- data/lib/mumuki/laboratory/locales/es.yml +33 -4
- data/lib/mumuki/laboratory/locales/pt.yml +34 -3
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/spec/capybara_helper.rb +1 -0
- data/spec/controllers/discussions_messages_controller_spec.rb +84 -3
- data/spec/dummy/db/schema.rb +23 -3
- data/spec/features/discussion_flow_spec.rb +22 -2
- data/spec/features/exercise_flow_spec.rb +1 -1
- data/spec/features/guide_reset_spec.rb +1 -1
- data/spec/features/terms_flow_spec.rb +1 -2
- data/spec/features/user_activity_flow_spec.rb +65 -0
- data/spec/helpers/breadcrumbs_helper_spec.rb +2 -2
- data/spec/helpers/user_activity_helper_spec.rb +32 -0
- data/spec/helpers/with_navigation_spec.rb +36 -13
- data/spec/javascripts/editors-spec.js +3 -3
- data/spec/javascripts/kids-button-spec.js +2 -2
- data/spec/javascripts/upload-spec.js +8 -8
- metadata +133 -123
- data/app/assets/stylesheets/mumuki_laboratory/application/hovers.scss +0 -12
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_checkboxes.scss +0 -34
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_guide_corollary.scss +0 -9
@@ -6,7 +6,7 @@ mumuki.progress = (() => {
|
|
6
6
|
* */
|
7
7
|
function updateProgressBarAndShowModal(data) {
|
8
8
|
$('.progress-list-item.active').attr('class', data.class_for_progress_list_item);
|
9
|
-
if(data.guide_finished_by_solution)
|
9
|
+
if(data.guide_finished_by_solution) new bootstrap.Modal('#guide-done').show();
|
10
10
|
}
|
11
11
|
|
12
12
|
/**
|
@@ -87,7 +87,7 @@ mumuki.renderers.speechBubble = (()=> {
|
|
87
87
|
render() {
|
88
88
|
this.$bubble.find('.mu-kids-character-speech-bubble-tabs').hide();
|
89
89
|
this.$bubble.find('.mu-kids-character-speech-bubble-normal').hide();
|
90
|
-
this.$failedArea.
|
90
|
+
this.$failedArea.removeClass('d-none').addClass('d-block').html(this.responseData.title_html);
|
91
91
|
this._addClass(this._responseStatus());
|
92
92
|
this._chooseResultItem();
|
93
93
|
this._appendDiscussionsLinkHtml();
|
@@ -20,7 +20,7 @@ mumuki.submission = (() => {
|
|
20
20
|
}
|
21
21
|
waiting() {
|
22
22
|
this.submissionsResultsArea.html(this.processingTemplate.html());
|
23
|
-
this.submissionsErrorTemplate.
|
23
|
+
this.submissionsErrorTemplate.addClass('d-none');
|
24
24
|
}
|
25
25
|
success(data, submitButton) {
|
26
26
|
this.submissionsResultsArea.html(data.html);
|
@@ -30,7 +30,8 @@ mumuki.submission = (() => {
|
|
30
30
|
}
|
31
31
|
error(submitButton) {
|
32
32
|
this.submissionsResultsArea.html('');
|
33
|
-
this.submissionsErrorTemplate.
|
33
|
+
this.submissionsErrorTemplate.addClass('d-block');
|
34
|
+
this.submissionsErrorTemplate.removeClass('d-none');
|
34
35
|
animateTimeoutError(submitButton);
|
35
36
|
}
|
36
37
|
done(data, submitButton) {
|
@@ -69,7 +70,7 @@ mumuki.submission = (() => {
|
|
69
70
|
.done((data) => resultsBox.success(data, this))
|
70
71
|
.fail(() => resultsBox.error(this))
|
71
72
|
.always((data) => {
|
72
|
-
$(document).renderMuComponents();
|
73
|
+
$(document).renderMuComponents({ webBrowser: { allowScript: true } });
|
73
74
|
resultsBox.done(data, this);
|
74
75
|
});
|
75
76
|
}
|
@@ -35,14 +35,14 @@ mumuki.upload = (() => {
|
|
35
35
|
}
|
36
36
|
|
37
37
|
showFileExceedsMaxSize() {
|
38
|
-
this.$uploadFileLimitExceeded.removeClass('
|
38
|
+
this.$uploadFileLimitExceeded.removeClass('d-none');
|
39
39
|
this.$uploadLabel.text(this.$uploadLabelText);
|
40
40
|
this.$uploadIcon.addClass('fa-upload').removeClass('fa-file-alt');
|
41
41
|
this.$btnSubmit.addClass('disabled');
|
42
42
|
}
|
43
43
|
|
44
44
|
allowSubmissionFor(filename) {
|
45
|
-
this.$uploadFileLimitExceeded.addClass('
|
45
|
+
this.$uploadFileLimitExceeded.addClass('d-none');
|
46
46
|
this.$uploadLabel.text(filename);
|
47
47
|
this.$uploadIcon.removeClass('fa-upload').addClass('fa-file-alt');
|
48
48
|
this.$btnSubmit.removeClass('disabled');
|
@@ -1,9 +1,53 @@
|
|
1
|
+
mumuki.user = {
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The current user's id
|
5
|
+
*
|
6
|
+
* @type {number?}
|
7
|
+
* */
|
8
|
+
_id: null,
|
9
|
+
|
10
|
+
/**
|
11
|
+
* The current user's id
|
12
|
+
*
|
13
|
+
* @type {number?}
|
14
|
+
* */
|
15
|
+
get id() {
|
16
|
+
return this._id;
|
17
|
+
},
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Set global current user information
|
21
|
+
*/
|
22
|
+
load() {
|
23
|
+
const $muUserId = $('#mu-user-id');
|
24
|
+
if ($muUserId.length) {
|
25
|
+
this._id = $muUserId.val();
|
26
|
+
} else {
|
27
|
+
this._id = null;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
};
|
31
|
+
|
1
32
|
mumuki.load(() => {
|
2
|
-
|
3
|
-
|
4
|
-
|
33
|
+
const $userMenuHeader = $('.mu-user-menu-header');
|
34
|
+
let onUserProfile = document.querySelector('.mu-profile-info') !== null;
|
35
|
+
|
36
|
+
$userMenuHeader.click(() => {
|
37
|
+
$('.mu-user-menu-items').toggleClass('mu-hidden-sm-screen');
|
38
|
+
$('#mu-user-menu-header-icon').toggleClass('fa-chevron-up fa-chevron-down');
|
39
|
+
});
|
40
|
+
|
41
|
+
if (onUserProfile) {
|
42
|
+
$userMenuHeader.click();
|
5
43
|
}
|
6
|
-
|
7
|
-
|
44
|
+
|
45
|
+
$('.mu-user-menu-item .active').click((e) => {
|
46
|
+
if (onUserProfile) {
|
47
|
+
e.preventDefault();
|
48
|
+
$userMenuHeader.click();
|
49
|
+
}
|
8
50
|
});
|
51
|
+
|
52
|
+
mumuki.user.load()
|
9
53
|
});
|
@@ -8,7 +8,6 @@ $da-font-path: asset-path('assets');
|
|
8
8
|
@import "application/vendor";
|
9
9
|
@import "application/locked";
|
10
10
|
@import "application/tooltip";
|
11
|
-
@import "application/hovers";
|
12
11
|
@import "application/mixins";
|
13
12
|
@import "application/layout";
|
14
13
|
@import "application/invitations";
|
@@ -1,8 +1,3 @@
|
|
1
|
-
html {
|
2
|
-
position: relative;
|
3
|
-
min-height: 100%;
|
4
|
-
}
|
5
|
-
|
6
1
|
.navbar-brand {
|
7
2
|
padding-top: 0;
|
8
3
|
padding-bottom: 0;
|
@@ -21,10 +16,6 @@ html {
|
|
21
16
|
}
|
22
17
|
}
|
23
18
|
|
24
|
-
body {
|
25
|
-
margin-bottom: 110px;
|
26
|
-
}
|
27
|
-
|
28
19
|
.mu-footer {
|
29
20
|
&.container {
|
30
21
|
margin-top: 45px;
|
@@ -76,17 +67,12 @@ body {
|
|
76
67
|
|
77
68
|
.editor-tab {
|
78
69
|
padding: 5px 10px 5px 10px !important;
|
79
|
-
cursor: pointer;
|
80
70
|
}
|
81
71
|
|
82
72
|
.mu-input-panel {
|
83
73
|
margin-top: 5px;
|
84
74
|
}
|
85
75
|
|
86
|
-
h1 {
|
87
|
-
margin-top: 10px;
|
88
|
-
}
|
89
|
-
|
90
76
|
.text-box {
|
91
77
|
text-align: justify;
|
92
78
|
|
@@ -123,16 +109,8 @@ hr {
|
|
123
109
|
/* TODO: move to mumuki-styles */
|
124
110
|
.mu-inline-block-left {
|
125
111
|
display: flex;
|
112
|
+
flex-grow: 1;
|
126
113
|
align-items: center;
|
127
|
-
|
128
|
-
margin-left: 15px;
|
129
|
-
}
|
130
|
-
|
131
|
-
.mu-inline-block-right {
|
132
|
-
float: right !important;
|
133
|
-
display: inline-block;
|
134
|
-
margin-right: 15px;
|
135
|
-
margin-left: 10px;
|
136
114
|
}
|
137
115
|
|
138
116
|
.mu-org-link {
|
@@ -147,7 +125,3 @@ hr {
|
|
147
125
|
padding: 0;
|
148
126
|
}
|
149
127
|
}
|
150
|
-
|
151
|
-
h3 {
|
152
|
-
margin-top: 20px;
|
153
|
-
}
|
@@ -1,8 +1,8 @@
|
|
1
|
+
@import "modules/activity";
|
1
2
|
@import "modules/avatar";
|
2
3
|
@import "modules/book_header";
|
3
4
|
@import "modules/breadcrumb";
|
4
5
|
@import "modules/certificate";
|
5
|
-
@import "modules/checkboxes";
|
6
6
|
@import "modules/console";
|
7
7
|
@import "modules/content_show";
|
8
8
|
@import "modules/datepicker";
|
@@ -14,7 +14,6 @@
|
|
14
14
|
@import "modules/faqs";
|
15
15
|
@import "modules/flash";
|
16
16
|
@import "modules/gs-board";
|
17
|
-
@import "modules/guide_corollary";
|
18
17
|
@import "modules/highlight";
|
19
18
|
@import "modules/kids";
|
20
19
|
@import "modules/kindergarten";
|
@@ -10,7 +10,7 @@
|
|
10
10
|
.brand {
|
11
11
|
font-size: 38px;
|
12
12
|
padding: 8px 3px 0;
|
13
|
-
color: $
|
13
|
+
color: $primary;
|
14
14
|
&:hover, &:focus {
|
15
15
|
text-decoration: none;
|
16
16
|
}
|
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
.mu-navbar-avatar {
|
54
54
|
justify-self: flex-end;
|
55
|
-
.
|
55
|
+
.rounded-circle {
|
56
56
|
cursor: pointer;
|
57
57
|
}
|
58
58
|
}
|
@@ -7,6 +7,23 @@ $discussion-button-color: #fafafa;
|
|
7
7
|
$toolbar-filter-color: #808080;
|
8
8
|
$moderator-badge-color: #dd9900;
|
9
9
|
|
10
|
+
.discussions {
|
11
|
+
margin-bottom: 20px;
|
12
|
+
|
13
|
+
a {
|
14
|
+
color: unset;
|
15
|
+
text-decoration: unset;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.mu-discussion-accordion button {
|
20
|
+
color: $primary;
|
21
|
+
|
22
|
+
&:not(.collapsed) {
|
23
|
+
background-color: $mu-color-highlight-background;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
10
27
|
.discussions-list {
|
11
28
|
margin: 30px 0;
|
12
29
|
.discussion {
|
@@ -20,8 +37,6 @@ $moderator-badge-color: #dd9900;
|
|
20
37
|
border: 1px solid $discussion-message-border-color;
|
21
38
|
}
|
22
39
|
a {
|
23
|
-
color: unset;
|
24
|
-
text-decoration: unset;
|
25
40
|
&:not(:last-child) > .discussion {
|
26
41
|
border-bottom: 0;
|
27
42
|
}
|
@@ -42,17 +57,6 @@ $moderator-badge-color: #dd9900;
|
|
42
57
|
justify-content: center;
|
43
58
|
}
|
44
59
|
|
45
|
-
.discussion-pagination .pagination li {
|
46
|
-
a, span {
|
47
|
-
background-color: lighten($brand-primary, 10%);
|
48
|
-
}
|
49
|
-
&:hover, &.active, &.active:hover {
|
50
|
-
a, span {
|
51
|
-
background-color: $brand-primary;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
60
|
.discussion-language-icon {
|
57
61
|
float: right;
|
58
62
|
margin-right: 10px;
|
@@ -139,18 +143,24 @@ $moderator-badge-color: #dd9900;
|
|
139
143
|
border-bottom: none;
|
140
144
|
.discussions-toolbar-status {
|
141
145
|
float: left;
|
146
|
+
|
147
|
+
a {
|
148
|
+
text-decoration: unset;
|
149
|
+
}
|
142
150
|
li {
|
143
151
|
text-decoration: none;
|
144
152
|
display: inline;
|
145
153
|
margin-right: 15px;
|
146
154
|
&:not(.selected) .status-icon, span {
|
147
|
-
|
155
|
+
filter: contrast(0%);
|
148
156
|
}
|
149
157
|
&:hover span {
|
150
158
|
color: darken($toolbar-filter-color, 20%);
|
159
|
+
filter: contrast(100%);
|
151
160
|
}
|
152
161
|
&.selected span {
|
153
162
|
color: darken($toolbar-filter-color, 40%);
|
163
|
+
filter: contrast(100%);
|
154
164
|
font-weight: bold;
|
155
165
|
}
|
156
166
|
}
|
@@ -159,6 +169,11 @@ $moderator-badge-color: #dd9900;
|
|
159
169
|
float: right;
|
160
170
|
margin-right: 20px;
|
161
171
|
cursor: pointer;
|
172
|
+
|
173
|
+
> a {
|
174
|
+
text-decoration: unset;
|
175
|
+
color: $primary;
|
176
|
+
}
|
162
177
|
li.selected {
|
163
178
|
a {
|
164
179
|
font-weight: bold;
|
@@ -190,26 +205,6 @@ $moderator-badge-color: #dd9900;
|
|
190
205
|
padding-inline: 5px;
|
191
206
|
}
|
192
207
|
|
193
|
-
.discussion-user-menu {
|
194
|
-
a {
|
195
|
-
padding: 5px 10px;
|
196
|
-
font-size: 15px;
|
197
|
-
line-height: 20px;
|
198
|
-
border: 1px solid rgba(27, 31, 35, 0.2);
|
199
|
-
border-radius: 0.25em;
|
200
|
-
background-color: $discussion-button-color;
|
201
|
-
font-weight: bold;
|
202
|
-
color: black;
|
203
|
-
cursor: pointer;
|
204
|
-
margin-left: 10px;
|
205
|
-
&:hover {
|
206
|
-
text-decoration: none;
|
207
|
-
background-color: darken($discussion-button-color, 5%);
|
208
|
-
color: black;
|
209
|
-
}
|
210
|
-
}
|
211
|
-
}
|
212
|
-
|
213
208
|
.discussion-context {
|
214
209
|
margin-top: 40px;
|
215
210
|
}
|
@@ -233,10 +228,6 @@ $moderator-badge-color: #dd9900;
|
|
233
228
|
}
|
234
229
|
}
|
235
230
|
|
236
|
-
.discussion-tabs {
|
237
|
-
margin-top: 20px;
|
238
|
-
}
|
239
|
-
|
240
231
|
.discussion-info {
|
241
232
|
font-size: 18px;
|
242
233
|
}
|
@@ -256,6 +247,7 @@ $moderator-badge-color: #dd9900;
|
|
256
247
|
.discussion-new-message-content {
|
257
248
|
resize: none;
|
258
249
|
min-height: 150px;
|
250
|
+
padding: 0;
|
259
251
|
border-radius: 0;
|
260
252
|
border-color: transparent;
|
261
253
|
overflow: hidden;
|
@@ -263,7 +255,7 @@ $moderator-badge-color: #dd9900;
|
|
263
255
|
white-space: nowrap;
|
264
256
|
.CodeMirror {
|
265
257
|
border: unset;
|
266
|
-
color: $
|
258
|
+
color: $primary;
|
267
259
|
font-family: $font-family-sans-serif;
|
268
260
|
padding: 15px;
|
269
261
|
}
|
@@ -277,19 +269,21 @@ $moderator-badge-color: #dd9900;
|
|
277
269
|
}
|
278
270
|
}
|
279
271
|
|
280
|
-
|
281
|
-
display:
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
display: inline;
|
272
|
+
.discussion-new-message-buttons {
|
273
|
+
display: flex;
|
274
|
+
margin: 0 -10px;
|
275
|
+
|
276
|
+
.btn {
|
277
|
+
margin: 15px 10px;
|
287
278
|
}
|
288
279
|
}
|
289
280
|
|
281
|
+
.discussion-new-message-preview-button {
|
282
|
+
flex-grow: 0.2;
|
283
|
+
}
|
284
|
+
|
290
285
|
.discussion-new-message-button {
|
291
|
-
|
292
|
-
margin-top: 15px;
|
286
|
+
flex-grow: 1;
|
293
287
|
}
|
294
288
|
|
295
289
|
.discussion-message {
|
@@ -334,7 +328,7 @@ summary.discussion-summary {
|
|
334
328
|
}
|
335
329
|
.actions {
|
336
330
|
float: right;
|
337
|
-
a {
|
331
|
+
> a, .dropdown {
|
338
332
|
margin-left: 20px;
|
339
333
|
cursor: pointer;
|
340
334
|
}
|
@@ -345,7 +339,7 @@ summary.discussion-summary {
|
|
345
339
|
}
|
346
340
|
&:hover, &.selected {
|
347
341
|
i {
|
348
|
-
color: $
|
342
|
+
color: $success;
|
349
343
|
}
|
350
344
|
}
|
351
345
|
}
|
@@ -368,9 +362,9 @@ summary.discussion-summary {
|
|
368
362
|
}
|
369
363
|
&:hover, &.selected {
|
370
364
|
i {
|
371
|
-
color: $
|
365
|
+
color: $primary;
|
372
366
|
&:after {
|
373
|
-
background-color: $
|
367
|
+
background-color: $primary;
|
374
368
|
}
|
375
369
|
}
|
376
370
|
}
|
@@ -401,10 +395,10 @@ summary.discussion-summary {
|
|
401
395
|
}
|
402
396
|
|
403
397
|
$statuses: (
|
404
|
-
closed: ($
|
398
|
+
closed: ($danger white $danger),
|
405
399
|
opened: (white #333333 #eaeaea),
|
406
|
-
solved: ($
|
407
|
-
pending_review: ($
|
400
|
+
solved: ($success white $success),
|
401
|
+
pending_review: ($success white $success)
|
408
402
|
);
|
409
403
|
|
410
404
|
@each $status, $style in $statuses {
|
@@ -425,10 +419,6 @@ $statuses: (
|
|
425
419
|
}
|
426
420
|
}
|
427
421
|
|
428
|
-
.no-margin {
|
429
|
-
margin: 0 !important;
|
430
|
-
}
|
431
|
-
|
432
422
|
.discussion-requires-attention {
|
433
423
|
margin-right: 20px;
|
434
424
|
label {
|