Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Replace xmp with code tag
Krzysztof Białogłowicz4e7ddd3d492f
diff --git a/saleor/static/scss/dashboard/layouts/_style-guide.scss b/saleor/static/scss/dashboard/layouts/_style-guide.scssindex c9303a6695..05f9a7528c 100644--- a/saleor/static/scss/dashboard/layouts/_style-guide.scss+++ b/saleor/static/scss/dashboard/layouts/_style-guide.scss@@ -76,9 +76,11 @@margin: 0;padding-bottom: 5px;}- xmp {+ code {+ display: block;line-height: 1;padding: 10px;+ margin: 10px 0;background: #f2f2f2;border: solid 1px $grey-color;@media only screen and (max-width: $small-screen-up) {diff --git a/templates/dashboard/styleguide/index.html b/templates/dashboard/styleguide/index.htmlindex 422f32e39c..e40171ef93 100644--- a/templates/dashboard/styleguide/index.html+++ b/templates/dashboard/styleguide/index.html@@ -242,16 +242,16 @@<h4>{% trans "Text align" context "helpers subtitle in style guide" %}</h4>- <xmp><p class="left-align">Text left aligned</p></xmp>- <xmp><p class="right-align">Text right aligned</p></xmp>- <xmp><p class="center-align">Text center aligned</p></xmp>+ <code><p class="left-align">Text left aligned</p></code>+ <code><p class="right-align">Text right aligned</p></code>+ <code><p class="center-align">Text center aligned</p></code></div><div class="section"><h4>{% trans "Floats" context "Floats subtitle in style guide" %}</h4>- <xmp><div class="left">Add float:left</div></xmp>- <xmp><div class="right">Add float:right</div></xmp>+ <code><div class="left">Add float:left</div></code>+ <code><div class="right">Add float:right</div></code></div><div class="section"><h4>@@ -321,37 +321,37 @@</tbody></table></div>- <xmp><div class="hide"></div></xmp>+ <code><div class="hide"></div></code></div><div class="section"><h4>{% trans "No margin" context "Helpers subtitle in style guide" %}</h4>- <xmp><div class="no-margin">Remove all margins</div></xmp>+ <code><div class="no-margin">Remove all margins</div></code></div><div class="section"><h4>{% trans "Labels" context "Helpers subtitle in style guide" %}</h4>- <xmp><span class="label"></span></xmp>+ <code><span class="label"></span></code><span class="label">Example label class</span>- <xmp><span class="label label-danger"></span></xmp>+ <code><span class="label label-danger"></span></code><span class="label label-danger">Example label class</span>- <xmp><span class="label label-success"></span></xmp>+ <code><span class="label label-success"></span></code><span class="label label-success">Example label class</span></div><div class="section"><h4>{% trans "Currency" context "Helpers subtitle in style guide" %}</h4>- <xmp><span class="currency"></span></xmp>+ <code><span class="currency"></span></code><span class="currency">USD</span></div><div class="section"><h4>{% trans "Text large" context "Helpers subtitle in style guide" %}</h4>- <xmp><p class="text-lg"></p></xmp>+ <code><p class="text-lg"></p></code><p>{% trans "Regular example text" context "example text in style guide" %}</p>@@ -413,7 +413,7 @@<div class="card-content"><div class="section"><h4>{% trans "Usage" context "Icons subtitle in style guide" %}</h4>- <xmp><i class="material-icons"></i></xmp>+ <code><i class="material-icons"></i></code></div><div class="section"><h4>{% trans "Used icons" context "Icons subtitle in style guide" %}:</h4>