In order to be able to apply a css on the fields "login" and "password", the class names must not contain spaces.
Please, could you rename the class "required login" by "required_login" by applying the following patch :
diff --git a/askbot/deps/django_authopenid/forms.py b/askbot/deps/django_authopenid/forms.py
index 429fa55..1e5aa6d 100644
--- a/askbot/deps/django_authopenid/forms.py
+++ b/askbot/deps/django_authopenid/forms.py
@@ -131,7 +131,7 @@ class LoginForm(forms.Form):
password = forms.CharField(
max_length=128,
widget=forms.widgets.PasswordInput(
- attrs={'class':'required login'}
+ attrs={'class':'required_login'}
),
required=True
)
@@ -143,14 +143,14 @@ class LoginForm(forms.Form):
new_password = forms.CharField(
max_length=128,
widget=forms.widgets.PasswordInput(
- attrs={'class':'required login'}
+ attrs={'class':'required_login'}
),
required=False
)
new_password_retyped = forms.CharField(
max_length=128,
widget=forms.widgets.PasswordInput(
- attrs={'class':'required login'}
+ attrs={'class':'required_login'}
),
required=False
)
diff --git a/askbot/utils/forms.py b/askbot/utils/forms.py
index 575416b..f159ce8 100644
--- a/askbot/utils/forms.py
+++ b/askbot/utils/forms.py
@@ -38,7 +38,7 @@ class NextUrlField(forms.CharField):
def clean(self,value):
return clean_next(value)
-login_form_widget_attrs = { 'class': 'required login' }
+login_form_widget_attrs = { 'class': 'required_login' }
class UserNameField(StrippedNonEmptyCharField):
RESERVED_NAMES = (u'fuck', u'shit', u'ass', u'sex', u'add',
Actually, it is possible:
.required.login {} /* selects elements with both classes, won't work in IE6 */
If no space is used between classes in the css file.
When space is used in HTML in the assignment like class="login required" it means that multiple classes are used on the element at the same time.
or
.login {} /* just login class */
or even
body.openid-signin .login.required {} /* both classes on openid-signin page */
Or I don't understand your intention?
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2011-06-07 05:50:57 -0500
Seen: 73 times
Last updated: Jun 08 '11
align login and password fields
Bug: Horizontal Rule in Comment breaks stylesheet [fixed]
Are there known issues with Facebook login and IE
Internal Server Error when trying to edit personal pro
Where are the badges in a fresh install? [fixed]
HTML Tags in titles getting eaten <fixed/>
Unknown column 'auth_user.is_approved' in 'field list' [fixed]
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.