-
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.
Replace hardcoded style tag in index.html with new style.css (#42)
* Setup styling.css and add stylelint as a dependency * Remove unnecessary rect node styling * Refactor styling of circle nodes from visualize.js into style.css Co-authored-by: Edward <[email protected]>
- Loading branch information
1 parent
e936ac8
commit 1493344
Showing
5 changed files
with
66 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "stylelint-config-standard" | ||
} |
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,54 @@ | ||
html { | ||
font-family: monospace; | ||
text-shadow: 0 0.04em, 0.04em rgba(0, 0, 0, 0, 0.35); | ||
} | ||
|
||
body { | ||
font-size: 18px; | ||
background-color: #efefef; | ||
overflow: hidden; | ||
} | ||
|
||
.graph-svg-component { | ||
border: 2px solid black; | ||
border-radius: 4px; | ||
background-color: #f4f5f5; | ||
} | ||
|
||
#html-input-box { | ||
background-color: #002b36; | ||
color: white; | ||
} | ||
|
||
.node { | ||
cursor: pointer; | ||
} | ||
|
||
.node circle { | ||
stroke: steelblue; | ||
fill: #FFFFFF; | ||
} | ||
|
||
.link { | ||
fill: none; | ||
stroke: black; | ||
stroke-width: 1.5px; | ||
} | ||
|
||
#visualize-btn { | ||
background-color: #91c4f2; | ||
box-sizing: border-box; | ||
color: white; | ||
font-family: inherit; | ||
font-size: 14px; | ||
font-weight: 300; | ||
padding: 5px 10px; | ||
text-decoration: none; | ||
text-shadow: inherit; | ||
text-align: center; | ||
} | ||
|
||
#visualize-btn:hover { | ||
text-shadow: 0 0 2em rgba(255, 255, 255, 1); | ||
color: #fff; | ||
} |