mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 13:07:58 +00:00
Reamed btn-sm
class to button-small
This commit is contained in:
parent
313153d01d
commit
6513eab608
@ -112,7 +112,7 @@
|
||||
<button
|
||||
on:click={() => setValueToDate(day)}
|
||||
type="button"
|
||||
class="btn-sm"
|
||||
class="button-small"
|
||||
class:active={isSameDay(value, day)}
|
||||
class:notinmonth={day.getMonth() !== month}
|
||||
>{day.getDate()}</button>
|
||||
|
@ -94,22 +94,22 @@
|
||||
<div class="actions">
|
||||
{#if type === 'objectid'}
|
||||
{#if objectIdInput?.disabled}
|
||||
<button class="btn-sm" type="button" title="Edit object id" on:click={editObjectId}>
|
||||
<button class="button-small" type="button" title="Edit object id" on:click={editObjectId}>
|
||||
<Icon name="edit" />
|
||||
</button>
|
||||
{/if}
|
||||
<button class="btn-sm" type="button" title="Generate random object id" on:click={generateObjectId}>
|
||||
<button class="button-small" type="button" title="Generate random object id" on:click={generateObjectId}>
|
||||
<Icon name="reload" />
|
||||
</button>
|
||||
{:else if type === 'date'}
|
||||
<button class="btn-sm" type="button" title="Edit date" on:click={() => showDatepicker = true}>
|
||||
<button class="button-small" type="button" title="Edit date" on:click={() => showDatepicker = true}>
|
||||
<Icon name="edit" />
|
||||
</button>
|
||||
<button class="btn-sm" type="button" title="Set date to now" on:click={() => value = new Date()}>
|
||||
<button class="button-small" type="button" title="Set date to now" on:click={() => value = new Date()}>
|
||||
<Icon name="o" />
|
||||
</button>
|
||||
{/if}
|
||||
<button class="btn-sm" type="button" title="Reset field to default value" on:click={() => value = undefined}>
|
||||
<button class="button-small" type="button" title="Reset field to default value" on:click={() => value = undefined}>
|
||||
<Icon name="trash" />
|
||||
</button>
|
||||
</div>
|
||||
|
@ -173,7 +173,7 @@
|
||||
|
||||
{#if canRemoveItems}
|
||||
<td class="has-button">
|
||||
<button class="btn-sm" type="button" on:click|stopPropagation={() => removeItem(index, item[key])} on:dblclick|stopPropagation>
|
||||
<button class="button-small" type="button" on:click|stopPropagation={() => removeItem(index, item[key])} on:dblclick|stopPropagation>
|
||||
<Icon name="x" />
|
||||
</button>
|
||||
</td>
|
||||
|
@ -23,7 +23,7 @@
|
||||
{tab.title}
|
||||
</button>
|
||||
{#if tab.closable}
|
||||
<button class="btn-sm" on:click={() => dispatch('closeTab', tab.key)}>
|
||||
<button class="button-small" on:click={() => dispatch('closeTab', tab.key)}>
|
||||
<Icon name="x" />
|
||||
</button>
|
||||
{/if}
|
||||
@ -89,7 +89,7 @@
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
.button-small {
|
||||
position: absolute;
|
||||
right: 7px;
|
||||
top: 7px;
|
||||
|
@ -83,7 +83,7 @@
|
||||
</Details>
|
||||
{/each}
|
||||
|
||||
<button class="btn-sm" type="button" on:click={addStage}>
|
||||
<button class="button-small" type="button" on:click={addStage}>
|
||||
<Icon name="+" /> Add stage
|
||||
</button>
|
||||
</div>
|
||||
|
@ -162,7 +162,7 @@
|
||||
{/if}
|
||||
|
||||
{#if collection.viewKey !== 'list'}
|
||||
<button class="btn-sm" type="button" on:click={addRow}>
|
||||
<button class="button-small" type="button" on:click={addRow}>
|
||||
<Icon name="+" /> Add item
|
||||
</button>
|
||||
{/if}
|
||||
|
@ -100,17 +100,17 @@ select:disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
.button-small {
|
||||
padding: 3px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.btn-sm:hover {
|
||||
.button-small:hover {
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.btn-sm:active {
|
||||
.button-small:active {
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.btn-sm svg {
|
||||
.button-small svg {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
vertical-align: bottom;
|
||||
|
Loading…
Reference in New Issue
Block a user