style(desktop): update button styles in EntryListHeader and FeedItem components
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
+2
-1
@@ -174,7 +174,7 @@ const PreviewHeaderInfoWrapper: Component = ({ children }) => {
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
className="text-accent cursor-button hover:bg-fill-quaternary -mr-2 rounded px-2 py-0.5 font-semibold"
|
||||
className="text-accent cursor-button from-accent/10 via-accent/15 to-accent/20 hover:bg-accent animate-gradient-x -mr-2 flex items-center gap-1.5 rounded-md bg-gradient-to-r px-3 py-1 font-semibold transition-all duration-300 hover:text-white"
|
||||
onClick={() => {
|
||||
const { feedId, listId } = getRouteParams()
|
||||
if (!feedId) return
|
||||
@@ -187,6 +187,7 @@ const PreviewHeaderInfoWrapper: Component = ({ children }) => {
|
||||
})
|
||||
}}
|
||||
>
|
||||
<i className="i-mgc-add-cute-re size-4" />
|
||||
{tCommon("words.follow")}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -225,6 +225,7 @@ const FeedItemImpl = ({ view, feedId, className, isPreview }: FeedItemProps) =>
|
||||
<Button
|
||||
size="sm"
|
||||
variant="ghost"
|
||||
buttonClassName="!p-1 mr-0.5"
|
||||
onClick={() => {
|
||||
follow({
|
||||
isList: false,
|
||||
@@ -320,6 +321,7 @@ const ListItemImpl: Component<{
|
||||
<Button
|
||||
size="sm"
|
||||
variant="ghost"
|
||||
buttonClassName="!p-1 mr-0.5"
|
||||
onClick={() => {
|
||||
follow({
|
||||
isList: true,
|
||||
|
||||
@@ -61,11 +61,21 @@ export default extendConfig({
|
||||
from: { height: "var(--radix-accordion-content-height)" },
|
||||
to: { height: "0" },
|
||||
},
|
||||
"gradient-x": {
|
||||
"0%, 100%": {
|
||||
backgroundPosition: "0% 50%",
|
||||
},
|
||||
"50%": {
|
||||
backgroundPosition: "100% 50%",
|
||||
},
|
||||
},
|
||||
},
|
||||
animation: {
|
||||
"caret-blink": "caret-blink 1.25s ease-out infinite",
|
||||
"accordion-down": "accordion-down 0.2s ease-out",
|
||||
"accordion-up": "accordion-up 0.2s ease-out",
|
||||
"gradient-x": "gradient-x 3s linear infinite",
|
||||
glow: "glow 1.5s ease-in-out infinite",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user