Skip to content
This repository was archived by the owner on Jun 5, 2022. It is now read-only.

Loading UploadIcon.svg with Data URI in CSS #22

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/component/UploadIcon.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/component/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
.fileContainer .uploadIcon {
width: 50px;
height: 50px;
background: url(UploadIcon.svg);
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg enable-background='new 0 0 64 64' height='64px' id='Layer_1' version='1.1' viewBox='0 0 64 64' width='64px' xml:space='preserve' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cg%3e%3cpath d=' M10,41.3v12c0,1.1,0.9,2,2,2h40c1.1,0,2-0.9,2-2v-12H10z' fill='none' stroke='%234D4D4D' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2'/%3e%3cpath d=' M42.6,19.4c3.8,7.3,7.6,14.7,11.4,22c-14.7,0-29.3,0-44,0c3.8-7.3,7.6-14.7,11.4-22' fill='none' stroke='%234D4D4D' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2'/%3e%3cg%3e%3cline fill='none' stroke='%234D4D4D' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2' x1='32' x2='32' y1='8.7' y2='28.2'/%3e%3cline fill='none' stroke='%234D4D4D' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2' x1='32' x2='35.7' y1='8.7' y2='12.4'/%3e%3cline fill='none' stroke='%234D4D4D' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2' x1='28' x2='31.7' y1='12.4' y2='8.7'/%3e%3c/g%3e%3ccircle cx='47.3' cy='46.7' fill='none' r='2.3' stroke='%234D4D4D' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10'/%3e%3cline fill='none' stroke='%234D4D4D' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2' x1='21.4' x2='27.5' y1='19.4' y2='19.4'/%3e%3cline fill='none' stroke='%234D4D4D' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2' x1='36.4' x2='42.5' y1='19.4' y2='19.4'/%3e%3cline fill='none' stroke='%234D4D4D' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2' x1='21.9' x2='41.9' y1='36.4' y2='36.4'/%3e%3cline fill='none' stroke='%234D4D4D' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2' x1='23.5' x2='40.2' y1='32.1' y2='32.1'/%3e%3c/g%3e%3c/svg%3e");
-webkit-background-size: cover;
background-size: cover;
}
Expand Down