123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954 |
- // /**
- // * Copyright © Magento, Inc. All rights reserved.
- // * See COPYING.txt for license details.
- // */
- // # Drop-down and split buttons mixins
- //
- // Magento UI library provides mixins for 2 types of drop-downs: the <code>.lib-dropdown()</code> mixin for drop-down and the <code>.lib-dropdown-split()</code> mixin for split button.
- //
- // # Drop-down
- //
- // In Magento UI library the dropdown does not depend on the toggle tag. To toggle the drop-down, the corresponding tag must have <code>class="action toggle"</code>.
- //
- // ## Button tag drop-down toggle
- //
- // To implement a drop-down using a button + drop-down, use the following markup:
- //
- // ```html
- // <div class="actions dropdown example-dropdown-1">
- // <button class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>button + dropdown</span>
- // </button>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- .example-dropdown-1 {
- .lib-dropdown();
- }
- // ## Span tag drop-down toggle
- //
- // To implement a drop-down using a span + drop-down, use the following markup:
- //
- // ```html
- // <div class="example-dropdown-2">
- // <span class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>span + dropdown</span>
- // </span>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- .example-dropdown-2 {
- .lib-dropdown();
- }
- // # Drop-down variables
- // <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>@_toggle-selector</th>
- // <td>-</td>
- // <td class="vars_value">~".action.toggle"</td>
- // <td class="vars_value">Selector</td>
- // <td>Toggle selector</td>
- // </tr>
- // <tr>
- // <th>@_options-selector</th>
- // <td>-</td>
- // <td class="vars_value">~"ul.dropdown"</td>
- // <td class="vars_value">Selector</td>
- // <td>Options selector</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-actions-padding</th>
- // <td>@dropdown-actions__padding</td>
- // <td class="vars_value">false</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle element padding</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-min-width</th>
- // <td>@dropdown-list__min-width</td>
- // <td class="vars_value">100%</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down min width value</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-width</th>
- // <td>@dropdown-list__width</td>
- // <td class="vars_value">false</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list width value</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-height</th>
- // <td>@dropdown-list__height</td>
- // <td class="vars_value">false</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list height value</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-margin-top</th>
- // <td>@dropdown-list__margin-top</td>
- // <td class="vars_value">4px</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list margin-top value</td>
- // </tr>
- // <tr>
- // <th colspan="5" class="vars_section">Drop-down list</th>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-position-top</th>
- // <td>@dropdown-list__position-top</td>
- // <td class="vars_value">100%</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list position: top</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-position-right</th>
- // <td>@dropdown-list__position-right</td>
- // <td class="vars_value">false</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list position: right</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-position-bottom</th>
- // <td>@dropdown-list__position-bottom</td>
- // <td class="vars_value">false</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list position: bottom</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-position-left</th>
- // <td>@dropdown-list__position-left</td>
- // <td class="vars_value">false</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list position: left</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-background</th>
- // <td>@dropdown-list__background</td>
- // <td class="vars_value">@color-white</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list background</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-border</th>
- // <td>@dropdown-list__border</td>
- // <td class="vars_value">1px solid #bbb</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list border</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-pointer</th>
- // <td>@dropdown-list__pointer</td>
- // <td class="vars_value">true</td>
- // <td class="vars_value">true | false</td>
- // <td>Drop-down list pointer is visible</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-pointer-border</th>
- // <td>@dropdown-list-pointer__border</td>
- // <td class="vars_value">#bbb</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list pointer border</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-pointer-position</th>
- // <td>@dropdown-list-pointer__position</td>
- // <td class="vars_value">left</td>
- // <td class="vars_value">left | right</td>
- // <td>Drop-down pointer position</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-pointer-position-top</th>
- // <td>@dropdown-list-pointer__position-top</td>
- // <td class="vars_value">-12px</td>
- // <td class="vars_value">value</td>
- // <td>Drop-down pointer top position</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-pointer-position-left-right</th>
- // <td>@dropdown-list-pointer__position-left-right</td>
- // <td class="vars_value">10px</td>
- // <td class="vars_value">value</td>
- // <td>Drop-down pointer left or right position</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-item-border</th>
- // <td>@dropdown-list-item__border</td>
- // <td class="vars_value">0</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list item border</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-item-padding</th>
- // <td>@dropdown-list-item__padding</td>
- // <td class="vars_value">3px @indent__xs</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list item padding</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-item-margin</th>
- // <td>@dropdown-list-item__margin</td>
- // <td class="vars_value">0</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list item margin</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-item-hover</th>
- // <td>@dropdown-list-item__hover</td>
- // <td class="vars_value">#e8e8e8</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list item hovered background</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-shadow</th>
- // <td>@dropdown-list__shadow</td>
- // <td class="vars_value">0 3px 3px rgba(0,0,0,.15)</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list shadow</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-list-z-index</th>
- // <td>@dropdown-list__z-index</td>
- // <td class="vars_value">100</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down list z-index</td>
- // </tr>
- // <tr>
- // <th colspan="5" class="vars_section">Drop-down icon</th>
- // </tr>
- // <tr>
- // <th>@_dropdown-toggle-icon-content</th>
- // <td>@dropdown-toggle-icon__content</td>
- // <td class="vars_value">@icon-pointer-down</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle icon symbol code for default state</td>
- // </tr>
- // <tr>
- // <th nowrap>@_dropdown-toggle-active-icon-content</th>
- // <td>@dropdown-toggle-icon__active__content</td>
- // <td class="vars_value">@icon-pointer-up</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle icon symbol code for active state</td>
- // </tr>
- // <tr>
- // <th>@_icon-font</th>
- // <td>@dropdown-toggle-icon__font</td>
- // <td class="vars_value">@button-icon__font</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle icon font</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-size</th>
- // <td>@dropdown-toggle-icon__font-size</td>
- // <td class="vars_value">@button-icon__font-size</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle icon font size</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-line-height</th>
- // <td>@dropdown-toggle-icon__font-line-height</td>
- // <td class="vars_value">@button-icon__line-height</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle icon line height</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-color</th>
- // <td>@dropdown-toggle-icon__font-color</td>
- // <td class="vars_value">@button-icon__color</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle icon color</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-color-hover</th>
- // <td>@dropdown-toggle-icon__font-color-hover</td>
- // <td class="vars_value">@button-icon__hover__font-color</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle icon hovered color</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-color-active</th>
- // <td>@dropdown-toggle-icon__font-color-active</td>
- // <td class="vars_value">@button-icon__active__font-color</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle icon active color</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-margin</th>
- // <td>@dropdown-toggle-icon__font-margin</td>
- // <td class="vars_value">@button-icon__margin</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle icon margin</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-position</th>
- // <td>@dropdown-toggle-icon__position</td>
- // <td class="vars_value">after</td>
- // <td class="vars_value">before | after</td>
- // <td>Drop-down toggle icon position</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-vertical-align</th>
- // <td>@dropdown-toggle-icon__font-vertical-align</td>
- // <td class="vars_value" nowrap="nowrap">@button-icon__vertical-align</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Drop-down toggle icon vertical align</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-text-hide</th>
- // <td>@dropdown-toggle-icon__text-hide</td>
- // <td class="vars_value">@button-icon__text-hide</td>
- // <td class="vars_value">true | false</td>
- // <td>Text in the tag, that contains icon, is hidden</td>
- // </tr>
- // </table>
- // </pre>
- //
- // # Drop-down with icon customization
- //
- // To customize drop-down icon symbol, specify variables for default state icon code and active state icon code:
- // ```css
- // @_dropdown-toggle-icon-content: @icon-expand,
- // @_dropdown-toggle-active-icon-content: @icon-collapse
- // ```
- // The <code>.lib-dropdown()</code> mixin uses the <code>.icon-font()</code> mixin to display and customize toggle icon. More information about <code>.icon-font()</code> mixin parameters you can find at the **Icons** page
- //
- // ```html
- // <div class="actions dropdown example-dropdown-3">
- // <span class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>span + dropdown</span>
- // </span>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- .example-dropdown-3 {
- .lib-dropdown(
- @_dropdown-toggle-icon-content: @icon-expand,
- @_dropdown-toggle-active-icon-content: @icon-collapse,
- @_icon-font-line-height: 1,
- @_icon-font-position: before,
- @_icon-font-color: #f00,
- @_icon-font-color-hover: #f00
- );
- }
- // # Modify dropdown list styles
- //
- // You can customize dropdown list style
- //
- // ```html
- // <div class="actions dropdown example-dropdown-5">
- // <span class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>span + dropdown</span>
- // </span>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- .example-dropdown-5 {
- .lib-dropdown(
- @_dropdown-list-pointer: false,
- @_dropdown-list-background: #eef1f3,
- @_dropdown-list-item-hover: #d8e3e3,
- @_dropdown-list-border: 2px solid #ced1d4,
- @_dropdown-list-item-padding: 10px,
- @_dropdown-list-item-border: 2px solid #e8eaed,
- @_dropdown-list-shadow: none,
- @_icon-font-line-height: 1
- );
- }
- // # Split button
- //
- // Split button can be formed of two buttons or a link and a button. The first element (link or button) must have <code>class="action split"</code>, the toggle element must have <code>class="action toggle"</code>.
- //
- // ## Split button: button+button
- //
- // ```html
- // <div class="actions split example-dropdown-6">
- // <button class="action split">
- // <span>Spit button</span>
- // </button>
- // <button class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>Select</span>
- // </button>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- //
- // ## Split button: link+button
- //
- // ```html
- // <div class="actions split example-dropdown-7">
- // <a href="#" class="action split">
- // <span>Spit button</span>
- // </a>
- // <button class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>Select</span>
- // </button>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- .example-dropdown-6 {
- .lib-dropdown-split(
- @_dropdown-split-button-border-radius-fix: true
- );
- }
- .split.example-dropdown-7 {
- .lib-dropdown-split();
- }
- // # Split button variables
- //
- // <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>@_toggle-selector</th>
- // <td>-</td>
- // <td class="vars_value">~".action.toggle"</td>
- // <td class="vars_value">selector</td>
- // <td>Split button action toggle selector</td>
- // </tr>
- // <tr>
- // <th>@_options-selector</th>
- // <td>-</td>
- // <td class="vars_value">~"ul.dropdown"</td>
- // <td class="vars_value">selector</td>
- // <td>Split button options selector</td>
- // </tr>
- // <tr>
- // <th>@_button-selector</th>
- // <td>-</td>
- // <td class="vars_value">~".action.split"</td>
- // <td class="vars_value">selector</td>
- // <td>Split button selector</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-actions-padding</th>
- // <td>@dropdown-split-actions__padding</td>
- // <td class="vars_value">0 @indent__xs</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button toggle element padding</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-button-actions-padding</th>
- // <td>@dropdown-split-button__actions__padding</td>
- // <td class="vars_value">false</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button actions padding</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-toggle-actions-padding</th>
- // <td>@dropdown-split-toggle__actions__padding</td>
- // <td class="vars_value">4px @indent__xs</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button toggle padding</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-toggle-position</th>
- // <td>@dropdown-split-toggle__position</td>
- // <td class="vars_value">right</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button toggle element position</td>
- // </tr>
- // <tr>
- // <th colspan="5" class="vars_section">Drop-down list</th>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-min-width</th>
- // <td>@dropdown-split-list__min-width</td>
- // <td class="vars_value">100%</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button min width</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-width</th>
- // <td>@dropdown-split-list__width</td>
- // <td class="vars_value">100%</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button width</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-height</th>
- // <td>@dropdown-split-list__height</td>
- // <td class="vars_value">false</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button height</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-margin-top</th>
- // <td>@dropdown-split-list__margin-top</td>
- // <td class="vars_value">4px</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button margin-top</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-position-top</th>
- // <td>@dropdown-split-list__position-top</td>
- // <td class="vars_value">@dropdown-list__position-top</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list position: top</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-position-right</th>
- // <td>@dropdown-split-list__position-right</td>
- // <td class="vars_value">@dropdown-list__position-right</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list position: right</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-position-bottom</th>
- // <td>@dropdown-split-list__position-bottom</td>
- // <td class="vars_value">@dropdown-list__position-bottom</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list position: bottom</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-position-left</th>
- // <td>@dropdown-split-list__position-left</td>
- // <td class="vars_value">@dropdown-list__position-left</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list position: left</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-background</th>
- // <td>@dropdown-split-list__background</td>
- // <td class="vars_value">@dropdown-list__background</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down background</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-border</th>
- // <td>@dropdown-split-list__border</td>
- // <td class="vars_value">@dropdown-list__border</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down border</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-pointer</th>
- // <td>@dropdown-split-list__pointer</td>
- // <td class="vars_value">@dropdown-list__pointer</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list pointer</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-pointer-border</th>
- // <td>@dropdown-split-list__pointer-border</td>
- // <td class="vars_value">@dropdown-list-pointer__border</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list pointer border</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-button-border-radius-fix</th>
- // <td>@dropdown-split-button__border-radius-fix</td>
- // <td class="vars_value">false</td>
- // <td class="vars_value">true | false</td>
- // <td>Split button drop-down list item border</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-item-border</th>
- // <td>@dropdown-split-list__item-border</td>
- // <td class="vars_value">@dropdown-list-item__border</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list item border</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-item-padding</th>
- // <td>@dropdown-split-list__item-padding</td>
- // <td class="vars_value">@dropdown-list-item__padding</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list item padding</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-item-margin</th>
- // <td>@dropdown-split-list__item-margin</td>
- // <td class="vars_value">@dropdown-list-item__margin</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list item margin</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-item-hover</th>
- // <td>@dropdown-split-list__item-hover</td>
- // <td class="vars_value">@dropdown-list-item__hover</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list item hovered background</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-pointer-position</th>
- // <td>@dropdown-split-list__pointer-position</td>
- // <td class="vars_value">right</td>
- // <td class="vars_value">left | right</td>
- // <td>Split button drop-down list pointer position</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-pointer-position-top</th>
- // <td>@dropdown-split-list__pointer-position-top</td>
- // <td class="vars_value">-12px</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list pointer position top</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-pointer-position-left-right</th>
- // <td>@dropdown-split-list__pointer-position-left-right</td>
- // <td class="vars_value">10px</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list pointer left or right position</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-shadow</th>
- // <td>@dropdown-split-list__shadow</td>
- // <td class="vars_value">@dropdown-list__shadow</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list shadow</td>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-list-z-index</th>
- // <td>@dropdown-split-list__z-index</td>
- // <td class="vars_value">@dropdown-list__z-index</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down list z-index</td>
- // </tr>
- // <tr>
- // <th colspan="5" class="vars_section">Dropdown icon</th>
- // </tr>
- // <tr>
- // <th>@_dropdown-split-toggle-icon-content</th>
- // <td>@dropdown-split-toggle-icon__content</td>
- // <td class="vars_value">@dropdown-toggle-icon__content</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down toggle icon - default state</td>
- // </tr>
- // <tr>
- // <th nowrap="nowrap">@_dropdown-split-toggle-active-icon-content</th>
- // <td>@dropdown-split-toggle-icon__active__content</td>
- // <td class="vars_value" nowrap="nowrap">@dropdown-toggle-icon__active__content</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down toggle icon - active state</td>
- // </tr>
- // <tr>
- // <th>@_icon-font</th>
- // <td>@dropdown-split-toggle-icon__font</td>
- // <td class="vars_value">@button-icon__font</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down toggle icon font</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-size</th>
- // <td>@dropdown-split-toggle-icon__font-size</td>
- // <td class="vars_value">@button-icon__font-size</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down toggle icon font size</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-line-height</th>
- // <td>@dropdown-split-toggle-icon__font-line-height</td>
- // <td class="vars_value">@button-icon__line-height</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down toggle icon line height</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-color</th>
- // <td>@dropdown-split-toggle-icon__font-color</td>
- // <td class="vars_value">@button-icon__color</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down toggle icon color</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-color-hover</th>
- // <td>@dropdown-split-toggle-icon__font-color-hover</td>
- // <td class="vars_value">@button-icon__hover__font-color</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down toggle icon hovered color</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-color-active</th>
- // <td>@dropdown-split-toggle-icon__font-color-active</td>
- // <td class="vars_value">@button-icon__active__font-color</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down toggle icon active color</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-margin</th>
- // <td>@dropdown-split-toggle-icon__font-margin</td>
- // <td class="vars_value">@button-icon__margin</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down toggle icon margin</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-position</th>
- // <td>@dropdown-split-toggle-icon__position</td>
- // <td class="vars_value">after</td>
- // <td class="vars_value">before | after</td>
- // <td>Split button drop-down toggle icon position</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-vertical-align</th>
- // <td>@dropdown-split-toggle-icon__font-vertical-align</td>
- // <td class="vars_value" nowrap="nowrap">@button-icon__vertical-align</td>
- // <td class="vars_value">'' | false | value</td>
- // <td>Split button drop-down toggle icon vertical align</td>
- // </tr>
- // <tr>
- // <th>@_icon-font-text-hide</th>
- // <td>@dropdown-split-toggle-icon__text-hide</td>
- // <td class="vars_value">@button-icon__text-hide</td>
- // <td class="vars_value">true | false</td>
- // <td>The text in the toggle tag is hidden</td>
- // </tr>
- // </table>
- // </pre>
- // #Split button - button styling
- //
- // Split buttons can be customized the same way as all types of buttons from Magento UI library.
- //
- // **Regular button:**
- //
- // ```html
- // <div class="actions split example-dropdown-8">
- // <button class="action split">
- // <span>Spit button</span>
- // </button>
- // <button class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>Select</span>
- // </button>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- //
- // **Big button:**
- //
- // ```html
- // <div class="actions split example-dropdown-9">
- // <button class="action split">
- // <span>Spit button</span>
- // </button>
- // <button class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>Select</span>
- // </button>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- //
- // **Small button:**
- //
- // ```html
- // <div class="actions split example-dropdown-10">
- // <button class="action split">
- // <span>Spit button</span>
- // </button>
- // <button class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>Select</span>
- // </button>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- .example-dropdown-8 {
- .lib-dropdown-split(@_dropdown-split-button-border-radius-fix: true);
- }
- .example-dropdown-9 {
- .action.split,
- .action.toggle {
- .lib-button-l();
- }
- .lib-dropdown-split(@_dropdown-split-button-border-radius-fix: true);
- }
- .example-dropdown-10 {
- .action.split,
- .action.toggle {
- .lib-button-s();
- }
- .lib-dropdown-split(@_dropdown-split-button-border-radius-fix: true);
- }
- // # Split button icon customization
- //
- // Mixin <code>.lib-dropdown-split()</code> uses <code>.icon-font()</code> mixin to customize icon. More information about <code>.icon-font()</code> parameters you can find at **Icons** page
- //
- // ```html
- // <div class="actions split example-dropdown-11">
- // <button class="action split">
- // <span>Spit button</span>
- // </button>
- // <button class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>Select</span>
- // </button>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- .example-dropdown-11 {
- .lib-dropdown-split(
- @_dropdown-split-toggle-position: left,
- @_dropdown-split-button-border-radius-fix: true,
- @_dropdown-split-toggle-icon-content: @icon-expand,
- @_dropdown-split-toggle-active-icon-content: @icon-collapse,
- @_icon-font-position: before,
- @_icon-font-color: #f00,
- @_icon-font-color-hover: #f00
- );
- }
- // # Split button drop-down list customization
- //
- // You can customize drop-down list style
- //
- // ```html
- // <div class="actions split example-dropdown-12">
- // <button class="action split">
- // <span>Spit button</span>
- // </button>
- // <button class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true">
- // <span>Select</span>
- // </button>
- // <ul class="dropdown">
- // <li>
- // <span class="item">One</span>
- // </li>
- // <li>
- // <span class="item">Two</span>
- // </li>
- // <li>
- // <span class="item">Three</span>
- // </li>
- // </ul>
- // </div>
- // ```
- .example-dropdown-12 {
- .lib-dropdown-split(
- @_dropdown-split-list-pointer: false,
- @_dropdown-split-list-background: #eef1f3,
- @_dropdown-split-list-item-hover: #d8e3e3,
- @_dropdown-split-list-border: 2px solid #ced1d4,
- @_dropdown-split-list-item-padding: 10px,
- @_dropdown-split-list-item-border: 2px solid #e8eaed,
- @_dropdown-split-list-shadow: none,
- @_dropdown-split-button-border-radius-fix: true
- );
- }
|