summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/generic/typography.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/generic/typography.scss')
-rw-r--r--app/assets/stylesheets/generic/typography.scss21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/assets/stylesheets/generic/typography.scss b/app/assets/stylesheets/generic/typography.scss
index 419a63d4d3a..1a07fde53f1 100644
--- a/app/assets/stylesheets/generic/typography.scss
+++ b/app/assets/stylesheets/generic/typography.scss
@@ -90,6 +90,27 @@ a:focus {
font-size: 14px;
line-height: 1.6;
+
+ /* Link to current header. */
+ h1, h2, h3, h4, h5, h6 {
+ position: relative;
+ &:hover > :last-child {
+ $size: 16px;
+ position: absolute;
+ right: 100%;
+ top: 50%;
+ margin-top: -$size/2;
+ margin-right: 0px;
+ padding-right: 20px;
+ display: inline-block;
+ width: $size;
+ height: $size;
+ background-image: url("icon-link.png");
+ background-size: contain;
+ background-repeat: no-repeat;
+ }
+ }
+
ul {
padding: 0;
margin: 0 0 9px 25px !important;