Created
April 30, 2014 16:30
-
-
Save oller/11431886 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// libsass (v0.7.0) | |
// ---- | |
// Sass Styles to style external links. | |
// $url string interpolated into background-color, but not selector? | |
$url: 'site.com'; | |
a[href^="http://"]:not([href*="#{$url}"]).cta, | |
a[href^="https://"]:not([href*="#{$url}"]).cta { | |
background-color: #{$url}; // string will echo correctly | |
} |
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
a[href^="http://"]:not([href*="#{$url}"]).cta, a[href^="https://"]:not([href*="#{$url}"]).cta { | |
background-color: site.com; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment