Remove space between image and border in spree_fancy Rails

﹥>﹥吖頭↗ 提交于 2019-12-12 01:04:08

问题


I'm using spree and spree_fancy to create an e-commerce in Rails.

I'm stuck when trying to change some of the design aspects of the spree_fancy gem. At this point I want to use product images with some background (not transparent), but when I use them, there is always a space between the image and the border. I want the image to perfectly fit into the border.

I assume that I would need to override some of the scss files. My attempt was to look at this file into the #main-image ID.

spree_fancy / app / assets / stylesheets / spree / fancy / components / _product_item.scss 

but I couldn't figure out how to change it. And also I don't know if this is what I need to change actually.

I'm using:

rails-4.0.2 spree-2-1-stable spree_fancy-2-1-stable

Could anyone help me out?

来源:https://stackoverflow.com/questions/21916474/remove-space-between-image-and-border-in-spree-fancy-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!