Skip to content

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

Add icons to style guide

Krzysztof Białogłowiczc30159296e4b
diff --git a/saleor/static/scss/dashboard/layouts/_style-guide.scss b/saleor/static/scss/dashboard/layouts/_style-guide.scss
index df28061345..a969288ef7 100644
--- a/saleor/static/scss/dashboard/layouts/_style-guide.scss
+++ b/saleor/static/scss/dashboard/layouts/_style-guide.scss
@@ -65,6 +65,7 @@
font-size: 1.2rem;
font-weight: 700;
margin: 0;
+ padding-bottom: 5px;
}
xmp {
line-height: 1;
@@ -80,4 +81,10 @@
}
}
}
+ #icons {
+ i {
+ font-size: 2rem;
+ padding-right: 20px;
+ }
+ }
}
diff --git a/templates/dashboard/styleguide/index.html b/templates/dashboard/styleguide/index.html
index 0268f159c5..536f7fbc19 100644
--- a/templates/dashboard/styleguide/index.html
+++ b/templates/dashboard/styleguide/index.html
@@ -309,6 +309,33 @@
</div>
</div>
</div>
+ <div id="icons" class="styleguide__content__block">
+ <h3 class="styleguide__content__block--title">
+ {% trans "Icons" context "ICons title in style guide" %}
+ </h3>
+ <div class="card">
+ <div class="card-content">
+ <div class="section">
+ <h4>Usage:</h4>
+ <xmp><i class="material-icons"></i></xmp>
+ </div>
+ <div class="section">
+ <h4>Examples:</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>
+ </div>
+ <div class="section">
+ <h4>All icons:</h4>
+ <a href="https://material.io/icons/" target="_blank">https://material.io/icons/</a>
+ </div>
+ </div>
+ </div>
+ </div>
<div id="grid" class="styleguide__content__block">
<h3 class="styleguide__content__block--title">{% trans "Grid" context "Grid title in style guide" %}</h3>
<div class="row">
@@ -1158,6 +1185,11 @@
{% trans "Buttons" context "Buttons menu item in style guide" %}
</a>
</li>
+ <li>
+ <a href="#icons">
+ {% trans "Icons" context "Icons menu item in style guide" %}
+ </a>
+ </li>
<li>
<a href="#grid">
{% trans "Grid" context "Grid menu item in style guide" %}