Last active
June 29, 2023 23:43
-
-
Save bknie1/fc96026315b1fbba5f36ac74f0459177 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
| $gold: #ffbf00; | |
| $gold-hover: #FFCC33; | |
| $blue: #022851; | |
| $font: "Arial"; | |
| @mixin c-button-transition { | |
| transition: 0.2s padding ease-out; | |
| transition: all 0.15s ease-in-out; | |
| } | |
| .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; | |
| .button__text { | |
| text-decoration: none; | |
| } | |
| &:hover { | |
| @include c-button-transition; | |
| } | |
| &.c-button--primary { | |
| background-color: $gold; | |
| border-color: transparent; | |
| .button__text { | |
| color: $blue; | |
| } | |
| &:hover { | |
| background-color: $gold-hover; | |
| } | |
| } | |
| &.c-button--secondary { | |
| background-color: transparent; | |
| border-color: rgb(255, 191, 0); | |
| .button__text { | |
| color: $blue; | |
| } | |
| &:hover { | |
| background-color: $gold-hover; | |
| } | |
| } | |
| } | |
| @media screen and (max-width: 768px) { | |
| } | |
| @media screen and (max-width: 1024px) { | |
| } | |
| @media screen and (min-width: 1024px) { | |
| } |
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="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> |
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
| .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 .button__text { | |
| text-decoration: none; | |
| } | |
| .c-button:hover { | |
| transition: 0.2s padding ease-out; | |
| transition: all 0.15s ease-in-out; | |
| } | |
| .c-button.c-button--primary { | |
| background-color: #ffbf00; | |
| border-color: transparent; | |
| } | |
| .c-button.c-button--primary .button__text { | |
| color: #022851; | |
| } | |
| .c-button.c-button--primary:hover { | |
| background-color: #FFCC33; | |
| } | |
| .c-button.c-button--secondary { | |
| background-color: transparent; | |
| border-color: #ffbf00; | |
| } | |
| .c-button.c-button--secondary .button__text { | |
| color: #022851; | |
| } | |
| .c-button.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