Browse Source

change sidecart font weight

master
azri 1 week ago
parent
commit
679a102cb9
1 changed files with 22 additions and 4 deletions
  1. 22
    4
      src/components/SideCart/SideCart.jsx

+ 22
- 4
src/components/SideCart/SideCart.jsx View File

108
 
108
 
109
                       {/* Product Details */}
109
                       {/* Product Details */}
110
                       <Grid item size={10} sx={{ paddingLeft: 1 }}>
110
                       <Grid item size={10} sx={{ paddingLeft: 1 }}>
111
-                        <Typography variant="body1" sx={{ lineHeight: 1, fontWeight: "bold" }}>
111
+                        <Typography variant="body2" sx={{
112
+                          fontWeight: "400", fontSize: {
113
+                            xs: "0.875rem",
114
+                            sm: "0.875rem",
115
+                            md: "1.1rem",
116
+                          }
117
+                        }}>
112
                           {product?.title}
118
                           {product?.title}
113
                         </Typography>
119
                         </Typography>
114
-                        <Typography variant='body1' sx={{ fontWeight: "bold", mb: 1 }}>{`VARIANT: ${title}`}</Typography>
120
+                        <Typography variant="body2" sx={{
121
+                          fontWeight: "100", fontSize: {
122
+                            xs: "0.875rem",
123
+                            sm: "0.875rem",
124
+                            md: "1.1rem",
125
+                          }
126
+                        }}>{`VARIANT: ${title}`}</Typography>
115
 
127
 
116
                         <Box sx={{ display: "flex", alignItems: "center" }}>
128
                         <Box sx={{ display: "flex", alignItems: "center" }}>
117
 
129
 
118
-                          <Typography variant='body1' sx={{ fontWeight: "bold" }}>{`${currencyCode} ${parseFloat(amount).toFixed(2)}`}</Typography>
130
+                          <Typography variant="body2" sx={{
131
+                            fontWeight: "100", fontSize: {
132
+                              xs: "0.875rem",
133
+                              sm: "0.875rem",
134
+                              md: "1.1rem",
135
+                            }
136
+                          }}>{`${currencyCode} ${parseFloat(amount).toFixed(2)}`}</Typography>
119
 
137
 
120
                           <Box sx={{ display: "flex", ml: "auto" }}>
138
                           <Box sx={{ display: "flex", ml: "auto" }}>
121
                             <IconButton onClick={() => {
139
                             <IconButton onClick={() => {
195
                 </Typography>
213
                 </Typography>
196
               </Box>
214
               </Box>
197
             </Grid>
215
             </Grid>
198
-            <Grid item size={12} sx={{textAlign:"center"}}>
216
+            <Grid item size={12} sx={{ textAlign: "center" }}>
199
               <Button
217
               <Button
200
                 variant="contained"
218
                 variant="contained"
201
                 color="primary"
219
                 color="primary"

Loading…
Cancel
Save