Changeset - 42f3115cc2ac
[Not reviewed]
default
0 3 0
Thomas De Schampheleire - 11 years ago 2015-03-03 21:37:44
thomas.de.schampheleire@gmail.com
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).
3 files changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/public/css/style.css
Show inline comments
 
@@ -958,6 +958,10 @@ tbody .yui-dt-editable { cursor: pointer
 
    padding-bottom: 2px;
 
}
 

	
 
#content div.box div.normal-indent {
 
    margin: 0 20px 10px 20px;
 
}
 

	
 
#content div.box p {
 
    color: #5f5f5f;
 
    font-size: 12px;
kallithea/templates/pullrequests/pullrequest_show_all.html
Show inline comments
 
@@ -41,7 +41,7 @@ ${self.repo_context_bar('showpullrequest
 
        </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_))}
kallithea/templates/pullrequests/pullrequest_show_my.html
Show inline comments
 
@@ -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'))}
0 comments (0 inline, 0 general)