Mercurial > kallithea
changeset 4892:42f3115cc2ac
style: add class 'normal-indent' instead of repeated explicit margins
Add a new CSS class for the standard indentation inside the main box,
instead of repeating 'style="..."' statements on the relevant elements.
Ideally, this class should not exist as the necessary padding would be added
to the main box itself, but reworking this is a bigger exercise (to be done
later).
author | Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> |
---|---|
date | Tue, 03 Mar 2015 21:37:44 +0100 |
parents | a7bbf4e18ec3 |
children | 0f9a48e0adc3 |
files | kallithea/public/css/style.css kallithea/templates/pullrequests/pullrequest_show_all.html kallithea/templates/pullrequests/pullrequest_show_my.html |
diffstat | 3 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/public/css/style.css Tue Mar 03 21:33:04 2015 +0100 +++ b/kallithea/public/css/style.css Tue Mar 03 21:37:44 2015 +0100 @@ -958,6 +958,10 @@ padding-bottom: 2px; } +#content div.box div.normal-indent { + margin: 0 20px 10px 20px; +} + #content div.box p { color: #5f5f5f; font-size: 12px;
--- a/kallithea/templates/pullrequests/pullrequest_show_all.html Tue Mar 03 21:33:04 2015 +0100 +++ b/kallithea/templates/pullrequests/pullrequest_show_all.html Tue Mar 03 21:37:44 2015 +0100 @@ -41,7 +41,7 @@ </ul> </div> - <div style="margin: 0 20px 10px 20px"> + <div class="normal-indent"> <div> %if c.closed: ${h.link_to(_('Hide closed pull requests (only show open pull requests)'), h.url('pullrequest_show_all',repo_name=c.repo_name,from_=c.from_))}
--- a/kallithea/templates/pullrequests/pullrequest_show_my.html Tue Mar 03 21:33:04 2015 +0100 +++ b/kallithea/templates/pullrequests/pullrequest_show_my.html Tue Mar 03 21:37:44 2015 +0100 @@ -20,7 +20,7 @@ ${self.breadcrumbs()} </div> - <div style="margin: 0 20px"> + <div class="normal-indent"> <div> %if c.closed: ${h.link_to(_('Hide closed pull requests (only show open pull requests)'), h.url('my_pullrequests'))}