0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

redesign anchors

This commit is contained in:
Mark Otto 2017-05-29 12:00:47 -07:00 committed by Mark Otto
parent 0ef7cb866e
commit 6ea359435d
2 changed files with 10 additions and 20 deletions

View File

@ -103,6 +103,8 @@
;(function () {
'use strict'
anchors.options.placement = 'left'
anchors.add('.bd-content > h1, .bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5')
anchors.options = {
icon: '#'
}
anchors.add('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5')
}())

View File

@ -1,24 +1,12 @@
// scss-lint:disable ImportantRule
.anchorjs-link {
padding-right: .25em !important;
margin-left: -.75em !important;
color: inherit;
}
font-weight: normal;
color: rgba($link-color, .5);
transition: color .16s linear;
@media (max-width: 480px) {
.anchorjs-link {
display: none;
&:hover {
color: $link-color;
text-decoration: none;
}
}
*:hover > .anchorjs-link {
opacity: .75;
transition: color .16s linear;
}
*:hover > .anchorjs-link:hover,
.anchorjs-link:focus {
text-decoration: none;
opacity: 1;
}