Skip to content

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

Add content to tabs, icons and breakpoints

weronka6a27e3be3521
diff --git a/saleor/static/images/text-cursor.svg b/saleor/static/images/text-cursor.svg
new file mode 100644
index 0000000000..1507007afd
--- /dev/null
+++ b/saleor/static/images/text-cursor.svg
@@ -0,0 +1 @@
+<svg width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M888 1184l116-116-152-152-116 116v56h96v96h56zm440-720q-16-16-33 1l-350 350q-17 17-1 33t33-1l350-350q17-17 1-33zm80 594v190q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-14 14-32 8-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-126q0-13 9-22l64-64q15-15 35-7t20 29zm-96-738l288 288-672 672h-288v-288zm444 132l-92 92-288-288 92-92q28-28 68-28t68 28l152 152q28 28 28 68t-28 68z"/></svg>
diff --git a/saleor/static/scss/storefront/components/_tabs.scss b/saleor/static/scss/storefront/components/_tabs.scss
index fd869a1ade..25be4ea43a 100644
--- a/saleor/static/scss/storefront/components/_tabs.scss
+++ b/saleor/static/scss/storefront/components/_tabs.scss
@@ -41,3 +41,7 @@
}
}
}
+.tab-pane {
+ margin-top: $global-margin;
+}
+
diff --git a/saleor/static/scss/storefront/components/_variant-picker.scss b/saleor/static/scss/storefront/components/_variant-picker.scss
index 59ee25ee0c..3490a9b436 100644
--- a/saleor/static/scss/storefront/components/_variant-picker.scss
+++ b/saleor/static/scss/storefront/components/_variant-picker.scss
@@ -1,7 +1,11 @@
.variant-picker {
margin-bottom: $global-margin;
+ .btn-group {
+ display: inline-block;
+ }
&__label {
margin-bottom: $global-margin;
+
}
&__options {
display: block;
@@ -10,6 +14,7 @@
margin-bottom: 0;
margin-bottom: $global-margin / 4;
border-color: $gray;
+ float: left;
&.active {
background-color: $light-gray;
border-color: $darken-gray;
diff --git a/saleor/static/scss/storefront/layouts/_styleguide.scss b/saleor/static/scss/storefront/layouts/_styleguide.scss
index df6ced67bb..e5a047ba63 100644
--- a/saleor/static/scss/storefront/layouts/_styleguide.scss
+++ b/saleor/static/scss/storefront/layouts/_styleguide.scss
@@ -3,8 +3,22 @@
a {
display: block;
}
+ margin-bottom: $global-margin * 2;
}
&__content {
+ &__note {
+ border: 1px solid $gray;
+ padding: $global-padding;
+ border-radius: 4px;
+ p {
+ margin-bottom: 0;
+ }
+ }
+ [contenteditable='true'] {
+ &:focus {
+ outline: none;
+ }
+ }
&__block {
padding-bottom: $global-padding * 3;
border-bottom: 1px solid $skull-gray;
@@ -71,6 +85,13 @@
padding: $global-padding 0;
}
}
+ &#icons {
+ img {
+ max-width: 35px;
+ display: inline-block;
+ margin-right: $global-margin;
+ }
+ }
&#buttons {
button {
margin: $global-margin / 2;
diff --git a/saleor/static/scss/storefront/layouts/_userprofile.scss b/saleor/static/scss/storefront/layouts/_userprofile.scss
index 13dbc6849e..8baa8702ef 100644
--- a/saleor/static/scss/storefront/layouts/_userprofile.scss
+++ b/saleor/static/scss/storefront/layouts/_userprofile.scss
@@ -13,7 +13,7 @@
}
}
&__nav {
- margin: $global-margin * 2 0 $global-margin;
+ margin-top: $global-margin * 2;
}
&__orders {
&-empty {
diff --git a/templates/styleguide.html b/templates/styleguide.html
index 485132f0ef..17fb44a6c9 100644
--- a/templates/styleguide.html
+++ b/templates/styleguide.html
@@ -3,7 +3,7 @@
{% load staticfiles %}
{% load bootstrap_form from bootstrap3 %}
-{% block title %}{% trans "Style guide" context "Style guide page title" %} — {{ block.super }}{% endblock %}
+{% block title %}Style guide — {{ block.super }}{% endblock %}
{% block header %}
<div class="container navbar__login">
@@ -15,7 +15,7 @@
alt="{% trans "Testeor - Saleor demo store" context "Checkout logo alternate text" %}"
height="38">
</a>
- <h1>{% trans "Style guide" context "Style guide title" %}</h1>
+ <h1>Style guide</h1>
</div>
</header>
{% endblock %}
@@ -25,37 +25,41 @@
<div class="row">
<div class="col-md-3">
<nav class="styleguide__nav">
- <a href="#typography">{% trans "Typography" context "Typography title in style guide" %}</a>
- <a href="#colors">{% trans "Colors" context "Colors title in style guide" %}</a>
- <a href="#grid">{% trans "Grid" context "Grid title in style guide" %}</a>
- <a href="#s">{% trans "Buttons" context "Buttons title in style guide" %}</a>
- <a href="#forms">{% trans "Forms" context "Forms title in style guide" %}</a>
- <a href="#pagination">{% trans "Pagination" context "Pagination title in style guide" %}</a>
- <a href="#breadcrumbs">{% trans "Breadcrumbs" context "Breadcrumbs title in style guide" %}</a>
- <a href="#notifications">{% trans "Notifications" context "Notifications title in style guide" %}</a>
- <a href="#mainnav">{% trans "Main navigation" context "Main navigation title in style guide" %}</a>
- <a href="#tabs">{% trans "Tabs" context "Tabs title in style guide" %}</a>
- <a href="#tables">{% trans "Tables" context "Tables title in style guide" %}</a>
- <a href="#cards">{% trans "Cards" context "Cards title in style guide" %}</a>
+ <a href="#typography">Typography</a>
+ <a href="#colors">Colors</a>
+ <a href="#grid">Grid</a>
+ <a href="#responsive">Responsive breakpoints</a>
+ <a href="#icons">Icons</a>
+ <a href="#s">Buttons</a>
+ <a href="#forms">Forms</a>
+ <a href="#pagination">Pagination</a>
+ <a href="#breadcrumbs">Breadcrumbs</a>
+ <a href="#notifications">Notifications</a>
+ <a href="#mainnav">Main navigation</a>
+ <a href="#tabs">Tabs</a>
+ <a href="#tables">Tables</a>
+ <a href="#cards">Cards</a>
</nav>
</div>
<div class="col-md-9 styleguide__content">
+ <div class="styleguide__content__note">
+ <h3>Note</h3>
+ <p> 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 <img src="{% static "images/text-cursor.svg" %}">. Check how our componentst will look like in your language and with your content.</p>
+ </div>
+ <hr>
<div id="typography" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Typography" context "Typography title in style guide" %}</h3>
- <p>
- {% blocktrans context "Fontface description in style guide" %}
- We use Lato fontface in Regular(400), <span class="styleguide__content__block__light">Light(300)</span> and <span class="styleguide__content__block__bold">Bold(700)</span> weights.
- {% endblocktrans %}
- </p>
- <h1>{% trans "h1 / Header" context "h1 header example in style guide" %}</h1>
- <h2>{% trans "h2 / Header" context "h2 header example in style guide" %}</h2>
- <h3>{% trans "h3 / Header (always uppercased)" context "h3 header example in style guide" %}</h3>
- <p>{% trans "p / Simple paragraph" context "paragraph example in style guide" %}</p>
- <a href="#">{% trans "a / Simple link" context "simple link example in style guide" %}</a>
- <a href="#" class="link--styled">{% trans "a / Styled link" context "styled link example in style guide" %}</a>
+ <h3 class="styleguide__content__block__title">Typography <img src="{% static "images/text-cursor.svg" %}"></h3>
+ <p>We use Lato fontface in Regular(400), <span class="styleguide__content__block__light">Light(300)</span> and <span class="styleguide__content__block__bold">Bold(700)</span> weights.<br>
+ Lato includes only latin and latin extended characters. For other alphabets will be used default sans serif font.</p>
+ <h1 contenteditable="true">h1 / Header</h1>
+ <h2 contenteditable="true">h2 / Header</h2>
+ <h3 contenteditable="true">h3 / Header (always uppercased)</h3>
+ <p contenteditable="true">p / Saleor is open and free to use. It is not a bait to force you to pay us later and we profasdfmise to do our bests to fix bugs and improve the code. Some situations however call for a custom solution and extra code to be written. Whether you need us to cover an edsfxotic use case or build you a custom e-commerce appliance, our team can help.</p>
+ <a href="#" contenteditable="true">a / Simple link</a>
+ <a href="#" class="link--styled" contenteditable="true">a / Styled link</a>
</div>
<div id="colors" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Colors" context "Colors title in style guide" %}</h3>
+ <h3 class="styleguide__content__block__title">Colors</h3>
<div class="row">
<div class="col-md-3 col-6 styleguide__content__block__color">
<div class="styleguide__content__block__color--body-color">
@@ -124,12 +128,8 @@
</div>
</div>
<div id="grid" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Grid" context "Grid title in style guide" %}</h3>
- <p>
- {% blocktrans context "bootstrap grid description in style guide" %}
- 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:
- {% endblocktrans %}
- </p>
+ <h3 class="styleguide__content__block__title">Grid</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>
@@ -166,47 +166,119 @@
</div>
</div>
</div>
- <div id="buttons" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Buttons" context "Buttons title in style guide" %}</h3>
- <div class="row">
- <div class="container">
- <button class="btn primary">
- {% trans "Primary" context "Primary button example in style guide" %}
- </button>
- <button class="btn secondary">
- {% trans "Secondary" context "Secondary button example in style guide" %}
- </button>
- <button class="btn danger">
- {% trans "Danger" context "Danger button example in style guide" %}
- </button>
- <button class="btn gray">
- {% trans "Gray" context "Gray button example in style guide" %}
- </button>
+ <div id="responsive" class="styleguide__content__block">
+ <h3 class="styleguide__content__block__title">Responsive breakpoints</h3>
+ <div class="table__header">
+ <div class="row">
+ <div class="col-2">
+ </div>
+ <div class="col-2">
+ <small>Extra small<br><576px</small>
+ </div>
+ <div class="col-2">
+ <small>Small<br>≥576px</small>
+ </div>
+ <div class="col-2">
+ <small>Medium<br>≥768px</small>
+ </div>
+ <div class="col-2">
+ <small>Large<br>≥992px</small>
+ </div>
+ <div class="col-2">
+ <small>Extra large<br>≥1200px</small>
+ </div>
</div>
</div>
- <div class="row">
- <div class="container">
- <button class="btn primary narrow">
- {% trans "Primary narrow" context "Primary narrow button example in style guide" %}
- </button>
- <button class="btn secondary narrow">
- {% trans "Secondary narrow" context "Secondary narow button example in style guide" %}
- </button>
- <button class="btn danger narrow">
- {% trans "Danger narrow" context "Danger narow button example in style guide" %}
- </button>
+ <div class="table__row">
+ <div class="row">
+ <div class="col-2">
+ Max container width
+ </div>
+ <div class="col-2">
+ None (auto)
+ </div>
+ <div class="col-2">
+ 540px
+ </div>
+ <div class="col-2">
+ 720px
+ </div>
+ <div class="col-2">
+ 960px
+ </div>
+ <div class="col-2">
+ 1140px
+ </div>
</div>
</div>
+ <div class="table__row">
+ <div class="row">
+ <div class="col-2">
+ Class prefix
+ </div>
+ <div class="col-2">
+ .col-
+ </div>
+ <div class="col-2">
+ .col-sm-
+ </div>
+ <div class="col-2">
+ .col-md-
+ </div>
+ <div class="col-2">
+ .col-lg-
+ </div>
+ <div class="col-2">
+ .col-xl-
+ </div>
+ </div>
+ </div>
+ </div>
+ <div id="icons" class="styleguide__content__block">
+ <h3 class="styleguide__content__block__title">Icons</h3>
+ <img src="{% static "images/cart.svg" %}">
+ <img src="{% static "images/chevron-down-icon.svg" %}">
+ <img src="{% static "images/chevron-up-icon.svg" %}">
+ <img src="{% static "images/arrow-down-icon.svg" %}">
+ <img src="{% static "images/arrow-up-icon.svg" %}">
+ <img src="{% static "images/search-icon.svg" %}">
+ <img src="{% static "images/gallery-arrow.svg" %}">
+ <img src="{% static "images/icon_delete.svg" %}">
+ <img src="{% static "images/loader.svg" %}">
+ </div>
+ <div id="buttons" class="styleguide__content__block">
+ <h3 class="styleguide__content__block__title">Buttons <img src="{% static "images/text-cursor.svg" %}"></h3>
+ <button class="btn primary">
+ <span contenteditable="true">Primary Button (buttons can be really very wide)</span>
+ </button>
+ <button class="btn secondary">
+ <span contenteditable="true">Secondary Button</span>
+ </button>
+ <button class="btn danger">
+ <span contenteditable="true">Danger Button</span>
+ </button>
<button class="btn primary disabled">
- {% trans "Disabled" context "Disabled button example in style guide" %}
+ <span contenteditable="true">Disabled Button</span>
+ </button>
+ <button class="btn gray">
+ <span contenteditable="true">Gray Button</span>
+ </button>
+ <button class="btn primary narrow">
+ <span contenteditable="true">Primary Narrow Button</span>
+ </button>
+ <button class="btn secondary narrow">
+ <span contenteditable="true">Secondary Narrow Button</span>
+ </button>
+ <button class="btn danger narrow">
+ <span contenteditable="true">Danger Narrow Button</span>
</button>
<div class="col-sm-12 home__block1">
<div class="home--square">
<div class="home--content">
<div class="home--content-wrapper">
<div class="home--content-inner">
- <a class="btn btn-secondary home__button" href="#">
- {% trans "Home page button" context "Home page button example in style guide" %}
+ <a class="btn btn-secondary home__button" href="#" onclick="return false;">
+ <span contenteditable="true">Home page button</span>
</a>
</div>
</div>
@@ -215,18 +287,18 @@
</div>
</div>
<div id="forms" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Forms" context "Forms title in style guide" %}</h3>
- <p>{% trans "Text form" context "Text form example in style guide" %}:</p>
+ <h3 class="styleguide__content__block__title">Forms</h3>
+ <p><strong>Text form</strong> <img src="{% static "images/text-cursor.svg" %}"></p>
<div class="row">
- <div class="col-6">
+ <div class="col-12 col-md-6">
<div class="form-group">
- <label class="control-label" for="id_first_name">{% trans "Given name" context "Form label in style guide" %}</label>
- <input autocomplete="given-name" class="form-control" id="id_first_name" maxlength="256" name="first_name" title="" type="text">
+ <label class="control-label" contenteditable="true">Given name</label>
+ <input autocomplete="given-name" class="form-control" maxlength="256" name="first_name" title="" type="text">
</div>
</div>
- <div class="col-6">
+ <div class="col-12 col-md-6">
<div class="form-group">
- <label class="control-label" for="id_last_name">{% trans "Family name" context "Form label in style guide" %}</label>
+ <label class="control-label" contenteditable="true">Family name</label>
<input autocomplete="family-name" class="form-control" id="id_last_name" maxlength="256" name="last_name" title="" type="text">
</div>
</div>
@@ -234,18 +306,18 @@
<hr>
<div class="row">
<div class="col-md-4">
- <p>{% trans "Filters" context "Filters example in style guide" %}:</p>
+ <p><strong>Filters</strong> <img src="{% static "images/text-cursor.svg" %}"></p>
<div class="product-filters">
- <h3>{% trans "Box Size" context "Filter name in style guide" %}
+ <h3 contenteditable="true">Box Size
<div class="collapse-filters-icon">
<img src="/static/images/chevron-up-icon.svg">
</div>
</h3>
<ul id="box-size">
- <li class="item"><label><input type="checkbox" name="box-size" value="100g">100g</label></li>
- <li class="item"><label><input type="checkbox" name="box-size" value="250g">250g</label></li>
- <li class="item"><label><input type="checkbox" name="box-size" value="500g">500g</label></li>
- <li class="item"><label><input type="checkbox" name="box-size" value="1kg">1kg</label></li>
+ <li class="item"><label><input type="checkbox" name="box-size"><span contenteditable="true">100g</span></label></li>
+ <li class="item"><label><input type="checkbox" name="box-size"><span contenteditable="true">250g</span></label></li>
+ <li class="item"><label><input type="checkbox" name="box-size"><span contenteditable="true">500g</span></label></li>
+ <li class="item"><label><input type="checkbox" name="box-size"><span contenteditable="true">feel free to place here as long option as you want</span></label></li>
</ul>
</div>
</div>
@@ -253,7 +325,7 @@
<hr>
<div class="row">
<div class="col-12">
- <p>{% trans "Select" context "Select example in style guide" %}:</p>
+ <p><strong>Select</strong></p>
<div class="deliveryform">
{{ country_form }}
</div>
@@ -262,7 +334,7 @@
<hr>
<div class="row">
<div class="col-12">
- <p>{% trans "Number input" context "Number input example in style guide" %}:</p>
+ <p><strong>Number input</strong></p>
<form role="form" class="form-cart">
<div class="" tabindex="-1">
<input id="id_quantity" max="50" min="1" name="quantity" type="number" value="2" required="">
@@ -271,14 +343,29 @@
</div>
</div>
<hr>
- <p>{% trans "Radio buttons" context "Radio buttons example in style guide" %}:</p>
- {% bootstrap_form shipping_method_form show_label=False %}
+ <p><strong>Radio buttons</strong> <img src="{% static "images/text-cursor.svg" %}"></p>
+ <div class="row">
+ <div class="col-md-4">
+ <div class="radio">
+ <label>
+ <input type="radio" name="styleguide-radio">
+ <span contenteditable="true">First option</span>
+ </label>
+ </div>
+ <div class="radio">
+ <label>
+ <input type="radio" name="styleguide-radio">
+ <span contenteditable="true">Feel free to place here as long text as you want</span>
+ </label>
+ </div>
+ </div>
+ </div>
<hr>
- <p>{% trans "Input groups" context "Input groups example in style guide" %}:</p>
+ <p><strong>Input groups</strong></p>
<div class="row">
<div class="col-md-6">
<form class="form-inline search-form" action="{% url "search:search" %}">
- <input class="form-control" type="text" name="q" value="{% if query %}{{ query }}{% endif %}" placeholder="{% trans "Search for product" %}">
+ <input class="form-control" type="text" name="q" value="{% if query %}{{ query }}{% endif %}" placeholder="Search for product">
<button class="btn btn-link" type="submit">
<img src="{% static "images/search-icon.svg" %}">
</button>
@@ -289,98 +376,111 @@
<div class="form-group">
<input class="form-control" id="id_discount-voucher" name="discount-voucher" title="" type="text" required="">
</div>
- <button class="btn secondary narrow" type="submit">{% trans "Use" context "Checkout voucher form action" %}</button>
+ <button class="btn secondary narrow" type="submit">Use</button>
</form>
</div>
</div>
<hr>
- <p>{% trans "Variant picker" context "Variant picker example in style guide" %}:</p>
- <div class="btn-group" data-toggle="buttons">
- <label class="btn btn-secondary variant-picker__option"><input type="radio" name="4" value="on">100g</label>
- <label class="btn btn-secondary variant-picker__option" aria-pressed="true"><input type="radio" name="5" value="on">250g</label>
- <label class="btn btn-secondary variant-picker__option active" aria-pressed="true"><input type="radio" name="6" value="on" checked="">500g</label>
+ <p><strong>Variant picker</strong> <img src="{% static "images/text-cursor.svg" %}"></p>
+ <div class="variant-picker">
+ <div class="btn-group" data-toggle="buttons">
+ <label class="btn btn-secondary variant-picker__option"><input type="radio" name="4"><span contenteditable="true">100g</span></label>
+ <label class="btn btn-secondary variant-picker__option" aria-pressed="true"><input type="radio" name="5"><span contenteditable="true">250g</span></label>
+ <label class="btn btn-secondary variant-picker__option active" aria-pressed="true"><input type="radio" name="6"><span contenteditable="true">Feel free to place here as long text as you want</span></label>
+ </div>
</div>
<hr>
- <p>{% trans "Errors" context "Errors forms example in style guide" %}:</p>
+ <p><strong>Errors</strong> <img src="{% static "images/text-cursor.svg" %}"></p>
<p>Errors are always displayed as a small red text below the form explaining what cause the error.</p>
<div class="row">
<div class="col-12">
<div class="form-group">
- <label class="control-label" for="id_first_name">{% trans "Email" context "Form label in style guide" %}</label>
+ <label class="control-label" for="id_first_name" contenteditable="true">Email</label>
<input autocomplete="given-name" class="form-control" id="id_first_name" maxlength="256" name="first_name" title="" type="text">
<span class="help-block">
- <div class="help-block">{% trans "This field is required" context "Text form error message example in style guide" %}.</div>
+ <div class="help-block" contenteditable="true">This field is required</div>
</span>
</div>
</div>
</div>
<div class="row">
<div class="col-6">
- <p>{% trans "Quantity" context "Number input label in style guide" %}</p>
+ <p contenteditable="true">Quantity</p>
<form role="form" class="form-cart form-group">
<div class="" tabindex="-1">
<input id="id_quantity" max="50" min="1" name="quantity" type="number" value="52" required="">
</div>
</form>
<span class="help-block">
- <div class="help-block">{% trans "Only 32 remaining in stock." context "Quantity input error message example in style guide" %}.</div>
+ <div class="help-block" contenteditable="true">Only 32 remaining in stock.</div>
</span>
</div>
<div class="col-6">
- {% bootstrap_form shipping_method_form show_label=True %}
+ <div class="radio">
+ <label>
+ <input type="radio" name="styleguide-radio">
+ <span contenteditable="true">First option</span>
+ </label>
+ </div>
+ <div class="radio">
+ <label>
+ <input type="radio" name="styleguide-radio">
+ <span contenteditable="true">Feel free to place here as long text as you want</span>
+ </label>
+ </div>
<span class="help-block">
- <div class="help-block">{% trans "This field is required" context "Text form error message example in style guide" %}.</div>
+ <div class="help-block" contenteditable="true">This field is required.</div>
</span>
</div>
</div>
</div>
<div id="pagination" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Pagination" context "Pagination title in style guide" %}</h3>
+ <h3 class="styleguide__content__block__title">Pagination <img src="{% static "images/text-cursor.svg" %}"></h3>
<ul class="pagination">
<li class="prev disabled"><a>«</a></li>
- <li><a>1</a></li>
- <li class="active"><a>2</a></li>
- <li><a>3</a></li>
+ <li><a contenteditable="true">1</a></li>
+ <li class="active"><a contenteditable="true">2</a></li>
+ <li><a contenteditable="true">3</a></li>
<li class="last disabled"><a>»</a></li>
</ul>
</div>
<div id="breadcrumbs" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Breadcrumbs" context "Breadcrumbs title in style guide" %}</h3>
+ <h3 class="styleguide__content__block__title">Breadcrumbs <img src="{% static "images/text-cursor.svg" %}"></h3>
<ul class="breadcrumbs list-unstyled">
- <li><a href="/">
- {% trans "Home" context "Edit/new address breadcrumb" %}
+ <li><a href="/" contenteditable="true">
+ Home
</a></li>
- <li><a href="{% url "profile:details" %}">
- {% trans "Your profile" context "Edit/new address breadcrumb" %}
+ <li><a href="{% url "profile:details" %}" contenteditable="true">
+ Your profile
</a></li>
- <li><a href=".">
- {% trans "Edit address" context "Edit address breadcrumb" %}
+ <li><a href="#" contenteditable="true">
+ Edit address
</a></li>
</ul>
</div>
<div id="notifications" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Notifications" context "Notifications title in style guide" %}</h3>
+ <h3 class="styleguide__content__block__title">Notifications <img src="{% static "images/text-cursor.svg" %}"></h3>
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
- {% trans "Success alert" context "Success alert example in style guide" %}.
+ <span contenteditable="true">This is Success alert.</span>
</div>
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
- {% trans "Danger alert" context "Danger alert example in style guide" %}.
+ <span contenteditable="true">This is Danger alert.</span>
</div>
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
- {% trans "Warning alert" context "Warning alert example in style guide" %}.
+ <span contenteditable="true">This is Warning alert. Notifications content is not limited with container width. Place here as many information as you want or need to.</span>
</div>
</div>
<div id="mainnav" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Main navigation" context "Main navigation title in style guide" %}</h3>
+ <h3 class="styleguide__content__block__title">Main navigation <img src="{% static "images/text-cursor.svg" %}"></h3>
<nav class="navigation">
<ul class="nav navbar-nav{% if request.get_full_path == home_url %} no-border{% endif %}" >
{% for category in categories %}
{% url 'home' as home_url %}
<li class="nav-item">
- <a class="nav-link" href="{{ category.get_absolute_url }}">
+ <a class="nav-link" href="{{ category.get_absolute_url }}" contenteditable="true">
{{ category }}
</a>
</li>
@@ -389,113 +489,128 @@
</nav>
</div>
<div id="tabs" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Tabs navigation" context "Tabs navigation title in style guide" %}</h3>
+ <h3 class="styleguide__content__block__title">Tabs navigation <img src="{% static "images/text-cursor.svg" %}"></h3>
<ul class="nav nav-tabs col-lg-10 offset-lg-1" role="tablist">
<li class="nav-item">
- <a class="nav-link active" data-toggle="tab" href="#orders" role="tab"><h3>
- {% trans "Recent Orders" context "User profile tab" %}
- </h3></a>
+ <a class="nav-link active" data-toggle="tab" href="#orders" role="tab">
+ <h3 contenteditable="true">Recent Orders</h3>
+ </a>
</li>
<li class="nav-item">
- <a class="nav-link " data-toggle="tab" href="#password" role="tab"><h3>
- {% trans "Change password" context "User profile tab" %}
- </h3></a>
+ <a class="nav-link " data-toggle="tab" href="#password" role="tab">
+ <h3 contenteditable="true">Change password</h3>
+ </a>
</li>
<li class="nav-item">
- <a class="nav-link" data-toggle="tab" href="#addresses" role="tab"><h3>
- {% trans "Addresses book" context "User profile tab" %}
- </h3></a>
+ <a class="nav-link" data-toggle="tab" href="#addresses" role="tab">
+ <h3 contenteditable="true">Addresses book</h3>
+ </a>
</li>
</ul>
+ <div class="tab-content">
+ <div class="tab-pane row" id="orders" role="tabpanel" aria-expanded="true">
+ <div class="col-lg-10 offset-lg-1">
+ <p class="text-center" contenteditable="true">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor, felis et volutpat blandit, ex turpis consectetur eros, sit amet malesuada diam elit ut arcu.</p>
+ </div>
+ </div>
+ <div class="tab-pane" id="password" role="tabpanel" aria-expanded="true">
+ <div class="col-lg-10 offset-lg-1">
+ <p class="text-center" contenteditable="true">Cras dapibus at turpis eget porta. Donec laoreet nulla nunc, ac euismod diam efficitur et. In hac habitasse platea dictumst. Donec eleifend pharetra est, ac molestie lorem lacinia a.</p>
+ </div>
+ </div>
+ <div class="tab-pane" id="addresses" role="tabpanel" aria-expanded="true">
+ <div class="col-lg-10 offset-lg-1">
+ <p class="text-center" contenteditable="true">Nullam sit amet finibus tortor. Curabitur auctor malesuada dui, quis ornare libero posuere quis. Aliquam non faucibus erat, nec hendrerit ex.</p>
+ </div>
+ </div>
+ </div>
</div>
<div id="tables" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Tables" context "Tables title in style guide" %}</h3>
+ <h3 class="styleguide__content__block__title">Tables <img src="{% static "images/text-cursor.svg" %}"></h3>
<div class="table__header">
<div class="row">
- <div class="col-md-2 col-3"><small>
- {% trans "Order" context "Recent orders column title" %}
- </small></div>
- <div class="col-md-4 hidden-sm-down"><small>
- {% trans "Date" context "Recent orders column title" %}
- </small></div>
- <div class="col-md-2 col-6 text-right"><small>
- {% trans "Summary" context "Recent orders column title" %}
- </small></div>
- <div class="col-md-3 hidden-sm-down"><small>
- {% trans "Status" context "Recent orders column title" %}
- </small></div>
+ <div class="col-md-2 col-3">
+ <small contenteditable="true">Order</small>
+ </div>
+ <div class="col-md-4 hidden-sm-down">
+ <small contenteditable="true">Date</small>
+ </div>
+ <div class="col-md-2 col-6 text-right">
+ <small contenteditable="true">Summary</small>
+ </div>
+ <div class="col-md-3 hidden-sm-down">
+ <small contenteditable="true">Status</small>
+ </div>
<div class="col-md-1 col-3"></div>
</div>
</div>
<div class="table__row">
<div class="row">
- <div class="col-md-2 col-3">
+ <div class="col-md-2 col-3" contenteditable="true">
#1
</div>
- <div class="col-md-4 hidden-sm-down">
+ <div class="col-md-4 hidden-sm-down" contenteditable="true">
{% now "F j, Y, H:i a" %}
</div>
<div class="col-md-2 col-6">
- <span class="float-md-right">$129.35</span>
+ <span class="float-md-right" contenteditable="true">$129.35</span>
</div>
<div class="col-md-3 hidden-sm-down">
- <span class="label label-default">Payment pending</span>
+ <span class="label label-default" contenteditable="true">Payment pending</span>
</div>
<div class="col-md-1 col-3">
- <a href="#" class="float-right link--styled">
- {% trans "Details" context "Recent orders link text" %}
+ <a href="#" class="float-right link--styled" contenteditable="true">
+ Details
</a>
</div>
</div>
</div>
<div class="table__row">
<div class="row">
- <div class="col-md-2 col-3">
+ <div class="col-md-2 col-3" contenteditable="true">
#2
</div>
- <div class="col-md-4 hidden-sm-down">
+ <div class="col-md-4 hidden-sm-down" contenteditable="true">
{% now "F j, Y, H:i a" %}
</div>
<div class="col-md-2 col-6">
- <span class="float-md-right">$129.35</span>
+ <span class="float-md-right" contenteditable="true">$129.35</span>
</div>
<div class="col-md-3 hidden-sm-down">
- <span class="label label-success">Fully paid</span>
+ <span class="label label-success" contenteditable="true">Fully paid</span>
</div>
<div class="col-md-1 col-3">
- <a href="#" class="float-right link--styled">
- {% trans "Details" context "Recent orders link text" %}
+ <a href="#" class="float-right link--styled" contenteditable="true">
+ Details
</a>
</div>
</div>
</div>
</div>
<div id="cards" class="styleguide__content__block">
- <h3 class="styleguide__content__block__title">{% trans "Cards" context "Cards title in style guide" %}</h3>
+ <h3 class="styleguide__content__block__title">Cards <img src="{% static "images/text-cursor.svg" %}"></h3>
<div class="row">
<div class="card-deck col-md-6">
<div class="card card-block">
<div class="address-details">
- {% blocktrans context "Adress example in style guide" %}
- <p>Mr. Walter C. Brown<br>
+ <p contenteditable="true">Mr. Walter C. Brown<br>
49 Featherstone Street<br>
London, EC1Y 8SY
<br>
United Kingdom<br>
</p>
- {% endblocktrans %}
</div>
<ul class="icons">
- <li><a href="#">{% trans "Edit" context "User address action" %}</a></li>
+ <li><a href="#" contenteditable="true">Edit</a></li>
<li><a class="delete-icon"><img class="float-right" src="{% static "images/icon_delete.svg" %}"></a></li>
</ul>
<div class="address-delete none">
<form>
- <button type="submit" class="btn danger narrow float-right">
- {% trans "Delete Address" context "Delete address form action" %}
+ <button type="submit" class="btn danger narrow float-right" contenteditable="true">
+ Delete Address
</button>
- <a class="btn btn-link cancel float-md-right">
- {% trans "Cancel" context "Delete address form action" %}
+ <a class="btn btn-link cancel float-md-right" contenteditable="true">
+ Cancel
</a>
</form>
</div>