Skip to content

Commit 7c44ab5

Browse files
committed
Floating ad placement only on very wide screens
1 parent f2486d3 commit 7c44ab5

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

docs/_static/css/custom.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,17 @@
3131
width: 1rem;
3232
}
3333

34-
/* Hide the placement on mobile completely */
35-
@media (max-width: 768px) {
34+
/* Placement under content on smaller screens/tablets/mobile */
35+
@media (max-width: 1340px) {
3636
#rtd-stickybox {
37-
display: none !important;
37+
position: static;
38+
bottom: 0;
39+
right: 0;
40+
margin: auto;
41+
text-align: center;
42+
}
43+
44+
#rtd-stickybox .stickybox-hide {
45+
display: none;
3846
}
3947
}

docs/_templates/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
{% block document %}
5-
{% include "ethicalads.html" %}
6-
75
{{ super() }}
6+
7+
{% include "ethicalads.html" %}
88
{% endblock document %}

0 commit comments

Comments
 (0)