Skip to content

Commit

Permalink
Made jsoneditor.css to scss for asset pipeline
Browse files Browse the repository at this point in the history
Fixed a bug that caused the styles not to find the image sprite in
production mode due to asset pipeline.
  • Loading branch information
ArneZsng committed Jul 8, 2015
1 parent 607b731 commit 4f981fb
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
}

.jsoneditor .field.empty {
background-image: url("img/jsoneditor-icons.png");
background-image: image-url("img/jsoneditor-icons.png");
background-position: 0 -144px;
}

.jsoneditor .value.empty {
background-image: url("img/jsoneditor-icons.png");
background-image: image-url("img/jsoneditor-icons.png");
background-position: -48px -144px;
}

Expand Down Expand Up @@ -87,7 +87,7 @@
margin: 0;
border: none;
cursor: pointer;
background: transparent url("img/jsoneditor-icons.png");
background: transparent image-url("img/jsoneditor-icons.png");
}

.jsoneditor div.tree button.collapsed {
Expand Down Expand Up @@ -182,7 +182,7 @@
}

.jsoneditor div.tree button.dragarea {
background: url("img/jsoneditor-icons.png") -72px -72px;
background: image-url("img/jsoneditor-icons.png") -72px -72px;
cursor: move;
}

Expand Down Expand Up @@ -280,7 +280,7 @@
border: none;
padding: 0;
margin: 0;
background-image: url("img/jsoneditor-icons.png");
background-image: image-url("img/jsoneditor-icons.png");
}

.jsoneditor-contextmenu ul li button div.expand {
Expand All @@ -289,7 +289,7 @@
height: 24px;
padding: 0;
margin: 0 4px 0 0;
background: url("img/jsoneditor-icons.png") 0 -72px;
background: image-url("img/jsoneditor-icons.png") 0 -72px;
opacity: 0.4;
}

Expand Down Expand Up @@ -463,7 +463,7 @@
padding: 0;
border-radius: 2px;
border: 1px solid #aec0f8;
background: #e3eaf6 url("img/jsoneditor-icons.png");
background: #e3eaf6 image-url("img/jsoneditor-icons.png");
color: #4D4D4D;
opacity: 0.8;
font-family: arial, sans-serif;
Expand Down Expand Up @@ -589,7 +589,7 @@
padding: 0;
margin: 0;
border: none;
background: url("img/jsoneditor-icons.png");
background: image-url("img/jsoneditor-icons.png");
vertical-align: top;
}

Expand Down Expand Up @@ -619,4 +619,4 @@

.jsoneditor .search button.previous:hover {
background-position: -148px -49px;
}
}

0 comments on commit 4f981fb

Please sign in to comment.