Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

Modern view of checkboxes and radio buttons?

  • alex01at
  • alex01at
  • OFFLINE
  • Posts: 15
  • Thanks: 3
  • Karma: 0
6 years 1 month ago #307899 by alex01at
Hello

I'm sorry because i am not a CSS-Guru ;-)

I found some stuff to change the look and feel of the radio buttons and checkboxes, but i don't find the class and/or id's.
Code:
.option-input { -webkit-appearance: none; -moz-appearance: none; -ms-appearance: none; -o-appearance: none; appearance: none; position: relative; top: 13.33333px; right: 0; bottom: 0; left: 0; height: 40px; width: 40px; transition: all 0.15s ease-out 0s; background: #cbd1d8; border: none; color: #fff; cursor: pointer; display: inline-block; margin-right: 0.5rem; outline: none; position: relative; z-index: 1000; } .option-input:hover { background: #9faab7; } .option-input:checked { background: #40e0d0; } .option-input:checked::before { height: 40px; width: 40px; position: absolute; content: '✔'; display: inline-block; font-size: 26.66667px; text-align: center; line-height: 40px; } .option-input:checked::after { -webkit-animation: click-wave 0.65s; -moz-animation: click-wave 0.65s; animation: click-wave 0.65s; background: #40e0d0; content: ''; display: block; position: relative; z-index: 100; } .option-input.radio { border-radius: 50%; } .option-input.radio::after { border-radius: 50%; } body { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: box; background: #e8ebee; color: #9faab7; font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif; text-align: center; } body div { padding: 5rem; } body label { display: block; line-height: 40px; }

I know that the "template" Plugin is the best way.

Mabee someone can help me please.


greet
alex

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
6 years 1 month ago #307926 by krileon
Replied by krileon on topic Modern view of checkboxes and radio buttons?
If you want button styling for checkbox or radio fields ensure you've the latest CB build installed then edit your field and under Parameters change the edit style to buttons.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • alex01at
  • alex01at
  • OFFLINE
  • Posts: 15
  • Thanks: 3
  • Karma: 0
6 years 1 month ago #307931 by alex01at
Replied by alex01at on topic Modern view of checkboxes and radio buttons?
Hello

I know the "button" function....

Maybe for next release is it possible own css buttons to create.



This would make each community builder uniqe :-)
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
6 years 1 month ago #307940 by krileon
Replied by krileon on topic Modern view of checkboxes and radio buttons?
We may support Bootstraps custom styling for checkbox and radio fields in a future release, which you can find below.

getbootstrap.com/docs/4.1/components/forms/#checkboxes-and-radios-1

Once we've rewrote our template system for core CB the output will be entirely template driven though and you'll be free to style it however you like. Beyond that you'll need to write the necessary CSS to restyle them.

Personally I don't recommend overriding default browser or device styling for checkbox and radios. You either go the button approach or leave them be to prevent accessibility issues across devices.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum