Mercurial > kallithea
changeset 1553:6ff50754d22d beta
UX improvements
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 12 Oct 2011 19:35:01 +0200 |
parents | 2a3f32c38c5c |
children | e7c6341ad3cb |
files | rhodecode/public/css/style.css rhodecode/templates/files/files_browser.html rhodecode/templates/summary/summary.html |
diffstat | 3 files changed, 21 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/css/style.css Wed Oct 12 19:07:43 2011 +0200 +++ b/rhodecode/public/css/style.css Wed Oct 12 19:35:01 2011 +0200 @@ -1910,19 +1910,6 @@ padding-left: 5px; } -div.browserblock .search_activate #filter_activate,div.browserblock .add_node a{ - vertical-align: sub; - border: 1px solid; - padding:2px; - -webkit-border-radius: 4px 4px 4px 4px; - -khtml-border-radius: 4px 4px 4px 4px; - -moz-border-radius: 4px 4px 4px 4px; - border-radius: 4px 4px 4px 4px; - background: url("../images/button.png") repeat-x scroll 0 0 #E5E3E3; - border-color: #DDDDDD #DDDDDD #C6C6C6 #C6C6C6; - color: #515151; -} - div.browserblock .search_activate a:hover,div.browserblock .add_node a:hover{ text-decoration: none !important; } @@ -2386,8 +2373,10 @@ border:1px solid #316293; } - -input.ui-button-small { +.ui-button-small a:hover { + +} +input.ui-button-small,.ui-button-small { background:#e5e3e3 url("../images/button.png") repeat-x !important; border-top:1px solid #DDD !important; border-left:1px solid #c6c6c6 !important; @@ -2402,17 +2391,19 @@ border-radius: 4px 4px 4px 4px !important; box-shadow: 0 1px 0 #ececec !important; cursor: pointer !important; -} - -input.ui-button-small:hover { +padding:0px 2px 1px 2px; +} + +input.ui-button-small:hover,.ui-button-small:hover { background:#b4b4b4 url("../images/button_selected.png") repeat-x !important; border-top:1px solid #ccc !important; border-left:1px solid #bebebe !important; border-right:1px solid #b1b1b1 !important; -border-bottom:1px solid #afafaf !important; -} - -input.ui-button-small-blue { +border-bottom:1px solid #afafaf !important; +text-decoration: none; +} + +input.ui-button-small-blue,.ui-button-small-blue { background:#4e85bb url("../images/button_highlight.png") repeat-x; border-top:1px solid #5c91a4; border-left:1px solid #2a6f89; @@ -2425,6 +2416,7 @@ border-radius: 4px 4px 4px 4px; box-shadow: 0 1px 0 #ececec; cursor: pointer; +padding:0px 2px 1px 2px; } input.ui-button-small-blue:hover {
--- a/rhodecode/templates/files/files_browser.html Wed Oct 12 19:07:43 2011 +0200 +++ b/rhodecode/templates/files/files_browser.html Wed Oct 12 19:35:01 2011 +0200 @@ -11,9 +11,9 @@ ${h.form(h.url.current())} <div class="info_box"> <span class="rev">${_('view')}@rev</span> - <a class="rev" href="${c.url_prev}" title="${_('previous revision')}">«</a> + <a class="ui-button-small" href="${c.url_prev}" title="${_('previous revision')}">«</a> ${h.text('at_rev',value=c.changeset.revision,size=5)} - <a class="rev" href="${c.url_next}" title="${_('next revision')}">»</a> + <a class="ui-button-small" href="${c.url_next}" title="${_('next revision')}">»</a> ## ${h.submit('view',_('view'),class_="ui-button-small")} </div> ${h.end_form()} @@ -24,11 +24,11 @@ </div> <div class="browser-search"> <div id="search_activate_id" class="search_activate"> - <a id="filter_activate" href="#">${_('search file list')}</a> + <a class="ui-button-small" id="filter_activate" href="#">${_('search file list')}</a> </div> % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): - <div id="add_node_id" class="add_node"> - <a href="${h.url('files_add_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path)}">${_('add new file')}</a> + <div id="add_node_id" class="add_node"> + <a class="ui-button-small" href="${h.url('files_add_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path)}">${_('add new file')}</a> </div> % endif <div>
--- a/rhodecode/templates/summary/summary.html Wed Oct 12 19:07:43 2011 +0200 +++ b/rhodecode/templates/summary/summary.html Wed Oct 12 19:35:01 2011 +0200 @@ -151,7 +151,7 @@ %elif c.enable_downloads is False: ${_('Downloads are disabled for this repository')} %if h.HasPermissionAll('hg.admin')('enable stats on from summary'): - [${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name))}] + ${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name),class_="ui-button-small")} %endif %else: ${h.select('download_options',c.rhodecode_repo.get_changeset().raw_id,c.download_options)} @@ -317,7 +317,7 @@ %if c.no_data: ${c.no_data_msg} %if h.HasPermissionAll('hg.admin')('enable stats on from summary'): - [${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name))}] + ${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name),class_="ui-button-small")} %endif %else: