Design patch 7 (#1286)
* Adjust thumbnail hover effect * Increase thumbnail border transparency
This commit is contained in:
parent
63079638a4
commit
a0254740bc
3 changed files with 13 additions and 7 deletions
|
@ -36,7 +36,7 @@ function FileWatchLaterLink(props: Props) {
|
|||
const title = hasClaimInWatchLater ? __('Remove from Watch Later') : __('Add to Watch Later');
|
||||
|
||||
// label that is shown after hover
|
||||
const label = !hasClaimInWatchLater ? __('Add') : __('Added');
|
||||
const label = !hasClaimInWatchLater ? __('Watch later') : __('Remove');
|
||||
|
||||
return (
|
||||
<Button
|
||||
|
|
|
@ -378,7 +378,7 @@
|
|||
|
||||
flex-shrink: 0;
|
||||
margin-right: var(--spacing-s);
|
||||
box-shadow: 0px 0px 0px 1px rgba(var(--color-primary-dynamic), 0.3) inset;
|
||||
box-shadow: 0px 0px 0px 1px rgba(var(--color-primary-dynamic), 0.2) inset;
|
||||
}
|
||||
|
||||
.media__thumb-placeholder-text {
|
||||
|
@ -1290,19 +1290,25 @@ $claim-preview-progress-bar-height: 5px;
|
|||
.button--file-action {
|
||||
width: auto;
|
||||
max-width: 25.59px;
|
||||
transition: max-width 0.1s;
|
||||
transition: max-width 0.2s;
|
||||
padding: 0.3rem !important;
|
||||
|
||||
.button__content {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
.button__label {
|
||||
margin-top: 0;
|
||||
margin-top: -1px;
|
||||
padding-top: 0px;
|
||||
margin-bottom: -4px;
|
||||
margin-left: var(--spacing-xxs);
|
||||
margin-left: 4px;
|
||||
margin-right: var(--spacing-xxs);
|
||||
text-overflow: hidden;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
width: auto;
|
||||
max-width: 60px;
|
||||
min-width: 25.59px;
|
||||
max-width: 140px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
box-shadow: 0px 0px 0px 1px rgba(var(--color-primary-dynamic), 0.3) inset;
|
||||
box-shadow: 0px 0px 0px 1px rgba(var(--color-primary-dynamic), 0.2) inset;
|
||||
}
|
||||
|
||||
// M E D I A
|
||||
|
|
Loading…
Reference in a new issue