55 flex-direction : column ;
66 gap : 10px ;
77 text-align : center ;
8+ width : 100% ;
9+ box-sizing : border-box ;
810
911 &__question {
1012 display : flex ;
1113 flex-direction : row ;
1214 gap : 8px ;
1315 align-items : center ;
1416 justify-content : center ;
17+ flex-wrap : wrap ;
1518
1619 span {
1720 font-weight : 500 ;
2932 justify-content : flex-end ;
3033 align-items : center ;
3134 gap : 15px ;
32- padding-right : 5px ;
3335 width : 100% ;
36+ box-sizing : border-box ;
37+
38+ input {
39+ width : 100px ;
40+ padding : 10px 14px ;
41+ font-size : @font-size-label-large ;
42+ text-align : center ;
43+ border : 2px solid @lighter-grey ;
44+ border-radius : 4px ;
45+ outline : none ;
46+
47+ & :focus {
48+ border-color : @primary-blue ;
49+ box-shadow : 0 0 0 2px fade (@primary-blue , 20% );
50+ }
51+ }
52+
53+ button {
54+ display : inline-block ;
55+ width : fit-content ;
56+ margin : 0 ;
57+ padding : 9px 20px ;
58+ font-size : @font-size-label-large ;
59+ }
3460 }
3561
3662 &__note {
4167 }
4268}
4369
44- .goal-form__input-section input {
45- width : 100px ;
46- padding : 10px 14px ;
47- font-size : @font-size-label-large ;
48- text-align : center ;
49- border : 2px solid @lighter-grey ;
50- border-radius : 4px ;
51- outline : none ;
52- }
53-
54- .goal-form__input-section input :focus {
55- border-color : @primary-blue ;
56- box-shadow : 0 0 0 2px fade (@primary-blue , 20% );
57- }
58-
59- .goal-form__input-section button {
60- display : inline-block ;
61- width : fit-content ;
62- margin : 0 ;
63- padding : 9px 20px ;
64- font-size : @font-size-label-large ;
65- }
66-
67- // Responsive design for smaller screens
6870@media only screen and (max-width : @width-breakpoint-tablet ) {
6971 .goal-form {
7072 gap : 12px ;
7173
72- &__question {
73- gap : 8px ;
74+ &__question span {
75+ font-size : @font-size-label-medium ;
76+ }
77+
78+ &__input-section {
79+ gap : 10px ;
80+ justify-content : center ;
81+ padding : 0 10px ;
7482
75- span {
83+ input {
84+ width : 70px ;
85+ padding : 8px 10px ;
7686 font-size : @font-size-label-medium ;
7787 }
78- }
7988
80- &__input-section {
81- gap : 12px ;
82- align-items : center ;
83- justify-content : flex-end ;
84- padding-right : 15px ;
89+ button {
90+ padding : 8px 12px ;
91+ font-size : @font-size-label-medium ;
92+ }
8593 }
8694 }
95+ }
8796
88- // Flattened responsive selectors
89- .goal-form__input-section input {
90- width : 80 px ;
91- padding : 8 px 12 px ;
92- font-size : @font-size-label-medium ;
93- }
97+ @media only screen and ( max-width : 480 px ) {
98+ .goal-form {
99+ &__question {
100+ flex-direction : column ;
101+ gap : 6 px ;
102+ }
94103
95- .goal-form__input-section button {
96- padding : 8px 16px ;
97- font-size : @font-size-label-medium ;
104+ &__input-section {
105+ gap : 8px ;
106+ padding : 0 5px ;
107+
108+ input {
109+ width : 60px ;
110+ padding : 6px 8px ;
111+ font-size : @font-size-label-small ;
112+ }
113+
114+ button {
115+ padding : 6px 10px ;
116+ font-size : @font-size-label-small ;
117+ }
118+ }
98119 }
99120}
100121
111132 background-color : @light-grey ;
112133 border-radius : 5px ;
113134 height : 20px ;
114- margin : auto ;
135+ margin : 0 auto 10 px ;
115136 width : 85% ;
116- margin-bottom : 10px ;
117137 }
118138
119139 &__completed {
136156 padding : 15px 0 0 ;
137157
138158 &__details {
139- display : flex ;
140- justify-content : space-between ;
141159 width : 85% ;
142- margin : auto ;
143160 }
144161 }
145- }
162+ }
0 commit comments