parent
85b75900c1
commit
e5125a5a63
|
@ -33,11 +33,11 @@
|
||||||
</form>
|
</form>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="poll-details">
|
<div class="poll-details">
|
||||||
<div class="poll-stat">
|
<div class="poll-stat {notification ? 'is-notification' : ''}">
|
||||||
<SvgIcon className="poll-icon" href="#fa-bar-chart" />
|
<SvgIcon className="poll-icon" href="#fa-bar-chart" />
|
||||||
<span class="poll-stat-text">{votesCount} {votesCount === 1 ? 'vote' : 'votes'}</span>
|
<span class="poll-stat-text">{votesCount} {votesCount === 1 ? 'vote' : 'votes'}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="poll-stat">
|
<div class="poll-stat {notification ? 'is-notification' : ''}">
|
||||||
<SvgIcon className="poll-icon" href="#fa-clock" />
|
<SvgIcon className="poll-icon" href="#fa-clock" />
|
||||||
<span class="poll-stat-text poll-stat-expiry">
|
<span class="poll-stat-text poll-stat-expiry">
|
||||||
<span class="{useNarrowSize ? 'sr-only' : ''}">{expiryText}</span>
|
<span class="{useNarrowSize ? 'sr-only' : ''}">{expiryText}</span>
|
||||||
|
@ -46,7 +46,8 @@
|
||||||
</time>
|
</time>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<button class="poll-stat {expired ? 'poll-expired' : ''}" id={refreshElementId}>
|
<button class="poll-stat {notification ? 'is-notification' : ''} {expired ? 'poll-expired' : ''}"
|
||||||
|
id={refreshElementId}>
|
||||||
<SvgIcon className="poll-icon" href="#fa-refresh" />
|
<SvgIcon className="poll-icon" href="#fa-refresh" />
|
||||||
<span class="poll-stat-text">
|
<span class="poll-stat-text">
|
||||||
Refresh
|
Refresh
|
||||||
|
@ -152,6 +153,14 @@
|
||||||
color: var(--deemphasized-text-color);
|
color: var(--deemphasized-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.poll-stat.is-notification {
|
||||||
|
color: var(--very-deemphasized-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.poll-stat.is-notification .poll-icon) {
|
||||||
|
fill: var(--very-deemphasized-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
.poll-stat.poll-expired {
|
.poll-stat.poll-expired {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue