66 gap : 10px ;
77 text-align : center ;
88 width : 100% ;
9+ max-width : 100% ;
910 box-sizing : border-box ;
1011
1112 &__question {
1213 display : flex ;
13- flex-flow : row wrap ;
14+ flex-direction : row ;
1415 gap : 8px ;
1516 align-items : center ;
1617 justify-content : center ;
17-
18- span {
19- font-weight : 500 ;
20- }
18+ flex-wrap : wrap ;
2119 }
2220
2321 &__learn-more {
3028 display : flex ;
3129 justify-content : flex-end ;
3230 align-items : center ;
33- gap : 15 px ;
31+ gap : 12 px ;
3432 width : 100% ;
3533 box-sizing : border-box ;
36-
37- input {
38- width : 100px ;
39- padding : 10px 14px ;
40- font-size : @font-size-label-large ;
41- text-align : center ;
42- border : 2px solid @lighter-grey ;
43- border-radius : 4px ;
44- outline : none ;
45-
46- & :focus {
47- border-color : @primary-blue ;
48- box-shadow : 0 0 0 2px fade (@primary-blue , 20% );
49- }
50- }
51-
52- button {
53- display : inline-block ;
54- width : fit-content ;
55- margin : 0 ;
56- padding : 9px 20px ;
57- font-size : @font-size-label-large ;
58- }
34+ padding-right : 10px ;
5935 }
6036
6137 &__note {
6642 }
6743}
6844
45+ .goal-form__question span {
46+ font-weight : 500 ;
47+ }
48+
49+ .goal-form__input-section input {
50+ width : 80px ;
51+ padding : 8px 12px ;
52+ font-size : @font-size-label-large ;
53+ text-align : center ;
54+ border : 2px solid @lighter-grey ;
55+ border-radius : 4px ;
56+ outline : none ;
57+ }
58+
59+ .goal-form__input-section input :focus {
60+ border-color : @primary-blue ;
61+ box-shadow : 0 0 0 2px fade (@primary-blue , 20% );
62+ }
63+
64+ .goal-form__input-section button {
65+ display : inline-block ;
66+ width : fit-content ;
67+ margin : 0 ;
68+ padding : 9px 20px ;
69+ font-size : @font-size-label-large ;
70+ }
71+
72+ // Responsive design for smaller screens
6973@media only screen and (max-width : @width-breakpoint-tablet ) {
7074 .goal-form {
7175 gap : 12px ;
76+ }
7277
73- &__question span {
74- font-size : @font-size-label-medium ;
75- }
78+ .goal-form__question {
79+ gap : 8px ;
80+ flex-wrap : wrap ;
81+ }
7682
77- &__input-section {
78- gap : 10px ;
79- justify-content : center ;
80- padding : 0 10px ;
81-
82- input {
83- width : 70px ;
84- padding : 8px 10px ;
85- font-size : @font-size-label-medium ;
86- }
87-
88- button {
89- padding : 8px 12px ;
90- font-size : @font-size-label-medium ;
91- }
92- }
83+ .goal-form__question span {
84+ font-size : @font-size-label-medium ;
85+ }
86+
87+ .goal-form__input-section {
88+ gap : 10px ;
89+ justify-content : center ;
90+ padding-right : 0 ;
91+ }
92+
93+ .goal-form__input-section input {
94+ width : 65px ;
95+ padding : 7px 8px ;
96+ font-size : @font-size-label-medium ;
97+ }
98+
99+ .goal-form__input-section button {
100+ padding : 7px 14px ;
101+ font-size : @font-size-label-medium ;
93102 }
94103}
95104
96105@media only screen and (max-width : 480px ) {
97- .goal-form {
98- &__question {
99- flex-direction : column ;
100- gap : 6 px ;
101- }
106+ .goal-form__question {
107+ flex-direction : column ;
108+ gap : 6 px ;
109+ text-align : center ;
110+ }
102111
103- &__input-section {
104- gap : 8px ;
105- padding : 0 5px ;
112+ .goal-form__input-section {
113+ gap : 8px ;
114+ justify-content : center ;
115+ padding-right : 0 ;
116+ }
106117
107- input {
108- width : 60 px ;
109- padding : 6px 8px ;
110- font-size : @font-size-label-small ;
111- }
118+ .goal-form__input-section input {
119+ width : 55 px ;
120+ padding : 6px 8px ;
121+ font-size : @font-size-label-small ;
122+ }
112123
113- button {
114- padding : 6px 10px ;
115- font-size : @font-size-label-small ;
116- }
117- }
124+ .goal-form__input-section button {
125+ padding : 6px 12px ;
126+ font-size : @font-size-label-small ;
118127 }
119128}
120129
131140 background-color : @light-grey ;
132141 border-radius : 5px ;
133142 height : 20px ;
134- margin : 0 auto 10 px ;
143+ margin : auto ;
135144 width : 85% ;
145+ margin-bottom : 10px ;
136146 }
137147
138148 &__completed {
155165 padding : 15px 0 0 ;
156166
157167 &__details {
168+ display : flex ;
169+ justify-content : space-between ;
158170 width : 85% ;
171+ margin : auto ;
159172 }
160173 }
161- }
174+ }
0 commit comments