Skip to content

Instantly share code, notes, and snippets.

@odessy
Created May 8, 2024 19:14
Show Gist options
  • Save odessy/6736bb8f0fbf8cdf2d5874ef23cdd1c9 to your computer and use it in GitHub Desktop.
Save odessy/6736bb8f0fbf8cdf2d5874ef23cdd1c9 to your computer and use it in GitHub Desktop.
Pipeline 7 Custom button outline style
.button.outline {
--btn-text: var(--text);
--btn-bg-hover: var(--hairline);
--btn-bg: rgb(255 255 255 / 0%);
font-family: var(--TYPE-STACK-BUTTON);
font-style: var(--TYPE-STYLE-BUTTON);
font-weight: var(--TYPE-WEIGHT-BUTTON);
text-transform: var(--FONT-BUTTON-TRANSFORM);
letter-spacing: var(--FONT-BUTTON-LETTER-SPACING);
display: inline-block;
padding: var(--space-3) var(--space-5);
text-decoration: none;
text-align: center;
vertical-align: middle;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: var(--BUTTON-RADIUS);
font-size: calc(var(--font-3) * var(--TYPE-ADJUST-BUTTON));
background-color: #fff0;
transition: background-color .5s cubic-bezier(.215,.61,.355,1);
border: 1px solid var(--btn-text);
color: var(--btn-text);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment