Mercurial > kallithea
changeset 1599:387971bd1a79 beta
image less css
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 26 Oct 2011 13:35:21 +0200 |
parents | e9a19edfeba6 |
children | 84e2e29c0f03 |
files | rhodecode/public/css/style.css rhodecode/public/images/button_highlight_selected.png rhodecode/public/images/title.png rhodecode/public/images/title_link.png rhodecode/templates/search/search_path.html |
diffstat | 5 files changed, 63 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/css/style.css Wed Oct 26 13:25:34 2011 +0200 +++ b/rhodecode/public/css/style.css Wed Oct 26 13:35:21 2011 +0200 @@ -197,8 +197,19 @@ -moz-border-radius: 0px 0px 8px 8px; border-radius: 0px 0px 8px 8px; height: 37px; - background: url("../images/header_inner.png") repeat-x scroll 0 0 - #003367; + background-color: #eedc94; + background-repeat: repeat-x; + background-image: -khtml-gradient(linear, left top, left bottom, from(#fceec1), + to(#eedc94) ); + background-image: -moz-linear-gradient(top, #003b76, #00376e); + background-image: -ms-linear-gradient(top, #003b76, #00376e); + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003b76), + color-stop(100%, #00376e) ); + background-image: -webkit-linear-gradient(top, #003b76, #00376e) ); + background-image: -o-linear-gradient(top, #003b76, #00376e) ); + background-image: linear-gradient(top, #003b76, #00376e); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b76', + endColorstr='#00376e', GradientType=0 ); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6); } @@ -250,7 +261,19 @@ min-height: 40px; clear: both; position: relative; - background: #003367 url("../images/header_inner.png") repeat-x; + background-color: #eedc94; + background-repeat: repeat-x; + background-image: -khtml-gradient(linear, left top, left bottom, from(#fceec1), + to(#eedc94) ); + background-image: -moz-linear-gradient(top, #003b76, #00376e); + background-image: -ms-linear-gradient(top, #003b76, #00376e); + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003b76), + color-stop(100%, #00376e) ); + background-image: -webkit-linear-gradient(top, #003b76, #00376e) ); + background-image: -o-linear-gradient(top, #003b76, #00376e) ); + background-image: linear-gradient(top, #003b76, #00376e); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b76', + endColorstr='#00376e', GradientType=0 ); margin: 0; padding: 0; display: block; @@ -1601,7 +1624,19 @@ clear: both; overflow: hidden; position: relative; - background: #003367 url("../images/header_inner.png") repeat-x; + background-color: #eedc94; + background-repeat: repeat-x; + background-image: -khtml-gradient(linear, left top, left bottom, from(#fceec1), + to(#eedc94) ); + background-image: -moz-linear-gradient(top, #003b76, #00376e); + background-image: -ms-linear-gradient(top, #003b76, #00376e); + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003b76), + color-stop(100%, #00376e) ); + background-image: -webkit-linear-gradient(top, #003b76, #00376e) ); + background-image: -o-linear-gradient(top, #003b76, #00376e) ); + background-image: linear-gradient(top, #003b76, #00376e); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b76', + endColorstr='#00376e', GradientType=0 ); margin: 0 auto; padding: 0; } @@ -2545,7 +2580,7 @@ } #content div.box div.title div.search { - background: url("../images/title_link.png") no-repeat top left; + border-left: 1px solid #316293; }
--- a/rhodecode/templates/search/search_path.html Wed Oct 26 13:25:34 2011 +0200 +++ b/rhodecode/templates/search/search_path.html Wed Oct 26 13:35:21 2011 +0200 @@ -1,27 +1,26 @@ ##path search -<div class="search"> - %for cnt,sr in enumerate(c.formated_results): - %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(sr['repository'],'search results check'): - <div class="search_path"> + +%for cnt,sr in enumerate(c.formated_results): + %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(sr['repository'],'search results check'): + <div class="search_path"> + <div class="link"> + ${h.link_to(h.literal('%s » %s' % (sr['repository'],sr['f_path'])), + h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))} + </div> + </div> + %else: + %if cnt == 0: + <div class="error"> <div class="link"> - ${h.link_to(h.literal('%s » %s' % (sr['repository'],sr['f_path'])), - h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))} + ${_('Permission denied')} </div> - </div> - %else: - %if cnt == 0: - <div class="error"> - <div class="link"> - ${_('Permission denied')} - </div> - </div> - %endif - - %endif - %endfor - %if c.cur_query and c.formated_results: - <div class="pagination-wh pagination-left"> - ${c.formated_results.pager('$link_previous ~2~ $link_next')} - </div> - %endif -</div> \ No newline at end of file + </div> + %endif + + %endif +%endfor +%if c.cur_query and c.formated_results: +<div class="pagination-wh pagination-left"> + ${c.formated_results.pager('$link_previous ~2~ $link_next')} +</div> +%endif