Mercurial > kallithea
changeset 6280:9cbf386ea529
style: use Bootstrap compatible btn-danger instead of red ... and similar for other button types
Based on work by Dominik Ruf.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 21 Oct 2016 01:01:05 +0200 |
parents | 20830dfe3ed8 |
children | d4b39ef6cadf |
files | kallithea/public/css/style.css kallithea/templates/admin/repo_groups/repo_group_edit_settings.html kallithea/templates/search/search.html |
diffstat | 3 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/public/css/style.css Thu Oct 20 20:04:28 2016 +0200 +++ b/kallithea/public/css/style.css Fri Oct 21 01:01:05 2016 +0200 @@ -3191,7 +3191,7 @@ box-shadow: none !important; } -.btn.red { +.btn.btn-danger { color: #fff; background-color: #c43c35; background-repeat: repeat-x; @@ -3200,8 +3200,7 @@ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); } - -.btn.blue { +.btn.btn-primary { color: #fff; background-color: #339bb9; background-repeat: repeat-x; @@ -3210,7 +3209,7 @@ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); } -.btn.green { +.btn.btn-success { color: #fff; background-color: #57a957; background-repeat: repeat-x; @@ -3219,7 +3218,7 @@ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); } -.btn.yellow { +.btn.btn-warning { color: #fff; background-color: #faa732; background-repeat: repeat-x;
--- a/kallithea/templates/admin/repo_groups/repo_group_edit_settings.html Thu Oct 20 20:04:28 2016 +0200 +++ b/kallithea/templates/admin/repo_groups/repo_group_edit_settings.html Fri Oct 21 01:01:05 2016 +0200 @@ -50,7 +50,7 @@ <div class="form"> <div class="form-horizontal"> <div class="buttons"> - ${h.submit('remove_%s' % c.repo_group.group_name,_('Remove this group'),class_="btn red",onclick="return confirm('"+_('Confirm to delete this group')+"');")} + ${h.submit('remove_%s' % c.repo_group.group_name,_('Remove this group'),class_="btn btn-danger",onclick="return confirm('"+_('Confirm to delete this group')+"');")} </div> </div> </div>
--- a/kallithea/templates/search/search.html Thu Oct 20 20:04:28 2016 +0200 +++ b/kallithea/templates/search/search.html Fri Oct 21 01:01:05 2016 +0200 @@ -51,7 +51,7 @@ </div> <div class="input">${h.text('q',c.cur_query,class_="small")} <div class="button highlight"> - <input type="submit" value="${_('Search')}" class="btn"/> + <input type="submit" value="${_('Search')}" class="btn btn-default"/> </div> </div> <div style="font-weight: bold;clear:both;margin-left:200px">${c.runtime}</div>