-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: inject custom styling [IDE-240] #535
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6462449
feat: inject custom styling
teodora-sandu 964ccd3
refactor: move nonce computation to ide
teodora-sandu 867de0e
fix: log-level to debug instead of trace
bastiandoetsch bf322e0
chore: add comment to test
bastiandoetsch c56e584
refactor: remove unused imports
teodora-sandu 8b853e3
fix: hide ignore footer
teodora-sandu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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,11 @@ | ||
package stylesheets | ||
|
||
object SnykStylesheets { | ||
private fun getStylesheet(name: String): String { | ||
return this::class.java.getResource(name)?.readText() | ||
?: "" | ||
} | ||
|
||
val SnykCodeSuggestion = getStylesheet("/stylesheets/snyk_code_suggestion.css") | ||
} | ||
|
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,77 @@ | ||
::-webkit-scrollbar-thumb { | ||
background: var(--scrollbar-thumb-color); | ||
} | ||
|
||
::-webkit-scrollbar-thumb:hover { | ||
background: #595a5c; | ||
} | ||
|
||
body { | ||
color: var(--text-color); | ||
} | ||
|
||
a, | ||
.link { | ||
color: var(--link-color); | ||
} | ||
|
||
.delimiter { | ||
border: 1px solid #505254; | ||
} | ||
|
||
|
||
.ignore-warning { | ||
background: #FFF4ED; | ||
color: #B6540B; | ||
border: 1px solid #E27122; | ||
} | ||
|
||
|
||
.ignore-badge { | ||
background: #FFF4ED; | ||
color: #B6540B; | ||
border: 1px solid #E27122; | ||
} | ||
|
||
|
||
.data-flow-body { | ||
background-color: var(--data-flow-body-color); | ||
} | ||
|
||
|
||
.data-flow-clickable-row { | ||
color: var(--link-color); | ||
} | ||
|
||
|
||
.data-flow-delimiter { | ||
color: #BBBBBB; | ||
} | ||
|
||
.tabs-nav { | ||
border-bottom: 1px solid var(--tabs-bottom-color); | ||
} | ||
|
||
.tab-item-icon path { | ||
fill: var(--tab-item-github-icon-color); | ||
} | ||
|
||
.tab-item:hover { | ||
background-color: var(--tab-item-hover-color); | ||
} | ||
|
||
.tab-item.is-selected { | ||
border-bottom: 3px solid #3474f0; | ||
} | ||
|
||
.example-line.added { | ||
background-color: var(--example-line-added-color); | ||
} | ||
|
||
.example-line.removed { | ||
background-color: var(--example-line-removed-color); | ||
} | ||
|
||
.ignore-action-container { | ||
display: none; | ||
} |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we need to use a SASS file? I thought SASS is needed when we need things like nesting or mixins or other SASS magic ✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly because we use SASS in VSCode so I wanted to be as consistent as possible across the two, but also because there are more features available in SASS (like you said) and in the future we will have more than Snyk Code styling but still want to share stylesheets or colours across Snyk OSS, Snyk IaC, and Snyk Container