Skip to Content Skip to Menu

[SOLVED] CSS on CB module login

  • crony
  • crony
  • OFFLINE
  • Posts: 104
  • Thanks: 7
  • Karma: 1
2 years 2 months ago - 2 years 2 months ago #330161 by crony
[SOLVED] CSS on CB module login was created by crony
Hello,

I've created an override for the mod_cblogin, created a class applied to the module, created the rule into my css but I can't reach the target for the property of the image size on this module while you are identified.
I'm using the boostrap / J4 version, tried lots of things...
Can't make it.
Could you help ?
Thanks !

J! 4.x - CB 2.7.3
Last edit: 2 years 2 months ago by crony.

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

  • crony
  • crony
  • OFFLINE
  • Posts: 104
  • Thanks: 7
  • Karma: 1
2 years 2 months ago #330162 by crony
Replied by crony on topic CSS on CB module login
Ok, cache issue

.uk-navbar-item.classecb

Worked perfectly fine, all gud, thansks !

J! 4.x - CB 2.7.3

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

  • crony
  • crony
  • OFFLINE
  • Posts: 104
  • Thanks: 7
  • Karma: 1
2 years 2 months ago #330163 by crony
Replied by crony on topic CSS on CB module login
Well, I have an other issue. It's about the login / logout button.
I can make it disapear, but I can't find the class of the specific module, so it is hidden on every module of CB Login...
I have created an additionnal class on the login module ( the same class on login/logout .something but I can't point the property...)

Any help ?
Thanks !

J! 4.x - CB 2.7.3

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
2 years 2 months ago #330165 by krileon
Replied by krileon on topic CSS on CB module login
Edit your CB Login Module then under the Styles tab for "Login Button CSS Class" and "Logout Button CSS Class" add the CSS class "hidden". That should hide the 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.

  • crony
  • crony
  • OFFLINE
  • Posts: 104
  • Thanks: 7
  • Karma: 1
2 years 2 months ago #330166 by crony
Replied by crony on topic CSS on CB module login
Ok, thanks, so this works , for the size of image :

/* Avatar login CB ok*/
.uk-navbar-item.classecb {
max-width: 90px;
}

To let you know, this works better not to have space in the hidden field

.mylogincb{
display: none;
}

Only issue is that while pointing to this
index.php?option=com_comprofiler&view=login

The CSS is applied into the component view.
And I'd like not to (or have a different css applied here)

I'm trying to apply the css to the menu link rendered page, added the class
mylogincbcomponent
, but how can I access the property

mb-2 mod-login-logout__login-avatar login-avatar cb_template cb_template_default

From that class from the component menu link ?

I tried this, but no luck

.mylogincb.componentmb-2 mod-login-logout__login-avatar login-avatar cb_template cb_template_default{
display: true;
}

.componentmb-2 mod-login-logout__login-avatar login-avatar cb_template cb_template_default.mylogincb{
display: true;
}
Thanks

J! 4.x - CB 2.7.3

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
2 years 2 months ago #330168 by krileon
Replied by krileon on topic CSS on CB module login
The login page uses the first CB Login Module that's available. Put your first login module in a None position so it doesn't display in any module positions but CBs login page will use it. Next remove the hidden CSS class. Now make another module that you'll be using on your various menu items and add hidden back to the CSS class parameters.

As for your CSS I cannot help you with custom coding. Your CSS issues have nothing to do with CB directly and are not working because you are not writing valid CSS selectors. If you need help learning CSS to write valid CSS I suggest starting below.

developer.mozilla.org/en-US/docs/Learn/CSS/First_steps


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