Commit a84cb3a4 authored by Nikolay Gromov's avatar Nikolay Gromov

Добавил описание is-mobile

parent 2f96a64a
......@@ -75,6 +75,26 @@
</div>
</section>
<section class="blocks-library__item" id="is-mobile" data-name=".is-mobile">
<h2 class="blocks-library__item-title">Определение мобильного устройства</h2>
<p class="alert">Зависмость от <a href="https://github.com/kaimallea/isMobile">isMobile</a>. Последний должен быть включен в собрку или подключен к странице иным образом.</p>
<p>Javascript, добавляющий на <code>&lt;html></code> класс <code>is-mobile</code>, если страница открыта с мобильного устройства. Так же, добавляются модификаторы блока с указанием типа устройства и производителя.</p>
<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 class="code">
<code>&lt;html class="is-mobile is-mobile--android-phone is-mobile--android-device is-mobile--phone"></code>
<code> ...</code>
<code>&lt;/html></code>
</pre>
</div>
</div>
</section>
<section class="blocks-library__item" id="text">
<h2 class="blocks-library__item-title" id="text-text">Текст, теги</h2>
......
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