Procházet zdrojové kódy

change sidecart font weight

master
azri před 1 týdnem
rodič
revize
679a102cb9
1 změnil soubory, kde provedl 22 přidání a 4 odebrání
  1. 22
    4
      src/components/SideCart/SideCart.jsx

+ 22
- 4
src/components/SideCart/SideCart.jsx Zobrazit soubor

@@ -108,14 +108,32 @@ const SideCart = ({ open, onClose }) => {
108 108
 
109 109
                       {/* Product Details */}
110 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 118
                           {product?.title}
113 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 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 138
                           <Box sx={{ display: "flex", ml: "auto" }}>
121 139
                             <IconButton onClick={() => {
@@ -195,7 +213,7 @@ const SideCart = ({ open, onClose }) => {
195 213
                 </Typography>
196 214
               </Box>
197 215
             </Grid>
198
-            <Grid item size={12} sx={{textAlign:"center"}}>
216
+            <Grid item size={12} sx={{ textAlign: "center" }}>
199 217
               <Button
200 218
                 variant="contained"
201 219
                 color="primary"

Načítá se…
Zrušit
Uložit