summaryrefslogtreecommitdiff
path: root/addons/survey/static
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2020-03-04 10:05:02 +0000
committerAurélien Warnon <awa@odoo.com>2020-03-31 15:12:06 +0000
commitafd78f12ae99f61323467dc67813cfdb257272b7 (patch)
tree8df1a52f85b28caa9efb0dd5d04c2f01ab52dd53 /addons/survey/static
parentaaf3cb50c31f4e27b26fa01f540aaba2da7e8255 (diff)
[IMP] survey: show matrix choices on session host view
This commit improves the session host view by showing matrix choices for matrix questions. This is done to help people in the audience that are not participating to the session to have some context about possibles question answers. LINKS PR #46768 Task 2208574
Diffstat (limited to 'addons/survey/static')
-rw-r--r--addons/survey/static/src/scss/survey_form.scss35
1 files changed, 19 insertions, 16 deletions
diff --git a/addons/survey/static/src/scss/survey_form.scss b/addons/survey/static/src/scss/survey_form.scss
index aaa62d7f38f..9f76f380101 100644
--- a/addons/survey/static/src/scss/survey_form.scss
+++ b/addons/survey/static/src/scss/survey_form.scss
@@ -18,7 +18,7 @@ nav#oe_main_menu_navbar {
min-height: 100%;
}
-.o_survey_form, .o_survey_print, .o_survey_quick_access {
+.o_survey_form, .o_survey_print, .o_survey_session_manage, .o_survey_quick_access {
.o_survey_question_error {
height: 0px;
transition: height .5s ease;
@@ -109,6 +109,17 @@ nav#oe_main_menu_navbar {
}
}
+.o_survey_form, .o_survey_session_manage {
+ .o_survey_question_matrix {
+ th {
+ background-color: $primary;
+ }
+ td {
+ background-color: rgba($primary, 0.2);
+ }
+ }
+}
+
/**********************************************************
Form Specific Style
**********************************************************/
@@ -157,19 +168,11 @@ nav#oe_main_menu_navbar {
}
}
- .o_survey_question_matrix {
- th {
- background-color: $primary;
- }
- td {
- background-color: rgba($primary, 0.2);
- &:hover {
- background-color: rgba($primary, 0.5);
- cursor: pointer;
- .o_survey_choice_key span.o_survey_key {
- opacity: 1;
- }
- }
+ .o_survey_question_matrix td:hover {
+ background-color: rgba($primary, 0.5);
+ cursor: pointer;
+ .o_survey_choice_key span.o_survey_key {
+ opacity: 1;
}
}
}
@@ -216,8 +219,8 @@ nav#oe_main_menu_navbar {
height: 100vh;
width: 85vw;
- .js_question-wrapper {
- padding-bottom: 0px;
+ .o_survey_choice_key {
+ display: none;
}
&.pt-6 {