Post by xinxilas » Fri Mar 30, 2018 11:25 pm

I read a few people saying this is good to fit everything on layouts

But i want to give a try to see the results in practice.

I read a lot of topics but all i found is how to change colors of the background on /system/library/image.php

Any tip?

Thanks!

New member

Posts

Joined
Mon Apr 27, 2015 7:46 am

Post by sarthakinfotech » Sat Mar 31, 2018 12:37 am

hi
may be my answer is irrelevant you may change image border and its color from
catalog/view/javascript/bootstrap/css/bootstrap.min.css

and css looks like as below.

Code: Select all

.thumbnail {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: border .2s ease-in-out;
    -o-transition: border .2s ease-in-out;
    transition: border .2s ease-in-out;
}
here in above code

Code: Select all

 background-color: #fff;
 border: 1px solid #ddd;
code is of interest.

Good Day,
Jagruti
opencart tips and tricks ,
opencart blogs , opencart extensions/themes , custom development.


User avatar
Active Member

Posts

Joined
Tue Aug 05, 2014 1:12 am
Location - india

Post by xinxilas » Sat Mar 31, 2018 1:48 am

Thanks but what i mean is the "core" image border..

Opencart creates a new image with these border,

its not html or css borders

New member

Posts

Joined
Mon Apr 27, 2015 7:46 am

Post by IP_CAM » Sat Mar 31, 2018 9:57 am

Well, you could use this OcMod, to get a black color instead of a white one! :D
At least by newly created thumbs, I assume, so delete the cached pics first, before
testing ... ;)
Ernie
---
background-pictures.ocmod.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Change the background of pictures when cropping</name>
<code>Background-pictures</code>
<version>1.0</version>
<date>25.10.2017</date>
<author>webstudia@bk.ru</author>
<link>http://sozdaem-saity.ru</link>
<file path="system/library/image.php">
<operation>
<search><![CDATA[255, 255, 255]]></search>
<add position="replace"><![CDATA[0, 0, 0]]></add>
</operation>
</file>
</modification>

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 499 guests