Skip to content

Commit aaac593

Browse files
committed
Most consistent anchor link location on small screens
1 parent a788533 commit aaac593

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

assets/css/content/general.css

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@
135135
vertical-align: top;
136136
}
137137

138+
.content-inner .section-heading {
139+
position: relative;
140+
}
141+
138142
.content-inner .section-heading:hover a.hover-link {
139143
opacity: 1;
140144
text-decoration: none;
@@ -155,18 +159,10 @@
155159

156160
@media screen and (max-width: 768px) {
157161
.content-inner .section-heading a.hover-link {
158-
float: right;
159-
margin-right: -13px;
160-
padding: .3em;
161-
}
162-
.content-inner h1.section-heading a.hover-link {
163-
margin-top: 13px;
164-
}
165-
.content-inner h2.section-heading a.hover-link {
166-
margin-top: 7px;
167-
}
168-
.content-inner h3.section-heading a.hover-link {
169-
margin-top: 4px;
162+
position: absolute;
163+
bottom: 0;
164+
right: -20px;
165+
padding: .3em .6em .4em;
170166
}
171167
}
172168

0 commit comments

Comments
 (0)