Changes for page Tidy-Lab Cloud Platform

Last modified by Humphrey AI on 2026/03/22 10:27

From version 40.1
edited by Humphrey AI
on 2026/03/19 20:25
Change comment: There is no comment for this version
To version 35.2
edited by Christian Wawrzinek
on 2026/03/19 16:23
Change comment: allow view right for XWiki.XWikiAllGroup

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.humphrey
1 +XWiki.wac
XWiki.JavaScriptExtension[0]
code
... ... @@ -4,20 +4,68 @@
4 4   var hero = document.querySelector('.tl-hero');
5 5   if (!hero) return;
6 6  
7 - // Simple scroll check: toggle tl-scrolled when past the hero
7 + // Collect all chrome elements to fade
8 + var chromeSelectors = [
9 + '#menuview', '#headerglobal', '#hierarchy_breadcrumb',
10 + '.document-header', '#xdocFooter', '#xwikidata',
11 + '#footerglobal', '.skip-nav'
12 + ];
13 + var chromeElements = [];
14 + chromeSelectors.forEach(function(sel) {
15 + var el = document.querySelector(sel);
16 + if (el) chromeElements.push(el);
17 + });
18 +
19 + var wasFading = false;
20 +
8 8   function onScroll() {
9 9   var heroHeight = hero.offsetHeight;
10 10   var scrollY = window.pageYOffset || document.documentElement.scrollTop;
11 11  
12 - if (scrollY >= heroHeight * 0.7) {
25 + // Start fading at 30% scroll, fully visible at 70%
26 + var fadeStart = heroHeight * 0.3;
27 + var fadeEnd = heroHeight * 0.7;
28 + var progress = 0;
29 +
30 + if (scrollY <= fadeStart) {
31 + progress = 0;
32 + } else if (scrollY >= fadeEnd) {
33 + progress = 1;
34 + } else {
35 + progress = (scrollY - fadeStart) / (fadeEnd - fadeStart);
36 + }
37 +
38 + if (progress > 0 && progress < 1) {
39 + // Fading: switch from display:none to opacity-based
40 + if (!wasFading) {
41 + document.body.classList.add('tl-fading');
42 + document.body.classList.remove('tl-scrolled');
43 + wasFading = true;
44 + }
45 + chromeElements.forEach(function(el) {
46 + el.style.opacity = progress;
47 + });
48 + } else if (progress >= 1) {
49 + // Fully scrolled: restore normal layout
50 + document.body.classList.remove('tl-fading');
13 13   document.body.classList.add('tl-scrolled');
52 + chromeElements.forEach(function(el) {
53 + el.style.opacity = '';
54 + });
55 + wasFading = false;
14 14   } else {
57 + // At top: hide everything
58 + document.body.classList.remove('tl-fading');
15 15   document.body.classList.remove('tl-scrolled');
60 + chromeElements.forEach(function(el) {
61 + el.style.opacity = '';
62 + });
63 + wasFading = false;
16 16   }
17 17   }
18 18  
19 19   window.addEventListener('scroll', onScroll, { passive: true });
20 - onScroll();
68 + onScroll(); // run once on load
21 21  
22 22   // Smooth scroll for the arrow
23 23   var scrollLink = document.querySelector('.tl-hero-scroll');
XWiki.StyleSheetExtension[0]
code
... ... @@ -21,51 +21,11 @@
21 21   }
22 22  
23 23   /* ==========================================================================
24 - NAV — always visible, fixed, blends with hero
24 + Phase 1: HERO VISIBLEhide chrome, full-bleed layout
25 25   ========================================================================== */
26 26  
27 - /* Hide hamburger drawer button — empty menu, not needed */
28 - .tl-hero-page #tmDrawerActivator {
29 - display: none !important;
30 - }
31 -
32 - /* Nav is always fixed at top */
33 - .tl-hero-page #menuview {
34 - position: fixed !important;
35 - top: 0;
36 - left: 0;
37 - width: 100%;
38 - z-index: 1030;
39 - overflow: hidden;
40 - transition: background-color 0.3s ease, box-shadow 0.3s ease;
41 - }
42 -
43 - /* On the hero: match hero purple exactly (#2D2B55, not theme default #1e1b4b) */
27 + /* Chrome elements: hidden initially with display:none (no space taken) */
44 44   .tl-hero-page:not(.tl-scrolled) #menuview,
45 - .tl-hero-page:not(.tl-scrolled) #menuview .navbar-default {
46 - background-color: #2D2B55 !important;
47 - background-image: none !important;
48 - border-color: transparent !important;
49 - box-shadow: none !important;
50 - }
51 -
52 - /* After scrolling past hero: same purple with shadow */
53 - .tl-hero-page.tl-scrolled #menuview,
54 - .tl-hero-page.tl-scrolled #menuview .navbar-default {
55 - background-color: #2D2B55 !important;
56 - background-image: none !important;
57 - border-color: transparent !important;
58 - box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
59 - }
60 -
61 - /* Search button: match hero purple instead of theme default #1e1b4b */
62 -.tl-hero-page #menuview .btn[aria-controls="headerglobalsearchinput"],
63 -.tl-hero-page #menuview .navbar-default .btn[title="Search"] {
64 - background-color: var(--hero-purple) !important;
65 - border-color: rgba(255, 255, 255, 0.15) !important;
66 -}
67 -
68 -/* Hide non-nav chrome on the hero (breadcrumbs, footer, etc.) */
69 69   .tl-hero-page:not(.tl-scrolled) #headerglobal,
70 70   .tl-hero-page:not(.tl-scrolled) #hierarchy_breadcrumb,
71 71   .tl-hero-page:not(.tl-scrolled) .document-header,
... ... @@ -76,6 +76,33 @@
76 76   display: none !important;
77 77   }
78 78  
39 + /* When fading in (JS adds tl-fading), switch to opacity-based visibility */
40 + .tl-hero-page.tl-fading #menuview,
41 + .tl-hero-page.tl-fading #headerglobal,
42 + .tl-hero-page.tl-fading #hierarchy_breadcrumb,
43 + .tl-hero-page.tl-fading .document-header,
44 + .tl-hero-page.tl-fading #xdocFooter,
45 + .tl-hero-page.tl-fading #xwikidata,
46 + .tl-hero-page.tl-fading #footerglobal,
47 + .tl-hero-page.tl-fading .skip-nav {
48 + display: block !important;
49 + }
50 +
51 + .tl-hero-page.tl-fading .document-header {
52 + display: flex !important;
53 + }
54 +
55 + /* Sticky navbar once visible */
56 + .tl-hero-page.tl-fading #menuview,
57 + .tl-hero-page.tl-scrolled #menuview {
58 + position: fixed !important;
59 + top: 0;
60 + left: 0;
61 + width: 100%;
62 + z-index: 1030;
63 + overflow: hidden;
64 + }
65 +
79 79   /* Prevent any horizontal overflow */
80 80   html, body.tl-hero-page,
81 81   .tl-hero-page #xwikimaincontainer,
... ... @@ -221,6 +221,7 @@
221 221   color: rgba(123, 120, 255, 0.6);
222 222   font-size: 24px;
223 223   text-decoration: none;
211 + animation: tl-bounce 2s ease infinite;
224 224   z-index: 2;
225 225   }
226 226  
... ... @@ -229,6 +229,12 @@
229 229   text-decoration: none;
230 230   }
231 231  
220 + @keyframes tl-bounce {
221 + 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
222 + 40% { transform: translateX(-50%) translateY(-12px); }
223 + 60% { transform: translateX(-50%) translateY(-6px); }
224 + }
225 +
232 232   /* ==========================================================================
233 233   Content area below hero — restore normal layout
234 234   ========================================================================== */
... ... @@ -251,7 +251,7 @@
251 251   }
252 252  
253 253   /* ==========================================================================
254 - Animations (from concept-b)
248 + Scroll-Reveal Animations (from concept-b)
255 255   ========================================================================== */
256 256   @keyframes tl-fadeIn {
257 257   from { opacity: 0; }
... ... @@ -263,13 +263,6 @@
263 263   to { opacity: 1; transform: translateY(0); }
264 264   }
265 265  
266 - @keyframes tl-bounce {
267 - 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
268 - 40% { transform: translateX(-50%) translateY(-12px); }
269 - 60% { transform: translateX(-50%) translateY(-6px); }
270 - }
271 -
272 - /* Scroll-reveal for below-the-fold content */
273 273   .tl-reveal {
274 274   opacity: 0;
275 275   transform: translateY(28px);
... ... @@ -329,6 +329,12 @@
329 329   /* --- Print: skip hero --- */
330 330   @media print {
331 331   .tl-hero { display: none; }
319 + .tl-hero-page #tmHeader,
320 + .tl-hero-page .navbar,
321 + .tl-hero-page #hierarchy {
322 + opacity: 1;
323 + pointer-events: auto;
324 + }
332 332   }
333 333  
334 334   /* ==========================================================================