-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs(ci): Introduce manual testing section with Netlify links tweak
* @see: https://gist.github.com/adamkudrna/694f3048c1338f07375b9b8af24afe2f * Many thanks to @adamkudrna refs #DS-611
- Loading branch information
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* Disable some rules because we are tweaking GitHub's PR look */ | ||
/* stylelint-disable declaration-no-important */ | ||
/* stylelint-disable selector-no-qualifying-type */ | ||
|
||
/** | ||
* Make Netlify deploy preview links on GitHub stand out. | ||
*/ | ||
@-moz-document domain("github.com") { | ||
/* Turn Netlify links into buttons using GitHub design tokens. */ | ||
.comment-body a[href$='netlify.app'] { | ||
position: relative; | ||
display: block; | ||
padding: 1em; | ||
margin-block: 1em; | ||
overflow: hidden; | ||
font-weight: 500; | ||
color: var(--color-btn-primary-text) !important; | ||
border: 1px solid var(--color-btn-primary-border); | ||
border-radius: 6px; | ||
background-color: var(--color-btn-primary-bg) !important; | ||
box-shadow: var(--color-btn-primary-shadow), var(--color-btn-primary-inset-shadow); | ||
} | ||
|
||
.comment-body a[href$='netlify.app']::after { | ||
content: 'Preview'; | ||
position: absolute; | ||
inset: 1px; | ||
display: grid; | ||
place-content: center; | ||
font-size: 1.25rem; | ||
color: inherit; | ||
background-color: inherit; | ||
} | ||
|
||
.comment-body a[href$='netlify.app']:hover { | ||
border-color: var(--color-btn-primary-hover-border); | ||
background-color: var(--color-btn-primary-hover-bg) !important; | ||
} | ||
|
||
.comment-body a[href$='netlify.app']:active { | ||
border-color: var(--color-btn-active-border); | ||
background-color: var(--color-btn-primary-selected-bg) !important; | ||
box-shadow: var(--color-btn-primary-selected-shadow); | ||
} | ||
|
||
/* Spirit Design System: Adjust individual button labels by URL. */ | ||
.comment-body a[href$='spirit-design-system-demo.netlify.app']::after { | ||
content: 'CSS Preview'; | ||
} | ||
|
||
.comment-body a[href$='spirit-design-system-react.netlify.app']::after { | ||
content: 'React Preview'; | ||
} | ||
|
||
.comment-body a[href$='spirit-design-system-storybook.netlify.app']::after { | ||
content: 'Storybook Preview'; | ||
} | ||
|
||
.comment-body a[href$='spirit-design-system-validations.netlify.app']::after { | ||
content: 'Form Validations Preview'; | ||
} | ||
} |