1. gvitry
  2. Commercial Templates
  3. Friday, 10 November 2023
  4.  Subscribe via email
Hi Ciaran,

Using Maya on J4/Php 8.1.

in the general setup of the template, in the typo styling part, one can choose the button color.
That's great to uniformize button on all pages.
However we use a component (Fabrik but it's not the only one) which use all the standard colors of the bootsrap buttons definition classes (btn-success, btn-info, bth-warning, etc..).
Currently, the "button" color definition from the template superceed all the bootstrap classes ones. So the complex form which have several buttons (submit, apply, delete, continue, next page, ect....) have all the same colors.
I did not find an easy way to let btn only class being the general template setup color (orange in our case) while letting the "btn btn-success" or "btn btn-info" class being in the right color (green, red ...)
Do you have a solution ?

Thanks

Laurent
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks for your answer.
Actually, I had to add the border also :


.btn-success {
background-color: #448344 !important;
border-color: #448344 !important;
}
.btn-warning {
background-color: #ad6200 !important;
border-color: #ad6200 !important;
}
.btn-danger {
background-color: #a51f18 !important;
border-color: #a51f18 !important;
}
.btn-info {
background-color: #30638d !important;
border-color: #30638d !important;
}


May be in some future release, you may add an option int the template setup to let the bootstrap colors available or allow to change individual colors of the btn-xxxxx accent's colors.

Have a nice day

Laurent
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Laurent

To amend try adding the following to the Custom CSS field of your templates parameters (Extensions -> Templates -> [YourTemplateStyle] -> Custom CSS)....

(edit to taste)

.btn-success {
background-color: #448344;
}
.btn-warning {
background-color: #ad6200;
}
.btn-danger {
background-color: #a51f18;
}
.btn-info {
background-color: #30638d;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

With J51 Maya template : https://dev-lact.fr/test-form/form/45
with regular cassiopea one : https://dev-lact.fr/test2-form/form/45

You can see the button class are not the same.

Thanks

Laurent
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Laurent

Would you have a URL to an example of this issue?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok