Skip to content

Commit

Permalink
initial survey plugin rewrite with survey-jquery and updated versions
Browse files Browse the repository at this point in the history
  • Loading branch information
becky-gilbert committed Jan 3, 2024
1 parent d33176a commit 036c40a
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 780 deletions.
30 changes: 18 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 27 additions & 20 deletions packages/plugin-survey/css/survey.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
@use "survey-knockout/survey.css";
@use "survey-jquery/defaultV2.min.css";

.sv_main {
font-family: "Open Sans", "Arial", sans-serif;
font-size: 18px;
text-align: left;
// move buttons to right
div#sv-nav-complete.sv-action, div#sv-nav-next.sv-action {
margin-left: auto !important;
}

.sv_body {
border-top-width: 0;
}
// TO DO: keeping this here for reference until we decide on default style

.sv_p_root {
.sv_row {
border-bottom: none;
}
}
// .sv_main {
// font-family: "Open Sans", "Arial", sans-serif;
// font-size: 18px;
// text-align: left;

.sv_container .sv_body .sv_p_root .sv_q_title {
font-weight: normal;
}
// .sv_body {
// border-top-width: 0;
// }

.sv_q_erbox {
font-size: 0.85em;
}
}
// .sv_p_root {
// .sv_row {
// border-bottom: none;
// }
// }

// .sv_container .sv_body .sv_p_root .sv_q_title {
// font-weight: normal;
// }

// .sv_q_erbox {
// font-size: 0.85em;
// }
// }
7 changes: 4 additions & 3 deletions packages/plugin-survey/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"url": "git+https://github.com/jspsych/jsPsych.git",
"directory": "packages/plugin-survey"
},
"author": "",
"author": "Becky Gilbert",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jsPsych/issues"
Expand All @@ -50,7 +50,8 @@
"sass": "^1.43.5"
},
"dependencies": {
"knockout": "3.5.1",
"survey-knockout": "1.9.30"
"jquery": "^3.7.1",
"survey-core": "^1.9.121",
"survey-jquery": "^1.9.122"
}
}
Loading

0 comments on commit 036c40a

Please sign in to comment.