diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-09-05 11:42:57 +0200 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-09-05 11:42:57 +0200 |
commit | f868badb426b558a63ed82c5108a200a1ad45fc4 (patch) | |
tree | 028bbbfee7c24b721f40ec9dcc84f11793d2b5d7 /app/assets/stylesheets/framework | |
parent | 1a23b74d9346265fa88f87224e35b01b81934405 (diff) | |
parent | beb0b666dc000d51b7ed0eb264bd04ca466117d1 (diff) | |
download | gitlab-ce-f868badb426b558a63ed82c5108a200a1ad45fc4.tar.gz |
Merge branch 'master' into issues-filters-reset-btn
Diffstat (limited to 'app/assets/stylesheets/framework')
-rw-r--r-- | app/assets/stylesheets/framework/buttons.scss | 4 | ||||
-rw-r--r-- | app/assets/stylesheets/framework/typography.scss | 27 |
2 files changed, 13 insertions, 18 deletions
diff --git a/app/assets/stylesheets/framework/buttons.scss b/app/assets/stylesheets/framework/buttons.scss index cd3ddf5fee9..4618687a4be 100644 --- a/app/assets/stylesheets/framework/buttons.scss +++ b/app/assets/stylesheets/framework/buttons.scss @@ -206,7 +206,9 @@ } svg, .fa { - margin-right: 3px; + &:not(:last-child) { + margin-right: 3px; + } } } diff --git a/app/assets/stylesheets/framework/typography.scss b/app/assets/stylesheets/framework/typography.scss index 06874a993fa..3f8433a0e7f 100644 --- a/app/assets/stylesheets/framework/typography.scss +++ b/app/assets/stylesheets/framework/typography.scss @@ -159,25 +159,18 @@ position: relative; a.anchor { - // Setting `display: none` would prevent the anchor being scrolled to, so - // instead we set the height to 0 and it gets updated on hover. - height: 0; + left: -16px; + position: absolute; + text-decoration: none; + + &:after { + content: url('icon_anchor.svg'); + visibility: hidden; + } } - &:hover > a.anchor { - $size: 14px; - position: absolute; - right: 100%; - top: 50%; - margin-top: -11px; - margin-right: 0; - padding-right: 15px; - display: inline-block; - width: $size; - height: $size; - background-image: image-url("icon-link.png"); - background-size: contain; - background-repeat: no-repeat; + &:hover > a.anchor:after { + visibility: visible; } } } |