-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: inject custom styling [IDE-240] (#535)
* feat: inject custom styling * refactor: move nonce computation to ide * fix: log-level to debug instead of trace * chore: add comment to test * refactor: remove unused imports * fix: hide ignore footer --------- Co-authored-by: Bastian Doetsch <[email protected]>
- Loading branch information
1 parent
e82b6ac
commit 6e5ec6d
Showing
8 changed files
with
165 additions
and
13 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
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