Commit e8a7db51 authored by Ivan Tyagov's avatar Ivan Tyagov

Use meaningful CSS ID selectors.

Make km_custom.css override all other CSS files.
Fix listbox CSS apperance.
Now Settings contains sub menu items: "My Preferences" and "My Profile".

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35372 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 761895d7
...@@ -181,7 +181,21 @@ ...@@ -181,7 +181,21 @@
</li>\n </li>\n
</tal:block>\n </tal:block>\n
\n \n
<li tal:condition="not:is_anonymous"><a href="WebSite_redirectToUserPreference" i18n:translate="" i18n:domain="ui">Settings</a></li>\n <li tal:condition="not:is_anonymous">\n
<a href="#" i18n:translate="" i18n:domain="ui">Settings</a>\n
<ul>\n
<li>\n
<a tal:attributes="href string:${portal_path}/WebSite_redirectToUserPerson"\n
i18n:translate="" \n
i18n:domain="ui">My Profile</a>\n
</li>\n
<li>\n
<a href="WebSite_redirectToUserPreference" \n
i18n:translate="" \n
i18n:domain="ui">My Preferences</a>\n
</li>\n
</ul>\n
</li>\n
</ul>\n </ul>\n
\n \n
</tal:block>\n </tal:block>\n
......
...@@ -60,25 +60,19 @@ ...@@ -60,25 +60,19 @@
portal_path python:request.get(\'current_web_site_url\', current_web_site.absolute_url());">\n portal_path python:request.get(\'current_web_site_url\', current_web_site.absolute_url());">\n
\n \n
<tal:block tal:condition="not:here/portal_membership/isAnonymousUser">\n <tal:block tal:condition="not:here/portal_membership/isAnonymousUser">\n
<tal:block tal:define="person_object current_web_site/ERP5Site_getAuthenticatedMemberPersonValue">\n <a id="login-logout-link" \n
<a tal:define="user_name python:person_object is not None and person_object.getTitle() or here.portal_membership.getAuthenticatedMember().getUserName()"\n href="#" tal:attributes="href string:${portal_path}/WebSite_logout"\n
tal:attributes="href string:${portal_path}/WebSite_redirectToUserPerson">\n
<b tal:replace="user_name">\n
jp\n
</b>\n
</a>\n
</tal:block>\n
&nbsp;\n
<a id="n7" href="#" tal:attributes="href string:${portal_path}/WebSite_logout"\n
i18n:translate="" i18n:domain="ui">\n i18n:translate="" i18n:domain="ui">\n
Logout\n Logout\n
</a>\n </a>\n
</tal:block>\n </tal:block>\n
\n \n
<tal:block tal:condition="here/portal_membership/isAnonymousUser">\n <tal:block tal:condition="here/portal_membership/isAnonymousUser">\n
<a id="n7" href="#" tal:attributes="href string:${portal_path}/login_form"\n <a id="login-logout-link" \n
i18n:translate="" i18n:domain="ui">\n href="#" \n
Login\n tal:attributes="href string:${portal_path}/login_form"\n
i18n:translate="" i18n:domain="ui">\n
Login\n
</a>\n </a>\n
</tal:block>\n </tal:block>\n
\n \n
......
...@@ -402,14 +402,14 @@ a.pub:link, a.pub:active, a.pub:visited, .pub { color:#45cb45; }\n ...@@ -402,14 +402,14 @@ a.pub:link, a.pub:active, a.pub:visited, .pub { color:#45cb45; }\n
\n \n
}\n }\n
\n \n
#menu #n7:link, #menu #n7:active, #menu #n7:visited {\n #menu #login-logout-link:link, #menu #login-logout-link:active, #menu #login-logout-link:visited {\n
\n \n
\tbackground: url(../km_img/login.gif) no-repeat transparent;\n \tbackground: url(../km_img/login.gif) no-repeat transparent;\n
background-position: 0 -3px;\n background-position: 0 -3px;\n
\n \n
}\n }\n
\n \n
#menu #n7:hover {\n #menu #login-logout-link:hover {\n
\n \n
\tbackground-position: 0 -23px;\n \tbackground-position: 0 -23px;\n
\n \n
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts73840454.02</string> </value> <value> <string>ts74084052.19</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -200,7 +200,12 @@ div.gadget-latest-documents{\n ...@@ -200,7 +200,12 @@ div.gadget-latest-documents{\n
\n \n
/* Gadget Documentation */\n /* Gadget Documentation */\n
div.gadget_documentation{\n div.gadget_documentation{\n
padding: 0.1em;\n padding: 0.2em;\n
}\n
\n
/* Gadget Advertisements */\n
div.gadget_advertisement{\n
padding: 0.2em;\n
}\n }\n
\n \n
/*WEB*/\n /*WEB*/\n
...@@ -321,7 +326,7 @@ div.block fieldset label{\n ...@@ -321,7 +326,7 @@ div.block fieldset label{\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>4869</int> </value> <value> <int>4944</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -436,7 +436,7 @@ button, select, input {\n ...@@ -436,7 +436,7 @@ button, select, input {\n
\n \n
}\n }\n
\n \n
#menu #n7:link, #menu #n7:active, #menu #n7:visited {\n #menu #login-logout-link:link, #menu #login-logout-link:active, #menu #login-logout-link:visited {\n
\n \n
\theight:20px;\n \theight:20px;\n
\tposition: relative;\n \tposition: relative;\n
...@@ -1527,7 +1527,10 @@ div.extendedSearchBar{\n ...@@ -1527,7 +1527,10 @@ div.extendedSearchBar{\n
div.searchBar input, div.extendedSearchBar input {\n div.searchBar input, div.extendedSearchBar input {\n
width: auto;\n width: auto;\n
}\n }\n
\n
div.centeredInner {\n
text-align: center;\n
}
]]></string> </value> ]]></string> </value>
</item> </item>
......
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
#km_left {\n #km_left {\n
width:auto !important;\n width:auto !important;\n
min-width:75%;\n min-width:75%;\n
background-color:#FFFFFF;\n /*background-color:#FFFFFF;\n
border:1px solid #D1D0C9;\n border:1px solid #D1D0C9;*/\n
}\n }\n
\n \n
/* Search popup fix*/\n /* Search popup fix*/\n
...@@ -223,12 +223,12 @@ width:250px;\n ...@@ -223,12 +223,12 @@ width:250px;\n
\n \n
/* Search bar */\n /* Search bar */\n
div.extendedSearchBar {\n div.extendedSearchBar {\n
float:right;\n float:left;\n
margin-top:0;\n margin-top:0;\n
padding:0;\n padding:1em 0 0;\n
right:5px;\n /*right:5px;\n
text-align:right;\n text-align:right;\n
width:350px;\n width:350px;*/\n
}\n }\n
div.extendedSearchBar .button {\n div.extendedSearchBar .button {\n
background-image: url(\'./km_img/search_background.png\');\n background-image: url(\'./km_img/search_background.png\');\n
...@@ -267,9 +267,12 @@ background-color:#EBEBE2;\n ...@@ -267,9 +267,12 @@ background-color:#EBEBE2;\n
.listbox select {\n .listbox select {\n
max-width: 145px;\n max-width: 145px;\n
}\n }\n
\n
/*\n
.listbox input {\n .listbox input {\n
width:96%;\n width:96%;\n
}\n }\n
*/\n
\n \n
button.sort_button_desc{\n button.sort_button_desc{\n
background-image: url(\'./km_img/switch_desc.png\');\n background-image: url(\'./km_img/switch_desc.png\');\n
......
...@@ -119,8 +119,8 @@ ...@@ -119,8 +119,8 @@
\'%s/km_css/pulldown.css\' % portal_path,\n \'%s/km_css/pulldown.css\' % portal_path,\n
\'%s/km_css/type.css\' % portal_path,\n \'%s/km_css/type.css\' % portal_path,\n
\'%s/km_css/gadget.css\' % portal_path,\n \'%s/km_css/gadget.css\' % portal_path,\n
\'%s/km_custom.css\' % portal_path,\n
\'%s/km_css/listbox.css\' % portal_path,\n \'%s/km_css/listbox.css\' % portal_path,\n
\'%s/km_custom.css\' % portal_path,\n
];\n ];\n
global js_list python:[\n global js_list python:[\n
\'%s/erp5_km_utils.js\' % portal_path,\n \'%s/erp5_km_utils.js\' % portal_path,\n
......
1403 1404
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment