aboutsummaryrefslogtreecommitdiff
path: root/scss/helpers
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2019-08-17 20:19:00 +0200
committerMartijn Cuppens <[email protected]>2019-08-26 08:21:24 +0200
commit19ee63ad25491aeafc9df9006ef370edf08cffbf (patch)
treeab48686134fbe8595468307e9904822e23d40777 /scss/helpers
parenta5cbb5e71a43fe11107a8e13fb68c6bfd99cb0e7 (diff)
downloadbootstrap-19ee63ad25491aeafc9df9006ef370edf08cffbf.tar.xz
bootstrap-19ee63ad25491aeafc9df9006ef370edf08cffbf.zip
Link helpers & use utility API for all utilities
Diffstat (limited to 'scss/helpers')
-rw-r--r--scss/helpers/_colored-links.scss12
-rw-r--r--scss/helpers/_text-truncation.scss (renamed from scss/helpers/_text.scss)2
2 files changed, 13 insertions, 1 deletions
diff --git a/scss/helpers/_colored-links.scss b/scss/helpers/_colored-links.scss
new file mode 100644
index 000000000..4eea8d333
--- /dev/null
+++ b/scss/helpers/_colored-links.scss
@@ -0,0 +1,12 @@
+@each $color, $value in $theme-colors {
+ .link-#{$color} {
+ color: $value;
+
+ @if $emphasized-link-hover-darken-percentage != 0 {
+ &:hover,
+ &:focus {
+ color: darken($value, $emphasized-link-hover-darken-percentage);
+ }
+ }
+ }
+}
diff --git a/scss/helpers/_text.scss b/scss/helpers/_text-truncation.scss
index 3c2dbbd1d..6421dac9a 100644
--- a/scss/helpers/_text.scss
+++ b/scss/helpers/_text-truncation.scss
@@ -1,5 +1,5 @@
//
-// Text
+// Text truncation
//
.text-truncate {