Created
June 29, 2023 23:55
-
-
Save bknie1/60092036bbc5d1b07e0cbffa65ad0636 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SETTINGS | |
| $gold: #ffbf00; | |
| $gold-hover: #FFCC33; | |
| $blue: #022851; | |
| $font: "Arial"; | |
| // TOOLS | |
| @mixin c-button-transition { | |
| transition: 0.2s padding ease-out; | |
| transition: all 0.15s ease-in-out; | |
| } | |
| @mixin c-button-link { | |
| color: $blue; | |
| text-decoration: none; | |
| } | |
| // GENERICS | |
| .g-flexbox { | |
| display: flex; | |
| } | |
| @media screen and (max-width: 768px) { | |
| // None | |
| } | |
| @media screen and (max-width: 1024px) { | |
| .g-flexbox { | |
| flex-direction: column; | |
| } | |
| } | |
| @media screen and (min-width: 1024px) { | |
| // None | |
| } | |
| // COMPONENTS: BUTTON | |
| .c-button { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: auto; | |
| min-width: 10ch; | |
| min-height: 2.5em; | |
| margin-bottom: 0; | |
| padding: 0.625em 1em; | |
| border: 1px solid #b0d0ed; | |
| background-color: transparent; | |
| color: #022851; | |
| cursor: pointer; | |
| font-family: $font; | |
| font-weight: 700; | |
| line-height: 1.1; | |
| text-align: center; | |
| margin-right: 0.5rem; | |
| margin-bottom: 0.5rem; | |
| font-size: 0.75em; | |
| position: relative; | |
| padding-right: 1.2em; | |
| padding-left: 1.2em; | |
| &__text { | |
| @include c-button-link; | |
| } | |
| &:hover { | |
| @include c-button-transition; | |
| } | |
| &--primary { | |
| background-color: $gold; | |
| border-color: transparent; | |
| &:hover { | |
| background-color: $gold-hover; | |
| } | |
| } | |
| &--secondary { | |
| background-color: transparent; | |
| border-color: rgb(255, 191, 0); | |
| &:hover { | |
| background-color: $gold-hover; | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| BEMIT essentially provides a path of ownership | |
| for each asset's style: | |
| - '.c' denotes that this lives in our 'component' directory (ITCSS) | |
| - .c-button is our default button style | |
| - .c-button--primary is our modified button style | |
| - .c-button--secondary is another modified button style | |
| - .c-button owns c-button__text | |
| --> | |
| <div class="g-flexbox"> | |
| <div class="c-button c-button--primary"> | |
| <a class="c-button__text" href="#"> | |
| PRIMARY | |
| </a> | |
| </div> | |
| <div class="c-button c-button--secondary"> | |
| <a class="c-button__text" href="#"> | |
| SECONDARY | |
| </a> | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .g-flexbox { | |
| display: flex; | |
| } | |
| @media screen and (max-width: 1024px) { | |
| .g-flexbox { | |
| flex-direction: column; | |
| } | |
| } | |
| .c-button { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: auto; | |
| min-width: 10ch; | |
| min-height: 2.5em; | |
| margin-bottom: 0; | |
| padding: 0.625em 1em; | |
| border: 1px solid #b0d0ed; | |
| background-color: transparent; | |
| color: #022851; | |
| cursor: pointer; | |
| font-family: "Arial"; | |
| font-weight: 700; | |
| line-height: 1.1; | |
| text-align: center; | |
| margin-right: 0.5rem; | |
| margin-bottom: 0.5rem; | |
| font-size: 0.75em; | |
| position: relative; | |
| padding-right: 1.2em; | |
| padding-left: 1.2em; | |
| } | |
| .c-button__text { | |
| color: #022851; | |
| text-decoration: none; | |
| } | |
| .c-button:hover { | |
| transition: 0.2s padding ease-out; | |
| transition: all 0.15s ease-in-out; | |
| } | |
| .c-button--primary { | |
| background-color: #ffbf00; | |
| border-color: transparent; | |
| } | |
| .c-button--primary:hover { | |
| background-color: #FFCC33; | |
| } | |
| .c-button--secondary { | |
| background-color: transparent; | |
| border-color: #ffbf00; | |
| } | |
| .c-button--secondary:hover { | |
| background-color: #FFCC33; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "sass": { | |
| "compiler": "dart-sass/1.32.12", | |
| "extensions": {}, | |
| "syntax": "SCSS", | |
| "outputStyle": "expanded" | |
| }, | |
| "autoprefixer": false | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment