Topic-icon Change SCLogin Enhanced appearance

Active Subscriptions:

None
9 years 4 months ago #49114 by aalisg
Hello,

I have a website running Joomla! 3.3.6 and JFBConnect 6.3.

I use JA Univeristy Joomlart template and I reduced JA Slideshow Lite widht on frontpage and created a new module position in order to display SCLogin Enhanced on its right.

Actually the SCLogin Enhanced displays like this:



And I would like to display like this:



So it means reduce or and remove margins and paddings, harmonize button widths, change Username and/or e-mail login button label...

Can you please tell me how to do so ?

Regards
The topic has been locked.
Support Specialist
9 years 4 months ago #49118 by mel
1. Margins/paddings - Create a template override for the theme you're using in SCLogin. For more info on how to do the theme override, please see www.sourcecoast.com/sclogin/documentation/themes.

Add these blocks to the file:
.sclogin .input-append, .sclogin .input-prepend{
margin-bottom:0px;
}

.sclogin .control-group {
margin-bottom:0px;
}

Remove this block around line 88
.sclogin-joomla-login.vertical #form-sclogin-submitcreate .btn {
margin-top: 2px !important;
}

Remove this block around line 26:
.sclogin-social-login .pull-left {
    margin:5px;
}

2. Button widths - Find the following block in your theme file and lower the width from 87% to around 60% (around line 76)
.sclogin-joomla-login.vertical input#sclogin-username.input-block-level, .sclogin-joomla-login.vertical input#sclogin-passwd.input-block-level {
width: 60% !important;
}

3. Change Username and/or e-mail login button label: This is done by updating the text in your mod_sclogin language files for the MOD_SCLOGIN_USERNAME key.

I think this should fix all the issues you mentioned, so let me know if you have any more questions.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49125 by aalisg
Hello and thank you for your reply,

I did what you said it is progressing towards what I want but there are still some modifications to do.

Please find above a screen capture with the modifications you told me to do and I have added in black color the changes I want to do.



Can you tell me which others code modifications I need to do to achieve it ?

Regards
The topic has been locked.
Support Specialist
9 years 4 months ago #49126 by mel
The strange boxes are caused because your template has borders around the "login" class. You can add the following to the sclogin theme css to get rid of them for our module only:
span.sourcecoast.login{
border:0px none;
box-shadow:none;
}

As far as enlarging the elements
1) For the textboxes, I already provided an example how to change the widths in my previous post
2) For the login and register buttons, you can change the padding for the ".sourcecoast .btn" and ".sourcecoast .btn-primary" blocks
3) For the social network buttons, I recommend that you make larger images yourself. If you stretch them with CSS, they will probably be fuzzy. You can read how to do this here: www.sourcecoast.com/jfbconnect/docs/social-login/login-button
4) If there is extra whitespace, then you can edit your template files for the module position the SCLogin module is in. The SCLogin uses 100% width so it should be fluid if you condense it.
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49128 by aalisg
Hello and thank you for your reply,

1) You say "For the textboxes, I already provided an example how to change the widths in my previous post". If in this case "textboxes" mean "input boxes" I think I did what I wanted.

2) You say "For the login and register buttons, you can change the padding for the ".sourcecoast .btn" and ".sourcecoast .btn-primary" blocks ". I want to change theur width. I am reaaly bad at CSS. In this case does padding means width ?

3) I will see it later but I want the module to be responsive so do I need to create the "largest" images I can and then set their width in % in order for them to be able to fit the creen width ?

4) You say "If there is extra whitespace, then you can edit your template files for the module position the SCLogin module is in. The SCLogin uses 100% width so it should be fluid if you condense it." I just do not get it.

Regards
The topic has been locked.
Support Specialist
9 years 4 months ago #49133 by mel

1) You say "For the textboxes, I already provided an example how to change the widths in my previous post". If in this case "textboxes" mean "input boxes" I think I did what I wanted.

Yes, this is what I meant.

2) You say "For the login and register buttons, you can change the padding for the ".sourcecoast .btn" and ".sourcecoast .btn-primary" blocks ". I want to change theur width. I am reaaly bad at CSS. In this case does padding means width ?

Well with CSS, there are multiple ways to do anything :) So you can accomplish what you want with width (explicitly setting the pixel amount) or setting the padding (the size inside of the buttons padding around the text. Try to add the following code to the CSS. I think it will be probably be the easiest for you to understand. The second block has to set the padding, otherwise the element would be cut off:
.sclogin button.btn.btn-primary{
width:100%;
}

.sclogin a.btn{
width:99%;
padding:4px 0px;
}

3) I will see it later but I want the module to be responsive so do I need to create the "largest" images I can and then set their width in % in order for them to be able to fit the creen width ?

I think you should create your images to be what you labeled in your last screenshot as "desired width for all elements". The template is currently smart enough to scale down our social network buttons, so it should scale down yours as well as the view shrinks.

4) You say "If there is extra whitespace, then you can edit your template files for the module position the SCLogin module is in. The SCLogin uses 100% width so it should be fluid if you condense it." I just do not get it.

I was confused at what you meant in your screenshot by "Delete this margin". Looking at your page, if you grow all of the elements in the SCLogin module to the "desired width of all of your elements" any extra whitespace or margin isn't being added by the SCLogin module since all of its elements would take up 100% of SCLogin's width. Any whitespace on the side of the module would be controlled by other elements in your template.
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49136 by aalisg
Hello and thank you for your reply,

Now the problem is that the forgot password button has a strange height in comparison to the others button. I tried to change it manipulating its padding but it affects the "Créer un compte" button".

I would like also to delete bothe blank spaces between password field and "Connexion" button and between 3créer un compt" button and social networks images.

Regards
The topic has been locked.
Support Specialist
9 years 4 months ago #49146 by mel
Password height:
.sclogin a.forgot {
padding-top: 0px;
padding-bottom: 0px;
}

Space between button and social network images
.sclogin form{
margin:0px;
}

span.sourcecoast.login {
padding: 0px;
}

.sclogin-social-login.bottom {
padding: 0px;
}

* Note some of those block definitions may exist already. So if they do, they I'd recommend combining these with those.
* Another tip, if using Chrome or Firefox, there are built-in Developer Tools that let you temporarily modify CSS on your site. I would suggest using them to play around with changing styles to test your changes immediately/easier.
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49153 by aalisg
Hello and thank you for your reply,

It is exactly what I wanted. Now I am going to try to create larger social networks images. I will let you know if I need your help.

Regards
The topic has been locked.