Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'site/assets/scss/_anchor.scss')
-rw-r--r--site/assets/scss/_anchor.scss16
1 files changed, 13 insertions, 3 deletions
diff --git a/site/assets/scss/_anchor.scss b/site/assets/scss/_anchor.scss
index 96a7dbf9c7..5bb39150b1 100644
--- a/site/assets/scss/_anchor.scss
+++ b/site/assets/scss/_anchor.scss
@@ -1,11 +1,21 @@
-.anchorjs-link {
+.anchor-link {
+ padding: 0 .175rem;
font-weight: 400;
color: rgba($link-color, .5);
- @include transition(color .15s ease-in-out);
+ text-decoration: none;
+ opacity: 0;
+ @include transition(color .15s ease-in-out, opacity .15s ease-in-out);
+
+ &::after {
+ content: "#";
+ }
&:focus,
- &:hover {
+ &:hover,
+ :hover > &,
+ :target > & {
color: $link-color;
text-decoration: none;
+ opacity: 1;
}
}