Skip to content

Commit

Permalink
Updated admin css to use svgs instead of gifs
Browse files Browse the repository at this point in the history
  • Loading branch information
bartgryszko committed Apr 1, 2017
1 parent cfa5a07 commit 6f9320a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nested_inline/static/admin/css/forms-nested.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ fieldset.collapsed h2, fieldset.collapsed {
}

fieldset.collapsed h2 {
background-image: url(../img/nav-bg.gif);
background-image: url(../img/nav-bg.svg);
background-position: bottom left;
color: #999;
}
Expand All @@ -161,7 +161,7 @@ fieldset.monospace textarea {
.submit-row {
padding: 5px 7px;
text-align: right;
background: white url(../img/nav-bg.gif) 0 100% repeat-x;
background: white url(../img/nav-bg.svg) 0 100% repeat-x;
border: 1px solid #ccc;
margin: 5px 0;
overflow: hidden;
Expand All @@ -184,7 +184,7 @@ body.popup .submit-row {
}

.submit-row .deletelink {
background: url(../img/icon_deletelink.gif) 0 50% no-repeat;
background: url(../img/icon_deletelink.svg) 0 50% no-repeat;
padding-left: 14px;
}

Expand Down Expand Up @@ -251,7 +251,7 @@ body.popup .submit-row {
color: #666;
padding: 3px 5px;
font-size: 11px;
background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x;
background: #e1e1e1 url(../img/nav-bg.svg) top left repeat-x;
border-bottom: 1px solid #ddd;
}

Expand Down Expand Up @@ -336,7 +336,7 @@ body.popup .submit-row {
color: #666;
padding: 3px 5px;
border-bottom: 1px solid #ddd;
background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x;
background: #e1e1e1 url(../img/nav-bg.svg) top left repeat-x;
}

.inline-group .tabular tr.add-row td {
Expand All @@ -347,7 +347,7 @@ body.popup .submit-row {
.inline-group ul.tools a.add,
.inline-group div.add-row a,
.inline-group .tabular tr.add-row td a {
background: url(../img/icon_addlink.gif) 0 50% no-repeat;
background: url(../img/icon_addlink.svg) 0 50% no-repeat;
padding-left: 14px;
font-size: 11px;
outline: 0; /* Remove dotted border around link */
Expand Down

1 comment on commit 6f9320a

@PetrDlouhy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bgryszko I think, that most of the file forms-nested.css is unnecessary and redundant. Check OskarPersson#78 where I dealt with this.

Please sign in to comment.