mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
icon animation
This commit is contained in:
parent
faa41e482a
commit
6dcb75c450
@ -13,7 +13,7 @@
|
||||
<div class="vh-100 position-relative d-flex flex-column border-right flex-shrink-0" :style="{width: feedListWidth+'px'}">
|
||||
<drag :width="feedListWidth" @resize="resizeFeedList"></drag>
|
||||
<div class="p-2 toolbar d-flex align-items-center" style="padding-bottom: 1px;">
|
||||
<div class="icon mx-2" :class="{loading: loading.feeds}">{% inline "anchor.svg" %}</div>
|
||||
<div class="icon mx-2" :class="{'icon-loading': loading.feeds}">{% inline "anchor.svg" %}</div>
|
||||
<div class="text-truncate cursor-default noselect">
|
||||
<span v-if="loading.feeds">Refreshing ({{loading.feeds}} left)</span>
|
||||
</div>
|
||||
@ -190,10 +190,10 @@
|
||||
<span class="icon">{% inline "sliders.svg" %}</span>
|
||||
</button>
|
||||
<button class="toolbar-item"
|
||||
:class="{loading: loading.readability, active: itemSelectedReadability}"
|
||||
:class="{active: itemSelectedReadability}"
|
||||
@click="getReadable(itemSelectedDetails)"
|
||||
v-b-tooltip.hover.bottom="'Read Here'">
|
||||
<span class="icon">{% inline "book-open.svg" %}</span>
|
||||
<span class="icon" :class="{'icon-loading': loading.readability}">{% inline "book-open.svg" %}</span>
|
||||
</button>
|
||||
<a class="toolbar-item" :href="itemSelectedDetails.link" target="_blank" v-b-tooltip.hover.bottom="'Open Link'">
|
||||
<span class="icon">{% inline "external-link.svg" %}</span>
|
||||
|
@ -201,14 +201,14 @@ select.form-control:not([multiple]):not([size]) {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
@keyframes loading {
|
||||
0% {
|
||||
transform: rotate(0)
|
||||
@keyframes stroke {
|
||||
from { stroke-dashoffset: 120; }
|
||||
to { stroke-dashoffset: 0; }
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg)
|
||||
}
|
||||
@keyframes rotate {
|
||||
from { transform: rotate(0); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.loading {
|
||||
@ -219,7 +219,7 @@ select.form-control:not([multiple]):not([size]) {
|
||||
}
|
||||
|
||||
.loading::after {
|
||||
animation: loading .5s infinite linear;
|
||||
animation: rotate .5s infinite linear;
|
||||
border: .1rem solid #6c757d;
|
||||
border-radius: 50%;
|
||||
border-right-color: transparent;
|
||||
@ -236,6 +236,11 @@ select.form-control:not([multiple]):not([size]) {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.icon-loading > svg {
|
||||
animation: stroke 2s infinite normal;
|
||||
stroke-dasharray: 60;
|
||||
}
|
||||
|
||||
.btn-default {
|
||||
border: 1px solid #ced4da;
|
||||
border-radius: .25rem;
|
||||
|
Loading…
x
Reference in New Issue
Block a user