mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Use CSS background images for options page icon buttons
This commit is contained in:
@@ -198,9 +198,7 @@
|
|||||||
class="ghost bridge__refresh"
|
class="ghost bridge__refresh"
|
||||||
title={_("optionsBridgeRefresh")}
|
title={_("optionsBridgeRefresh")}
|
||||||
on:click={checkBridgeStatus}
|
on:click={checkBridgeStatus}
|
||||||
>
|
/>
|
||||||
<img src="assets/photon_refresh.svg" alt="icon, refresh" />
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if bridgeInfo}
|
{#if bridgeInfo}
|
||||||
|
|||||||
@@ -184,9 +184,7 @@
|
|||||||
title={_("optionsSiteWhitelistEditItem")}
|
title={_("optionsSiteWhitelistEditItem")}
|
||||||
disabled={isEditing && !isEditingValid}
|
disabled={isEditing && !isEditingValid}
|
||||||
on:click={() => beginEditing(i)}
|
on:click={() => beginEditing(i)}
|
||||||
>
|
/>
|
||||||
<img src="assets/photon_edit.svg" alt="icon, edit" />
|
|
||||||
</button>
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<button
|
<button
|
||||||
@@ -195,9 +193,7 @@
|
|||||||
title={_("optionsSiteWhitelistRemoveItem")}
|
title={_("optionsSiteWhitelistRemoveItem")}
|
||||||
disabled={isEditing && !isEditingItem && !isEditingValid}
|
disabled={isEditing && !isEditingItem && !isEditingValid}
|
||||||
on:click={() => removeItem(i)}
|
on:click={() => removeItem(i)}
|
||||||
>
|
/>
|
||||||
<img src="assets/photon_delete.svg" alt="icon, remove" />
|
|
||||||
</button>
|
|
||||||
|
|
||||||
{#if !isEditingItem && opts.showAdvancedOptions}
|
{#if !isEditingItem && opts.showAdvancedOptions}
|
||||||
<button
|
<button
|
||||||
@@ -217,14 +213,7 @@
|
|||||||
}
|
}
|
||||||
expandedItemIndices = expandedItemIndices;
|
expandedItemIndices = expandedItemIndices;
|
||||||
}}
|
}}
|
||||||
>
|
/>
|
||||||
<img
|
|
||||||
src="../assets/{isItemExpanded
|
|
||||||
? 'photon_arrowhead_up.svg'
|
|
||||||
: 'photon_arrowhead_down.svg'}"
|
|
||||||
alt="icon, arrow down"
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
{#if isItemExpanded}
|
{#if isItemExpanded}
|
||||||
<div class="whitelist__expanded">
|
<div class="whitelist__expanded">
|
||||||
@@ -300,8 +289,6 @@
|
|||||||
title={_("optionsSiteWhitelistAddItem")}
|
title={_("optionsSiteWhitelistAddItem")}
|
||||||
on:click={addItem}
|
on:click={addItem}
|
||||||
type="button"
|
type="button"
|
||||||
>
|
/>
|
||||||
<img src="assets/photon_new.svg" alt="icon, add" />
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ input:placeholder-shown {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bridge__refresh {
|
.bridge__refresh {
|
||||||
|
background-image: url("../assets/photon_refresh.svg");
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -370,7 +371,20 @@ input:placeholder-shown {
|
|||||||
width: -moz-available;
|
width: -moz-available;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.whitelist__edit-button {
|
||||||
|
background-image: url("../assets/photon_edit.svg");
|
||||||
|
}
|
||||||
|
.whitelist__remove-button {
|
||||||
|
background-image: url("../assets/photon_delete.svg");
|
||||||
|
}
|
||||||
|
.whitelist__expand-button {
|
||||||
|
background-image: url("../../assets/photon_arrowhead_down.svg");
|
||||||
|
}
|
||||||
|
.whitelist__item--expanded .whitelist__expand-button {
|
||||||
|
background-image: url("../../assets/photon_arrowhead_up.svg");
|
||||||
|
}
|
||||||
.whitelist__add-button {
|
.whitelist__add-button {
|
||||||
|
background-image: url("../assets/photon_new.svg");
|
||||||
margin-inline-end: auto;
|
margin-inline-end: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user