URLs can now change color to match theme

This commit is contained in:
Alicia Sykes
2017-04-15 21:27:19 +01:00
parent b5c099bacc
commit a211202520
2 changed files with 12 additions and 1 deletions

View 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++

View File

@@ -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")