@bdelab/roar-sre
Version:
The ROAR hackathon version of the timed sentence reading efficiency
652 lines (650 loc) • 15.1 kB
CSS
/* CSS Document */
.this-is-roar {
content: "is a game";
}
.jspsych-display-element {
font-family: "Source Sans Pro", Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
width: 60%;
height: 100%;
margin: auto;
text-align: center;
touch-action: manipulation;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
/*
.jspsych-content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
*/
/* jsPsych progress bar */
/* Control appearance of jsPsych.data.displayData() */
/* borrowing Bootstrap style for btn elements, but combining styles a bit */
}
.jspsych-display-element .grade-btn {
padding: 1vh 2vh;
margin: 1vh;
margin-top: 4vh;
font-size: 4vh;
font-weight: bold;
cursor: pointer;
text-align: center;
vertical-align: middle;
border: 1vh solid transparent;
border-radius: 1vh;
color: rgb(255, 202, 97);
background-color: rgb(76, 101, 139);
border-color: rgb(65, 91, 127);
}
.jspsych-display-element .mobile-grade-select {
margin-top: 8rem;
}
.jspsych-display-element .mobile-student-select-characters {
margin-top: 40vh;
}
.jspsych-display-element #mobile-classroom-bg {
position: fixed; /* or absolute, depending on your needs */
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1; /* This ensures the image stays behind other content */
object-fit: cover;
}
.jspsych-display-element .mobile-character-select {
width: 20%;
}
.jspsych-display-element .mobile-audio-btn-container {
display: flex;
justify-content: center;
gap: 10%;
}
.jspsych-display-element .mobile-stimulus-wrap {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.jspsych-display-element .mobile-stimulus-wrap .mobile-stimulus-jspsych-content {
height: 40%;
}
.jspsych-display-element .mobile-stimulus-wrap .mobile-stimulus-jspsych-content #mobile-stimulus {
font-size: 4rem;
}
.jspsych-display-element .mobile-stimulus-wrap .mobile-stimulus-jspsych-content #mobile-placeholder-stimulus {
color: white;
font-size: 4rem;
}
.jspsych-display-element .mobile-stimulus-wrap .mobile-stimulus-jspsych-content .mobile-stimulus-btn {
border: transparent;
padding: 0;
position: relative;
border: none;
background: transparent none;
cursor: pointer;
display: inline-block;
}
.jspsych-display-element .mobile-stimulus-wrap .mobile-stimulus-jspsych-content .mobile-stimulus-btn img {
display: block;
width: 100%;
height: 100%;
}
.jspsych-display-element .mobile-stimulus-wrap .mobile-stimulus-jspsych-content .mobile-stimulus-btn span {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 7rem;
}
.jspsych-display-element .mobile-practice-feedback {
background: none;
margin-top: 4rem;
}
.jspsych-display-element .mobile-disable-button {
pointer-events: none;
}
.jspsych-display-element #mobile-stimulus-text {
font-size: 1.75rem;
}
.jspsych-display-element #sre-background {
background-color: rgb(250, 246, 236);
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
max-height: 100%;
max-width: 100%;
padding: 0px;
margin: 0px;
z-index: -1;
}
.jspsych-display-element #end-classroom {
position: absolute;
height: 80%;
left: 0vh;
bottom: 45vh;
}
.jspsych-display-element #end-student {
position: relative;
left: 0vh;
top: 10vh;
height: 65%;
}
.jspsych-display-element .instruction-background {
display: block;
background-color: rgb(250, 246, 236);
padding-top: 0vh;
min-height: 100%;
min-width: 100%;
}
.jspsych-display-element h1 {
margin-top: 10%;
margin-right: 10%;
margin-left: 10%;
text-align: center;
padding-inline: 10px;
font-weight: semi-bold;
font-size: 6vh;
color: rgb(76, 101, 139);
}
.jspsych-display-element h2 {
text-align: center;
font-style: normal;
font-weight: regular;
font-size: 5vh;
color: rgb(76, 101, 139);
}
.jspsych-display-element h3 {
text-align: center;
font-style: normal;
font-weight: regular;
font-size: 4vh;
color: rgb(76, 101, 139);
z-index: 1;
}
.jspsych-display-element p:not(.feedback, .stimulus) {
text-align: center;
vertical-align: middle;
font-style: normal;
font-weight: normal;
font-size: 3vh;
color: rgb(0, 0, 0);
z-index: 1;
}
.jspsych-display-element n {
text-align: center;
vertical-align: middle;
font-style: normal;
font-weight: bold;
font-size: 3vh;
color: rgb(255, 202, 97);
z-index: 1;
}
.jspsych-display-element .consent_form_title {
margin-right: 10%;
margin-left: 10%;
font-size: 3vh;
}
.jspsych-display-element .consent_form_text {
margin: 10%;
text-align: left;
font-size: 2vh;
}
.jspsych-display-element .survey_form_text {
text-align: center;
font-size: 3vh;
}
.jspsych-display-element .consent_form_agree {
margin: 5%;
text-align: left;
font-size: 2vh;
}
.jspsych-display-element .debrief_text {
margin: 20%;
text-align: left;
font-size: 2vh;
}
.jspsych-display-element .jspsych-survey-multi-select-option {
font-size: 2vh;
text-align: center;
}
.jspsych-display-element .stimulus {
text-align: center;
vertical-align: middle;
font-style: normal;
font-weight: normal;
font-size: 4vh;
line-height: 4vh;
color: rgb(0, 0, 0);
}
.jspsych-display-element .full_screen {
text-align: center;
font-style: normal;
font-weight: normal;
font-size: 32px;
line-height: 32px;
padding-top: 300px;
color: rgb(0, 0, 0);
}
.jspsych-display-element .feedback {
text-align: center;
font-style: normal;
font-weight: bold;
font-size: 3vh;
line-height: 3vh;
color: rgb(0, 0, 0);
}
.jspsych-display-element .jspsych-content-modified {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.jspsych-display-element .jspsych-content-modified .class-container {
width: 100%;
position: absolute;
margin: auto;
display: block;
}
.jspsych-display-element .jspsych-content-modified .class-container #classroom-bg {
position: fixed; /* or absolute, depending on your needs */
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1; /* This ensures the image stays behind other content */
object-fit: cover;
}
.jspsych-display-element .text-block {
position: relative;
bottom: 15px;
top: 15px;
background-color: rgb(246, 241, 230);
padding-left: 25px;
padding-right: 25px;
padding-top: 15px;
padding-bottom: 15px;
border: 6px solid rgb(229, 218, 191);
border-radius: 10px;
}
.jspsych-display-element .demo-text-block {
position: relative;
bottom: 25px;
top: 15px;
background-color: rgb(246, 241, 230);
padding-left: 85px;
padding-right: 85px;
padding-top: 60px;
padding-bottom: 60px;
border: 6px solid rgb(229, 218, 191);
border-radius: 10px;
}
.jspsych-display-element .grade-text-block {
position: relative;
bottom: 0px;
top: 0px;
left: 0px;
right: 0px;
background-color: rgb(246, 241, 230);
padding-left: 0px;
padding-right: 0px;
padding-top: 50px;
padding-bottom: 90px;
border: 6px solid rgb(229, 218, 191);
border-radius: 10px;
}
.jspsych-display-element .select-text-block {
position: relative;
bottom: 15px;
top: 30px;
background-color: rgb(246, 241, 230);
padding-left: 20px;
padding-right: 20px;
padding-top: 10px;
padding-bottom: 10px;
border: 6px solid rgb(229, 218, 191);
border-radius: 10px;
}
.jspsych-display-element .number-block {
display: flex;
align-items: center;
justify-content: center;
position: relative;
height: 5vh;
width: 6vh;
padding-left: 3vh;
padding-right: 3vh;
text-align: center;
vertical-align: middle;
background-color: rgb(76, 101, 139);
border: 6px solid rgb(65, 91, 127);
border-radius: 10px;
align-self: center;
}
.jspsych-display-element .container {
width: 100%;
position: fixed;
display: block;
}
.jspsych-display-element .transparent {
background: rgba(255, 255, 255, 0);
border-color: rgba(255, 255, 255, 0);
}
.jspsych-display-element .center {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.jspsych-display-element .star-center {
margin: 0;
position: absolute;
top: 45%;
left: 51%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.jspsych-display-element .vertical-center {
margin: 0;
position: absolute;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.jspsych-display-element .jspsych-video-button-response-stimulus {
margin: 0;
position: absolute;
top: 45%;
height: 90%;
-ms-transform: translateY(-45%);
transform: translateY(-45%);
}
.jspsych-display-element .stimulus_div {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.jspsych-display-element .text_div {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 60%;
}
.jspsych-display-element .center {
vertical-align: middle;
text-align: center;
}
.jspsych-display-element .upper {
position: fixed;
top: 0%;
left: 50%;
transform: translate(-50%, -50%);
height: 2vh;
}
.jspsych-display-element .lower {
position: fixed;
bottom: 20%;
left: 50%;
transform: translate(-50%, -50%);
height: 7vh;
}
.jspsych-display-element .orange {
color: rgb(219, 97, 69);
}
.jspsych-display-element .blue {
color: rgb(66, 152, 181);
}
.jspsych-display-element .yellow {
color: rgb(255, 202, 97);
}
.jspsych-display-element .row {
display: flex;
}
.jspsych-display-element .row .instruction-boxes {
margin-top: 2%;
margin-bottom: 2%;
padding: 3vh 2vh 3vh 2vh;
border: 6px solid rgb(229, 218, 191);
border-radius: 10px;
margin-right: 5%;
margin-left: 5%;
background-color: #ffffff;
}
.jspsych-display-element .row .instruction-boxes p {
text-align: center;
}
.jspsych-display-element .row .instruction-boxes img {
width: 60%;
}
.jspsych-display-element .row .column_1 {
padding: 0 0 10vh 0;
}
.jspsych-display-element .row .column_1 .characterleft {
text-align: center;
vertical-align: middle;
position: relative;
top: 10%;
height: 70vh;
}
.jspsych-display-element .row .column_3 {
margin-top: 10rem;
height: 36vh;
padding-right: 1vw;
padding-left: 1vw;
}
.jspsych-display-element .row .halfway-text-block {
background-color: rgb(255, 255, 255);
border: 6px solid rgb(229, 218, 191);
border-radius: 10px;
}
.jspsych-display-element .row .middle {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
}
.jspsych-display-element .row .student-text-block {
position: relative;
margin-top: 10vh;
margin-left: 5vh;
margin-right: 5vh;
height: 50vh;
background-color: rgb(255, 255, 255);
border: 6px solid rgb(229, 218, 191);
border-radius: 10px;
}
.jspsych-display-element .column_2_lower {
padding: 0 2vh 3vh 2vh;
flex: 50%;
border: 6px solid rgb(229, 218, 191);
border-radius: 10px;
margin-right: 5%;
margin-left: 5%;
}
.jspsych-display-element .button {
left: 0;
right: 0;
background-color: rgb(76, 101, 139);
text-align: center;
vertical-align: middle;
padding: 2vh;
font-style: normal;
font-weight: bold;
font-size: 3vh;
color: white;
position: fixed;
display: block;
bottom: 0;
border: 0;
z-index: 1;
}
.jspsych-display-element .story-scene {
width: 100%;
position: fixed;
display: block;
bottom: 5vh;
}
.jspsych-display-element .scene {
position: fixed;
bottom: 5vh;
width: 100%;
display: block;
}
.jspsych-display-element .student {
position: relative;
display: inline-flex;
flex-direction: row;
height: 50%;
width: 50%;
bottom: 10vh;
right: 0vh;
justify-content: center;
gap: 50px;
}
.jspsych-display-element .number {
position: relative;
display: inline-flex;
flex-direction: row;
height: 50%;
width: 50%;
bottom: -10vh;
left: 1vh;
justify-content: center;
gap: 200px;
}
.jspsych-display-element .imageleft {
text-align: center;
position: relative;
top: 50%;
height: 30vh;
}
.jspsych-display-element #jspsych-progressbar-container {
color: #555;
border-bottom: 1px solid #dedede;
background-color: #f9f9f9;
margin-bottom: 1em;
text-align: center;
padding: 8px 0px;
width: 100%;
line-height: 1em;
}
.jspsych-display-element #jspsych-progressbar-container span {
font-size: 14px;
padding-right: 14px;
}
.jspsych-display-element #jspsych-progressbar-outer {
background-color: #eee;
width: 50%;
margin: auto;
height: 14px;
display: inline-block;
vertical-align: middle;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.jspsych-display-element #jspsych-progressbar-inner {
background-color: #aaa;
width: 0%;
height: 100%;
}
.jspsych-display-element #jspsych-data-display {
text-align: left;
}
.jspsych-display-element .jspsych-btn {
display: inline-block;
padding: 1vh 2vh;
margin: 1vh;
font-size: 4vh;
font-weight: bold;
cursor: pointer;
line-height: 1.4;
text-align: center;
white-space: nowrap;
vertical-align: middle;
background-image: none;
border: 1vh solid transparent;
border-radius: 1vh;
color: rgb(255, 202, 97);
background-color: rgb(76, 101, 139);
border-color: rgb(65, 91, 127);
}
.jspsych-display-element .mep-stimulus {
display: inline-block;
width: 1.65vw;
height: 1.65vw;
margin: 0.13vw;
padding: 0px 0px 0.825vw 0px;
background: white;
border-style: solid;
border-width: 0px 0px 8px 0px;
border-color: rgba(255, 255, 255, 0);
}
.jspsych-display-element .bottom-border-blue {
border-bottom-color: blue ;
}
.jspsych-display-element #jspsych-html-button-response-stimulus {
margin-bottom: 25vw;
}
.jspsych-display-element #jspsych-html-multi-response-btngroup {
position: relative;
bottom: -70%;
width: 100%;
display: flex;
gap: 9rem;
}
.jspsych-display-element #jspsych-audio-multi-response-btngroup {
position: relative;
bottom: -70%;
width: 100%;
}
.jspsych-display-element #fixation-prompt {
margin-bottom: 0.825%;
}
.jspsych-display-element .jspsych-html-button-response-button {
display: inline-block;
width: 4vw;
height: 4vw;
margin: 0.75vw;
}
.jspsych-display-element #jspsych-fullscreen-btn {
position: fixed;
bottom: 20%;
left: 50%;
transform: translate(-50%, -50%);
}
.jspsych-display-element .jspsych-survey-html-form {
position: fixed;
bottom: 20%;
left: 50%;
transform: translate(-50%, -50%);
}