Commit ffaea70d authored by Nikolay Gromov's avatar Nikolay Gromov

Упорядочил описание Переключателей

parent 69b7764e
...@@ -34,7 +34,8 @@ ...@@ -34,7 +34,8 @@
width: 34px; width: 34px;
height: 20px; height: 20px;
position: absolute; position: absolute;
top: 0; top: 0.7em;
transform: translateY(-50%);
left: 0; left: 0;
background-color: @gray-lighter; background-color: @gray-lighter;
border: 1px solid @border-color; border: 1px solid @border-color;
...@@ -44,7 +45,8 @@ ...@@ -44,7 +45,8 @@
& + .field-toggler__name-text:after { & + .field-toggler__name-text:after {
content: ''; content: '';
position: absolute; position: absolute;
top: 2px; top: 0.7em;
transform: translateY(-50%);
left: 2px; left: 2px;
width: 16px; width: 16px;
height: 16px; height: 16px;
......
...@@ -2246,7 +2246,12 @@ ...@@ -2246,7 +2246,12 @@
<section class="blocks-library__item" id="field-toggler" data-name=".field-toggler"> <section class="blocks-library__item" id="field-toggler" data-name=".field-toggler">
<p>Элемент переключателя стилизован с ипользованием <code>px</code><code>em</code> нельзя настроить точные пиксельные размеры для всех <code>font-size</code> родителя). Сам блок подстраивается под размер шрифта родителя, переключатель — нет.</p>
<h1 class="blocks-library__item-title">Переключатель</h1>
<p>Элемент переключателя стилизован с ипользованием <code>px</code><code>em</code> нельзя настроить точные пиксельные размеры и отступы для всех <code>font-size</code> родителя). Сам блок подстраивается под размер шрифта родителя, переключатель — нет.</p>
<div class="js-font-resizer">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<div class="field-toggler"> <div class="field-toggler">
...@@ -2307,6 +2312,25 @@ ...@@ -2307,6 +2312,25 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="blocks-library__code-wrapper">
<span class="blocks-library__code-show-trigger" title="Показать код"><i class="blocks-library__code-icon"></i></span>
<div class="blocks-library__code">
<pre>
<code class="html">&lt;div class=&quot;field-toggler&quot;&gt;</code>
<code class="html"> &lt;div class=&quot;field-toggler__title&quot;&gt;&#x41f;&#x435;&#x440;&#x435;&#x43a;&#x43b;&#x44e;&#x447;&#x430;&#x442;&#x435;&#x43b;&#x44c;-&#x444;&#x43b;&#x430;&#x436;&#x43e;&#x43a;&lt;/div&gt;</code>
<code class="html"> &lt;div class=&quot;field-toggler__input-wrap&quot;&gt;</code>
<code class="html"> &lt;label class=&quot;field-toggler__name&quot;&gt;</code>
<code class="html"> &lt;input class=&quot;field-toggler__input&quot; type=&quot;checkbox&quot;&gt;</code>
<code class="html"> &lt;span class=&quot;field-toggler__name-text&quot;&gt;&#x418;&#x441;&#x43f;&#x43e;&#x43b;&#x44c;&#x437;&#x43e;&#x432;&#x430;&#x442;&#x44c;&lt;/span&gt;</code>
<code class="html"> &lt;/label&gt;</code>
<code class="html"> &lt;div class=&quot;field-toggler__help-text&quot;&gt;&#x413;&#x440;&#x430;&#x444;&#x438;&#x43a;&#x430; &#x43d;&#x435; &#x438;&#x441;&#x43f;&#x43e;&#x43b;&#x44c;&#x437;&#x443;&#x435;&#x442;&#x441;&#x44f;, &#x432;&#x441;&#x451; &#x43d;&#x430;&#x440;&#x438;&#x441;&#x43e;&#x432;&#x430;&#x43d;&#x43e; CSS-&#x43e;&#x43c;.&lt;/div&gt;</code>
<code class="html"> &lt;/div&gt;</code>
<code class="html">&lt;/div&gt;</code>
</pre>
</div>
</div>
</section> </section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment