1924us Posted June 14, 2022 Share Posted June 14, 2022 Site URL: http://www.1924.us I currently have a custom cart icon installed at a 100px by 100px for the desktop view. This size on mobile is too big and I would like to know how to resize say by 50% on only mobile. Thank you! Link to comment
creedon Posted June 14, 2022 Share Posted June 14, 2022 Add the following to Design > Custom CSS. @media only screen and ( max-width : 639px ) { span.Cart-label:after { height : calc( 70px / 1.5 ); width : calc( 42px / 1.5 ); } } I tried 50% but it seemed a little small so I went 1.5 on the calc. You can use a calc or just enter in whatever numbers you want. Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
1924us Posted June 14, 2022 Author Share Posted June 14, 2022 This didn't affect my other code sadly, it seems my code is overwriting it. // Custom Cart Icon // .header .header-actions-action--cart .icon { background: url(IMAGE) center no-repeat; stroke: transparent !important; content: ""; background-size: contain; width: 60px; height: 100px; } Link to comment
creedon Posted June 15, 2022 Share Posted June 15, 2022 Without my code... With my code... Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment