/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/web/css/docs/loaders.html
185 строк
222 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 10:58
22 окт 2025, 10:58
3d4f486
Код
Авторство
О чём код?
<!-- /** * Copyright 2014 Adobe * All Rights Reserved. */ --> <!DOCTYPE html><html><head><title>loaders | Magento UI Library </title><meta charset="utf-8"><style>*{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;border:0}body{padding:60px 0 40px;background-color:hsl(207,10%,90%);color:hsl(207,5%,30%)}.co … [Строка слишком длинная. Вы можете скачать файл] <p> A page loader is an animation a visitor sees while the page or an element is loaded. During this time a page is blocked with overlay.</p> <p> Default loader markup</p> <p> <pre> <code> <div id="example1" class="loader" data-text="Please wait..." style="display: none;"> </div> </code> </pre></p> <textarea class="preview-code" spellcheck="false"> <div> <div id="example1" class="loader" data-text="Please wait..." style="display: none;"></div> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </div> <button type="button" onclick="document.getElementById('example1').style='display: block;';document.getElementById('example1').parentNode.setAttribute('aria-busy','true');" style="z-index:99999; position: relative;"><span>Show</span></button> <button type="button" onclick="document.getElementById('example1').style='display: none;';document.getElementById('example1').parentNode.setAttribute('aria-busy','false');" style="z-index:99999; position: relative;"><span>Hide</span></button></textarea> </div><div class="code"><pre><code>.loader { .lib-loader(); }</code></pre></div></article><article id="default-loader-variables" class="section"><div class="docs"><a href="#default-loader-variables" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="default-loader-variables">Default loader variables</h1> <pre> <table> <tr> <th class="vars_head">Mixin variable</th> <th class="vars_head">Global variable</th> <th class="vars_head">Default value</th> <th class="vars_head">Allowed values</th> <th class="vars_head">Comment</th> </tr> <tr> <th>@_loader-overlay-background-color</th> <td>@loader-overlay__background-color</td> <td class="vars_value">rgba(255, 255, 255, .5)</td> <td class="vars_value">'' | false | value</td> <td>Loader overlay background color</td> </tr> <tr> <th>@_loader-overlay-z-index</th> <td>@loader-overlay__z-index</td> <td class="vars_value">9999</td> <td class="vars_value">'' | false | value</td> <td>Loader overlay background z-index</td> </tr> <tr> <th>@_loader-icon-width</th> <td>@loader-icon__width</td> <td class="vars_value">160px</td> <td class="vars_value">'' | false | value</td> <td>Loader icon width</td> </tr> <tr> <th>@_loader-icon-height</th> <td>@loader-icon__height</td> <td class="vars_value">160px</td> <td class="vars_value">'' | false | value</td> <td>Loader icon height</td> </tr> <tr> <th>@_loader-icon-background-color</th> <td>@loader-icon__background-color</td> <td class="vars_value">transparent</td> <td class="vars_value">'' | false | value</td> <td>Loader icon background color</td> </tr> <tr> <th>@_loader-icon-background-image</th> <td>@loader-icon__background-image</td> <td class="vars_value">url('@{baseDir}images/loader-2.gif')</td> <td class="vars_value">'' | false | value</td> <td>Loader icon ackground image</td> </tr> <tr> <th nowrap="nowrap">@_loader-icon-background-position</th> <td>@loader-icon__background-position</td> <td class="vars_value">50% 50%</td> <td class="vars_value">'' | false | value</td> <td>Loader icon background position</td> </tr> <tr> <th nowrap="nowrap">@_loader-icon-border-radius</th> <td>@loader-icon__border-radius</td> <td class="vars_value">5px</td> <td class="vars_value">'' | false | value</td> <td>Loader icon border radius</td> </tr> <tr> <th nowrap="nowrap">@_loader-icon-padding</th> <td>@loader-icon__padding</td> <td class="vars_value">''</td> <td class="vars_value">'' | false | value</td> <td>Loader icon icon padding</td> </tr> <tr> <th nowrap="nowrap">@_loader-text</th> <td>@loader-text</td> <td class="vars_value">false</td> <td class="vars_value">'' | false | value</td> <td>Loader text presence</td> </tr> <tr> <th nowrap="nowrap">@_loader-text-color</th> <td>@loader-text__color</td> <td class="vars_value">@primary__color</td> <td class="vars_value">'' | false | value</td> <td>Loader text color</td> </tr> <tr> <th nowrap="nowrap">@_loader-text-font-size</th> <td>@loader-text__font-size</td> <td class="vars_value">@font-size__base</td> <td class="vars_value">'' | false | value</td> <td>Loader text font size</td> </tr> <tr> <th nowrap="nowrap">@_loader-text-font-family</th> <td>@loader-text__font-family</td> <td class="vars_value">@font-family__base</td> <td class="vars_value">'' | false | value</td> <td>Loader text font family</td> </tr> <tr> <th nowrap="nowrap">@_loader-text-font-weight</th> <td>@loader-text__font-weight</td> <td class="vars_value">@font-weight__regular</td> <td class="vars_value">'' | false | value</td> <td>Loader text font weight</td> </tr> <tr> <th nowrap="nowrap">@_loader-text-font-style</th> <td>@loader-text__font-style</td> <td class="vars_value">@font-style__base</td> <td class="vars_value">'' | false | value</td> <td>Loader text font style</td> </tr> <tr> <th nowrap="nowrap">@_loader-text-padding</th> <td>@loader-text__padding</td> <td class="vars_value">130px 0 0</td> <td class="vars_value">'' | false | value</td> <td>Loader text padding</td> </tr> </table> </pre> </div></article><article id="loading" class="section"><div class="docs"><a href="#loading" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="loading">Loading</h1> <p> Loading is an animation a visitor sees while a certain block is loaded. In this case only this block is locked by an overlay, not the whole page.</p> <textarea class="preview-code" spellcheck="false"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <p id="example2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <button type="button" onclick="document.getElementById('example2').className='loading';document.getElementById('example2').setAttribute('aria-busy','true');" style="z-index:99999; position: relative;"><span>Show</span></button> <button type="button" onclick="document.getElementById('example2').className='';document.getElementById('example2').setAttribute('aria-busy','false');" style="z-index:99999; position: relative;"><span>Hide</span></button></textarea> </div><div class="code"><pre><code>.loading { .lib-loading(); }</code></pre></div></article><article id="loading-default-variables" class="section"><div class="docs"><a href="#loading-default-variables" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="loading-default-variables">Loading default variables</h1> <pre> <table> <tr> <th class="vars_head">Mixin variable</th> <th class="vars_head">Global variable</th> <th class="vars_head">Default value</th> <th class="vars_head">Allowed values</th> <th class="vars_head">Comment</th> </tr> <tr> <th>@_loading-background-color</th> <td>@loading__background-color</td> <td class="vars_value">@loader-overlay__background-color</td> <td class="vars_value">'' | false | value</td> <td>Loading overlay background color</td> </tr> <tr> <th>@_loading-background-image</th> <td>@loading__background-image</td> <td class="vars_value">@loader-icon__background-image</td> <td class="vars_value">'' | false | value</td> <td>Loading overlay background z-index</td> </tr> </table> </pre> </div></article></section><div class="bar bottom"><div hidden class="settings container"><!-- Icons from http://iconmonstr.com--><button title="Desktop (1280)" data-width='1280'><svg viewBox="0 0 412 … [Строка слишком длинная. Вы можете скачать файл]