Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Replace material icons with svg

weronkad34ff16ba22b
diff --git a/package.json b/package.json
index 7c1160fc2b..9cd388e74d 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,6 @@
"jquery-match-height": "^0.7.0",
"jquery-ui": "^1.12.1",
"jquery.cookie": "^1.4.1",
- "material-design-icons": "^3.0.1",
"materialize-css": "^0.97.7",
"mobx": "^3.0.2",
"mobx-react": "^4.1.0",
diff --git a/saleor/static/images/account_circle.svg b/saleor/static/images/account_circle.svg
new file mode 100644
index 0000000000..264b904d33
--- /dev/null
+++ b/saleor/static/images/account_circle.svg
@@ -0,0 +1,4 @@
+<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/>
+ <path d="M0 0h24v24H0z" fill="none"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/add.svg b/saleor/static/images/add.svg
new file mode 100644
index 0000000000..04507da17d
--- /dev/null
+++ b/saleor/static/images/add.svg
@@ -0,0 +1,4 @@
+<svg fill="#ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
+ <path d="M0 0h24v24H0z" fill="none"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/arrow_drop_down.svg b/saleor/static/images/arrow_drop_down.svg
new file mode 100644
index 0000000000..0dba32d5e5
--- /dev/null
+++ b/saleor/static/images/arrow_drop_down.svg
@@ -0,0 +1,4 @@
+<svg fill="#9E9E9E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M7 10l5 5 5-5z"/>
+ <path d="M0 0h24v24H0z" fill="none"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/chevron_left.svg b/saleor/static/images/chevron_left.svg
new file mode 100644
index 0000000000..ee6f80ebd1
--- /dev/null
+++ b/saleor/static/images/chevron_left.svg
@@ -0,0 +1,4 @@
+<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
+ <path d="M0 0h24v24H0z" fill="none"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/chevron_right.svg b/saleor/static/images/chevron_right.svg
new file mode 100644
index 0000000000..d88daa8c7e
--- /dev/null
+++ b/saleor/static/images/chevron_right.svg
@@ -0,0 +1,4 @@
+<svg fill="#ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
+ <path d="M0 0h24v24H0z" fill="none"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/collections.svg b/saleor/static/images/collections.svg
new file mode 100644
index 0000000000..227f30762d
--- /dev/null
+++ b/saleor/static/images/collections.svg
@@ -0,0 +1,4 @@
+<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M0 0h24v24H0z" fill="none"/>
+ <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/description.svg b/saleor/static/images/description.svg
new file mode 100644
index 0000000000..887dca8aab
--- /dev/null
+++ b/saleor/static/images/description.svg
@@ -0,0 +1,4 @@
+<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M0 0h24v24H0z" fill="none"/>
+ <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/edit.svg b/saleor/static/images/edit.svg
new file mode 100644
index 0000000000..c81d493286
--- /dev/null
+++ b/saleor/static/images/edit.svg
@@ -0,0 +1,4 @@
+<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/>
+ <path d="M0 0h24v24H0z" fill="none"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/email.svg b/saleor/static/images/email.svg
new file mode 100644
index 0000000000..855c7ccc97
--- /dev/null
+++ b/saleor/static/images/email.svg
@@ -0,0 +1,4 @@
+<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
+ <path d="M0 0h24v24H0z" fill="none"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/help.svg b/saleor/static/images/help.svg
new file mode 100644
index 0000000000..2e0abcb1e0
--- /dev/null
+++ b/saleor/static/images/help.svg
@@ -0,0 +1,4 @@
+<svg fill="#9E9E9E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M0 0h24v24H0z" fill="none"/>
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/history.svg b/saleor/static/images/history.svg
new file mode 100644
index 0000000000..4e22bb9a2b
--- /dev/null
+++ b/saleor/static/images/history.svg
@@ -0,0 +1,4 @@
+<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M0 0h24v24H0z" fill="none"/>
+ <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/more_vert.svg b/saleor/static/images/more_vert.svg
new file mode 100644
index 0000000000..747efcf534
--- /dev/null
+++ b/saleor/static/images/more_vert.svg
@@ -0,0 +1,4 @@
+<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M0 0h24v24H0z" fill="none"/>
+ <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/payment.svg b/saleor/static/images/payment.svg
new file mode 100644
index 0000000000..29f099dbe7
--- /dev/null
+++ b/saleor/static/images/payment.svg
@@ -0,0 +1,4 @@
+<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M0 0h24v24H0z" fill="none"/>
+ <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/phone.svg b/saleor/static/images/phone.svg
new file mode 100644
index 0000000000..eca33f1b41
--- /dev/null
+++ b/saleor/static/images/phone.svg
@@ -0,0 +1,4 @@
+<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M0 0h24v24H0z" fill="none"/>
+ <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/store.svg b/saleor/static/images/store.svg
new file mode 100644
index 0000000000..f9ecce9e3b
--- /dev/null
+++ b/saleor/static/images/store.svg
@@ -0,0 +1,4 @@
+<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M0 0h24v24H0z" fill="none"/>
+ <path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/style.svg b/saleor/static/images/style.svg
new file mode 100644
index 0000000000..4f49cfa80c
--- /dev/null
+++ b/saleor/static/images/style.svg
@@ -0,0 +1,4 @@
+<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.15.8l4.96 11.97c.31.76 1.05 1.22 1.83 1.23.26 0 .52-.05.77-.15l7.36-3.05c1.02-.42 1.51-1.59 1.09-2.6zM7.88 8.75c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-2 11c0 1.1.9 2 2 2h1.45l-3.45-8.34v6.34z"/>
+ <path d="M0 0h24v24H0z" fill="none"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/visibility.svg b/saleor/static/images/visibility.svg
new file mode 100644
index 0000000000..46f20fedb8
--- /dev/null
+++ b/saleor/static/images/visibility.svg
@@ -0,0 +1,4 @@
+<svg fill="#616161" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M0 0h24v24H0z" fill="none"/>
+ <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/images/visibility_off.svg b/saleor/static/images/visibility_off.svg
new file mode 100644
index 0000000000..4c75f6fffe
--- /dev/null
+++ b/saleor/static/images/visibility_off.svg
@@ -0,0 +1,4 @@
+<svg fill="#616161" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
+ <path d="M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z" fill="none"/>
+ <path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/>
+</svg>
\ No newline at end of file
diff --git a/saleor/static/scss/dashboard/components/_breadcrumbs.scss b/saleor/static/scss/dashboard/components/_breadcrumbs.scss
index 20a311bf46..e152cf24b7 100644
--- a/saleor/static/scss/dashboard/components/_breadcrumbs.scss
+++ b/saleor/static/scss/dashboard/components/_breadcrumbs.scss
@@ -6,6 +6,7 @@
white-space: nowrap;
margin-bottom: 0;
margin-top: 0;
+ max-width: calc(100vw - 40px);
@media (max-width: $medium-screen) {
overflow: hidden;
text-overflow: ellipsis;
@@ -13,15 +14,9 @@
&--history {
li {
&:before {
- content: '\E5CC';
- vertical-align: top;
+ content: url('/static/images/chevron_right.svg');
+ vertical-align: text-bottom;
display: inline-block;
- font-family: 'Material Icons';
- font-weight: normal;
- font-style: normal;
- font-size: 25px;
- margin: 0 10px 0 8px;
- -webkit-font-smoothing: antialiased;
}
&:first-child:before {
display: none;
@@ -50,6 +45,10 @@
}
&.back-mobile {
display: inline-block;
+ svg {
+ vertical-align: text-top;
+ margin-right: 10px;
+ }
}
}
@media (min-width: $medium-screen-up) {
diff --git a/saleor/static/scss/dashboard/components/_buttons.scss b/saleor/static/scss/dashboard/components/_buttons.scss
index 44d5837225..a36172e61a 100644
--- a/saleor/static/scss/dashboard/components/_buttons.scss
+++ b/saleor/static/scss/dashboard/components/_buttons.scss
@@ -2,11 +2,11 @@
color: $secondary-color;
}
-.btn-fab.btn-fab-hidden {
- transform: scaleX(0) scaleY(0);
- i {
- &:before {
- font-size: 0;
- }
+.btn-fab {
+ svg {
+ vertical-align: middle;
+ }
+ &.btn-fab-hidden {
+ transform: scaleX(0) scaleY(0);
}
}
diff --git a/saleor/static/scss/dashboard/components/_data-table.scss b/saleor/static/scss/dashboard/components/_data-table.scss
index 0320301c66..d737b29f86 100644
--- a/saleor/static/scss/dashboard/components/_data-table.scss
+++ b/saleor/static/scss/dashboard/components/_data-table.scss
@@ -78,11 +78,8 @@
.dropdown-button {
color: inherit;
display: inline-block;
- i {
- @extend .grey-text;
- font-size: 16px;
- text-align: center;
- width: 16px;
+ svg {
+ vertical-align: bottom;
}
}
}
diff --git a/saleor/static/scss/dashboard/components/_fonts.scss b/saleor/static/scss/dashboard/components/_fonts.scss
deleted file mode 100644
index ac859428db..0000000000
--- a/saleor/static/scss/dashboard/components/_fonts.scss
+++ /dev/null
@@ -1,11 +0,0 @@
-@font-face {
- font-family: 'Material Icons';
- font-style: normal;
- font-weight: 400;
- src: url('~material-design-icons/iconfont/MaterialIcons-Regular.eot'); /* For IE6-8 */
- src: local('Material Icons'),
- local('MaterialIcons-Regular'),
- url('~material-design-icons/iconfont/MaterialIcons-Regular.woff2') format('woff2'),
- url('~material-design-icons/iconfont/MaterialIcons-Regular.woff') format('woff'),
- url('~material-design-icons/iconfont/MaterialIcons-Regular.ttf') format('truetype');
-}
diff --git a/saleor/static/scss/dashboard/components/_global.scss b/saleor/static/scss/dashboard/components/_global.scss
index 159b548f69..3cffa793db 100644
--- a/saleor/static/scss/dashboard/components/_global.scss
+++ b/saleor/static/scss/dashboard/components/_global.scss
@@ -90,8 +90,8 @@ h6 {
}
.help-box {
- i {
- font-size: 1.3rem;
+ svg {
+ vertical-align: middle;
}
}
diff --git a/saleor/static/scss/dashboard/components/_nav.scss b/saleor/static/scss/dashboard/components/_nav.scss
index ee6d50d37a..73a57f9461 100644
--- a/saleor/static/scss/dashboard/components/_nav.scss
+++ b/saleor/static/scss/dashboard/components/_nav.scss
@@ -28,14 +28,16 @@ header {
}
&:focus {
background-color: white;
+ ~ label {
+ svg {
+ fill: $off-black;
+ }
+ }
}
}
label {
transition: color .2s ease-out;
- i {
- height: 36px;
- line-height: 36px;
- }
+ margin-top: 7px;
}
}
}
@@ -45,6 +47,17 @@ header {
white-space: normal;
max-width: 90vw;
}
+ #toggle-menu {
+ svg {
+ margin: 16px 0;
+ @media (max-width: $small-screen) {
+ margin: 20px 0;
+ }
+ path {
+ fill: #fff;
+ }
+ }
+ }
.menu-toggle {
background-color: $primary-color;
position: absolute;
@@ -78,10 +91,6 @@ header {
@media (max-width: $small-screen) {
top: $header-height/3;
}
- i {
- height: $header-height/2;
- line-height: $header-height/2;
- }
}
.dropdown-content {
@@ -179,17 +188,11 @@ header {
padding-left: 15px;
}
.dropdown-button {
- i {
- padding-right: 15px;
- }
- }
- i {
- font-size: $subheader-height/2;
- line-height: $subheader-height;
- color: white;
+ padding: 11px 15px 0 0;
+ line-height: 0;
+ max-height: $subheader-height;
}
}
-
}
.main {
diff --git a/saleor/static/scss/dashboard/components/_pagination.scss b/saleor/static/scss/dashboard/components/_pagination.scss
new file mode 100644
index 0000000000..88268d39a5
--- /dev/null
+++ b/saleor/static/scss/dashboard/components/_pagination.scss
@@ -0,0 +1,5 @@
+.pagination {
+ svg {
+ margin-top: 3px;
+ }
+}
diff --git a/saleor/static/scss/dashboard/components/_search.scss b/saleor/static/scss/dashboard/components/_search.scss
index 6e521b6e16..8df2174c31 100644
--- a/saleor/static/scss/dashboard/components/_search.scss
+++ b/saleor/static/scss/dashboard/components/_search.scss
@@ -16,11 +16,8 @@
button {
width: 20%;
padding: 0;
- margin-top: 3px;
- i {
- color: $primary-color;
- }
- &:hover {
+ margin-top: 7px;
+ &:hover, &:focus {
background-color: transparent;
}
}
diff --git a/saleor/static/scss/dashboard/components/_select2.scss b/saleor/static/scss/dashboard/components/_select2.scss
index 8a8be51b81..9f9b61ddf1 100644
--- a/saleor/static/scss/dashboard/components/_select2.scss
+++ b/saleor/static/scss/dashboard/components/_select2.scss
@@ -59,11 +59,9 @@
margin: 0;
&:before {
- @extend .material-icons;
- content: "clear";
- cursor: pointer;
- font-size: 16px;
- line-height: 32px;
+ content: "\00d7";
+ font-size: 15px;
+ display: inline-block;
margin-left: 8px;
}
}
diff --git a/saleor/static/scss/dashboard/components/_tabs.scss b/saleor/static/scss/dashboard/components/_tabs.scss
index 226bea35d1..8ced1f8574 100644
--- a/saleor/static/scss/dashboard/components/_tabs.scss
+++ b/saleor/static/scss/dashboard/components/_tabs.scss
@@ -8,8 +8,7 @@
display: inline;
}
}
- i {
- font-size: 24px;
+ svg {
@media (min-width: $small-screen-up) {
display: none;
}
diff --git a/saleor/static/scss/dashboard/dashboard.scss b/saleor/static/scss/dashboard/dashboard.scss
index c04962d6d2..e4d63d3310 100644
--- a/saleor/static/scss/dashboard/dashboard.scss
+++ b/saleor/static/scss/dashboard/dashboard.scss
@@ -9,11 +9,11 @@
@import "components/buttons";
@import "components/data-table";
@import "components/dropzone";
-@import "components/fonts";
@import "components/form";
@import "components/formset";
@import "components/list";
@import "components/nav";
+@import "components/pagination";
@import "components/modals";
@import "components/product-gallery";
@import "components/ppoi";
diff --git a/templates/dashboard/base.html b/templates/dashboard/base.html
index 24d98f4166..b99f1b2bc6 100644
--- a/templates/dashboard/base.html
+++ b/templates/dashboard/base.html
@@ -48,23 +48,23 @@
</li>
</ul>
<a class="dropdown-button" data-constrainwidth="false" href="#" data-activates="user-action">
- <i class="material-icons">account_circle</i>
+ <svg data-src="{% static "images/account_circle.svg" %}" width="24" height="24" fill="#fff" />
</a>
{% if SEARCH_IS_ENABLED %}
<a href="{% url "dashboard:search" %}" class="hide-on-med-and-up dropdown-button">
- <i class="material-icons">search</i>
+ <svg data-src="{% static "images/search-icon.svg" %}" width="20" height="20" fill="#fff" />
</a>
{% endif %}
</div>
<ul class="left">
<li>
- <a href="#" id="toggle-menu" class="show-on-large">
- <i class="material-icons">menu</i>
+ <a href="#" id="toggle-menu">
+ <svg data-src="{% static "images/mobile-bar.svg" %}" width="24" height="24" />
</a>
</li>
<li>
<a href="{% url 'dashboard:index' %}" class="logo">
- <svg data-src="{% static "images/saleor-logo.svg" %}" height="38px" width="176px"/>
+ <svg data-src="{% static "images/saleor-logo.svg" %}" height="38px" width="176px" />
</a>
</li>
<li class="search">
@@ -73,7 +73,7 @@
<div class="input-field">
<input id="search" type="search" placeholder="{% trans "Search" context "Dashboard search" %}" name="q" value="{% if query %}{{ query }}{% endif %}">
<label>
- <i class="material-icons">search</i>
+ <svg data-src="{% static "images/search-icon.svg" %}" width="20" height="20" fill="#fff" />
</label>
</div>
</form>
diff --git a/templates/dashboard/category/detail.html b/templates/dashboard/category/detail.html
index 01a63b7d15..f5cbe13e15 100644
--- a/templates/dashboard/category/detail.html
+++ b/templates/dashboard/category/detail.html
@@ -2,6 +2,7 @@
{% load materializecss %}
{% load i18n %}
{% load mptt_tags %}
+{% load static %}
{% block title %}
{% if category.pk %}
@@ -33,7 +34,7 @@
</li>
<li class="back-mobile">
<a href="{% url 'dashboard:category-list' %}" class="breadcrumbs--ellipsed-item">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
@@ -90,7 +91,6 @@
{% else %}
<button type="submit" class="btn waves-effect waves-light">
{% trans "Create" context "Dashboard create action" %}
-
</button>
{% endif %}
</div>
diff --git a/templates/dashboard/category/list.html b/templates/dashboard/category/list.html
index fb1461b027..44388832e0 100644
--- a/templates/dashboard/category/list.html
+++ b/templates/dashboard/category/list.html
@@ -2,6 +2,7 @@
{% load i18n %}
{% load mptt_tags %}
{% load materializecss %}
+{% load staticfiles %}
{% block title %}{% trans "Categories" context "Category list page title" %} - {{ block.super }}{% endblock %}
@@ -27,12 +28,12 @@
<a class="btn-fab btn-floating btn-large waves-effect waves-light teal"
title="{% trans "Add category" context "Category list add button text" %}"
href="{% if root %}{% url 'dashboard:category-add' root_pk=root.pk %}{% else %}{% url 'dashboard:category-add' %}{% endif %}">
- <i class="material-icons">add</i>
+ <svg data-src="{% static "images/add.svg" %}" />
</a>
</div>
{% if root %}
<a class="dropdown-button right" href="#" data-activates="category-delete" data-constrainwidth="false">
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
<ul id="category-delete" class="dropdown-content">
<li>
@@ -67,7 +68,7 @@
{% if path %}
<li class="back-mobile">
<a href="{% url 'dashboard:category-list' %}">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
{% for node in path %}
@@ -109,7 +110,7 @@
</p>
{% if node.hidden %}
<span class="list-item-icon">
- <i class="material-icons">visibility_off</i>
+ <svg data-src="{% static "images/visibility_off.svg" %}" width="20" height="20" />
</span>
{% endif %}
</a>
diff --git a/templates/dashboard/customer/detail.html b/templates/dashboard/customer/detail.html
index 4f40581081..6dac0fe96f 100644
--- a/templates/dashboard/customer/detail.html
+++ b/templates/dashboard/customer/detail.html
@@ -2,6 +2,7 @@
{% load prices_i18n %}
{% load i18n %}
{% load status %}
+{% load static %}
{% block title %}
{{ customer }} - {% trans "Customers" context "Dashboard customers list" %} - {{ block.super }}
@@ -25,7 +26,8 @@
</li>
<li class="back-mobile">
<a href="{% url "dashboard:customers" %}">
- <i class="material-icons">arrow_back</i></a>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
+ </a>
</li>
<li><span class="breadcrumbs--elipsed-item">{{ customer }}</span></li>
</ul>
@@ -103,7 +105,7 @@
{% else %}
<span>{% trans "No default shipping address." context "Customer without default shipping address message" %}</span>
{% endif %}
- <i class="material-icons">email</i>
+ <svg data-src="{% static "images/email.svg" %}" width="14" height="14" />
<a href="mailto:{{ customer.email }}">
{{ customer.email }}
</a>
diff --git a/templates/dashboard/discount/sale_confirm_delete.html b/templates/dashboard/discount/sale_confirm_delete.html
index 9c50322062..a347dfcba7 100644
--- a/templates/dashboard/discount/sale_confirm_delete.html
+++ b/templates/dashboard/discount/sale_confirm_delete.html
@@ -36,11 +36,9 @@
<div class="row">
<div class="col m6 l4 offset-m3 offset-l4 right-align">
<a href="{% url 'dashboard:sale-list' %}" class="btn-flat">
- <i class="material-icons">clear</i>
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
<button type="submit" class="btn materialize-red">
- <i class="material-icons">delete_forever</i>
{% trans "Delete" context "Dashboard delete action" %}
</button>
</div>
diff --git a/templates/dashboard/discount/sale_form.html b/templates/dashboard/discount/sale_form.html
index cbc29ba917..2853ba5644 100644
--- a/templates/dashboard/discount/sale_form.html
+++ b/templates/dashboard/discount/sale_form.html
@@ -25,7 +25,7 @@
{% if sale.pk %}
<a class="dropdown-button right" href="#" data-activates="sale-delete"
data-constrainwidth="false">
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
<ul id="sale-delete" class="dropdown-content">
<li>
@@ -47,7 +47,7 @@
</li>
<li class="back-mobile">
<a href="{% url 'dashboard:sale-list' %}">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
diff --git a/templates/dashboard/discount/voucher_form.html b/templates/dashboard/discount/voucher_form.html
index eda8999eaf..3c6801d35a 100644
--- a/templates/dashboard/discount/voucher_form.html
+++ b/templates/dashboard/discount/voucher_form.html
@@ -25,7 +25,7 @@
{% if voucher.pk %}
<a class="dropdown-button right" href="#" data-activates="voucher-delete"
data-constrainwidth="false">
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
<ul id="voucher-delete" class="dropdown-content">
<li>
@@ -46,7 +46,7 @@
</li>
<li class="back-mobile">
<a href="{% url 'dashboard:voucher-list' %}">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
diff --git a/templates/dashboard/includes/_address.html b/templates/dashboard/includes/_address.html
index db7dc7e449..1311debcd5 100644
--- a/templates/dashboard/includes/_address.html
+++ b/templates/dashboard/includes/_address.html
@@ -1,9 +1,11 @@
{% load format_address from i18n_address_tags %}
+{% load static %}
+
<div class="address">
<div class="formatted-address">{% format_address address latin=True %}</div>
{% if address.phone %}
<div>
- <i class="material-icons">contact_phone</i>
+ <svg data-src="{% static "images/phone.svg" %}" width="14" height="14" />
<a href="tel:{{ address.phone }}">
{{ address.phone }}
</a>
diff --git a/templates/dashboard/includes/_back-link.html b/templates/dashboard/includes/_back-link.html
index 19343615dc..2a801a3779 100644
--- a/templates/dashboard/includes/_back-link.html
+++ b/templates/dashboard/includes/_back-link.html
@@ -1,3 +1,3 @@
<a href="{{ url }}{% if hash %}{{ hash }}{% endif %}" class="header-button">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
diff --git a/templates/dashboard/includes/_pagination.html b/templates/dashboard/includes/_pagination.html
index 973ea4ec66..18ffb4a2d3 100644
--- a/templates/dashboard/includes/_pagination.html
+++ b/templates/dashboard/includes/_pagination.html
@@ -1,16 +1,18 @@
{% load i18n %}
{% load utils %}
+{% load static %}
+
{% if page_obj.paginator.num_pages > 1 %}
<ul class="pagination">
<li
{% if not page_obj.has_previous %} class="disabled"{% endif %}>
{% if page_obj.has_previous %}
<a href="{% construct_get_query page=page_obj.previous_page_number %}">
- <i class="material-icons">chevron_left</i>
+ <svg data-src="{% static "images/chevron_left.svg" %}" fill="#000" />
</a>
{% else %}
<a href="#!">
- <i class="material-icons">chevron_left</i>
+ <svg data-src="{% static "images/chevron_left.svg" %}" fill="#9E9E9E" />
</a>
{% endif %}
</li>
@@ -24,10 +26,12 @@
<li{% if not page_obj.has_next %} class="disabled"{% endif %}>
{% if page_obj.has_next %}
<a href="{% construct_get_query page=page_obj.next_page_number %}">
- <i class="material-icons">chevron_right</i>
+ <svg data-src="{% static "images/chevron_right.svg" %}" fill="#000" />
</a>
{% else %}
- <a href="#!"><i class="material-icons">chevron_right</i></a>
+ <a href="#!">
+ <svg data-src="{% static "images/chevron_right.svg" %}" fill="#9E9E9E" />
+ </a>
{% endif %}
</li>
</ul>
diff --git a/templates/dashboard/order/address_form.html b/templates/dashboard/order/address_form.html
index 7d34f16efc..27091bb98e 100644
--- a/templates/dashboard/order/address_form.html
+++ b/templates/dashboard/order/address_form.html
@@ -30,7 +30,7 @@
</li>
<li class="back-mobile">
<a href="{% url "dashboard:order-details" order_pk=order.pk %}">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.html
index 5f555c356a..b4959bdffd 100644
--- a/templates/dashboard/order/detail.html
+++ b/templates/dashboard/order/detail.html
@@ -4,6 +4,7 @@
{% load i18n %}
{% load materializecss %}
{% load status %}
+{% load static %}
{% load discount_amount_for from prices %}
{% block title %}
@@ -22,7 +23,7 @@
{% block header_extra %}
{% if order.can_cancel %}
<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
<ul id="context-menu" class="dropdown-content">
<li>
@@ -44,7 +45,7 @@
</li>
<li class="back-mobile">
<a href="{% url "dashboard:orders" %}">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
@@ -64,7 +65,7 @@
<span>
{% trans "Details" context "Order detail tab" %}
</span>
- <i class="material-icons">description</i>
+ <svg data-src="{% static "images/description.svg" %}" />
</a>
</li>
<li role="presentation" class="tab col s4">
@@ -72,7 +73,7 @@
<span>
{% trans "Payments" context "Order detail tab" %}
</span>
- <i class="material-icons">payment</i>
+ <svg data-src="{% static "images/payment.svg" %}" />
</a>
</li>
<li role="presentation" class="tab col s4">
@@ -80,7 +81,7 @@
<span>
{% trans "History" context "Order detail tab" %}
</span>
- <i class="material-icons">history</i>
+ <svg data-src="{% static "images/history.svg" %}" />
</a>
</li>
</ul>
@@ -298,7 +299,7 @@
{% if group.status != 'cancelled' %}
<a class="dropdown-button" href="#" data-activates="line-actions-{{ item.pk }}" data-constrainwidth="false">
{{ item.quantity }}
- <i class="material-icons">arrow_drop_down</i>
+ <svg data-src="{% static "images/arrow_drop_down.svg" %}" width="24" height="24" />
</a>
<ul id="line-actions-{{ item.pk }}" class="dropdown-content">
<li>
@@ -390,7 +391,7 @@
{% blocktrans trimmed with voucher=order.discount_name context "Order totals header" %}
Voucher {{ voucher }}
{% endblocktrans %}
- <i class="material-icons">arrow_drop_down</i>
+ <svg data-src="{% static "images/arrow_drop_down.svg" %}" />
</a>
<ul id="voucher-actions" class="dropdown-content">
<li>
diff --git a/templates/dashboard/product/attributes/confirm_delete.html b/templates/dashboard/product/attributes/confirm_delete.html
index 91ed871909..dbe8ea4462 100644
--- a/templates/dashboard/product/attributes/confirm_delete.html
+++ b/templates/dashboard/product/attributes/confirm_delete.html
@@ -37,11 +37,9 @@
<div class="row">
<div class="col m6 l4 offset-m3 offset-l4 right-align">
<a href="{% url 'dashboard:product-attributes' %}" class="btn-flat">
- <i class="material-icons">clear</i>
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
<button type="submit" class="btn materialize-red">
- <i class="material-icons">delete_forever</i>
{% trans "Delete" context "Dashboard delete action" %}
</button>
</div>
diff --git a/templates/dashboard/product/attributes/form.html b/templates/dashboard/product/attributes/form.html
index 9f7e6d06a5..639bb5640f 100644
--- a/templates/dashboard/product/attributes/form.html
+++ b/templates/dashboard/product/attributes/form.html
@@ -24,7 +24,7 @@
{% block header_extra %}
{% if attribute.pk %}
<a class="dropdown-button right" href="#" data-activates="attribute-delete" data-constrainwidth="false">
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
<ul id="attribute-delete" class="dropdown-content">
<li>
@@ -46,7 +46,7 @@
</li>
<li class="back-mobile">
<a href="{% url 'dashboard:product-attributes' %}">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
diff --git a/templates/dashboard/product/attributes/list.html b/templates/dashboard/product/attributes/list.html
index b82a1cdc4d..f576fc4025 100644
--- a/templates/dashboard/product/attributes/list.html
+++ b/templates/dashboard/product/attributes/list.html
@@ -1,6 +1,7 @@
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load materializecss %}
+{% load static %}
{% block title %}
{% trans "Attributes" context "Dashboard attributes list" %} - {{ block.super }}
@@ -13,7 +14,7 @@
{% block header_extra %}
<div class="fixed-action-btn">
<a class="btn-fab btn-floating btn-large waves-effect waves-light teal" href="{% url 'dashboard:product-attribute-add' %}" title="{% trans "Add attribute" context "Attribute list add button text" %}">
- <i class="material-icons">add</i>
+ <svg data-src="{% static "images/add.svg" %}" />
</a>
</div>
{% endblock %}
diff --git a/templates/dashboard/product/class_list.html b/templates/dashboard/product/class_list.html
index 184184b7cf..1575b6a55e 100644
--- a/templates/dashboard/product/class_list.html
+++ b/templates/dashboard/product/class_list.html
@@ -15,7 +15,7 @@
{% block header_extra %}
<div class="fixed-action-btn">
<a class="btn-fab btn-floating btn-large waves-effect waves-light teal" title="{% trans "Add product type" context "Product type list add button text" %}" href="{% url 'dashboard:product-class-add' %}">
- <i class="material-icons">add</i>
+ <svg data-src="{% static "images/add.svg" %}" />
</a>
</div>
{% endblock %}
diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.html
index 48530ac696..8fc012033d 100644
--- a/templates/dashboard/product/list.html
+++ b/templates/dashboard/product/list.html
@@ -17,7 +17,7 @@
<div class="fixed-action-btn">
{% if product_classes %}
<a class="btn-fab btn-floating btn-large waves-effect waves-light teal modal-trigger" href="#modal-product-class" title="{% trans "Add product" context "Product list add button text" %}">
- <i class="material-icons">add</i>
+ <svg data-src="{% static "images/add.svg" %}" />
</a>
{% endif %}
</div>
diff --git a/templates/dashboard/product/product_class_form.html b/templates/dashboard/product/product_class_form.html
index b6a3cce968..753704684b 100644
--- a/templates/dashboard/product/product_class_form.html
+++ b/templates/dashboard/product/product_class_form.html
@@ -32,7 +32,7 @@
</li>
<li class="back-mobile">
<a href="{% url "dashboard:product-class-list" %}">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
@@ -50,7 +50,7 @@
{% block header_extra %}
{% if product_class.pk %}
<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
<ul id="context-menu" class="dropdown-content">
<li>
@@ -114,7 +114,7 @@
</div>
<div class="col m12 l3 help-box">
<p class="grey-text">
- <i class="material-icons">help</i>
+ <svg data-src="{% static "images/help.svg" %}" width="18" height="18" />
{% blocktrans trimmed context "Product class help text" %}
Product Type is a template used for creating new products.
It also controls which attributes can be used during product creation process.
diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.html
index 380cd6a610..3f2dbeec96 100644
--- a/templates/dashboard/product/product_form.html
+++ b/templates/dashboard/product/product_form.html
@@ -32,7 +32,7 @@
</li>
<li class="back-mobile">
<a href="{% url "dashboard:product-list" %}">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
@@ -50,7 +50,7 @@
{% block header_extra %}
{% if product.pk %}
<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
<ul id="context-menu" class="dropdown-content">
<li>
@@ -80,7 +80,7 @@
<span>
{% trans "Details" context "Product form tab" %}
</span>
- <i class="material-icons">edit</i>
+ <svg data-src="{% static "images/edit.svg" %}" width="24" height="24" />
</a>
</li>
{% if product.product_class.has_variants %}
@@ -89,7 +89,7 @@
<span>
{% trans "Variants" context "Dashboard variants" %}
</span>
- <i class="material-icons">style</i>
+ <svg data-src="{% static "images/style.svg" %}" width="24" height="24" />
</a>
</li>
{% endif %}
@@ -98,7 +98,7 @@
<span>
{% trans "Stock" context "Dashboard stock" %}
</span>
- <i class="material-icons">store</i>
+ <svg data-src="{% static "images/store.svg" %}" width="24" height="24" />
</a>
</li>
<li class="tab col s3" role="presentation">
@@ -106,7 +106,7 @@
<span>
{% trans "Images" context "Product form tab" %}
</span>
- <i class="material-icons">collections</i>
+ <svg data-src="{% static "images/collections.svg" %}" width="24" height="24" />
</a>
</li>
</ul>
@@ -465,7 +465,7 @@
</div>
<div class="fixed-action-btn">
<a class="btn-fab btn-fab-hidden btn-floating btn-large waves-effect waves-light teal" id="images-btn" href="{% url 'dashboard:product-image-add' product_pk=product.pk %}" title="{% trans "Add image" context "Add image button text" %}">
- <i class="material-icons">add</i>
+ <svg data-src="{% static "images/add.svg" %}" />
</a>
</div>
{% endif %}
diff --git a/templates/dashboard/product/product_image_confirm_delete.html b/templates/dashboard/product/product_image_confirm_delete.html
index 5e776d5b38..2100d6b7d2 100644
--- a/templates/dashboard/product/product_image_confirm_delete.html
+++ b/templates/dashboard/product/product_image_confirm_delete.html
@@ -55,11 +55,9 @@
<div class="row">
<div class="col m6 l4 offset-m3 offset-l4 right-align">
<a href="{% url 'dashboard:product-update' pk=product.pk %}#images" class="btn-flat">
- <i class="material-icons">clear</i>
{% trans "Cancel" context "Dashboard cancel action" %}
</a>
<button type="submit" class="btn materialize-red">
- <i class="material-icons">delete_forever</i>
{% trans "Delete" context "Dashboard delete action" %}
</button>
</div>
diff --git a/templates/dashboard/product/product_image_form.html b/templates/dashboard/product/product_image_form.html
index 0424a7bc7b..61f43a405b 100644
--- a/templates/dashboard/product/product_image_form.html
+++ b/templates/dashboard/product/product_image_form.html
@@ -29,7 +29,7 @@
</li>
<li class="back-mobile">
<a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="breadcrumb">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
{% if product_image.pk %}
diff --git a/templates/dashboard/product/stock_form.html b/templates/dashboard/product/stock_form.html
index 4a7cd53b78..f26caa0132 100644
--- a/templates/dashboard/product/stock_form.html
+++ b/templates/dashboard/product/stock_form.html
@@ -32,7 +32,7 @@
</li>
<li class="back-mobile">
<a href="{% url "dashboard:product-update" pk=product.pk %}#stock">
- <i class="material-icons">chevron_left</i>
+ <svg data-src="{% static "images/chevron_left.svg" %}" />
</a>
</li>
<li>
diff --git a/templates/dashboard/product/stock_locations/form.html b/templates/dashboard/product/stock_locations/form.html
index 999ef7bc61..4fbfd4b806 100644
--- a/templates/dashboard/product/stock_locations/form.html
+++ b/templates/dashboard/product/stock_locations/form.html
@@ -18,7 +18,7 @@
{% block header_extra %}
{% if location.pk %}
<a class="dropdown-button right" href="#" data-activates="attribute-delete" data-constrainwidth="false">
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
<ul id="attribute-delete" class="dropdown-content">
<li>
@@ -40,7 +40,7 @@
</li>
<li class="back-mobile">
<a href="{% url 'dashboard:sale-list' %}">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
diff --git a/templates/dashboard/product/stock_locations/list.html b/templates/dashboard/product/stock_locations/list.html
index ea9eb38b1d..e812a97b42 100644
--- a/templates/dashboard/product/stock_locations/list.html
+++ b/templates/dashboard/product/stock_locations/list.html
@@ -12,7 +12,7 @@
{% block header_extra %}
<div class="fixed-action-btn">
<a class="btn-fab btn-floating btn-large waves-effect waves-light teal" href="{% url 'dashboard:product-stock-location-add' %}" title="{% trans "Add stock location" context "Stock location list add button text" %}">
- <i class="material-icons">add</i>
+ <svg data-src="{% static "images/add.svg" %}" />
</a>
</div>
{% endblock %}
diff --git a/templates/dashboard/product/variant_form.html b/templates/dashboard/product/variant_form.html
index ec3b182aef..65a06d5a6d 100644
--- a/templates/dashboard/product/variant_form.html
+++ b/templates/dashboard/product/variant_form.html
@@ -28,7 +28,7 @@
</li>
<li class="back-mobile">
<a href="{% url "dashboard:product-update" pk=product.pk %}#variants">
- <i class="material-icons">chevron_left</i>
+ <svg data-src="{% static "images/chevron_left.svg" %}" />
</a>
</li>
<li>
diff --git a/templates/dashboard/search/results.html b/templates/dashboard/search/results.html
index 0ac0985e95..e74e2fdf14 100644
--- a/templates/dashboard/search/results.html
+++ b/templates/dashboard/search/results.html
@@ -24,7 +24,7 @@
<form class="hide-on-med-and-up" method="get" action="{% url "dashboard:search" %}">
<input id="icon_prefix" type="text" class="validate left" placeholder="{% trans "Search" context "Dashboard search" %}" name="q" value="{% if query %}{{ query }}{% endif %}">
<button class="btn-flat" type="submit">
- <i class="material-icons left right">search</i>
+ <svg data-src="{% static "images/search-icon.svg" %}" width="20" height="20" fill="#E57373" />
</button>
</form>
<form class="hide-on-med-and-up row" method="get" action="{% url "dashboard:search" %}">
diff --git a/templates/dashboard/shipping/method_form.html b/templates/dashboard/shipping/method_form.html
index dc1290c899..382985d265 100644
--- a/templates/dashboard/shipping/method_form.html
+++ b/templates/dashboard/shipping/method_form.html
@@ -2,6 +2,7 @@
{% load materializecss %}
{% load i18n %}
{% load mptt_tags %}
+{% load static %}
{% block title %}
{% trans "Shipping methods" context "Dashboard shipping methods" %}
@@ -34,7 +35,7 @@
</li>
<li class="back-mobile">
<a href="{% url 'dashboard:shipping-methods' %}">
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
@@ -54,7 +55,7 @@
{% block header_extra %}
{% if shipping_method.pk %}
<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
<ul id="context-menu" class="dropdown-content">
<li>
diff --git a/templates/dashboard/styleguide/index.html b/templates/dashboard/styleguide/index.html
index 91f608447a..e0b36cfc31 100644
--- a/templates/dashboard/styleguide/index.html
+++ b/templates/dashboard/styleguide/index.html
@@ -134,13 +134,13 @@
</div>
<div class="card">
<div class="card-content">
- <p class="text-lg"> if you’re using a recent ver­sion of IE, Fire­fox, Safari or Chrome (though not Opera), you can edit the text in sections marked with edit icon <i class="material-icons">edit</i>. Check how our componentst will look like in your language and with your content.</p>
+ <p class="text-lg"> if you’re using a recent ver­sion of IE, Fire­fox, Safari or Chrome (though not Opera), you can edit the text in sections marked with edit icon <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />. Check how our componentst will look like in your language and with your content.</p>
</div>
</div>
</div>
<div id="typography" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">
- Typography <i class="material-icons">edit</i>
+ Typography <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h3>
<div class="card">
<div class="card-content">
@@ -364,7 +364,7 @@
</div>
<div class="section">
<h4>
- Labels <i class="material-icons">edit</i>
+ Labels <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h4>
<code>&lt;span class=&quot;label&quot;&gt;&lt;/span&gt;</code>
<span class="label" contenteditable="true">Example label class</span>
@@ -375,14 +375,14 @@
</div>
<div class="section">
<h4>
- Currency <i class="material-icons">edit</i>
+ Currency <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h4>
<code>&lt;span class=&quot;currency&quot;&gt;&lt;/span&gt;</code>
<span class="currency" contenteditable="true">USD</span>
</div>
<div class="section">
<h4>
- Text large <i class="material-icons">edit</i>
+ Text large <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h4>
<code>&lt;p class=&quot;text-lg&quot;&gt;&lt;/p&gt;</code>
<p contenteditable="true">
@@ -397,7 +397,7 @@
</div>
<div id="buttons" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">
- Buttons <i class="material-icons">edit</i>
+ Buttons <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h3>
<div class="card">
<div class="card-content">
@@ -414,7 +414,7 @@
</div>
<div class="col m4 s12">
<a class="btn btn-floating btn-large waves-effect waves-light">
- <i class="material-icons">add</i>
+ <svg data-src="{% static "images/add.svg" %}" />
</a>
</div>
</div>
@@ -431,7 +431,7 @@
</div>
<div class="col m4 s12">
<a class="btn btn-floating btn-large waves-effect waves-light disabled">
- <i class="material-icons">add</i>
+ <svg data-src="{% static "images/add.svg" %}" />
</a>
</div>
</div>
@@ -454,21 +454,21 @@
<h4>
Used icons
</h4>
- <i class="material-icons">add</i>
- <i class="material-icons">account_circle</i>
- <i class="material-icons">search</i>
- <i class="material-icons">menu</i>
- <i class="material-icons">more_vert</i>
- <i class="material-icons">arrow_back</i>
- <i class="material-icons">chevron_right</i>
- <i class="material-icons">edit</i>
- <i class="material-icons">style</i>
- <i class="material-icons">store</i>
- <i class="material-icons">collections</i>
- <i class="material-icons">description</i>
- <i class="material-icons">payment</i>
- <i class="material-icons">history</i>
- <i class="material-icons">arrow_drop_down</i>
+ <svg data-src="{% static "images/add.svg" %}" />
+ <svg data-src="{% static "images/account_circle.svg" %}" />
+ <svg data-src="{% static "images/search.svg" %}" />
+ <svg data-src="{% static "images/menu.svg" %}" />
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" />
+ <svg data-src="{% static "images/chevron_right.svg" %}" fill="#000" />
+ <svg data-src="{% static "images/edit.svg" %}" fill="#000" width="24px" height="24px" />
+ <svg data-src="{% static "images/style.svg" %}" fill="#000" width="24px" height="24px" />
+ <svg data-src="{% static "images/store.svg" %}" fill="#000" width="24px" height="24px" />
+ <svg data-src="{% static "images/collections.svg" %}" fill="#000" width="24px" height="24px" />
+ <svg data-src="{% static "images/description.svg" %}" fill="#000" width="24px" height="24px" />
+ <svg data-src="{% static "images/description.svg" %}" fill="#000" width="24px" height="24px" />
+ <svg data-src="{% static "images/history.svg" %}" fill="#000" width="24px" height="24px" />
+ <svg data-src="{% static "images/arrow_drop_down.svg" %}" fill="#000" width="24px" height="24px" />
</div>
<div class="section">
<h4>
@@ -636,7 +636,7 @@
<div id="forms" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">
Forms
- <i class="material-icons">edit</i>
+ <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h3>
<div class="card">
<div class="card-content">
@@ -821,7 +821,7 @@
<div id="breadcrumbs" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">
Breadcrumbs
- <i class="material-icons">edit</i>
+ <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h3>
<div class="subheader top-nav">
<div class="container">
@@ -833,7 +833,7 @@
</li>
<li class="back-mobile">
<a>
- <i class="material-icons">arrow_back</i>
+ <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />
</a>
</li>
<li>
@@ -848,7 +848,7 @@
<div id="tabs" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">
Tabs
- <i class="material-icons">edit</i>
+ <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h3>
<ul class="tabs">
<li class="tab col s3" role="presentation">
@@ -856,7 +856,7 @@
<span contenteditable="true">
Details
</span>
- <i class="material-icons">edit</i>
+ <svg data-src="{% static "images/edit.svg" %}" />
</a>
</li>
<li class="tab col s3" role="presentation">
@@ -864,7 +864,7 @@
<span contenteditable="true">
Variants
</span>
- <i class="material-icons">style</i>
+ <svg data-src="{% static "images/style.svg" %}" />
</a>
</li>
<li class="tab col s3" role="presentation">
@@ -872,7 +872,7 @@
<span contenteditable="true">
Stock
</span>
- <i class="material-icons">store</i>
+ <svg data-src="{% static "images/store.svg" %}" />
</a>
</li>
<li class="tab col s3" role="presentation">
@@ -880,7 +880,7 @@
<span contenteditable="true">
Images
</span>
- <i class="material-icons">collections</i>
+ <svg data-src="{% static "images/collections.svg" %}" />
</a>
</li>
</ul>
@@ -936,7 +936,7 @@
<div id="tables" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">
Tables
- <i class="material-icons">edit</i>
+ <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h3>
<div class="section">
<h4>
@@ -1278,7 +1278,7 @@
<div id="lists" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">
Lists
- <i class="material-icons">edit</i>
+ <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h3>
<div class="section">
<h4>
@@ -1427,7 +1427,7 @@
<div id="cards" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">
Cards
- <i class="material-icons">edit</i>
+ <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h3>
<div class="row">
<div class="col m6">
@@ -1486,7 +1486,7 @@
<div class="section">
<h4>Icon</h4>
<a class="dropdown-button" href="#" data-activates="dropdown1">
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
</div>
<ul id="dropdown1" class="dropdown-content">
@@ -1507,7 +1507,7 @@
<div id="modals" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">
Modals
- <i class="material-icons">edit</i>
+ <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h3>
<div class="card">
<div class="card-content">
@@ -1526,7 +1526,7 @@
<div class="section">
<h4>Dropdown</h4>
<a class='dropdown-button' href='#' data-activates='dropdown2'>
- <i class="material-icons">more_vert</i>
+ <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />
</a>
<ul id='dropdown2' class='dropdown-content'>
<li>
@@ -1569,12 +1569,12 @@
<div id="pagination" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">
Pagination
- <i class="material-icons">edit</i>
+ <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />
</h3>
<ul class="pagination">
<li class="disabled">
<a href="#!">
- <i class="material-icons">chevron_left</i>
+ <svg data-src="{% static "images/chevron_left.svg" %}" />
</a>
</li>
<li class="active">
@@ -1604,7 +1604,7 @@
</li>
<li>
<a href="">
- <i class="material-icons">chevron_right</i>
+ <svg data-src="{% static "images/chevron_right.svg" %}" fill="#000" />
</a>
</li>
</ul>
diff --git a/yarn.lock b/yarn.lock
index 039b150014..5db35fd578 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2816,10 +2816,6 @@ [email protected]:
version "0.3.5"
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.5.tgz#4113a15ac5d7bca158a5aae07224587b9fa15b94"
-material-design-icons@^3.0.1:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/material-design-icons/-/material-design-icons-3.0.1.tgz#9a71c48747218ebca51e51a66da682038cdcb7bf"
-
materialize-css@^0.97.7:
version "0.97.8"
resolved "https://registry.yarnpkg.com/materialize-css/-/materialize-css-0.97.8.tgz#e39ce2056785b0c4e9cd4847c2cdf153e19c47cf"