mirror of
https://github.com/Lissy93/md-cv-maker.git
synced 2021-05-12 19:52:19 +03:00
URLs can now change color to match theme
This commit is contained in:
8
src/scripts/page-actions.coffee
Normal file
8
src/scripts/page-actions.coffee
Normal file
@@ -0,0 +1,8 @@
|
||||
# Set the color of the content links to template color
|
||||
links = document.getElementsByTagName('a')
|
||||
i = 0
|
||||
while i < links.length
|
||||
if links[i].href
|
||||
links[i].className += textColor
|
||||
console.log ' #{design.color}-text'
|
||||
i++
|
||||
@@ -11,4 +11,7 @@ html
|
||||
link(rel='stylesheet', href='css/styles.css')
|
||||
|
||||
body.grey.lighten-3
|
||||
block content
|
||||
block content
|
||||
script.
|
||||
var textColor = " #{design.color}-text"
|
||||
script(src="js/scripts.js")
|
||||
|
||||
Reference in New Issue
Block a user