Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add grid to style guide
weronka4f64b01f5daf
diff --git a/saleor/static/scss/storefront/layouts/_styleguide.scss b/saleor/static/scss/storefront/layouts/_styleguide.scssindex 4b944209db..c28b812567 100644--- a/saleor/static/scss/storefront/layouts/_styleguide.scss+++ b/saleor/static/scss/storefront/layouts/_styleguide.scss@@ -64,6 +64,13 @@background-color: $beige;}}+ &__grid {+ text-align: center;+ p {+ background-color: $light-gray;+ padding: $global-padding 0;+ }+ }}}}\ No newline at end of filediff --git a/templates/styleguide.html b/templates/styleguide.htmlindex 37e382769b..55f4c6c28b 100644--- a/templates/styleguide.html+++ b/templates/styleguide.html@@ -133,6 +133,45 @@</div></div></div>+ <div id="tgrid" class="styleguide__content__block">+ <h3 class="styleguide__content__block__title">{% trans "Grid" context "Grid title in style guide" %}</h3>+ <p>We use <a href="https://v4-alpha.getbootstrap.com/getting-started/introduction/">Bootstrap 4</a> responsive grid which is based on a 12 column layout. In most cases we use following combinations:</p>+ <div class="row styleguide__content__block__grid">+ <div class="col-md-3 col-6">+ <p>col-md-3 col-6</p>+ </div>+ <div class="col-md-3 col-6">+ <p>col-md-3 col-6</p>+ </div>+ <div class="col-md-3 col-6">+ <p>col-md-3 col-6</p>+ </div>+ <div class="col-md-3 col-6">+ <p>col-md-3 col-6</p>+ </div>+ </div>+ <div class="row styleguide__content__block__grid">+ <div class="col-md-6">+ <p>col-md-6</p>+ </div>+ <div class="col-md-6">+ <p>col-md-6</p>+ </div>+ </div>+ <div class="row styleguide__content__block__grid">+ <div class="col-lg-10 offset-lg-1">+ <p>col-lg-10 offset-lg-1</p>+ </div>+ </div>+ <div class="row styleguide__content__block__grid">+ <div class="col-md-7">+ <p>col-md-7</p>+ </div>+ <div class="col-md-5 styleguide__content__block__grid">+ <p>col-md-5</p>+ </div>+ </div>+ </div></div></div>{% endblock %}