Files
habitica/website/client/assets/scss/button.scss
T
Sabe Jones 01d272d2c4 Teams Updates 201908 (#11347)
* fix(teams): no hover bg change for noninteractive checkboxes

* feat(teams): send notification to managers on task claim
Also fix client unit test broken by prev commit

* feat(groups): don't penalize for tasks assigned since last activity

* fix(tests): actually fix client unit

* fix(teams): improve task styles

* fix(teams): let people other than leader see relevant approvals
Also more style fixes

* fix(approvals): better filtering and task headings for approval data

* fix(test): correct test expectations for new GET /approvals behavior

* fix(groups): style tweaks

* different border for group and normal tasks

* fix(teams): remove extra click for claiming

* fix(teams): leaders & managers can check off approval-required tasks

* fix(teams): don't notify user of own claim

* fix group task margin and z-index on hover

* fix(menu): sporadic error in top bar

* fix(teams): more approval header and footer adjustments

* fix(tests): adjust expectations for self-approval

* fix(teams): address PR comments

* refactor(timestamps): date user activity on authenticated requests

* refactor(timestamps): update local user instead of direct db update
2019-09-26 14:49:11 -04:00

147 lines
2.7 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):not(.disabled) {
@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;
cursor: default;
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-100;
&:disabled {
background: $green-100;
}
&: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;
}