| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- .components-button {
- &.is-default {
- color: $studio-gray-70;
- border-color: $studio-gray-10;
- background: $white;
- box-shadow: none;
- border-width: 1px 1px 2px;
- &:hover {
- background: $white;
- border-color: $studio-gray-20;
- box-shadow: none;
- color: $studio-gray-70;
- }
- &:focus:enabled {
- background: $white;
- color: $studio-gray-70;
- border-color: $color-primary;
- box-shadow: 0 0 0 2px $color-primary-light;
- }
- &:active:enabled {
- background: $white;
- border-color: $studio-gray-10;
- border-width: 2px 1px 1px;
- box-shadow: none;
- }
- &:disabled,
- &[aria-disabled='true'] {
- color: $studio-gray-50;
- background-color: $white;
- border-color: $studio-gray-50;
- text-shadow: none;
- }
- }
- &.is-primary {
- background: $color-accent;
- border-color: $color-accent-dark;
- box-shadow: none;
- color: $white;
- text-shadow: none;
- &:focus:enabled {
- background: $studio-pink-40;
- border-color: $color-accent;
- color: $white;
- box-shadow: 0 0 0 2px $color-accent-light;
- }
- &:hover {
- box-shadow: none;
- background: $studio-pink-40;
- border-color: $color-accent-dark;
- color: $white;
- }
- &:focus:enabled {
- box-shadow: 0 0 0 2px $color-accent-light;
- }
- &:active:enabled {
- background: $studio-pink-40;
- border-color: $color-accent-dark;
- box-shadow: inset 0 1px 0 $color-accent-dark;
- }
- &:disabled,
- &[aria-disabled='true'] {
- color: $studio-gray-50;
- background: $white;
- border-color: $studio-gray-50;
- text-shadow: none;
- &:hover,
- &:focus,
- &:active {
- color: $studio-gray-50;
- background-color: $white;
- border-color: $studio-gray-50;
- box-shadow: none;
- }
- }
- &.is-busy,
- &.is-busy:disabled,
- &.is-busy[aria-disabled='true'] {
- background-image: linear-gradient(
- -45deg,
- $color-accent 28%,
- $studio-pink-60 28%,
- $studio-pink-60 72%,
- $color-accent 72%
- );
- border-color: $color-accent-dark;
- }
- }
- /* Buttons that look like links, for a cross of good semantics with the visual */
- &.is-link {
- color: $color-link;
- &:hover,
- &:active {
- color: $color-link-dark;
- }
- &:focus {
- color: $color-link-dark;
- box-shadow: 0 0 0 2px $color-primary-light;
- }
- }
- /* Link buttons that are red to indicate destructive behavior. */
- &.is-link.is-destructive {
- color: $alert-red;
- }
- &:focus:enabled {
- // @include button-style__focus-active;
- }
- &.is-busy {
- background-image: repeating-linear-gradient(
- -45deg,
- $studio-gray-50,
- $white 11px,
- $white 10px,
- $studio-gray-50 20px
- );
- }
- // Buttons that are text-based.
- &.is-tertiary {
- color: $color-link;
- &:not( :disabled ):not( [aria-disabled='true'] ):not( .is-default ):hover {
- color: $color-link-dark;
- }
- }
- }
|