mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-29 12:48:57 +03:00
Make refresh button more prominent
This commit is contained in:
parent
04d431cf71
commit
37c784dad2
2 changed files with 29 additions and 13 deletions
|
@ -1,16 +1,32 @@
|
||||||
.status-deck header {
|
.status-deck {
|
||||||
white-space: nowrap;
|
header {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
header h1 {
|
||||||
|
min-width: 0;
|
||||||
|
flex-grow: 1;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
align-self: stretch;
|
||||||
|
}
|
||||||
|
header h1 .deck-back {
|
||||||
|
margin-left: -16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-refresh .icon {
|
||||||
|
animation: spin 1s linear;
|
||||||
|
}
|
||||||
|
.button-refresh:is(:hover, :focus) .icon {
|
||||||
|
transition: transform 1s linear;
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.status-deck header h1 {
|
|
||||||
min-width: 0;
|
@keyframes spin {
|
||||||
flex-grow: 1;
|
to {
|
||||||
text-overflow: ellipsis;
|
transform: rotate(360deg);
|
||||||
overflow: hidden;
|
}
|
||||||
white-space: nowrap;
|
|
||||||
align-self: stretch;
|
|
||||||
}
|
|
||||||
.status-deck header h1 .deck-back {
|
|
||||||
margin-left: -16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-heading {
|
.hero-heading {
|
||||||
|
|
|
@ -1118,7 +1118,7 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
|
||||||
{showRefresh && (
|
{showRefresh && (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="plain4"
|
class="plain button-refresh"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
states.reloadStatusPage++;
|
states.reloadStatusPage++;
|
||||||
setShowRefresh(false);
|
setShowRefresh(false);
|
||||||
|
|
Loading…
Reference in a new issue