@@ -4,17 +4,27 @@ import { theme } from 'core/theme';
44const { palette, spacing, typography, breakpoints } = theme ;
55const color = palette . customPalette ;
66
7- export const sessionContainer = css `
8- padding-top : ${ spacing ( 7.5 ) } ;
9- padding-bottom : ${ spacing ( 10 ) } ;
7+ export const root = css `
8+ display : grid;
9+ grid-row-gap : 1rem ;
10+ grid-column-gap : 1rem ;
11+ grid-template-columns : auto 1fr ;
12+ grid-template-areas :
13+ 'label label'
14+ 'textarea textarea'
15+ 'undo send' ;
1016` ;
1117
12- export const studentBoard = css `
18+ export const label = css `
19+ grid-area : label;
20+ display : block;
21+ font-size : 1.125rem ;
22+ font-family : ${ typography . fontFamily } ;
23+ ` ;
24+
25+ export const textarea = css `
26+ grid-area : textarea;
1327 box-sizing : border-box;
14- width : 100% ;
15- margin-bottom : ${ spacing ( 1.25 ) } ;
16- margin-top : ${ spacing ( 1.25 ) } ;
17- padding : ${ spacing ( 2 ) } ;
1828 font-family : ${ typography . fontFamily } ;
1929 font-size : 1rem ;
2030 background-color : ${ color . background } ;
@@ -26,13 +36,8 @@ export const studentBoard = css`
2636 }
2737` ;
2838
29- export const btnContainer = css `
30- display : flex;
31- margin-top : ${ spacing ( 1.25 ) } ;
32- padding-bottom : ${ spacing ( 3.125 ) } ;
33- ` ;
34-
35- export const sendBtn = css `
39+ export const sendButton = css `
40+ grid-area : send;
3641 display : flex;
3742 align-items : center;
3843 padding : ${ spacing ( 1.25 ) } ${ spacing ( 1.875 ) } ;
@@ -67,15 +72,16 @@ export const sendBtn = css`
6772export const sendIcon = css `
6873 margin-left : ${ spacing ( 1.25 ) } ;
6974 font-size : 1.25rem ;
70- @media ( max-width : ${ breakpoints . values . xs } px) {
71- display : none;
75+ display : none;
76+ @media ( min-width : ${ breakpoints . values . xs } px) {
77+ display : initial;
7278 }
7379` ;
7480
75- export const undoBtn = css `
81+ export const undoButton = css `
82+ grid-area : undo;
7683 display : flex;
7784 align-items : center;
78- margin-right : ${ spacing ( 1.25 ) } ;
7985 padding : ${ spacing ( 1.25 ) } ${ spacing ( 1.875 ) } ;
8086 font-size : 1.188rem ;
8187 font-weight : 400 ;
@@ -107,13 +113,8 @@ export const undoBtn = css`
107113export const undoIcon = css `
108114 margin-right : ${ spacing ( 1.25 ) } ;
109115 font-size : 1.25rem ;
110- @media ( max-width : ${ breakpoints . values . xs } px) {
111- display : none;
116+ display : none;
117+ @media ( min-width : ${ breakpoints . values . xs } px) {
118+ display : initial;
112119 }
113120` ;
114-
115- export const labelTextarea = css `
116- display : block;
117- font-size : 1.125rem ;
118- font-family : ${ typography . fontFamily } ;
119- ` ;
0 commit comments