2022-09-09 10:25:14 +00:00
|
|
|
<template>
|
2022-12-22 08:40:59 +00:00
|
|
|
<AppDoc name="ButtonDemo" :sources="sources">
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Import via Module</h5>
|
|
|
|
<pre v-code.script><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
import Button from 'primevue/button';
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Import via CDN</h5>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<script src="https://unpkg.com/primevue@^3/core/core.min.js"></script>
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Getting Started</h5>
|
|
|
|
<p>Button is created using the Button element.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button />
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Label</h5>
|
|
|
|
<p>Text of the button is defined using the <i>label</i> property.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button label="Submit" />
|
|
|
|
|
|
|
|
</code></pre>
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Icons</h5>
|
|
|
|
<p>Icon on a button is specified with <i>icon</i> property and position is configured using <i>iconPos</i> attribute. Default icon position is "left" and alternative is "right". To display only an icon, leave the label as undefined.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button label="Submit" icon="pi pi-check" iconPos="right" />
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Events</h5>
|
|
|
|
<p>Events are defined with the standard notation.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button label="Submit" @click="handleClick($event)"/>
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Severity</h5>
|
|
|
|
<p>Different options are available as severity levels.</p>
|
2022-09-09 10:25:14 +00:00
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<ul>
|
|
|
|
<li>.p-button-secondary</li>
|
|
|
|
<li>.p-button-success</li>
|
|
|
|
<li>.p-button-info</li>
|
|
|
|
<li>.p-button-warning</li>
|
|
|
|
<li>.p-button-help</li>
|
|
|
|
<li>.p-button-danger</li>
|
|
|
|
</ul>
|
2022-09-09 10:25:14 +00:00
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button label="Primary" />
|
|
|
|
<Button label="Secondary" class="p-button-secondary" />
|
|
|
|
<Button label="Success" class="p-button-success" />
|
|
|
|
<Button label="Info" class="p-button-info" />
|
|
|
|
<Button label="Warning" class="p-button-warning" />
|
|
|
|
<Button label="Warning" class="p-button-help" />
|
|
|
|
<Button label="Danger" class="p-button-danger" />
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Text Buttons</h5>
|
|
|
|
<p>Text buttons have transparent background and borders, use <i>p-button-text</i> to apply text button styling. In addition when used with <i>.p-button-plain</i> text buttons ignore severity levels and displayed as a regular text.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button label="Submit" class="p-button-text" />
|
|
|
|
<Button icon="pi pi-check" class="p-button-text" />
|
|
|
|
<Button label="Cancel" icon="pi pi-times" class="p-button-text" />
|
|
|
|
<Button label="Search" icon="pi pi-search" iconPos="right" class="p-button-text p-button-text" />
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Raised and Rounded Buttons</h5>
|
|
|
|
<p>A button can be raised by having "p-button-raised" style class and similarly borders can be made rounded using "p-button-rounded" class.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button label="Primary" class="p-button-raised p-button-rounded" />
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Outlined Buttons</h5>
|
|
|
|
<p>An alternate styling for a button is the outlined option where background becomes transparent. Apply "p-button-outlined" to style a button as outlined.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button label="Primary" class="p-button-outlined" />
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Link Buttons</h5>
|
|
|
|
<p>Use "p-button-link" class to render the button as a link.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button label="Link" class="p-button-link" />
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Badges</h5>
|
|
|
|
<p>Badge is a small status indicator for a button. Refer to the <router-link to="/badge">badge</router-link> documentation for available styling options.</p>
|
2022-09-09 10:25:14 +00:00
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button type="button" label="Emails" badge="8" />
|
|
|
|
<Button type="button" label="Messages" icon="pi pi-users" class="p-button-warning" badge="8" badgeClass="p-badge-info" />
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>ButtonSet</h5>
|
|
|
|
<p>Wrapping the buttons in a container having a <i>.p-buttonset</i> class, groups the buttons side to side.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<span class="p-buttonset">
|
|
|
|
<Button label="Save" icon="pi pi-check" />
|
|
|
|
<Button label="Delete" icon="pi pi-trash" />
|
|
|
|
<Button label="Cancel" icon="pi pi-times" />
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Sizes</h5>
|
|
|
|
<p>
|
|
|
|
2 more sizes are available in addition to a regular button, for a smaller input add <i>p-button-sm</i> and for a larger one, use <i>p-button-lg</i>. Note that these classes available to change the size of a particular button, for global
|
|
|
|
scaling see the <router-link to="/theming">theming</router-link> page.
|
|
|
|
</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button label="Small" icon="pi pi-check" class="p-button-sm" />
|
|
|
|
<Button label="Normal" icon="pi pi-check" class="p-button" />
|
|
|
|
<Button label="Large" icon="pi pi-check" class="p-button-lg" />
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Loading State</h5>
|
|
|
|
<p>Button displays a <i>loadingIcon</i> when <i>loading</i> property is enabled.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button label="Save" icon="pi pi-check" :loading="isLoading" />
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Templating</h5>
|
|
|
|
<p>Custom content such as icons, images and text can be placed inside the button via the default slot. Note that when slot is used, label, icon and badge properties are not included.</p>
|
|
|
|
<pre v-code><code>
|
2022-09-09 10:25:14 +00:00
|
|
|
<Button type="button" class="px-3">
|
2022-12-26 16:20:31 +00:00
|
|
|
<img alt="logo" src="@/assets/images/logo.svg" style="width: 1.5rem"/>
|
2022-09-09 10:25:14 +00:00
|
|
|
</Button>
|
|
|
|
|
|
|
|
<Button type="button" class="p-button-outlined p-button-success">
|
2022-12-26 16:20:31 +00:00
|
|
|
<img alt="logo" src="@/assets/images/logo.svg" style="width: 1.5rem" />
|
2022-09-09 10:25:14 +00:00
|
|
|
<span class="ml-2 font-bold">PrimeVue</span>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h5>Properties</h5>
|
|
|
|
<p>Any property such as style and class are passed to the underlying button element. Following are the additional properties to configure the component.</p>
|
|
|
|
<div class="doc-tablewrapper">
|
|
|
|
<table class="doc-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Default</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>label</td>
|
|
|
|
<td>string</td>
|
|
|
|
<td>null</td>
|
|
|
|
<td>Text of the button.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>icon</td>
|
|
|
|
<td>string</td>
|
|
|
|
<td>null</td>
|
|
|
|
<td>Name of the icon.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>iconPos</td>
|
|
|
|
<td>string</td>
|
|
|
|
<td>left</td>
|
|
|
|
<td>Position of the icon, valid values are "left", "right", "bottom" and "top".</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>iconClass</td>
|
|
|
|
<td>string</td>
|
|
|
|
<td>null</td>
|
|
|
|
<td>Style class of the icon.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>badge</td>
|
|
|
|
<td>string</td>
|
|
|
|
<td>null</td>
|
|
|
|
<td>Value of the badge.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>badgeClass</td>
|
|
|
|
<td>string</td>
|
|
|
|
<td>null</td>
|
|
|
|
<td>Style class of the badge.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>loading</td>
|
|
|
|
<td>boolean</td>
|
|
|
|
<td>false</td>
|
|
|
|
<td>Whether the button is in loading state.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>loadingIcon</td>
|
|
|
|
<td>string</td>
|
|
|
|
<td>pi pi-spinner pi-spin</td>
|
|
|
|
<td>Icon to display in loading state.</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5>Styling</h5>
|
|
|
|
<p>Following is the list of structural style classes, for theming classes visit <router-link to="/theming">theming</router-link> page.</p>
|
|
|
|
<div class="doc-tablewrapper">
|
|
|
|
<table class="doc-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Element</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>p-button</td>
|
|
|
|
<td>Button element</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>p-button-icon</td>
|
|
|
|
<td>Icon element</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>p-button-label</td>
|
|
|
|
<td>Label element of the button</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>p-button-sm</td>
|
|
|
|
<td>Smaller button element</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>p-button-lg</td>
|
|
|
|
<td>Larger button element</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5>Accessibility</h5>
|
|
|
|
<h6>Screen Reader</h6>
|
|
|
|
<p>
|
|
|
|
Button component renders a native button element that implicitly includes any passed prop. Text to describe the button is defined with the <i>aria-label</i> prop, if not present <i>label</i> prop is used as the value. If the button is
|
|
|
|
icon only or custom templating is used, it is recommended to use <i>aria-label</i> so that screen readers would be able to read the element properly.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<pre v-code><code>
|
2022-09-14 14:26:41 +00:00
|
|
|
<Button icon="pi pi-check" aria-label="Submit" />
|
|
|
|
|
|
|
|
<Button icon="pi pi-check" label="Submit" />
|
|
|
|
|
|
|
|
<Button class="youtube p-0" aria-label="Youtube">
|
|
|
|
<i class="pi pi-youtube px-2"></i>
|
|
|
|
<span class="px-3">Youtube</span>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
</code></pre>
|
|
|
|
|
2022-12-20 17:28:51 +00:00
|
|
|
<h6>Keyboard Support</h6>
|
|
|
|
<div class="doc-tablewrapper">
|
|
|
|
<table class="doc-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Key</th>
|
|
|
|
<th>Function</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td><i>tab</i></td>
|
|
|
|
<td>Moves focus to the button.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><i>enter</i></td>
|
|
|
|
<td>Activates the button.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><i>space</i></td>
|
|
|
|
<td>Activates the button.</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5>Dependencies</h5>
|
|
|
|
<p>None.</p>
|
|
|
|
</AppDoc>
|
2022-09-09 10:25:14 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
sources: {
|
|
|
|
'options-api': {
|
|
|
|
tabName: 'Options API Source',
|
|
|
|
content: `
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<h5>Basic</h5>
|
|
|
|
<Button label="Submit" />
|
|
|
|
<Button label="Disabled" disabled="disabled" />
|
|
|
|
<Button label="Link" class="p-button-link" />
|
|
|
|
|
|
|
|
<h5>Icons</h5>
|
|
|
|
<Button icon="pi pi-check" />
|
|
|
|
<Button label="Submit" icon="pi pi-check" />
|
|
|
|
<Button label="Submit" icon="pi pi-check" iconPos="right" />
|
|
|
|
|
|
|
|
<h5>Severities</h5>
|
|
|
|
<Button label="Primary" />
|
|
|
|
<Button label="Secondary" class="p-button-secondary" />
|
|
|
|
<Button label="Success" class="p-button-success" />
|
|
|
|
<Button label="Info" class="p-button-info" />
|
|
|
|
<Button label="Warning" class="p-button-warning" />
|
|
|
|
<Button label="Help" class="p-button-help" />
|
|
|
|
<Button label="Danger" class="p-button-danger" />
|
|
|
|
|
|
|
|
<h5>Raised Buttons</h5>
|
|
|
|
<Button label="Primary" class="p-button-raised" />
|
|
|
|
<Button label="Secondary" class="p-button-raised p-button-secondary" />
|
|
|
|
<Button label="Success" class="p-button-raised p-button-success" />
|
|
|
|
<Button label="Info" class="p-button-raised p-button-info" />
|
|
|
|
<Button label="Warning" class="p-button-raised p-button-warning" />
|
|
|
|
<Button label="Help" class="p-button-raised p-button-help" />
|
|
|
|
<Button label="Danger" class="p-button-raised p-button-danger" />
|
|
|
|
|
|
|
|
<h5>Rounded Buttons</h5>
|
|
|
|
<Button label="Primary" class="p-button-rounded" />
|
|
|
|
<Button label="Secondary" class="p-button-rounded p-button-secondary" />
|
|
|
|
<Button label="Success" class="p-button-rounded p-button-success" />
|
|
|
|
<Button label="Info" class="p-button-rounded p-button-info" />
|
|
|
|
<Button label="Warning" class="p-button-rounded p-button-warning" />
|
|
|
|
<Button label="Help" class="p-button-rounded p-button-help" />
|
|
|
|
<Button label="Danger" class="p-button-rounded p-button-danger" />
|
|
|
|
|
|
|
|
<h5>Text Buttons</h5>
|
|
|
|
<Button label="Primary" class="p-button-text" />
|
|
|
|
<Button label="Secondary" class="p-button-secondary p-button-text" />
|
|
|
|
<Button label="Success" class="p-button-success p-button-text" />
|
|
|
|
<Button label="Info" class="p-button-info p-button-text" />
|
|
|
|
<Button label="Warning" class="p-button-warning p-button-text" />
|
|
|
|
<Button label="Help" class="p-button-help p-button-text" />
|
|
|
|
<Button label="Danger" class="p-button-danger p-button-text" />
|
|
|
|
<Button label="Plain" class="p-button-text p-button-plain" />
|
|
|
|
|
|
|
|
<h5>Raised Text Buttons</h5>
|
|
|
|
<Button label="Primary" class="p-button-raised p-button-text" />
|
|
|
|
<Button label="Secondary" class="p-button-raised p-button-secondary p-button-text" />
|
|
|
|
<Button label="Success" class="p-button-raised p-button-success p-button-text" />
|
|
|
|
<Button label="Info" class="p-button-raised p-button-info p-button-text" />
|
|
|
|
<Button label="Warning" class="p-button-raised p-button-warning p-button-text" />
|
|
|
|
<Button label="Help" class="p-button-raised p-button-help p-button-text" />
|
|
|
|
<Button label="Danger" class="p-button-raised p-button-danger p-button-text" />
|
|
|
|
<Button label="Plain" class="p-button-raised p-button-text p-button-plain" />
|
|
|
|
|
|
|
|
<h5>Outlined Buttons</h5>
|
|
|
|
<Button label="Primary" class="p-button-outlined" />
|
|
|
|
<Button label="Secondary" class="p-button-outlined p-button-secondary" />
|
|
|
|
<Button label="Success" class="p-button-outlined p-button-success" />
|
|
|
|
<Button label="Info" class="p-button-outlined p-button-info" />
|
|
|
|
<Button label="Warning" class="p-button-outlined p-button-warning" />
|
|
|
|
<Button label="Help" class="p-button-outlined p-button-help" />
|
|
|
|
<Button label="Danger" class="p-button-outlined p-button-danger" />
|
|
|
|
|
|
|
|
<h5>Rounded Icon Buttons</h5>
|
|
|
|
<Button icon="pi pi-bookmark" class="p-button-rounded p-button-secondary" />
|
|
|
|
<Button icon="pi pi-search" class="p-button-rounded p-button-success" />
|
|
|
|
<Button icon="pi pi-user" class="p-button-rounded p-button-info" />
|
|
|
|
<Button icon="pi pi-bell" class="p-button-rounded p-button-warning" />
|
|
|
|
<Button icon="pi pi-heart" class="p-button-rounded p-button-help" />
|
|
|
|
<Button icon="pi pi-times" class="p-button-rounded p-button-danger" />
|
|
|
|
<Button icon="pi pi-check" class="p-button-rounded" />
|
|
|
|
|
|
|
|
<h5>Rounded Text Icon Buttons</h5>
|
|
|
|
<Button icon="pi pi-check" class="p-button-rounded p-button-text" />
|
|
|
|
<Button icon="pi pi-bookmark" class="p-button-rounded p-button-secondary p-button-text" />
|
|
|
|
<Button icon="pi pi-search" class="p-button-rounded p-button-success p-button-text" />
|
|
|
|
<Button icon="pi pi-user" class="p-button-rounded p-button-info p-button-text" />
|
|
|
|
<Button icon="pi pi-bell" class="p-button-rounded p-button-warning p-button-text" />
|
|
|
|
<Button icon="pi pi-heart" class="p-button-rounded p-button-help p-button-text" />
|
|
|
|
<Button icon="pi pi-times" class="p-button-rounded p-button-danger p-button-text" />
|
|
|
|
<Button icon="pi pi-filter" class="p-button-rounded p-button-text p-button-plain" />
|
|
|
|
|
|
|
|
<h5>Rounded and Outlined Icon Buttons</h5>
|
|
|
|
<Button icon="pi pi-check" class="p-button-rounded p-button-outlined" />
|
|
|
|
<Button icon="pi pi-bookmark" class="p-button-rounded p-button-secondary p-button-outlined" />
|
|
|
|
<Button icon="pi pi-search" class="p-button-rounded p-button-success p-button-outlined" />
|
|
|
|
<Button icon="pi pi-user" class="p-button-rounded p-button-info p-button-outlined" />
|
|
|
|
<Button icon="pi pi-bell" class="p-button-rounded p-button-warning p-button-outlined" />
|
|
|
|
<Button icon="pi pi-heart" class="p-button-rounded p-button-help p-button-outlined" />
|
|
|
|
<Button icon="pi pi-times" class="p-button-rounded p-button-danger p-button-outlined" />
|
|
|
|
|
|
|
|
<h5>Badges</h5>
|
|
|
|
<Button type="button" label="Emails" badge="8" />
|
|
|
|
<Button type="button" label="Messages" icon="pi pi-users" class="p-button-warning" badge="8" badgeClass="p-badge-danger" />
|
|
|
|
|
|
|
|
<h5>Loading</h5>
|
|
|
|
<Button type="button" label="Search" icon="pi pi-search" :loading="loading[0]" @click="load(0)" />
|
|
|
|
<Button type="button" label="Search" icon="pi pi-search" iconPos="right" :loading="loading[1]" @click="load(1)" />
|
|
|
|
<Button type="button" icon="pi pi-search" :loading="loading[2]" @click="load(2)" />
|
|
|
|
<Button type="button" label="Search" :loading="loading[3]" @click="load(3)" />
|
|
|
|
|
|
|
|
<h5>Button Set</h5>
|
|
|
|
<span class="p-buttonset">
|
|
|
|
<Button label="Save" icon="pi pi-check" />
|
|
|
|
<Button label="Delete" icon="pi pi-trash" />
|
|
|
|
<Button label="Cancel" icon="pi pi-times" />
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<h5>Sizes</h5>
|
|
|
|
<div class="sizes">
|
|
|
|
<Button label="Small" icon="pi pi-check" class="p-button-sm" />
|
|
|
|
<Button label="Normal" icon="pi pi-check" class="p-button" />
|
|
|
|
<Button label="Large" icon="pi pi-check" class="p-button-lg" />
|
|
|
|
</div>
|
2022-12-08 12:26:57 +00:00
|
|
|
|
|
|
|
<h5>Template</h5>
|
|
|
|
<div class="template">
|
|
|
|
<Button class="google p-0" aria-label="Google">
|
|
|
|
<i class="pi pi-google px-2"></i>
|
|
|
|
<span class="px-3">Google</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="youtube p-0" aria-label="Youtube">
|
|
|
|
<i class="pi pi-youtube px-2"></i>
|
|
|
|
<span class="px-3">Youtube</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="vimeo p-0" aria-label="Vimeo">
|
|
|
|
<i class="pi pi-vimeo px-2"></i>
|
|
|
|
<span class="px-3">Vimeo</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="facebook p-0" aria-label="Facebook">
|
|
|
|
<i class="pi pi-facebook px-2"></i>
|
|
|
|
<span class="px-3">Facebook</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="twitter p-0" aria-label="Twitter">
|
|
|
|
<i class="pi pi-twitter px-2"></i>
|
|
|
|
<span class="px-3">Twitter</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="slack p-0" aria-label="Slack">
|
|
|
|
<i class="pi pi-slack px-2"></i>
|
|
|
|
<span class="px-3">Slack</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="amazon p-0" aria-label="Amazon">
|
|
|
|
<i class="pi pi-amazon px-2"></i>
|
|
|
|
<span class="px-3">Amazon</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="discord p-0" aria-label="Discord">
|
|
|
|
<i class="pi pi-discord px-2"></i>
|
|
|
|
<span class="px-3">Discord</span>
|
|
|
|
</Button>
|
|
|
|
</div>
|
2022-09-09 10:25:14 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
loading: [false, false, false]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
load(index) {
|
|
|
|
this.loading[index] = true;
|
|
|
|
setTimeout(() => this.loading[index] = false, 1000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<\\/script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2022-12-08 12:26:57 +00:00
|
|
|
.p-button {
|
|
|
|
margin-right: 0.5rem;
|
2022-09-09 10:25:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttonset {
|
|
|
|
.p-button {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sizes {
|
|
|
|
.button {
|
2022-12-08 12:26:57 +00:00
|
|
|
margin-bottom: 0.5rem;
|
2022-09-09 10:25:14 +00:00
|
|
|
display: block;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-08 12:26:57 +00:00
|
|
|
.template .p-button i {
|
|
|
|
line-height: 2.25rem;
|
|
|
|
}
|
|
|
|
.template .p-button.google {
|
|
|
|
background: linear-gradient(to left, var(--purple-600) 50%, var(--purple-700) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--purple-700);
|
|
|
|
}
|
|
|
|
.template .p-button.google:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.google i {
|
|
|
|
background-color: var(--purple-700);
|
|
|
|
}
|
|
|
|
.template .p-button.google:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--purple-400);
|
|
|
|
}
|
|
|
|
.template .p-button.youtube {
|
|
|
|
background: linear-gradient(to left, var(--pink-600) 50%, var(--pink-700) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--pink-700);
|
|
|
|
}
|
|
|
|
.template .p-button.youtube:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.youtube i {
|
|
|
|
background-color: var(--pink-700);
|
|
|
|
}
|
|
|
|
.template .p-button.youtube:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--pink-400);
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo {
|
|
|
|
background: linear-gradient(to left, var(--green-200) 50%, var(--green-300) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #000;
|
|
|
|
border-color: var(--green-300);
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo i {
|
|
|
|
background-color: var(--green-300);
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--green-400);
|
|
|
|
}
|
|
|
|
.template .p-button.facebook {
|
|
|
|
background: linear-gradient(to left, var(--indigo-600) 50%, var(--indigo-700) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--indigo-700);
|
|
|
|
}
|
|
|
|
.template .p-button.facebook:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.facebook i {
|
|
|
|
background-color: var(--indigo-700);
|
|
|
|
}
|
|
|
|
.template .p-button.facebook:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--indigo-400);
|
|
|
|
}
|
|
|
|
.template .p-button.twitter {
|
|
|
|
background: linear-gradient(to left, var(--blue-400) 50%, var(--blue-500) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--blue-500);
|
|
|
|
}
|
|
|
|
.template .p-button.twitter:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.twitter i {
|
|
|
|
background-color: var(--blue-500);
|
|
|
|
}
|
|
|
|
.template .p-button.twitter:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--blue-200);
|
|
|
|
}
|
|
|
|
.template .p-button.slack {
|
|
|
|
background: linear-gradient(to left, var(--orange-400) 50%, var(--orange-500) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--orange-500);
|
|
|
|
}
|
|
|
|
.template .p-button.slack:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.slack i {
|
|
|
|
background-color: var(--orange-500);
|
|
|
|
}
|
|
|
|
.template .p-button.slack:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--orange-200);
|
|
|
|
}
|
|
|
|
.template .p-button.amazon {
|
|
|
|
background: linear-gradient(to left, var(--yellow-400) 50%, var(--yellow-500) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #000;
|
|
|
|
border-color: var(--yellow-500);
|
|
|
|
}
|
|
|
|
.template .p-button.amazon:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.amazon i {
|
|
|
|
background-color: var(--yellow-500);
|
|
|
|
}
|
|
|
|
.template .p-button.amazon:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--yellow-200);
|
|
|
|
}
|
|
|
|
.template .p-button.discord {
|
|
|
|
background: linear-gradient(to left, var(--bluegray-700) 50%, var(--bluegray-800) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--bluegray-800);
|
|
|
|
}
|
|
|
|
.template .p-button.discord:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.discord i {
|
|
|
|
background-color: var(--bluegray-800);
|
|
|
|
}
|
|
|
|
.template .p-button.discord:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--bluegray-500);
|
|
|
|
}
|
|
|
|
|
2022-09-09 10:25:14 +00:00
|
|
|
@media screen and (max-width: 640px) {
|
|
|
|
.p-button {
|
2022-12-08 12:26:57 +00:00
|
|
|
margin-bottom: 0.5rem;
|
2022-09-09 10:25:14 +00:00
|
|
|
|
|
|
|
&:not(.p-button-icon-only) {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttonset {
|
|
|
|
.p-button {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>`
|
|
|
|
},
|
|
|
|
'composition-api': {
|
|
|
|
tabName: 'Composition API Source',
|
|
|
|
content: `
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<h5>Basic</h5>
|
|
|
|
<Button label="Submit" />
|
|
|
|
<Button label="Disabled" disabled="disabled" />
|
|
|
|
<Button label="Link" class="p-button-link" />
|
|
|
|
|
|
|
|
<h5>Icons</h5>
|
|
|
|
<Button icon="pi pi-check" />
|
|
|
|
<Button label="Submit" icon="pi pi-check" />
|
|
|
|
<Button label="Submit" icon="pi pi-check" iconPos="right" />
|
|
|
|
|
|
|
|
<h5>Severities</h5>
|
|
|
|
<Button label="Primary" />
|
|
|
|
<Button label="Secondary" class="p-button-secondary" />
|
|
|
|
<Button label="Success" class="p-button-success" />
|
|
|
|
<Button label="Info" class="p-button-info" />
|
|
|
|
<Button label="Warning" class="p-button-warning" />
|
|
|
|
<Button label="Help" class="p-button-help" />
|
|
|
|
<Button label="Danger" class="p-button-danger" />
|
|
|
|
|
|
|
|
<h5>Raised Buttons</h5>
|
|
|
|
<Button label="Primary" class="p-button-raised" />
|
|
|
|
<Button label="Secondary" class="p-button-raised p-button-secondary" />
|
|
|
|
<Button label="Success" class="p-button-raised p-button-success" />
|
|
|
|
<Button label="Info" class="p-button-raised p-button-info" />
|
|
|
|
<Button label="Warning" class="p-button-raised p-button-warning" />
|
|
|
|
<Button label="Help" class="p-button-raised p-button-help" />
|
|
|
|
<Button label="Danger" class="p-button-raised p-button-danger" />
|
|
|
|
|
|
|
|
<h5>Rounded Buttons</h5>
|
|
|
|
<Button label="Primary" class="p-button-rounded" />
|
|
|
|
<Button label="Secondary" class="p-button-rounded p-button-secondary" />
|
|
|
|
<Button label="Success" class="p-button-rounded p-button-success" />
|
|
|
|
<Button label="Info" class="p-button-rounded p-button-info" />
|
|
|
|
<Button label="Warning" class="p-button-rounded p-button-warning" />
|
|
|
|
<Button label="Help" class="p-button-rounded p-button-help" />
|
|
|
|
<Button label="Danger" class="p-button-rounded p-button-danger" />
|
|
|
|
|
|
|
|
<h5>Text Buttons</h5>
|
|
|
|
<Button label="Primary" class="p-button-text" />
|
|
|
|
<Button label="Secondary" class="p-button-secondary p-button-text" />
|
|
|
|
<Button label="Success" class="p-button-success p-button-text" />
|
|
|
|
<Button label="Info" class="p-button-info p-button-text" />
|
|
|
|
<Button label="Warning" class="p-button-warning p-button-text" />
|
|
|
|
<Button label="Help" class="p-button-help p-button-text" />
|
|
|
|
<Button label="Danger" class="p-button-danger p-button-text" />
|
|
|
|
<Button label="Plain" class="p-button-text p-button-plain" />
|
|
|
|
|
|
|
|
<h5>Raised Text Buttons</h5>
|
|
|
|
<Button label="Primary" class="p-button-raised p-button-text" />
|
|
|
|
<Button label="Secondary" class="p-button-raised p-button-secondary p-button-text" />
|
|
|
|
<Button label="Success" class="p-button-raised p-button-success p-button-text" />
|
|
|
|
<Button label="Info" class="p-button-raised p-button-info p-button-text" />
|
|
|
|
<Button label="Warning" class="p-button-raised p-button-warning p-button-text" />
|
|
|
|
<Button label="Help" class="p-button-raised p-button-help p-button-text" />
|
|
|
|
<Button label="Danger" class="p-button-raised p-button-danger p-button-text" />
|
|
|
|
<Button label="Plain" class="p-button-raised p-button-text p-button-plain" />
|
|
|
|
|
|
|
|
<h5>Outlined Buttons</h5>
|
|
|
|
<Button label="Primary" class="p-button-outlined" />
|
|
|
|
<Button label="Secondary" class="p-button-outlined p-button-secondary" />
|
|
|
|
<Button label="Success" class="p-button-outlined p-button-success" />
|
|
|
|
<Button label="Info" class="p-button-outlined p-button-info" />
|
|
|
|
<Button label="Warning" class="p-button-outlined p-button-warning" />
|
|
|
|
<Button label="Help" class="p-button-outlined p-button-help" />
|
|
|
|
<Button label="Danger" class="p-button-outlined p-button-danger" />
|
|
|
|
|
|
|
|
<h5>Rounded Icon Buttons</h5>
|
|
|
|
<Button icon="pi pi-bookmark" class="p-button-rounded p-button-secondary" />
|
|
|
|
<Button icon="pi pi-search" class="p-button-rounded p-button-success" />
|
|
|
|
<Button icon="pi pi-user" class="p-button-rounded p-button-info" />
|
|
|
|
<Button icon="pi pi-bell" class="p-button-rounded p-button-warning" />
|
|
|
|
<Button icon="pi pi-heart" class="p-button-rounded p-button-help" />
|
|
|
|
<Button icon="pi pi-times" class="p-button-rounded p-button-danger" />
|
|
|
|
<Button icon="pi pi-check" class="p-button-rounded" />
|
|
|
|
|
|
|
|
<h5>Rounded Text Icon Buttons</h5>
|
|
|
|
<Button icon="pi pi-check" class="p-button-rounded p-button-text" />
|
|
|
|
<Button icon="pi pi-bookmark" class="p-button-rounded p-button-secondary p-button-text" />
|
|
|
|
<Button icon="pi pi-search" class="p-button-rounded p-button-success p-button-text" />
|
|
|
|
<Button icon="pi pi-user" class="p-button-rounded p-button-info p-button-text" />
|
|
|
|
<Button icon="pi pi-bell" class="p-button-rounded p-button-warning p-button-text" />
|
|
|
|
<Button icon="pi pi-heart" class="p-button-rounded p-button-help p-button-text" />
|
|
|
|
<Button icon="pi pi-times" class="p-button-rounded p-button-danger p-button-text" />
|
|
|
|
<Button icon="pi pi-filter" class="p-button-rounded p-button-text p-button-plain" />
|
|
|
|
|
|
|
|
<h5>Rounded and Outlined Icon Buttons</h5>
|
|
|
|
<Button icon="pi pi-check" class="p-button-rounded p-button-outlined" />
|
|
|
|
<Button icon="pi pi-bookmark" class="p-button-rounded p-button-secondary p-button-outlined" />
|
|
|
|
<Button icon="pi pi-search" class="p-button-rounded p-button-success p-button-outlined" />
|
|
|
|
<Button icon="pi pi-user" class="p-button-rounded p-button-info p-button-outlined" />
|
|
|
|
<Button icon="pi pi-bell" class="p-button-rounded p-button-warning p-button-outlined" />
|
|
|
|
<Button icon="pi pi-heart" class="p-button-rounded p-button-help p-button-outlined" />
|
|
|
|
<Button icon="pi pi-times" class="p-button-rounded p-button-danger p-button-outlined" />
|
|
|
|
|
|
|
|
<h5>Badges</h5>
|
|
|
|
<Button type="button" label="Emails" badge="8" />
|
|
|
|
<Button type="button" label="Messages" icon="pi pi-users" class="p-button-warning" badge="8" badgeClass="p-badge-danger" />
|
|
|
|
|
|
|
|
<h5>Loading</h5>
|
|
|
|
<Button type="button" label="Search" icon="pi pi-search" :loading="loading[0]" @click="load(0)" />
|
|
|
|
<Button type="button" label="Search" icon="pi pi-search" iconPos="right" :loading="loading[1]" @click="load(1)" />
|
|
|
|
<Button type="button" icon="pi pi-search" :loading="loading[2]" @click="load(2)" />
|
|
|
|
<Button type="button" label="Search" :loading="loading[3]" @click="load(3)" />
|
|
|
|
|
|
|
|
<h5>Button Set</h5>
|
|
|
|
<span class="p-buttonset">
|
|
|
|
<Button label="Save" icon="pi pi-check" />
|
|
|
|
<Button label="Delete" icon="pi pi-trash" />
|
|
|
|
<Button label="Cancel" icon="pi pi-times" />
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<h5>Sizes</h5>
|
|
|
|
<div class="sizes">
|
|
|
|
<Button label="Small" icon="pi pi-check" class="p-button-sm" />
|
|
|
|
<Button label="Normal" icon="pi pi-check" class="p-button" />
|
|
|
|
<Button label="Large" icon="pi pi-check" class="p-button-lg" />
|
|
|
|
</div>
|
2022-12-08 12:26:57 +00:00
|
|
|
|
|
|
|
<h5>Template</h5>
|
|
|
|
<div class="template">
|
|
|
|
<Button class="google p-0" aria-label="Google">
|
|
|
|
<i class="pi pi-google px-2"></i>
|
|
|
|
<span class="px-3">Google</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="youtube p-0" aria-label="Youtube">
|
|
|
|
<i class="pi pi-youtube px-2"></i>
|
|
|
|
<span class="px-3">Youtube</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="vimeo p-0" aria-label="Vimeo">
|
|
|
|
<i class="pi pi-vimeo px-2"></i>
|
|
|
|
<span class="px-3">Vimeo</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="facebook p-0" aria-label="Facebook">
|
|
|
|
<i class="pi pi-facebook px-2"></i>
|
|
|
|
<span class="px-3">Facebook</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="twitter p-0" aria-label="Twitter">
|
|
|
|
<i class="pi pi-twitter px-2"></i>
|
|
|
|
<span class="px-3">Twitter</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="slack p-0" aria-label="Slack">
|
|
|
|
<i class="pi pi-slack px-2"></i>
|
|
|
|
<span class="px-3">Slack</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="amazon p-0" aria-label="Amazon">
|
|
|
|
<i class="pi pi-amazon px-2"></i>
|
|
|
|
<span class="px-3">Amazon</span>
|
|
|
|
</Button>
|
|
|
|
<Button class="discord p-0" aria-label="Discord">
|
|
|
|
<i class="pi pi-discord px-2"></i>
|
|
|
|
<span class="px-3">Discord</span>
|
|
|
|
</Button>
|
|
|
|
</div>
|
2022-09-09 10:25:14 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
export default({
|
|
|
|
setup() {
|
|
|
|
const loading = ref([false, false, false]);
|
|
|
|
const load = (index) => {
|
|
|
|
loading.value[index] = true;
|
|
|
|
setTimeout(() => loading.value[index] = false, 1000);
|
|
|
|
}
|
|
|
|
|
|
|
|
return {loading, load};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
<\\/script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2022-12-08 12:26:57 +00:00
|
|
|
.p-button {
|
|
|
|
margin-right: 0.5rem;
|
2022-09-09 10:25:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttonset {
|
|
|
|
.p-button {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sizes {
|
|
|
|
.button {
|
2022-12-08 12:26:57 +00:00
|
|
|
margin-bottom: 0.5rem;
|
2022-09-09 10:25:14 +00:00
|
|
|
display: block;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-08 12:26:57 +00:00
|
|
|
.template .p-button i {
|
|
|
|
line-height: 2.25rem;
|
|
|
|
}
|
|
|
|
.template .p-button.google {
|
|
|
|
background: linear-gradient(to left, var(--purple-600) 50%, var(--purple-700) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--purple-700);
|
|
|
|
}
|
|
|
|
.template .p-button.google:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.google i {
|
|
|
|
background-color: var(--purple-700);
|
|
|
|
}
|
|
|
|
.template .p-button.google:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--purple-400);
|
|
|
|
}
|
|
|
|
.template .p-button.youtube {
|
|
|
|
background: linear-gradient(to left, var(--pink-600) 50%, var(--pink-700) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--pink-700);
|
|
|
|
}
|
|
|
|
.template .p-button.youtube:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.youtube i {
|
|
|
|
background-color: var(--pink-700);
|
|
|
|
}
|
|
|
|
.template .p-button.youtube:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--pink-400);
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo {
|
|
|
|
background: linear-gradient(to left, var(--green-200) 50%, var(--green-300) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #000;
|
|
|
|
border-color: var(--green-300);
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo i {
|
|
|
|
background-color: var(--green-300);
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--green-400);
|
|
|
|
}
|
|
|
|
.template .p-button.facebook {
|
|
|
|
background: linear-gradient(to left, var(--indigo-600) 50%, var(--indigo-700) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--indigo-700);
|
|
|
|
}
|
|
|
|
.template .p-button.facebook:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.facebook i {
|
|
|
|
background-color: var(--indigo-700);
|
|
|
|
}
|
|
|
|
.template .p-button.facebook:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--indigo-400);
|
|
|
|
}
|
|
|
|
.template .p-button.twitter {
|
|
|
|
background: linear-gradient(to left, var(--blue-400) 50%, var(--blue-500) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--blue-500);
|
|
|
|
}
|
|
|
|
.template .p-button.twitter:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.twitter i {
|
|
|
|
background-color: var(--blue-500);
|
|
|
|
}
|
|
|
|
.template .p-button.twitter:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--blue-200);
|
|
|
|
}
|
|
|
|
.template .p-button.slack {
|
|
|
|
background: linear-gradient(to left, var(--orange-400) 50%, var(--orange-500) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--orange-500);
|
|
|
|
}
|
|
|
|
.template .p-button.slack:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.slack i {
|
|
|
|
background-color: var(--orange-500);
|
|
|
|
}
|
|
|
|
.template .p-button.slack:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--orange-200);
|
|
|
|
}
|
|
|
|
.template .p-button.amazon {
|
|
|
|
background: linear-gradient(to left, var(--yellow-400) 50%, var(--yellow-500) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #000;
|
|
|
|
border-color: var(--yellow-500);
|
|
|
|
}
|
|
|
|
.template .p-button.amazon:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.amazon i {
|
|
|
|
background-color: var(--yellow-500);
|
|
|
|
}
|
|
|
|
.template .p-button.amazon:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--yellow-200);
|
|
|
|
}
|
|
|
|
.template .p-button.discord {
|
|
|
|
background: linear-gradient(to left, var(--bluegray-700) 50%, var(--bluegray-800) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--bluegray-800);
|
|
|
|
}
|
|
|
|
.template .p-button.discord:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.discord i {
|
|
|
|
background-color: var(--bluegray-800);
|
|
|
|
}
|
|
|
|
.template .p-button.discord:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--bluegray-500);
|
|
|
|
}
|
|
|
|
|
2022-09-09 10:25:14 +00:00
|
|
|
@media screen and (max-width: 640px) {
|
|
|
|
.p-button {
|
2022-12-08 12:26:57 +00:00
|
|
|
margin-bottom: 0.5rem;
|
2022-09-09 10:25:14 +00:00
|
|
|
|
|
|
|
&:not(.p-button-icon-only) {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttonset {
|
|
|
|
.p-button {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>`
|
|
|
|
},
|
|
|
|
'browser-source': {
|
|
|
|
tabName: 'Browser Source',
|
|
|
|
content: `<div id="app">
|
|
|
|
<div class="card">
|
|
|
|
<h5>Basic</h5>
|
|
|
|
<p-button label="Submit"></p-button>
|
|
|
|
<p-button label="Disabled" disabled="disabled"></p-button>
|
|
|
|
<p-button label="Link" class="p-button-link"></p-button>
|
|
|
|
|
|
|
|
<h5>Icons</h5>
|
|
|
|
<p-button icon="pi pi-check"></p-button>
|
|
|
|
<p-button label="Submit" icon="pi pi-check"></p-button>
|
|
|
|
<p-button label="Submit" icon="pi pi-check" iconPos="right"></p-button>
|
|
|
|
|
|
|
|
<h5>Severities</h5>
|
|
|
|
<p-button label="Primary"></p-button>
|
|
|
|
<p-button label="Secondary" class="p-button-secondary"></p-button>
|
|
|
|
<p-button label="Success" class="p-button-success"></p-button>
|
|
|
|
<p-button label="Info" class="p-button-info"></p-button>
|
|
|
|
<p-button label="Warning" class="p-button-warning"></p-button>
|
|
|
|
<p-button label="Help" class="p-button-help"></p-button>
|
|
|
|
<p-button label="Danger" class="p-button-danger"></p-button>
|
|
|
|
|
|
|
|
<h5>Raised Buttons</h5>
|
|
|
|
<p-button label="Primary" class="p-button-raised"></p-button>
|
|
|
|
<p-button label="Secondary" class="p-button-raised p-button-secondary"></p-button>
|
|
|
|
<p-button label="Success" class="p-button-raised p-button-success"></p-button>
|
|
|
|
<p-button label="Info" class="p-button-raised p-button-info"></p-button>
|
|
|
|
<p-button label="Warning" class="p-button-raised p-button-warning"></p-button>
|
|
|
|
<p-button label="Help" class="p-button-raised p-button-help"></p-button>
|
|
|
|
<p-button label="Danger" class="p-button-raised p-button-danger"></p-button>
|
|
|
|
|
|
|
|
<h5>Rounded Buttons</h5>
|
|
|
|
<p-button label="Primary" class="p-button-rounded"></p-button>
|
|
|
|
<p-button label="Secondary" class="p-button-rounded p-button-secondary"></p-button>
|
|
|
|
<p-button label="Success" class="p-button-rounded p-button-success"></p-button>
|
|
|
|
<p-button label="Info" class="p-button-rounded p-button-info"></p-button>
|
|
|
|
<p-button label="Warning" class="p-button-rounded p-button-warning"></p-button>
|
|
|
|
<p-button label="Help" class="p-button-rounded p-button-help"></p-button>
|
|
|
|
<p-button label="Danger" class="p-button-rounded p-button-danger"></p-button>
|
|
|
|
|
|
|
|
<h5>Text Buttons</h5>
|
|
|
|
<p-button label="Primary" class="p-button-text"></p-button>
|
|
|
|
<p-button label="Secondary" class="p-button-secondary p-button-text"></p-button>
|
|
|
|
<p-button label="Success" class="p-button-success p-button-text"></p-button>
|
|
|
|
<p-button label="Info" class="p-button-info p-button-text"></p-button>
|
|
|
|
<p-button label="Warning" class="p-button-warning p-button-text"></p-button>
|
|
|
|
<p-button label="Help" class="p-button-help p-button-text"></p-button>
|
|
|
|
<p-button label="Danger" class="p-button-danger p-button-text"></p-button>
|
|
|
|
<p-button label="Plain" class="p-button-text p-button-plain"></p-button>
|
|
|
|
|
|
|
|
<h5>Raised Text Buttons</h5>
|
|
|
|
<p-button label="Primary" class="p-button-raised p-button-text"></p-button>
|
|
|
|
<p-button label="Secondary" class="p-button-raised p-button-secondary p-button-text"></p-button>
|
|
|
|
<p-button label="Success" class="p-button-raised p-button-success p-button-text"></p-button>
|
|
|
|
<p-button label="Info" class="p-button-raised p-button-info p-button-text"></p-button>
|
|
|
|
<p-button label="Warning" class="p-button-raised p-button-warning p-button-text"></p-button>
|
|
|
|
<p-button label="Help" class="p-button-raised p-button-help p-button-text"></p-button>
|
|
|
|
<p-button label="Danger" class="p-button-raised p-button-danger p-button-text"></p-button>
|
|
|
|
<p-button label="Plain" class="p-button-raised p-button-text p-button-plain"></p-button>
|
|
|
|
|
|
|
|
<h5>Outlined Buttons</h5>
|
|
|
|
<p-button label="Primary" class="p-button-outlined"></p-button>
|
|
|
|
<p-button label="Secondary" class="p-button-outlined p-button-secondary"></p-button>
|
|
|
|
<p-button label="Success" class="p-button-outlined p-button-success"></p-button>
|
|
|
|
<p-button label="Info" class="p-button-outlined p-button-info"></p-button>
|
|
|
|
<p-button label="Warning" class="p-button-outlined p-button-warning"></p-button>
|
|
|
|
<p-button label="Help" class="p-button-outlined p-button-help"></p-button>
|
|
|
|
<p-button label="Danger" class="p-button-outlined p-button-danger"></p-button>
|
|
|
|
|
|
|
|
<h5>Rounded Icon Buttons</h5>
|
|
|
|
<p-button icon="pi pi-bookmark" class="p-button-rounded p-button-secondary"></p-button>
|
|
|
|
<p-button icon="pi pi-search" class="p-button-rounded p-button-success"></p-button>
|
|
|
|
<p-button icon="pi pi-user" class="p-button-rounded p-button-info"></p-button>
|
|
|
|
<p-button icon="pi pi-bell" class="p-button-rounded p-button-warning"></p-button>
|
|
|
|
<p-button icon="pi pi-heart" class="p-button-rounded p-button-help"></p-button>
|
|
|
|
<p-button icon="pi pi-times" class="p-button-rounded p-button-danger"></p-button>
|
|
|
|
<p-button icon="pi pi-check" class="p-button-rounded"></p-button>
|
|
|
|
|
|
|
|
<h5>Rounded Text Icon Buttons</h5>
|
|
|
|
<p-button icon="pi pi-check" class="p-button-rounded p-button-text"></p-button>
|
|
|
|
<p-button icon="pi pi-bookmark" class="p-button-rounded p-button-secondary p-button-text"></p-button>
|
|
|
|
<p-button icon="pi pi-search" class="p-button-rounded p-button-success p-button-text"></p-button>
|
|
|
|
<p-button icon="pi pi-user" class="p-button-rounded p-button-info p-button-text"></p-button>
|
|
|
|
<p-button icon="pi pi-bell" class="p-button-rounded p-button-warning p-button-text"></p-button>
|
|
|
|
<p-button icon="pi pi-heart" class="p-button-rounded p-button-help p-button-text"></p-button>
|
|
|
|
<p-button icon="pi pi-times" class="p-button-rounded p-button-danger p-button-text"></p-button>
|
|
|
|
<p-button icon="pi pi-filter" class="p-button-rounded p-button-text p-button-plain"></p-button>
|
|
|
|
|
|
|
|
<h5>Rounded and Outlined Icon Buttons</h5>
|
|
|
|
<p-button icon="pi pi-check" class="p-button-rounded p-button-outlined"></p-button>
|
|
|
|
<p-button icon="pi pi-bookmark" class="p-button-rounded p-button-secondary p-button-outlined"></p-button>
|
|
|
|
<p-button icon="pi pi-search" class="p-button-rounded p-button-success p-button-outlined"></p-button>
|
|
|
|
<p-button icon="pi pi-user" class="p-button-rounded p-button-info p-button-outlined"></p-button>
|
|
|
|
<p-button icon="pi pi-bell" class="p-button-rounded p-button-warning p-button-outlined"></p-button>
|
|
|
|
<p-button icon="pi pi-heart" class="p-button-rounded p-button-help p-button-outlined"></p-button>
|
|
|
|
<p-button icon="pi pi-times" class="p-button-rounded p-button-danger p-button-outlined"></p-button>
|
|
|
|
|
|
|
|
<h5>Badges</h5>
|
|
|
|
<p-button type="button" label="Emails" badge="8"></p-button>
|
|
|
|
<p-button type="button" label="Messages" icon="pi pi-users" class="p-button-warning" badge="8" badgeClass="p-badge-danger"></p-button>
|
|
|
|
|
|
|
|
<h5>Loading</h5>
|
|
|
|
<p-button type="button" label="Search" icon="pi pi-search" :loading="loading[0]" @click="load(0)"></p-button>
|
|
|
|
<p-button type="button" label="Search" icon="pi pi-search" iconPos="right" :loading="loading[1]" @click="load(1)"></p-button>
|
|
|
|
<p-button type="button" icon="pi pi-search" :loading="loading[2]" @click="load(2)"></p-button>
|
|
|
|
<p-button type="button" label="Search" :loading="loading[3]" @click="load(3)"></p-button>
|
|
|
|
|
|
|
|
<h5>Button Set</h5>
|
|
|
|
<span class="p-buttonset">
|
|
|
|
<p-button label="Save" icon="pi pi-check"></p-button>
|
|
|
|
<p-button label="Delete" icon="pi pi-trash"></p-button>
|
|
|
|
<p-button label="Cancel" icon="pi pi-times"></p-button>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<h5>Sizes</h5>
|
|
|
|
<div class="sizes">
|
|
|
|
<p-button label="Small" icon="pi pi-check" class="p-button-sm"></p-button>
|
|
|
|
<p-button label="Normal" icon="pi pi-check" class="p-button"></p-button>
|
|
|
|
<p-button label="Large" icon="pi pi-check" class="p-button-lg"></p-button>
|
|
|
|
</div>
|
2022-12-08 12:26:57 +00:00
|
|
|
|
|
|
|
<h5>Template</h5>
|
|
|
|
<div class="template">
|
|
|
|
<p-button class="google p-0" aria-label="Google">
|
|
|
|
<i class="pi pi-google px-2"></i>
|
|
|
|
<span class="px-3">Google</span>
|
|
|
|
</p-button>
|
|
|
|
<p-button class="youtube p-0" aria-label="Youtube">
|
|
|
|
<i class="pi pi-youtube px-2"></i>
|
|
|
|
<span class="px-3">Youtube</span>
|
|
|
|
</p-button>
|
|
|
|
<p-button class="vimeo p-0" aria-label="Vimeo">
|
|
|
|
<i class="pi pi-vimeo px-2"></i>
|
|
|
|
<span class="px-3">Vimeo</span>
|
|
|
|
</p-button>
|
|
|
|
<p-button class="facebook p-0" aria-label="Facebook">
|
|
|
|
<i class="pi pi-facebook px-2"></i>
|
|
|
|
<span class="px-3">Facebook</span>
|
|
|
|
</p-button>
|
|
|
|
<p-button class="twitter p-0" aria-label="Twitter">
|
|
|
|
<i class="pi pi-twitter px-2"></i>
|
|
|
|
<span class="px-3">Twitter</span>
|
|
|
|
</p-button>
|
|
|
|
<p-button class="slack p-0" aria-label="Slack">
|
|
|
|
<i class="pi pi-slack px-2"></i>
|
|
|
|
<span class="px-3">Slack</span>
|
|
|
|
</p-button>
|
|
|
|
<p-button class="amazon p-0" aria-label="Amazon">
|
|
|
|
<i class="pi pi-amazon px-2"></i>
|
|
|
|
<span class="px-3">Amazon</span>
|
|
|
|
</p-button>
|
|
|
|
<p-button class="discord p-0" aria-label="Discord">
|
|
|
|
<i class="pi pi-discord px-2"></i>
|
|
|
|
<span class="px-3">Discord</span>
|
|
|
|
</p-button>
|
|
|
|
</div>
|
2022-09-09 10:25:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="module">
|
|
|
|
const { createApp, ref } = Vue;
|
|
|
|
|
|
|
|
const App = {
|
|
|
|
setup() {
|
|
|
|
const loading = ref([false, false, false]);
|
|
|
|
const load = (index) => {
|
|
|
|
loading.value[index] = true;
|
|
|
|
setTimeout(() => loading.value[index] = false, 1000);
|
|
|
|
}
|
|
|
|
|
|
|
|
return {loading, load};
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
"p-button": primevue.button
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
createApp(App)
|
|
|
|
.use(primevue.config.default, { ripple: true })
|
|
|
|
.mount("#app");
|
|
|
|
<\\/script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.p-button {
|
2022-12-08 12:26:57 +00:00
|
|
|
margin-right: 0.5rem;
|
2022-09-09 10:25:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttonset .p-button {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sizes .button {
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2022-12-08 12:26:57 +00:00
|
|
|
.template .p-button i {
|
|
|
|
line-height: 2.25rem;
|
|
|
|
}
|
|
|
|
.template .p-button.google {
|
|
|
|
background: linear-gradient(to left, var(--purple-600) 50%, var(--purple-700) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--purple-700);
|
|
|
|
}
|
|
|
|
.template .p-button.google:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.google i {
|
|
|
|
background-color: var(--purple-700);
|
|
|
|
}
|
|
|
|
.template .p-button.google:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--purple-400);
|
|
|
|
}
|
|
|
|
.template .p-button.youtube {
|
|
|
|
background: linear-gradient(to left, var(--pink-600) 50%, var(--pink-700) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--pink-700);
|
|
|
|
}
|
|
|
|
.template .p-button.youtube:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.youtube i {
|
|
|
|
background-color: var(--pink-700);
|
|
|
|
}
|
|
|
|
.template .p-button.youtube:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--pink-400);
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo {
|
|
|
|
background: linear-gradient(to left, var(--green-200) 50%, var(--green-300) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #000;
|
|
|
|
border-color: var(--green-300);
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo i {
|
|
|
|
background-color: var(--green-300);
|
|
|
|
}
|
|
|
|
.template .p-button.vimeo:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--green-400);
|
|
|
|
}
|
|
|
|
.template .p-button.facebook {
|
|
|
|
background: linear-gradient(to left, var(--indigo-600) 50%, var(--indigo-700) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--indigo-700);
|
|
|
|
}
|
|
|
|
.template .p-button.facebook:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.facebook i {
|
|
|
|
background-color: var(--indigo-700);
|
|
|
|
}
|
|
|
|
.template .p-button.facebook:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--indigo-400);
|
|
|
|
}
|
|
|
|
.template .p-button.twitter {
|
|
|
|
background: linear-gradient(to left, var(--blue-400) 50%, var(--blue-500) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--blue-500);
|
|
|
|
}
|
|
|
|
.template .p-button.twitter:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.twitter i {
|
|
|
|
background-color: var(--blue-500);
|
|
|
|
}
|
|
|
|
.template .p-button.twitter:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--blue-200);
|
|
|
|
}
|
|
|
|
.template .p-button.slack {
|
|
|
|
background: linear-gradient(to left, var(--orange-400) 50%, var(--orange-500) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--orange-500);
|
|
|
|
}
|
|
|
|
.template .p-button.slack:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.slack i {
|
|
|
|
background-color: var(--orange-500);
|
|
|
|
}
|
|
|
|
.template .p-button.slack:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--orange-200);
|
|
|
|
}
|
|
|
|
.template .p-button.amazon {
|
|
|
|
background: linear-gradient(to left, var(--yellow-400) 50%, var(--yellow-500) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #000;
|
|
|
|
border-color: var(--yellow-500);
|
|
|
|
}
|
|
|
|
.template .p-button.amazon:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.amazon i {
|
|
|
|
background-color: var(--yellow-500);
|
|
|
|
}
|
|
|
|
.template .p-button.amazon:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--yellow-200);
|
|
|
|
}
|
|
|
|
.template .p-button.discord {
|
|
|
|
background: linear-gradient(to left, var(--bluegray-700) 50%, var(--bluegray-800) 50%);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
background-position: right bottom;
|
|
|
|
transition: background-position 0.5s ease-out;
|
|
|
|
color: #fff;
|
|
|
|
border-color: var(--bluegray-800);
|
|
|
|
}
|
|
|
|
.template .p-button.discord:hover {
|
|
|
|
background-position: left bottom;
|
|
|
|
}
|
|
|
|
.template .p-button.discord i {
|
|
|
|
background-color: var(--bluegray-800);
|
|
|
|
}
|
|
|
|
.template .p-button.discord:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--bluegray-500);
|
2022-09-09 10:25:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 640px) {
|
|
|
|
.p-button {
|
2022-12-08 12:26:57 +00:00
|
|
|
margin-bottom: 0.5rem;
|
2022-09-09 10:25:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-button:not(.p-button-icon-only) {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttonset .p-button {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|