My goal is to borrow the Add to Cart form style from Commerce Kickstart on a site where:
- Panels: Node Templates controls the Product Displays
- Subtheme of Commerce Kickstart sets the CSS / template
Questions:
- How do I find the CSS controlling the standard Commerce Kickstart Add to Cart form?
- How do I use that CSS to control all "Add to Cart" widgets on the site?
- Do I need to call out each Product Display type? Or is there a way to call it globally?
- Related question: Why is the parent theme CSS being called? (There seems to be two levels of the Commerce Kickstart theme. One in
.../themes/contrib
and one in.../themes/commerce_kickstart_theme
What's the difference? Are there two to share between the admin theme and site theme?
I am new to css, so am using "Inspect Element" to figure out how styles are applying to a given item. However, I can't figure out how to repurpose the css from Commerce Kickstart to apply to all "Add to Cart" widgets that are sprinkled throughout the site and control on a product-type basis through several Panels: Node Templates.
**These css callouts seem to be coming from the Kickstart theme, instead of the subtheme. I have enabled the subtheme and see changes I am making in the subtheme work, so I'm lost on why it is calling from the parent theme.
.../profiles/commerce_kickstart/themes/contrib/omega_kickstart/css/omega-kickstart-alpha-default-normal.css
From Inspect Element, I see that Commerce Kickstart shows:
For the attribute label:
.node-product-type .field-name-field-product form.commerce-add-to-cart label {
float: left;
}
For the attribute drop-down:
element.style {
width: 44.7778px;
margin-right: 17px;
text-align: right;
}