2018-01-20 20:35:38 +00:00
|
|
|
<li class="settings-list-item">
|
2018-05-02 00:05:36 +00:00
|
|
|
<a {href}>
|
|
|
|
{#if icon}
|
2018-03-16 15:42:10 +00:00
|
|
|
<svg class="settings-list-item-svg">
|
2018-05-02 00:05:36 +00:00
|
|
|
<use xlink:href={icon} />
|
2018-01-14 04:07:11 +00:00
|
|
|
</svg>
|
2018-05-02 00:05:36 +00:00
|
|
|
{/if}
|
|
|
|
<span aria-label={ariaLabel || label} class={offsetForIcon ? 'offset-for-icon' : ''}>
|
|
|
|
{label}
|
2018-01-21 09:19:28 +00:00
|
|
|
</span>
|
2018-01-14 04:07:11 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-01-13 20:12:17 +00:00
|
|
|
<style>
|
2018-02-02 02:33:40 +00:00
|
|
|
.settings-list-item {
|
2018-01-13 20:12:17 +00:00
|
|
|
border: 1px solid var(--settings-list-item-border);
|
|
|
|
font-size: 1.3em;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2018-01-20 20:35:38 +00:00
|
|
|
.settings-list-item a {
|
2018-01-14 04:07:11 +00:00
|
|
|
display: flex;
|
2018-02-04 00:15:46 +00:00
|
|
|
padding: 20px 40px;
|
2018-01-14 04:07:11 +00:00
|
|
|
background: var(--settings-list-item-bg);
|
|
|
|
}
|
2018-01-20 20:35:38 +00:00
|
|
|
.settings-list-item a, .settings-list-item a:visited {
|
2018-01-13 20:12:17 +00:00
|
|
|
color: var(--settings-list-item-text);
|
|
|
|
}
|
2018-01-20 20:35:38 +00:00
|
|
|
.settings-list-item a:hover {
|
2018-01-13 20:12:17 +00:00
|
|
|
text-decoration: none;
|
|
|
|
background: var(--settings-list-item-bg-hover);
|
|
|
|
color: var(--settings-list-item-text-hover);
|
|
|
|
}
|
2018-01-20 20:35:38 +00:00
|
|
|
.settings-list-item a:active {
|
2018-01-13 20:12:17 +00:00
|
|
|
background: var(--settings-list-item-bg-active);
|
|
|
|
}
|
2018-03-16 15:42:10 +00:00
|
|
|
.settings-list-item-svg {
|
2018-01-14 04:07:11 +00:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 20px;
|
|
|
|
fill: var(--svg-fill);
|
|
|
|
}
|
2018-01-20 20:35:38 +00:00
|
|
|
.settings-list-item .offset-for-icon {
|
2018-01-14 04:07:11 +00:00
|
|
|
margin-left: 44px;
|
|
|
|
}
|
2018-01-20 23:37:40 +00:00
|
|
|
.settings-list-item span {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2018-01-14 04:07:11 +00:00
|
|
|
|
2018-01-31 17:06:06 +00:00
|
|
|
@media (max-width: 767px) {
|
|
|
|
.settings-list-item a {
|
|
|
|
padding: 20px 10px;
|
|
|
|
}
|
2018-03-16 15:42:10 +00:00
|
|
|
.settings-list-item-svg {
|
2018-01-31 17:06:06 +00:00
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
.settings-list-item .offset-for-icon {
|
|
|
|
margin-left: 34px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-30 16:57:49 +00:00
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data: () => ({
|
|
|
|
icon: void 0,
|
|
|
|
ariaLabel: void 0,
|
|
|
|
offsetForIcon: void 0
|
|
|
|
})
|
|
|
|
}
|
|
|
|
</script>
|