Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Where is the CSS for the Login page located?


Go to End


7 Posts   1926 Views

Avatar
Valorinbattle

Community Member, 95 Posts

24 February 2009 at 2:01pm

In Sapphire/Security/MemberLoginForm.php it references a CSS/member_login.css and I was hoping that was where the CSS came from, but there is not such a file.

Anybody know where I can find the CSS for the login page?
Thanks.

Avatar
Willr

Forum Moderator, 5523 Posts

24 February 2009 at 2:48pm

I believe most of the styles come from the 'form.css' in your selected theme. Or sapphire/css/form.css

Avatar
Valorinbattle

Community Member, 95 Posts

24 February 2009 at 3:43pm

Willr, thanks for your reply. Neither of those files seem to have any effect on the login page at all.
~ James

Avatar
Willr

Forum Moderator, 5523 Posts

24 February 2009 at 3:51pm

tried just viewing the source of the page and seeing what files are included?

Avatar
Valorinbattle

Community Member, 95 Posts

24 February 2009 at 3:55pm

Yeah, I have. It references classes I can't find in any CSS docs.

Avatar
Carbon Crayon

Community Member, 598 Posts

25 February 2009 at 5:11am

Most of the classes wont actually exist in a css file as they are just dynamically generated so that you can add your own styles if you want to. Use form.css to add styles using these classes that will only effect the login. By default all the forms on a site use the same styles that exist in themes/yourtheme/css/form.css

I use Firefox developer toolbar to help me pick out the right selectors for a certain element, it's great for that and many other things too.

Avatar
Valorinbattle

Community Member, 95 Posts

26 February 2009 at 2:58pm

Thanks for the input aram. I will try adding those styles and see if it works.
~ James