Skip to content

Commit

Permalink
meow: publish button is now an animated pride rainbow
Browse files Browse the repository at this point in the history
based on the change sdomi made for her (akkoma) instance
  • Loading branch information
arachnist committed Aug 28, 2024
1 parent 0d2a94b commit 094f124
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ class ComposeForm extends ImmutablePureComponent {
/>
<Button
type='submit'
className='pride-gradient'
text={intl.formatMessage(this.props.isEditing ? messages.saveChanges : (this.props.isInReply ? messages.reply : messages.publish))}
disabled={!this.canSubmit()}
/>
Expand Down
17 changes: 17 additions & 0 deletions app/javascript/flavours/glitch/styles/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,23 @@
}
}

@keyframes gradient {
from {
background-position: 0% 0%;
}
to {
background-position: 200% 0%;
}
}

.pride-gradient {
animation: gradient 6s linear infinite;
background-size: 200% 200%;
background-position: 0% 100%;
background-image: linear-gradient(to left, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787, #e40303);
color: #000;
}

.column__wrapper {
display: flex;
flex: 1 1 auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ class ComposeForm extends ImmutablePureComponent {
<div className='compose-form__submit'>
<Button
type='submit'
className='pride-gradient'
text={intl.formatMessage(this.props.isEditing ? messages.saveChanges : (this.props.isInReply ? messages.reply : messages.publish))}
disabled={!this.canSubmit()}
/>
Expand Down
17 changes: 17 additions & 0 deletions app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,23 @@
}
}

@keyframes gradient {
from {
background-position: 0% 0%;
}
to {
background-position: 200% 0%;
}
}

.pride-gradient {
animation: gradient 6s linear infinite;
background-size: 200% 200%;
background-position: 0% 100%;
background-image: linear-gradient(to left, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787, #e40303);
color: #000;
}

.column__wrapper {
display: flex;
flex: 1 1 auto;
Expand Down

0 comments on commit 094f124

Please sign in to comment.