Spaces:
Runtime error
Runtime error
| @import "../../css/units.css"; | |
| @import "../../css/colors.css"; | |
| .question-container { | |
| margin: $space; | |
| border: 1px solid $ui-black-transparent-default; | |
| border-radius: $space; | |
| border-width: 2px; | |
| padding: 1rem; | |
| background: white; | |
| } | |
| .question-label { | |
| font-size: 0.75rem; | |
| font-weight: bold; | |
| font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
| color: $text-primary-light; | |
| padding-bottom: $space; | |
| } | |
| .question-input { | |
| display: flex; /* Keeps the input from going outside this container */ | |
| position: relative; | |
| } | |
| /* tw: input should not look different in dark mode */ | |
| [theme="dark"] .question-input input { | |
| color: $text-primary-light; | |
| background: $ui-secondary-light; | |
| border-color: $ui-tertiary-light; | |
| } | |
| [theme="dark"] .question-input input:hover, | |
| [theme="dark"] .question-input input:focus { | |
| border-color: $motion-primary; | |
| } | |
| .question-submit-button { | |
| position: absolute; | |
| top: calc($space / 2); | |
| width: calc(2rem - $space); | |
| height: calc(2rem - $space); | |
| border: none; | |
| border-radius: 100%; | |
| color: white; | |
| background: $motion-primary; | |
| } | |
| [dir="ltr"] .question-submit-button { | |
| right: calc($space / 2); | |
| } | |
| [dir="rtl"] .question-submit-button { | |
| left: calc($space / 2); | |
| } | |
| /* Input overrides: width, font-weight, focus outline and padding */ | |
| .question-input > input { | |
| width: 100%; | |
| font-weight: normal; | |
| } | |
| [dir="ltr"] .question-input > input { | |
| padding: 0 2rem 0 .75rem; /* To make room for the submit button */ | |
| } | |
| [dir="rtl"] .question-input > input { | |
| padding: 0 .75rem 0 2rem; /* To make room for the submit button */ | |
| } | |
| .question-input > input:focus { | |
| box-shadow: 0px 0px 0px 3px $motion-transparent; | |
| } | |
| .question-submit-button-icon { | |
| width: calc(2rem - $space); | |
| height: calc(2rem - $space); | |
| position: relative; | |
| right: -7px; | |
| left: -7px; | |
| } | |