nodebb-plugin-ezoic-infinite 1.6.78 → 1.6.79

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,81 +1,48 @@
1
- /*
2
- Keep our NodeBB-inserted wrappers CLS-safe.
3
- NOTE: must not rely on `.ezoic-ad` because Ezoic uses that class internally.
4
- */
1
+ /* Container de base */
5
2
  .nodebb-ezoic-wrap {
6
3
  display: block;
7
4
  width: 100%;
8
- margin: 0 !important;
5
+ margin: 15px 0 !important;
9
6
  padding: 0 !important;
7
+ clear: both;
10
8
  overflow: hidden;
9
+ min-height: 1px;
11
10
  }
12
11
 
13
- .nodebb-ezoic-wrap > [id^="ezoic-pub-ad-placeholder-"] {
12
+ /* Cache les pubs orphelines sans casser le flux du DOM */
13
+ .nodebb-ezoic-wrap.ez-orphan-hidden {
14
+ display: none !important;
15
+ height: 0 !important;
14
16
  margin: 0 !important;
15
17
  padding: 0 !important;
16
- /* Keep the placeholder measurable (IO) but visually negligible */
17
- min-height: 1px;
18
+ pointer-events: none;
18
19
  }
19
20
 
20
- /* If Ezoic wraps inside our wrapper, keep it tight */
21
- .nodebb-ezoic-wrap span.ezoic-ad,
21
+ /* Force la suppression des marges Ezoic internes pour garder le contrôle */
22
22
  .nodebb-ezoic-wrap .ezoic-ad {
23
- margin: 0 !important;
23
+ margin: 0 auto !important;
24
24
  padding: 0 !important;
25
+ min-height: 1px !important;
26
+ height: auto !important;
25
27
  }
26
28
 
27
- /* Remove the classic "gap under iframe" (baseline/inline-block) */
29
+ /* Neutralisation du line-height pour éviter les décalages de 1px */
28
30
  .nodebb-ezoic-wrap,
29
31
  .nodebb-ezoic-wrap * {
30
32
  line-height: 0 !important;
31
33
  font-size: 0 !important;
32
34
  }
33
35
 
34
- .nodebb-ezoic-wrap iframe,
35
- .nodebb-ezoic-wrap div[id$="__container__"] iframe {
36
- display: block !important;
37
- vertical-align: top !important;
36
+ /* Harmonisation pour Harmony/NodeBB 4 */
37
+ [component="category"] .nodebb-ezoic-wrap,
38
+ .topic-list .nodebb-ezoic-wrap {
39
+ border-bottom: 1px solid rgba(0,0,0,0.05);
40
+ background: transparent;
38
41
  }
39
42
 
40
- .nodebb-ezoic-wrap div[id$="__container__"] {
43
+ /* Empêche le saut visuel si Ezoic met du temps à charger */
44
+ .nodebb-ezoic-wrap iframe {
41
45
  display: block !important;
42
- line-height: 0 !important;
43
- }
44
-
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 {
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;
70
- }
71
-
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. */
78
- .nodebb-ezoic-wrap .ezads-sticky-intradiv {
79
- position: static !important;
80
- top: auto !important;
81
- }
46
+ max-width: 100%;
47
+ margin: 0 auto;
48
+ }