-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(wrap-stream-in-html): makes the wrapper easier to maintain (#…
…877) ## Description - inline the html into javascript - move the css to a separate file so styling tweaks are easier to get to ## Motivation and Context - Editors kept autocorrecting 'header' and 'footer' html with closing and opening tags that made the result invalid html - The css is now easier to get to ## How Has This Been Tested? - [x] green ci ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] Documentation only change - [x] Refactor (non-breaking change which fixes an issue without changing functionality) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
- Loading branch information
Showing
7 changed files
with
160 additions
and
127 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,101 @@ | ||
.node:active path, | ||
.node:hover path, | ||
.node.current path, | ||
.node:active polygon, | ||
.node:hover polygon, | ||
.node.current polygon { | ||
stroke: fuchsia; | ||
stroke-width: 2; | ||
} | ||
|
||
.edge:active path, | ||
.edge:hover path, | ||
.edge.current path, | ||
.edge:active ellipse, | ||
.edge:hover ellipse, | ||
.edge.current ellipse { | ||
stroke: fuchsia; | ||
stroke-width: 3; | ||
stroke-opacity: 1; | ||
} | ||
|
||
.edge:active polygon, | ||
.edge:hover polygon, | ||
.edge.current polygon { | ||
stroke: fuchsia; | ||
stroke-width: 3; | ||
fill: fuchsia; | ||
stroke-opacity: 1; | ||
fill-opacity: 1; | ||
} | ||
|
||
.edge:active text, | ||
.edge:hover text { | ||
fill: fuchsia; | ||
} | ||
|
||
.cluster path { | ||
stroke-width: 3; | ||
} | ||
|
||
.cluster:active path, | ||
.cluster:hover path { | ||
fill: #ffff0011; | ||
} | ||
|
||
div.hint { | ||
background-color: #000000aa; | ||
color: white; | ||
font-family: Arial, Helvetica, sans-serif; | ||
border-radius: 1rem; | ||
position: fixed; | ||
top: calc(50% - 4em); | ||
right: calc(50% - 10em); | ||
border: none; | ||
padding: 1em 3em 1em 1em; | ||
} | ||
|
||
.hint button { | ||
position: absolute; | ||
font-weight: bolder; | ||
right: 0.6em; | ||
top: 0.6em; | ||
color: inherit; | ||
background-color: inherit; | ||
border: 1px solid currentColor; | ||
border-radius: 1em; | ||
margin-left: 0.6em; | ||
} | ||
|
||
.hint a { | ||
color: inherit; | ||
} | ||
|
||
#button_help { | ||
color: white; | ||
background-color: #00000011; | ||
border-radius: 1em; | ||
position: fixed; | ||
top: 1em; | ||
right: 1em; | ||
font-size: 24pt; | ||
font-weight: bolder; | ||
width: 2em; | ||
height: 2em; | ||
border: none; | ||
} | ||
|
||
#button_help:hover { | ||
cursor: pointer; | ||
background-color: #00000077; | ||
} | ||
|
||
@media print { | ||
#button_help { | ||
display: none; | ||
} | ||
|
||
div.hint { | ||
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