"Fossies" - the Fresh Open Source Software Archive

Member "discourse-2.8.3/plugins/styleguide/assets/javascripts/discourse/templates/styleguide/atoms/02-buttons.hbs" (14 Apr 2022, 3015 Bytes) of package /linux/www/discourse-2.8.3.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "02-buttons.hbs": 2.7.13_vs_2.8.0.

    1 {{#styleguide-example title=".btn-icon - sizes (large, default, small)"}}
    2   {{#each dummy.buttonSizes as |bs|}}
    3     {{d-button icon="times" translatedTitle=bs.text class=bs.class disabled=bs.disabled}}
    4   {{/each}}
    5 {{/styleguide-example}}
    6 
    7 {{#styleguide-example title=".btn-icon - states"}}
    8   {{#each dummy.buttonStates as |bs|}}
    9     {{d-button icon="times" translatedTitle=bs.text class=bs.class disabled=bs.disabled}}
   10   {{/each}}
   11 {{/styleguide-example}}
   12 
   13 {{#styleguide-example title=".btn-text - sizes (large, default, small)"}}
   14   {{#each dummy.buttonSizes as |bs|}}
   15     {{d-button translatedLabel=bs.text class=bs.class disabled=bs.disabled}}
   16   {{/each}}
   17 {{/styleguide-example}}
   18 
   19 {{#styleguide-example title=".btn-text - states"}}
   20   {{#each dummy.buttonStates as |bs|}}
   21     {{d-button translatedLabel=bs.text class=bs.class disabled=bs.disabled}}
   22   {{/each}}
   23 {{/styleguide-example}}
   24 
   25 {{#styleguide-example title=".btn-default .btn-icon-text - sizes (large, default, small)"}}
   26   {{#each dummy.buttonSizes as |bs|}}
   27     {{d-button icon="plus" translatedLabel=bs.text class=bs.class disabled=bs.disabled}}
   28   {{/each}}
   29 {{/styleguide-example}}
   30 
   31 {{#styleguide-example title=".btn-default .btn-icon-text - states"}}
   32   {{#each dummy.buttonStates as |bs|}}
   33     {{d-button icon="plus" translatedLabel=bs.text class=bs.class disabled=bs.disabled}}
   34   {{/each}}
   35 {{/styleguide-example}}
   36 
   37 {{#styleguide-example title=".btn-primary .btn-icon-text - sizes (large, default, small)"}}
   38   {{#each dummy.buttonSizes as |bs|}}
   39     {{d-button
   40       class=(concat "btn-primary " bs.class)
   41       icon="plus"
   42       translatedLabel=bs.text
   43       disabled=bs.disabled
   44     }}
   45   {{/each}}
   46 {{/styleguide-example}}
   47 
   48 {{#styleguide-example title=".btn-primary .btn-icon-text - states"}}
   49   {{#each dummy.buttonStates as |bs|}}
   50     {{d-button
   51       class=(concat "btn-primary " bs.class)
   52       icon="plus"
   53       translatedLabel=bs.text
   54       disabled=bs.disabled
   55     }}
   56   {{/each}}
   57 {{/styleguide-example}}
   58 
   59 {{#styleguide-example title=".btn-danger .btn-icon-text - sizes (large, default, small)"}}
   60   {{#each dummy.buttonSizes as |bs|}}
   61     {{d-button
   62       class=(concat "btn-danger " bs.class)
   63       icon="trash-alt"
   64       translatedLabel=bs.text
   65       disabled=bs.disabled
   66     }}
   67   {{/each}}
   68 {{/styleguide-example}}
   69 
   70 {{#styleguide-example title=".btn-danger .btn-icon-text - states"}}
   71   {{#each dummy.buttonStates as |bs|}}
   72     {{d-button
   73       class=(concat "btn-danger " bs.class)
   74       icon="trash-alt"
   75       translatedLabel=bs.text
   76       disabled=bs.disabled
   77     }}
   78   {{/each}}
   79 {{/styleguide-example}}
   80 
   81 {{#styleguide-example title=".btn-flat - sizes (large, default, small)"}}
   82   {{#each dummy.buttonSizes as |bs|}}
   83     {{flat-button icon="trash-alt" disabled=bs.disabled translatedTitle=bs.title}}
   84   {{/each}}
   85 {{/styleguide-example}}
   86 
   87 {{#styleguide-example title=".btn-flat - states"}}
   88   {{#each dummy.buttonStates as |bs|}}
   89     {{flat-button icon="trash-alt" disabled=bs.disabled translatedTitle=bs.title}}
   90   {{/each}}
   91 {{/styleguide-example}}