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.

General Questions

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

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

Where is the CSS for the Login page located?


Reply

7 Posts   1211 Views

Avatar
Valorinbattle

24 February 2009 at 2:01pm Community Member, 95 Posts

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

24 February 2009 at 2:48pm Forum Moderator, 5511 Posts

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

Avatar
Valorinbattle

24 February 2009 at 3:43pm Community Member, 95 Posts

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

Avatar
Willr

24 February 2009 at 3:51pm Forum Moderator, 5511 Posts

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

Avatar
Valorinbattle

24 February 2009 at 3:55pm Community Member, 95 Posts

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

Avatar
Carbon Crayon

25 February 2009 at 5:11am Community Member, 598 Posts

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

26 February 2009 at 2:58pm Community Member, 95 Posts

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