mlanthaler: default styling for open id login (merged from gsoc branch, r42438)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42968 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-10-02 22:11:59 +00:00
parent cfaa390102
commit 588b091770
2 changed files with 19 additions and 4 deletions

18
css/openid_login.css Normal file
View File

@ -0,0 +1,18 @@
#OpenIDLoginForm_LoginForm_OpenIDURL {
background: url(../../sapphire/images/openid-small.gif) no-repeat;
background-color: #fff;
background-position: 0 50%;
color: #000;
padding-left: 18px;
width: 284px;
}
#OpenIDDescription {
margin-bottom: 2em;
}
#OpenIDDescription p {
font-size: 1em;
line-height: 1.3em;
margin-top: 0.5em !important;
}

View File

@ -37,10 +37,7 @@ class OpenIDLoginForm extends LoginForm {
$this->authenticator_class = 'OpenIDAuthenticator';
$customCSS = project() . '/css/openid_login.css';
if(Director::fileExists($customCSS)) {
Requirements::css($customCSS);
}
Requirements::themedCSS('openid_login');
if(isset($_REQUEST['BackURL'])) {
$backURL = $_REQUEST['BackURL'];