Skip to content

Instantly share code, notes, and snippets.

@nickgrato
Created November 9, 2022 23:03
Show Gist options
  • Save nickgrato/daa9f57ca054c1352589aca9849a12c8 to your computer and use it in GitHub Desktop.
Save nickgrato/daa9f57ca054c1352589aca9849a12c8 to your computer and use it in GitHub Desktop.
Button Styles
/******************************
PRIMARY BUTTONS
******************************/
/*-------------------------------
SOLID BUTTON
-------------------------------*/
.button_primary_solid {
@include rect_button_base();
background-color: $color-interaction-primary;
border: solid 2px $color-interaction-primary;
color: $color-text-reverse;
&:hover:enabled {
background-color: $color-interaction-primary-hover;
border: solid 2px $color-interaction-primary-hover;
}
&_active,
&:focus {
border: solid 2px $color-interaction-primary-active;
background-color: $color-interaction-primary-active;
}
&:disabled,
&[disabled] {
background-color: $color-interaction-primary-disabled;
border: solid 2px $color-interaction-primary-disabled;
color: $color-text-disabled;
}
}
/*-------------------------------
SIZES
-------------------------------*/
.small {
padding: 6px 12px;
}
.medium {
padding: 8px 16px;
}
.large {
padding: 12px 18px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment