Topic-icon Styling to add border around SCLogin Module

Active Subscriptions:

None
10 years 8 months ago - 10 years 8 months ago #36682 by jimsparkman
Hello, thanks for the very good SCLogin module. One thing I'd like to be able to achieve and that's putting a thin border around the SCLogin module, if possible to do with CSS.

I should also mention that I'd like to be able to do this for the vertical and horizontal styles.

Thanks !
Last edit: 10 years 8 months ago by jimsparkman.
The topic has been locked.
Active Subscriptions:

None
10 years 8 months ago #36693 by jimsparkman

jimsparkman wrote: Hello, thanks for the very good SCLogin module. One thing I'd like to be able to achieve and that's putting a thin border around the SCLogin module, if possible to do with CSS.

I should also mention that I'd like to be able to do this for the vertical and horizontal styles.

Thanks !


I resolved this using a module class suffix, but if there's a better way such as applying CSS to the SCLogin Module, advice would be appreciated.

- Jim
The topic has been locked.
Support Specialist
10 years 8 months ago #36736 by alzander
Jim,
The module class suffix is by far the best way to make the change. That's a fix that would stick with the module even when you upgrade to a newest version. Additionally, the class suffix could be used on other modules, sharing the styles and minimizing overall CSS that you may need, which is always good.

So, in general, I don't have any better advice for what you've already done!

I hope that helps, but if you have any other questions, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 8 months ago #36738 by jimsparkman
Thanks Alex, and by the way, the SCLogin module is working out great for me. Nice work!

- Jim
The topic has been locked.
Support Specialist
10 years 8 months ago #36749 by alzander
Jim,
Glad to hear you're liking it, and happy we could help.. though you didn't really need anything :)

If you have any suggestions, feedback or comments for improvements, we'd love to hear them.

Finally, if you haven't already, please consider leaving a rating and review for SCLogin, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/access-...authentication/24054

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #37815 by jimsparkman

alzander wrote: Finally, if you haven't already, please consider leaving a rating and review for SCLogin, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/access-...authentication/24054


Wanted to let you know I added a comment on JED.

Thanks again for a great module. Starting to think about the benefits JFBConnect will bring now.
The topic has been locked.
Support Specialist
10 years 7 months ago #37833 by alzander
Jim,
No problem for the help, it's what we do! Thank you for the review, and should you need anything else from us, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 6 months ago #38723 by SixSummits
Hi Jim,

For those of us who are not yet adept at using the module class suffice, I'd sure appreciate your sharing with us exactly what code you added and where.

Thanks!

Scott
The topic has been locked.
Active Subscriptions:

None
10 years 6 months ago #38745 by jimsparkman

SixSummits wrote: Hi Jim,

For those of us who are not yet adept at using the module class suffice, I'd sure appreciate your sharing with us exactly what code you added and where.

Thanks!

Scott


Scott, sure thing... First of all, the template I'm using allows for "Custom CSS" in template config, so it makes it easy to add without worry about overwriting with template updates later on. If your template doesn't accommodate that, the just add the CSS below to your "template.css" file. Then use the class name in the SCLogin Module's "module class suffix" field (without the leading "."). Let me know if this isn't clear enough. You can see how I've used this at afxmedia.com.

/* Add a Shaded Border to any Module by using
a module class suffix in advanced module configuration */
.myModuleBorderGray
{
border-radius: 5px;
background-color: #fdfdfd;
background-image: -moz-linear-gradient(top,#fff,#fafafa);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#fafafa));
background-image: -webkit-linear-gradient(top,#fff,#fafafa);
background-image: -o-linear-gradient(top,#fff,#fafafa);
background-image: linear-gradient(to bottom,#fff,#fafafa);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fffafafa', GradientType=0);
border: 1px solid #DADADA;
}
.myModuleBorderGreen
{
border-radius: 5px;
background-color: #fdfdfd;
background-image: -moz-linear-gradient(top,#fff,#fafafa);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#fafafa));
background-image: -webkit-linear-gradient(top,#fff,#fafafa);
background-image: -o-linear-gradient(top,#fff,#fafafa);
background-image: linear-gradient(to bottom,#fff,#fafafa);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fffafafa', GradientType=0);
border: 1px solid #4E7401;
}
.myModuleBorderBrown
{
border-radius: 5px;
background-color: #fdfdfd;
background-image: -moz-linear-gradient(top,#fff,#fafafa);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#fafafa));
background-image: -webkit-linear-gradient(top,#fff,#fafafa);
background-image: -o-linear-gradient(top,#fff,#fafafa);
background-image: linear-gradient(to bottom,#fff,#fafafa);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fffafafa', GradientType=0);
border: 1px solid #996633;
}
.myModuleBorderBlue
{
border-radius: 5px;
background-color: #fdfdfd;
background-image: -moz-linear-gradient(top,#fff,#fafafa);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#fafafa));
background-image: -webkit-linear-gradient(top,#fff,#fafafa);
background-image: -o-linear-gradient(top,#fff,#fafafa);
background-image: linear-gradient(to bottom,#fff,#fafafa);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fffafafa', GradientType=0);
border: 1px solid #5569B0;
}
.myModuleBorderOrange
{
border-radius: 5px;
background-color: #fdfdfd;
background-image: -moz-linear-gradient(top,#fff,#fafafa);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#fafafa));
background-image: -webkit-linear-gradient(top,#fff,#fafafa);
background-image: -o-linear-gradient(top,#fff,#fafafa);
background-image: linear-gradient(to bottom,#fff,#fafafa);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fffafafa', GradientType=0);
border: 1px solid #E75F2F;
}
/* End of Border module class suffixes */
The topic has been locked.