|
14 | 14 | <label><input type="checkbox" name="button-state-disabled" value="disabled">disabled</label>
|
15 | 15 | </div>
|
16 | 16 | <div id="devtest-button-samples">
|
17 |
| - <div> |
18 |
| - <button class="ui primary button">Primary</button> |
19 |
| - <button class="ui secondary button">Secondary</button> |
20 |
| - <button class="ui basic secondary button">Basic Secondary</button> |
21 |
| - <button class="ui red button">Red</button> |
22 |
| - <button class="ui basic red button">Basic Red</button> |
23 |
| - </div> |
24 |
| - <div>This is a <button class="ui button button-ghost">Ghost</button> button</div> |
25 |
| - </div> |
26 |
| - <script type="module"> |
27 |
| - const $buttons = $('#devtest-button-samples').find('button'); |
| 17 | + <style> |
| 18 | + .button-sample-groups { margin: 0; padding: 0; } |
| 19 | + .button-sample-groups .sample-group { list-style: none; margin: 0; padding: 0; } |
| 20 | + .button-sample-groups .sample-group .ui.button { margin-bottom: 5px; } |
| 21 | + </style> |
| 22 | + <ul class="button-sample-groups"> |
| 23 | + <li class="sample-group"> |
| 24 | + <h2>General purpose:</h2> |
| 25 | + <button class="ui button">Unclassed</button> |
| 26 | + <button class="ui basic button">Basic Unclassed</button> |
| 27 | + <button class="ui primary button">Primary</button> |
| 28 | + <button class="ui basic primary button">Basic Primary</button> |
| 29 | + <button class="ui negative button">Negative</button> |
| 30 | + <button class="ui basic negative button">Basic Negative</button> |
| 31 | + <button class="ui positive button">Positive</button> |
| 32 | + <button class="ui basic positive button">Basic Positive</button> |
| 33 | + </li> |
| 34 | + <li class="sample-group"> |
| 35 | + <h2>Recommended colors:</h2> |
| 36 | + <button class="ui red button">Red</button> |
| 37 | + <button class="ui basic red button">Basic Red</button> |
| 38 | + <button class="ui green button">Green</button> |
| 39 | + <button class="ui basic green button">Basic Green</button> |
| 40 | + <button class="ui blue button">Blue</button> |
| 41 | + <button class="ui basic blue button">Basic Blue</button> |
| 42 | + <button class="ui orange button">Orange</button> |
| 43 | + <button class="ui basic orange button">Basic Orange</button> |
| 44 | + <button class="ui yellow button">Yellow</button> |
| 45 | + <button class="ui basic yellow button">Basic Yellow</button> |
| 46 | + </li> |
| 47 | + <li class="sample-group"> |
| 48 | + <h2>Supported but not recommended:</h2> |
| 49 | + <p>Do not use if there is no strong requirement. Do not use grey/black buttons, they don't work well with dark theme.</p> |
| 50 | + <button class="ui secondary button">Secondary</button> |
| 51 | + <button class="ui basic secondary button">Basic Secondary</button> |
| 52 | + <button class="ui olive button">Olive</button> |
| 53 | + <button class="ui basic olive button">Basic Olive</button> |
| 54 | + <button class="ui teal button">Teal</button> |
| 55 | + <button class="ui basic teal button">Basic Teal</button> |
| 56 | + <button class="ui violet button">Violet</button> |
| 57 | + <button class="ui basic violet button">Basic Violet</button> |
| 58 | + <button class="ui purple button">Purple</button> |
| 59 | + <button class="ui basic purple button">Basic Purple</button> |
| 60 | + <button class="ui pink button">Pink</button> |
| 61 | + <button class="ui basic pink button">Basic Pink</button> |
| 62 | + <button class="ui brown button">Brown</button> |
| 63 | + <button class="ui basic brown button">Basic Brown</button> |
| 64 | + </li> |
| 65 | + <li class="sample-group"> |
| 66 | + <h2>Inline / Plain:</h2> |
| 67 | + <div class="gt-my-2"> |
| 68 | + <button class="btn gt-p-3">Plain button</button> |
| 69 | + <button class="btn interact-fg gt-p-3">Plain button with interact fg</button> |
| 70 | + <button class="btn interact-bg gt-p-3">Plain button with interact bg</button> |
| 71 | + </div> |
| 72 | + </li> |
| 73 | + </ul> |
| 74 | + <script type="module"> |
| 75 | + const $buttons = $('#devtest-button-samples').find('button.ui'); |
28 | 76 |
|
29 |
| - const $buttonStyles = $('input[name*="button-style"]'); |
30 |
| - $buttonStyles.on('click', () => $buttonStyles.map((_ ,el) => $buttons.toggleClass(el.value, el.checked))); |
| 77 | + const $buttonStyles = $('input[name*="button-style"]'); |
| 78 | + $buttonStyles.on('click', () => $buttonStyles.map((_ ,el) => $buttons.toggleClass(el.value, el.checked))); |
31 | 79 |
|
32 |
| - const $buttonStates = $('input[name*="button-state"]'); |
33 |
| - $buttonStates.on('click', () => $buttonStates.map((_ ,el) => $buttons.prop(el.value, el.checked))); |
34 |
| - </script> |
| 80 | + const $buttonStates = $('input[name*="button-state"]'); |
| 81 | + $buttonStates.on('click', () => $buttonStates.map((_ ,el) => $buttons.prop(el.value, el.checked))); |
| 82 | + </script> |
| 83 | + </div> |
35 | 84 | </div>
|
36 | 85 |
|
37 | 86 | <div>
|
|
75 | 124 | </div>
|
76 | 125 |
|
77 | 126 | <style>
|
78 |
| - h1 { |
| 127 | + h1, h2 { |
79 | 128 | margin: 0;
|
80 | 129 | padding: 10px 0;
|
81 | 130 | }
|
|
0 commit comments