File tree Expand file tree Collapse file tree 1 file changed +34
-8
lines changed
packages/common-ui/src/components/studentInputs Expand file tree Collapse file tree 1 file changed +34
-8
lines changed Original file line number Diff line number Diff line change 11<template >
2- <v-container class =" pa-0 " >
3- <v-text-field
2+ <span class =" user-input-container " >
3+ <input
44 v-model =" answer"
55 :autofocus =" autofocus"
6- :prepend-icon =" prependIcon"
76 type =" text"
8- variant =" underlined"
9- single-line
10- hide-details
7+ class =" user-input-string"
8+ ref =" input"
119 @keyup.enter =" submitAnswer(answer)"
12- ></ v-text-field >
13- </v-container >
10+ / >
11+ </span >
1412</template >
1513
1614<script lang="ts">
@@ -61,3 +59,31 @@ export default defineComponent({
6159 },
6260});
6361 </script >
62+
63+ <style scoped>
64+ .user-input-container {
65+ display : inline-block ;
66+ min-width : 6em ;
67+ vertical-align : baseline ;
68+ }
69+
70+ .user-input-string {
71+ display : inline-block ;
72+ background : transparent ;
73+ border : none ;
74+ border-bottom : 1px solid currentColor ;
75+ color : currentColor ;
76+ font-family : inherit ;
77+ font-size : inherit ;
78+ line-height : inherit ;
79+ padding : 0 ;
80+ margin : 0 ;
81+ text-align : center ;
82+ width : 100% ;
83+ outline : none ;
84+ }
85+
86+ .user-input-string :focus {
87+ border-bottom : 2px solid currentColor ;
88+ }
89+ </style >
You can’t perform that action at this time.
0 commit comments