33b249d078
* Added initial bailey api
* wip
* implement new panel header
* Fixed lint
* add ability to mark notification as seen
* add notification count, remove top badge from user and add ability to mark multiple notifications as seen
* add support dismissall and mark all as read
* do not dismiss actionable notif
* mark as seen when menu is opened instead of closed
* implement ordering, list of actionable notifications
* add groups messages and fix badges count
* add notifications for received cards
* send card received notification to target not sender
* rename notificaion field
* fix integration tests
* mark cards notifications as read and update tests
* add mystery items notifications
* add unallocated stats points notifications
* fix linting
* simplify code
* refactoring and fixes
* fix dropdown opening
* start splitting notifications into their own component
* add notifications for inbox messages
* fix unit tests
* fix default buttons styles
* add initial bailey support
* add title and tests to new stuff notification
* add notification if a group task needs more work
* add tests and fixes for marking a task as needing more work
* make sure user._v is updated
* remove console.log
* notification: hover status and margins
* start styling notifications, add separate files and basic functionalities
* fix tests
* start adding mystery items notification
* wip card notification
* fix cards text
* initial implementation inbox messages
* initial implementation group messages
* disable inbox notifications until mobile is ready
* wip group chat messages
* finish mystery and card notifications
* add bailey notification and fix a lot of stuff
* start adding guilds and parties invitations
* misc invitation fixes
* fix lint issues
* remove old code and add key to notifications
* fix tests
* remove unused code
* add link for public guilds invite
* starts to implement needs work notification design and feature
* fixes to needs work, add group task approved notification
* finish needs work feature
* lots of fixes
* implement quest notification
* bailey fixes and static page
* routing fixes
* fixes # this.$store.dispatch(guilds:join, {groupId: group.id, type: party});
* read notifications on click
* chat notifications
* fix tests for chat notifications
* fix chat notification test
* fix tests
* fix tests (again)
* try awaiting
* remove only
* more sleep
* add bailey tests
* fix icons alignment
* fix issue with multiple points notifications
* remove merge code
* fix rejecting guild invitation
* make remove area bigger
* fix error with notifications and add migration
* fix migration
* fix typos
* add cleanup migration too
* notifications empty state, new counter color, fix marking messages as seen in guilds
* fixes
* add image and install correct packages
* fix mongoose version
* update bailey
* typo
* make sure chat is marked as read after other requests
146 lines
2.6 KiB
SCSS
146 lines
2.6 KiB
SCSS
@mixin btn-focus-hover-shadow () {
|
|
box-shadow: 0 4px 4px 0 rgba($black, 0.16), 0 1px 8px 0 rgba($black, 0.12);
|
|
}
|
|
|
|
.btn {
|
|
cursor: pointer;
|
|
font-family: 'Roboto Condensed', sans-serif;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
line-height: 1.5;
|
|
border: 1px solid transparent !important;
|
|
padding: 7.5px 15.5px;
|
|
border-radius: 2px;
|
|
box-shadow: 0 2px 2px 0 rgba($black, 0.16), 0 1px 4px 0 rgba($black, 0.12);
|
|
color: $white;
|
|
|
|
&:focus:not(.btn-flat) {
|
|
outline: none;
|
|
border-color: $purple-400;
|
|
@include btn-focus-hover-shadow();
|
|
}
|
|
|
|
&:hover:not(.btn-flat) {
|
|
@include btn-focus-hover-shadow();
|
|
border-color: transparent;
|
|
}
|
|
|
|
&:active:not(.btn-flat), &.active:not(.btn-flat) {
|
|
box-shadow: none !important;
|
|
border: 1px solid transparent;
|
|
}
|
|
}
|
|
|
|
.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
|
|
color: $white !important;
|
|
}
|
|
|
|
.btn:disabled, .btn.disabled {
|
|
box-shadow: none;
|
|
opacity: 0.64;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: $purple-200;
|
|
|
|
&:disabled {
|
|
background: $purple-200;
|
|
}
|
|
|
|
&:hover:not(:disabled), &:active, &.active, &:focus {
|
|
background: #5d3b9c !important;
|
|
color: $white;
|
|
}
|
|
}
|
|
|
|
.btn-secondary, .dropdown > .btn-secondary {
|
|
color: $gray-50;
|
|
background: $white !important;
|
|
|
|
&:hover:not(:disabled):not(.disabled), &:active, &.active, &:focus {
|
|
color: $purple-200 !important;
|
|
}
|
|
|
|
&:active, &:focus, &.active {
|
|
border-color: $purple-500 !important;
|
|
}
|
|
|
|
&:disabled, &.disabled {
|
|
background: $gray-500 !important;
|
|
color: $gray-100 !important;
|
|
}
|
|
}
|
|
|
|
.btn-success {
|
|
background: $green-10;
|
|
|
|
&:disabled {
|
|
background: $green-10;
|
|
}
|
|
|
|
&:hover:not(:disabled), &:active, &.active {
|
|
background: $green-50;
|
|
}
|
|
}
|
|
|
|
.show > .btn-success.dropdown-toggle {
|
|
background: $green-50;
|
|
}
|
|
|
|
.btn-info {
|
|
background: $blue-50;
|
|
|
|
&:disabled {
|
|
background: $blue-50;
|
|
}
|
|
|
|
&:hover:not(:disabled), &:active, &.active {
|
|
background: $blue-100;
|
|
}
|
|
}
|
|
|
|
.btn-danger {
|
|
background: $red-50;
|
|
|
|
&:disabled {
|
|
background: $red-50;
|
|
}
|
|
|
|
&:hover:not(:disabled), &:active, &.active {
|
|
background: $red-100;
|
|
}
|
|
}
|
|
|
|
.btn-show-more {
|
|
display: block;
|
|
width: 50%;
|
|
max-width: 448px;
|
|
margin: 0 auto;
|
|
margin-top: 12px;
|
|
padding: 8px;
|
|
font-size: 14px;
|
|
line-height: 1.43;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
background: $gray-600;
|
|
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-small {
|
|
font-size: 12px;
|
|
line-height: 1.33;
|
|
padding: 4px 8px;
|
|
}
|