# HG changeset patch # User Aurelien Campeas # Date 1286577487 -7200 # Node ID 72669e7950c1a068f106373149b095e400ae090c # Parent de95bbed878148dd03da3005df2043a11844692a [login] fix some previously introduced login box css breakage diff -r de95bbed8781 -r 72669e7950c1 web/data/cubicweb.login.css --- a/web/data/cubicweb.login.css Sat Oct 09 00:38:02 2010 +0200 +++ b/web/data/cubicweb.login.css Sat Oct 09 00:38:07 2010 +0200 @@ -23,7 +23,7 @@ padding: 5px 3px 4px; } -div.loginBox { +div#loginBox { position : absolute; top: 15%; left : 50%; @@ -49,12 +49,13 @@ background: %(headerBgColor)s url("banner.png") repeat-x top left; } -div.loginBox div.loginContent form { +div#loginBox div.loginContent form { padding-top: 1em; width: 90%; margin: auto; } + .popupLoginBox table td { padding: 0px 3px; white-space: nowrap; @@ -65,12 +66,12 @@ margin: auto; } -.loginBox table td { +#loginBox table td { padding: 0px 3px 0.6em; white-space: nowrap; } -.loginBox .loginButton { +#loginBox .loginButton { margin-top: 0.6em; } diff -r de95bbed8781 -r 72669e7950c1 web/views/basecomponents.py --- a/web/views/basecomponents.py Sat Oct 09 00:38:02 2010 +0200 +++ b/web/views/basecomponents.py Sat Oct 09 00:38:07 2010 +0200 @@ -126,7 +126,7 @@ self.w(self._html % (self._cw._('login / password'), self.loginboxid, self._cw._('i18n_login_popup'))) self.wview('logform', rset=self.cw_rset, id=self.loginboxid, - klass='hidden', title=False, showmessage=False) + klass='%s hidden' % self.loginboxid, title=False, showmessage=False) class HTTPLoginComponent(CookieLoginComponent): diff -r de95bbed8781 -r 72669e7950c1 web/views/basetemplates.py --- a/web/views/basetemplates.py Sat Oct 09 00:38:02 2010 +0200 +++ b/web/views/basetemplates.py Sat Oct 09 00:38:07 2010 +0200 @@ -450,7 +450,7 @@ def call(self, id, klass, title=True, showmessage=True): w = self.w - w(u'
' % (id, klass)) + w(u'
' % (id, klass)) if title: stitle = self._cw.property_value('ui.site-title') if stitle: