yasminva Posted June 12, 2021 Share Posted June 12, 2021 (edited) Site URL: https://zeronineobjects.co.uk hi, i need help with changing the font size for 'material' and contents of the dropdown menu in the store once selected to be 16px and i would like them all to be in lowercase too also in the cart page i would like the 'material: (option)' to be in lowercase and font size 16px thank you! Edited June 13, 2021 by yasminva Link to comment
creedon Posted June 13, 2021 Share Posted June 13, 2021 (edited) Add the following to Design > Custom CSS. #cart .item-desc { font-size : 16px; text-transform : lowercase; } Add the following to Store Settings > Advanced > Page Header Code Injection for the store page. <style> .collection-type-products .ProductItem-details .variant-option { --font-size-scale : 0.825; /* how much to scale the font-size */ } /* do not change anything below, there be the borg here */ .collection-type-products .ProductItem-details .variant-option { --font-size : calc( var( --font-size-scale ) * 100% ); } /* begin desktop */ @media screen and ( min-width : 0 ) and ( max-width : calc( 2120px - 1px ) ) and ( orientation : landscape ) { .collection-type-products .ProductItem-details .variant-option { font-size : var( --font-size ); text-transform : lowercase; } } .product-details .variant-option select { font-size : var( --font-size ); } /* end desktop */ /* mobile */ @media screen and ( min-width : 0 ) and ( max-width : calc( 1944px - 1px ) ) and ( orientation : portrait ) { .collection-type-products .ProductItem-details .variant-option { font-size : calc( ( 1 - 1 ) * 1.2vh + var( --font-size-scale ) * 1rem ); } } </style> This is for v7.1. Let us know how it goes. Edited April 14, 2022 by creedon version 2, added mobile support tuanphan and yasminva 1 1 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
yasminva Posted June 14, 2021 Author Share Posted June 14, 2021 On 6/13/2021 at 8:04 PM, creedon said: Add the following to Design > Custom CSS. #cart .item-desc { font-size : 16px; text-transform : lowercase; } Add the following to Store Settings > Advanced > Page Header Code Injection for the store page. <style> @media screen and ( min-width : 0 ) and ( max-width : calc( 2120px - 1px ) ) and ( orientation : landscape ) { .collection-type-products .ProductItem-details .variant-option { font-size : 13px; text-transform : lowercase; } } .product-details .variant-option select { font-size : 13px; } </style> This is for v7.1. Let us know how it goes. thank you so much! it works perfectly 😊 creedon 1 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