nodebb-plugin-ezoic-infinite 1.6.59 → 1.6.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/public/style.css CHANGED
@@ -1,28 +1,88 @@
1
- /* Conteneur de pub */
1
+ /*
2
+ Keep our NodeBB-inserted wrappers CLS-safe.
3
+ NOTE: must not rely on `.ezoic-ad` because Ezoic uses that class internally.
4
+ */
2
5
  .nodebb-ezoic-wrap {
6
+ display: block;
7
+ width: 100%;
8
+ margin: 0 !important;
9
+ padding: 0 !important;
10
+ overflow: hidden;
11
+ }
12
+
13
+ .nodebb-ezoic-wrap > [id^="ezoic-pub-ad-placeholder-"] {
14
+ margin: 0 !important;
15
+ padding: 0 !important;
16
+ /* Keep the placeholder measurable (IO) but visually negligible */
17
+ min-height: 1px;
18
+ }
19
+
20
+ /* If Ezoic wraps inside our wrapper, keep it tight */
21
+ .nodebb-ezoic-wrap span.ezoic-ad,
22
+ .nodebb-ezoic-wrap .ezoic-ad {
23
+ margin: 0 !important;
24
+ padding: 0 !important;
25
+ }
26
+
27
+ /* Remove the classic "gap under iframe" (baseline/inline-block) */
28
+ .nodebb-ezoic-wrap,
29
+ .nodebb-ezoic-wrap * {
30
+ line-height: 0 !important;
31
+ font-size: 0 !important;
32
+ }
33
+
34
+ .nodebb-ezoic-wrap iframe,
35
+ .nodebb-ezoic-wrap div[id$="__container__"] iframe {
3
36
  display: block !important;
4
- width: 100% !important;
5
- clear: both !important;
6
- margin: 25px 0 !important;
7
- min-height: 100px; /* Crucial pour que Ezoic détecte l'emplacement */
8
- text-align: center;
37
+ vertical-align: top !important;
9
38
  }
10
39
 
11
- /* Fix spécifique pour le premier sujet */
12
- .nodebb-ezoic-wrap[data-ezoic-pinned="true"] {
13
- min-height: 150px;
14
- border-bottom: 1px solid rgba(0,0,0,0.05);
15
- margin-top: 0 !important;
40
+ .nodebb-ezoic-wrap div[id$="__container__"] {
41
+ display: block !important;
42
+ line-height: 0 !important;
16
43
  }
17
44
 
18
- /* Cache les blocs vides pour éviter les trous blancs */
19
- .nodebb-ezoic-wrap:empty {
20
- height: 0 !important;
21
- min-height: 0 !important;
45
+
46
+ /* Collapse empty ad blocks (prevents "holes" when an ad doesn't fill or gets destroyed) */
47
+ .nodebb-ezoic-wrap.is-empty {
48
+ display: block !important;
49
+ margin: 0 !important;
50
+ padding: 0 !important;
51
+ /* Don't fully collapse (can prevent fill / triggers "unused"), keep it at 1px */
52
+ height: 1px !important;
53
+ min-height: 1px !important;
54
+ overflow: hidden !important;
55
+ }
56
+
57
+ /*
58
+ Optional: also neutralize spacing on native Ezoic `.ezoic-ad` blocks.
59
+ (Keeps your previous "CSS very good" behavior.)
60
+ */
61
+ .ezoic-ad {
22
62
  margin: 0 !important;
63
+ padding: 0 !important;
64
+ }
65
+ /* Remove Ezoic's large reserved min-height inside our wrappers (topics/messages) */
66
+ .nodebb-ezoic-wrap .ezoic-ad,
67
+ .nodebb-ezoic-wrap span.ezoic-ad {
68
+ min-height: 1px !important; /* kill 400px gaps */
69
+ height: auto !important;
23
70
  }
24
71
 
25
- /* Évite que les pubs "volent" au scroll */
72
+ /* Ensure Ezoic reportline doesn't affect layout */
73
+ .nodebb-ezoic-wrap .reportline{position:absolute!important;}
74
+
75
+ /* Ezoic sometimes injects `position: sticky` inside placements. In long NodeBB topics,
76
+ this can create "gliding" and sudden disappear/reappear effects while scrolling.
77
+ We neutralize sticky positioning *inside our injected wrappers* only. */
26
78
  .nodebb-ezoic-wrap .ezads-sticky-intradiv {
27
79
  position: static !important;
28
- }
80
+ top: auto !important;
81
+ }
82
+
83
+
84
+ /* ===== V17 host styling ===== */
85
+ li.nodebb-ezoic-host { list-style: none; width: 100%; display: block; }
86
+ li.nodebb-ezoic-host > .nodebb-ezoic-wrap.ezoic-ad-between { width: 100%; display: block; }
87
+ /* ===== /V17 ===== */
88
+
@@ -0,0 +1 @@
1
+ hi