_components.less 5.03 KB
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
// /**
//  * Copyright © Magento, Inc. All rights reserved.
//  * See COPYING.txt for license details.
//  */

//  # Components
// Components are complete ready-for-use parts both for Storefront or Admin area.
// They are not mixins, but classes. To use them, include this file with @import.
//
//  ``` less
//  @import 'components/_component.less';
//  ```

@import '../../source/components/_modals.less';

// ## Modals
//
// This component contains two kinds of modals: popups and slide panels.
// ### Modal popups
// To have a modal popup use <code>.lib-modal-popup</code> class.
// <textarea class="preview-code" spellcheck="false">
// <div class="modals-wrapper">
//    <aside
//        class="modal-popup _show"
//        data-role="modal"
//        data-type="popup">
//        <div class="modal-inner-wrap">
//             <header class="modal-header">
//                 <h1 class="modal-title" data-role="title">Modal Popup</h1>
//                 <button
//                     class="action-close"
//                     data-role="closeBtn"
//                     type="button">
//                     <span>Close</span>
//                 </button>
//             </header>
//             <div class="modal-content" data-role="content">
//                 Modal Content
//             </div>
//             <footer class="modal-content" data-role="content">
//                 Modal Footer
//             </footer>
//        </div>
//    </aside>
//    <div class="modals-overlay"></div>
// </div>
// </textarea>
//
// ### Modal slide panels
// To have a modal slide panel use <code>.lib-modal-slide</code> class.
// <textarea class="preview-code" spellcheck="false">
// <div class="modals-wrapper">
//    <aside
//        class="modal-slide _show"
//        data-role="modal"
//        data-type="slide">
//        <div class="modal-inner-wrap">
//             <header class="modal-header">
//                 <h1 class="modal-title" data-role="title">Modal Slide</h1>
//                 <button
//                     class="action-close"
//                     data-role="closeBtn"
//                     type="button">
//                     <span>Close</span>
//                 </button>
//             </header>
//             <div class="modal-content" data-role="content">
//                 Modal Content
//             </div>
//             <footer class="modal-content" data-role="content">
//                 Modal Footer
//             </footer>
//        </div>
//    </aside>
//    <div class="modals-overlay"></div>
// </div>
// </textarea>

// #  Components Variables
//
// <pre>
//    <table>
//      <tr>
//        <th class="vars_head">Variable</th>
//        <th class="vars_head">Default value</th>
//        <th class="vars_head">Allowable values</th>
//        <th class="vars_head">Comment</th>
//      </tr>
//      <tr>
//        <th>@modal__background-color</th>
//        <td class="vars_value">@color-white</td>
//        <td class="vars_value">constant</td>
//        <td>Modal background color</td>
//      </tr>
//      <tr>
//        <th>@modal__box-shadow</th>
//        <td class="vars_value">0 0 12px 2px rgba(0, 0, 0, .35)</td>
//        <td class="vars_value">constant</td>
//        <td>Modal shadow</td>
//      </tr>
//      <tr>
//        <th class="vars_section" colspan="4">Popups</th>
//      </tr>
//      <tr>
//        <th>@modal-popup__indent-vertical</th>
//        <td class="vars_value">5rem</td>
//        <td class="vars_value">constant</td>
//        <td>Modal popup top window indent</td>
//      </tr>
//      <tr>
//        <th>@modal-popup__padding</th>
//        <td class="vars_value">5rem</td>
//        <td class="vars_value">constant</td>
//        <td>Modal popup inner indent</td>
//      </tr>
//      <tr>
//        <th>@modal-popup__width</th>
//        <td class="vars_value">75%</td>
//        <td class="vars_value">constant</td>
//        <td>Modal popup width</td>
//      </tr>
//      <tr>
//        <th>@modal-popup__z-index</th>
//        <td class="vars_value">@modal__z-index</td>
//        <td class="vars_value">constant</td>
//        <td>Modal popup z-index</td>
//      </tr>
//      <tr>
//        <th class="vars_section" colspan="4">Slide panels</th>
//      </tr>
//      <tr>
//        <th>@modal-slide__first__indent-left</th>
//        <td class="vars_value">14.8rem</td>
//        <td class="vars_value">constant</td>
//        <td>Modal first slide window indent</td>
//      </tr>
//      <tr>
//        <th>@modal-slide__indent-left</th>
//        <td class="vars_value">4.5rem</td>
//        <td class="vars_value">constant</td>
//        <td>Indent between modal slide panels</td>
//      </tr>
//      <tr>
//        <th>@modal-slide__padding</th>
//        <td class="vars_value">2.6rem</td>
//        <td class="vars_value">constant</td>
//        <td>Modal popup inner indent</td>
//      </tr>
//      <tr>
//        <th>@modal-slide__z-index</th>
//        <td class="vars_value">@modal__z-index</td>
//        <td class="vars_value">constant</td>
//        <td>Modal slide z-index</td>
//      </tr>
//    </table>
// </pre>