I have 2 SASS var colors:
$red: '#F06292';
$lightPurple: '#8F6894';
Code:
<style lang="scss">
@import url('https://fonts.googleapis.com/css?family=Inconsolata|Oswald');
$red: '#F06292';
$lightPurple: '#8F6894';
#app {
font-family: 'Inconsolata', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html, body {
font-family: 'Oswald', sans-serif;
color: #B987C0;
}
#nav {
padding: 30px;
a {
font-weight: bold;
color: $lightPurple; // <--
&.router-link-exact-active {
color: $red; // <--
}
}
}
</style>
Markup:
<template>
<div id="app">
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div>
<router-view/>
</div>
</template>
Result:
And if I just change $red back to red:
&.router-link-exact-active {
color: red;
}
In the browser it gave this style to my links instead: color: -webkit-link;
The rest of my sass is working, like indentation, thought I haven't tried mixins yet. Any thoughts here?



color: -webkit-link;