7c9c45ac5f
* split component prepare new views / states
* extract empty and disabled state as components
* fix empty state mail icon
* first logic switching between modes, move page to /private-messages/index.vue
* extract autoCompleteHelper.js
* style header + start new message input
* style plus button + focus input
* state logic, types for sanity
* WIP PM new Message started
* add /members/username test
* first design changes to messageCard
* delete private message or chat - based on the mode
* copy as todo
* mention links to modal
* report chat or private message
* WIP likeButton
* likeButton styling
* hide like on private message cards
* fix unit test
* replace copy as todo - to just a copy to clipboard
* style changes
* menu position + like button width
* dropdown items background + like font
* fix like button padding
* move api endpoints and tests around to group inbox methods + like for inbox private messages
* restyle system messages
* Dropdown Radius and Padding
* WIP system messages
* fix lint
* copy delta commit of allowing liking own private messages
* enable liking private messages
* fix menu non hovered item icon color
* fix import path
* ignore background on system messages
* requested changes + migration
* update migration to update the unique id to some messages and delete the duplicates
* migration based on users pagination
* fix(migration): use Promise.all
* change to bulkWrites per User, and all messages in one run (of a user)
* check for array
* use rest operator ...
* skip sorting to get the users
* remove migration, disable like for private messages without uniqueMessageId
* lean+bulkWrite for likes, add time checks for like and auth for further debugging
* add a limit 2 get the messages by uniqueId
* Adding a simple server start script
* remove pinned nodemon dep
* fix inbox controller/tests
* fix / requested style changes
* fix empty state padding /
* hide avatar weapons on messages - fix avatar spacing on messages
* Hourglass Simplification (#15323)
* begin removing obsolete tests
* begin refactoring
* update cron tests
* cleanup
* finish basic implementation of new logic
* add more subscription tests
* subscription test improvements
* return nextHourglassDate again
* fix gem limit
* fix(test): short circuit this.
* fix(admin): correct logic and style for shrimple subs
* WIP(frontend): draft of main subs page view
* fix hourglass count
* Fix hourglass logic for upgrades
* fix admin panel display
* WIP(subs): extant Stripe state
* fix admin panel strings
* fix missing transaction type
* add new field for cumulative subscription count
* show date for hourglass bonus if it was received
* fix test
* feat(subscription): max Gems progress readout
* fix(css): correct and refactor heights and selection states
* fix(subs): correct border-radius and redirect
* fix(stripe): correct redirect after success
* Admin panel display fixes
* don’t give additional HG for new sub if they already got one this month
* fix issue with promo hourglasses
* fix(subscription): update layout when gifting
* fix(subscriptions): more gift layout revisions
* fix(subscriptions): minor visual updates
* fix(subs): pass autoRenews through Stripe
* fix(subs): gifts DON't renew
* fix(lint): unnecessary ternary
* fix(lint): do negate object ig
* fix(subs): try again on gifts
* fix(subs): unhovery and un-12-monthy
* fix bug with incorrectly giving HG bonus
* remove only
* fix test
* fix test
* fix(subs): also redirect to subs after gift sub
* fix(subs): fix typeError
* fix(g1g1): don't try to find Gems promo during bogo
---------
Co-authored-by: Phillip Thelen <phillip@habitica.com>
Co-authored-by: Kalista Payne <sabe@habitica.com>
* chore(sprites): update subproject
* fix(layout): tighten cancellation note
* fix(subs): Google wording and HG escape
* chore(testing): fake g1g1 dates
* fix(subs): don't hide HG preview entirely
* fix(subs): center next hourglass message
* working validatedTextInput.vue within start-new-conversation-input-header.vue 🎉
* fix(git): remove changes from old develop
* Revert "fix(git): remove changes from old develop"
This reverts commit 0e30f7df00.
* fix(git): no actually just this file i guesss
* adding an empty loading state, hiding
* fought the avatar arch nemesis again
* fix chatMessages (party chat) message spacing
* move disabled text back to above the input area - re-enable input area
* show disabled private messages top panel
* fix font color
* fixing uiStates - removing disabled - moving the own user check to the last
* fix(lint): add missing prop defaults
* fix(lint): object default should be fn
* fix(chat): correct grammar in error
* remove weapon position relative
* revert most of avatar.vue changes, add back weapons in chat message UI
* show date tooltip above system / skill messages
* fix toggle disable icon position
* trivial CSS cleanup
* fix(typo): English syntax in test
* chore(test): small style cleanup
* chore(logging): revert debug function
* chore(debug): remove timers from inbox like
---------
Co-authored-by: SabreCat <sabe@habitica.com>
Co-authored-by: Kalista Payne <sabrecat@gmail.com>
Co-authored-by: Phillip Thelen <phillip@habitica.com>
319 lines
6.7 KiB
SCSS
319 lines
6.7 KiB
SCSS
.btn {
|
|
cursor: pointer;
|
|
font-family: 'Roboto', sans-serif;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
line-height: 1.714;
|
|
border: 2px solid transparent;
|
|
padding: 2px 12px;
|
|
border-radius: 4px;
|
|
box-shadow: 0 1px 3px 0 rgba($black, 0.12), 0 1px 2px 0 rgba($black, 0.24);
|
|
color: $white;
|
|
|
|
&:hover, &:focus {
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
|
|
&.btn-flat {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
&:focus {
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
}
|
|
|
|
&:active, &.active:not(.btn-flat) {
|
|
box-shadow: none;
|
|
}
|
|
|
|
&:disabled, &.disabled {
|
|
cursor: default;
|
|
color: $gray-50;
|
|
opacity: 0.75;
|
|
box-shadow: none;
|
|
background-color: $gray-700;
|
|
border: 2px solid transparent;
|
|
|
|
.svg {
|
|
color: $gray-300;
|
|
}
|
|
}
|
|
|
|
&.with-icon {
|
|
height: 32px; // otherwise would something set the height to 33px
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
.btn-front {
|
|
border: none !important;
|
|
font-size: 16px;
|
|
padding: 2px 17px;
|
|
|
|
&:hover {
|
|
border: none !important;
|
|
}
|
|
}
|
|
|
|
.btn-primary {
|
|
background: $purple-200;
|
|
border: 2px solid transparent;
|
|
line-height: 1.714;
|
|
--icon-color: #{$purple-500};
|
|
|
|
&:focus {
|
|
background: $purple-200;
|
|
border: 2px solid $purple-400;
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
--icon-color: #{$white};
|
|
}
|
|
|
|
&:not(:disabled):not(.disabled) {
|
|
&:hover {
|
|
background: $purple-200;
|
|
border: 2px solid transparent;
|
|
|
|
--icon-color: #{$white};
|
|
}
|
|
|
|
&:active, &.active {
|
|
background: $purple-200;
|
|
border: 2px solid transparent;
|
|
box-shadow: none;
|
|
|
|
--icon-color: #{$white};
|
|
}
|
|
|
|
&:active:focus, &.active:focus {
|
|
box-shadow: none;
|
|
border: 2px solid $purple-400;
|
|
}
|
|
}
|
|
|
|
&.with-icon {
|
|
.svg-icon.color {
|
|
color: var(--icon-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn-secondary,
|
|
.dropdown > .btn-secondary.dropdown-toggle:not(.btn-success),
|
|
.show > .btn-secondary.dropdown-toggle:not(.btn-success) {
|
|
background: $white;
|
|
border: 2px solid transparent;
|
|
color: $gray-50;
|
|
|
|
--icon-color: #{$gray-200};
|
|
|
|
&:focus, &:active {
|
|
background: $white;
|
|
border: 2px solid $purple-400;
|
|
color: $gray-50;
|
|
|
|
--icon-color: #{$purple-300};
|
|
}
|
|
|
|
&:not(:disabled):not(.disabled) {
|
|
&:active, &.active {
|
|
background: $white;
|
|
border: 2px solid $purple-400;
|
|
color: $purple-300;
|
|
--icon-color: #{$purple-300};
|
|
|
|
&:focus {
|
|
color: $purple-300;
|
|
border: 2px solid $purple-400;
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
}
|
|
|
|
&:active {
|
|
box-shadow: none;
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
color: $purple-300;
|
|
|
|
background: $white !important;
|
|
border: 2px solid transparent;
|
|
|
|
--icon-color: #{$purple-300};
|
|
.svg {
|
|
color: $purple-300;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.with-icon {
|
|
.svg-icon.color {
|
|
color: var(--icon-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.show > .btn-secondary.dropdown-toggle:not(.btn-success):not(:disabled):not(.disabled) {
|
|
--icon-color: #{$purple-300};
|
|
}
|
|
|
|
.btn-danger {
|
|
background: $maroon-100;
|
|
border: 2px solid transparent;
|
|
box-shadow: 0 1px 3px 0 rgba($black, 0.16), 0 1px 3px 0 rgba($black, 0.24);
|
|
|
|
|
|
&:hover:not(:disabled):not(.disabled) {
|
|
background: $maroon-100;
|
|
border: 2px solid transparent;
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
}
|
|
|
|
&:focus {
|
|
background: $maroon-100;
|
|
border: 2px solid $purple-400;
|
|
}
|
|
|
|
&:not(:disabled):not(.disabled):active:focus, &:not(:disabled):not(.disabled).active:focus {
|
|
box-shadow: none;
|
|
border: 2px solid $purple-400;
|
|
}
|
|
|
|
&:not(:disabled):not(.disabled):active, &:not(:disabled):not(.disabled).active {
|
|
background: $maroon-100;
|
|
border: 2px solid $purple-400;
|
|
}
|
|
}
|
|
|
|
.btn-warning {
|
|
background: $orange-10;
|
|
box-shadow: 0 1px 3px 0 rgba($black, 0.16), 0 1px 3px 0 rgba($black, 0.24);
|
|
color: $white !important;
|
|
|
|
&:hover:not(:disabled):not(.disabled) {
|
|
background: $orange-10;
|
|
color: $white;
|
|
}
|
|
|
|
&:focus {
|
|
background: $orange-10;
|
|
border: 2px solid $purple-400;
|
|
}
|
|
|
|
&:not(:disabled):not(.disabled):active:focus, &:not(:disabled):not(.disabled).active:focus {
|
|
border: 2px solid $purple-400;
|
|
box-shadow: none;
|
|
}
|
|
|
|
&:not(:disabled):not(.disabled):active, &:not(:disabled):not(.disabled).active {
|
|
background: $orange-10;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.btn-success {
|
|
background: $green-50;
|
|
border: 2px solid transparent;
|
|
|
|
&:hover:not(:disabled):not(.disabled) {
|
|
background: $green-50;
|
|
border: 2px solid transparent;
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
}
|
|
|
|
&:focus {
|
|
background: $green-50;
|
|
border: 2px solid $purple-400;
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
}
|
|
|
|
&:not(:disabled):not(.disabled):active:focus, &:not(:disabled):not(.disabled).active:focus {
|
|
border: 2px solid $purple-400;
|
|
box-shadow: none;
|
|
}
|
|
|
|
&:not(:disabled):not(.disabled):active, &:not(:disabled):not(.disabled).active {
|
|
background: $green-50;
|
|
border: 2px solid $purple-400;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.btn-info {
|
|
background: $blue-50;
|
|
border: 2px solid transparent;
|
|
box-shadow: 0 1px 3px 0 rgba($black, 0.16), 0 1px 3px 0 rgba($black, 0.24);
|
|
|
|
&:disabled {
|
|
background: $blue-50;
|
|
box-shadow: none;
|
|
}
|
|
|
|
&:hover {
|
|
border: 2px solid transparent;
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
}
|
|
|
|
&:focus {
|
|
background: $blue-100;
|
|
border: 2px solid $purple-400;
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
}
|
|
|
|
&:hover:not(:disabled):not(.disabled) {
|
|
background-color: $blue-100;
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
}
|
|
|
|
&:active:not(:disabled):not(.disabled), &.active:not(:disabled):not(.disabled) {
|
|
background: $blue-100;
|
|
border: 2px solid $purple-400;
|
|
box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24);
|
|
}
|
|
}
|
|
|
|
.btn-show-more {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 8px;
|
|
font-size: 14px;
|
|
line-height: 1.714;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
background: $gray-500;
|
|
color: $gray-200 !important; // Otherwise it gets ignored when used on an A element
|
|
box-shadow: none;
|
|
|
|
&:hover {
|
|
box-shadow: none;
|
|
color: inherit !important;
|
|
}
|
|
}
|
|
|
|
.btn-flat {
|
|
border: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn-flat,
|
|
.dropdown > .btn-flat.dropdown-toggle:not(.btn-success),
|
|
.show > .btn-flat.dropdown-toggle:not(.btn-success) {
|
|
&.with-icon {
|
|
.svg-icon.color {
|
|
color: var(--icon-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn-cancel {
|
|
color: $blue-10;
|
|
}
|
|
|
|
.btn-small {
|
|
font-size: 12px;
|
|
line-height: 2;
|
|
padding: 2px 2px;
|
|
}
|