Skip to content

Commit

Permalink
Use matrix's responsive titles in other themes: default and modern (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 authored Feb 1, 2024
1 parent 6c6f889 commit a016d56
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/defaultCss/cssmodern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export var modernCss = {
cellText: "sv-matrix__text",
cellTextSelected: "sv-matrix__text--checked",
cellTextDisabled: "sv-matrix__text--disabled",
cellResponsiveTitle: "sv-hidden",
cellResponsiveTitle: "sv-matrix__cell-responsive-title",
itemSvgIconId: "#icon-modernradio",
},
matrixdropdown: {
Expand Down
2 changes: 1 addition & 1 deletion src/defaultCss/cssstandard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export var defaultStandardCss = {
cellText: "sv_q_m_cell_text",
cellTextSelected: "sv_q_m_cell_selected",
cellLabel: "sv_q_m_cell_label",
cellResponsiveTitle: "sv-hidden"
cellResponsiveTitle: "sv_q_m_cell_responsive_title"
},
matrixdropdown: {
root: "sv_q_matrix_dropdown",
Expand Down
12 changes: 9 additions & 3 deletions src/main.m600.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,37 @@
.sv_qstn {
display: block;
width: 100% !important;

.title-left {
float: none;
}

.sv_q_radiogroup_inline,
.sv_q_checkbox_inline,
.sv_q_imagepicker_inline {
display: block;
}

table.sv_q_matrix,
table.sv_q_matrix_dropdown,
table.sv_q_matrix_dynamic {
display: block;

thead {
display: none;
}

td.sv-table__cell--choice {
text-align: initial;
}

tbody,
tr,
td {
display: block;
}
}

table.sv_q_matrix_dropdown,
table.sv_q_matrix_dynamic {
td {
Expand All @@ -40,15 +47,14 @@
}
}
}

table.sv_q_matrix {
td {
label.sv_q_m_label {
display: inline;
}
&:after {
content: attr(data-responsive-title);
}
}

.sv_q_m_cell {
text-align: initial;
}
Expand Down
12 changes: 9 additions & 3 deletions src/modern.m600.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,34 @@
.sv-row__question {
display: block;
width: 100% !important;

.sv-question__header--location--left {
float: none;
}

.sv-selectbase__item--inline,
.sv-imagepicker__item--inline {
display: block;
}

table.sv-table {
display: block;

thead {
display: none;
}

td.sv-table__cell--choice {
text-align: initial;
}

tbody,
tr,
td {
display: block;
}
}

table.sv-matrixdropdown,
table.sv-matrixdynamic {
td {
Expand All @@ -37,15 +44,14 @@
}
}
}

table.sv-matrix-root {
td {
label.sv-matrix__label {
display: inline;
}
&:after {
content: attr(data-responsive-title);
}
}

.sv-matrix__cell {
text-align: initial;
}
Expand Down

0 comments on commit a016d56

Please sign in to comment.