Changes for page Public Web Site

Last modified by Agnease on 2026/05/30 16:24

From version 10.28
edited by Agnease
on 2026/05/19 07:18
Change comment: There is no comment for this version
To version 10.39
edited by Agnease
on 2026/05/22 08:13
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -146,7 +146,7 @@
146 146   </div>
147 147   </section>
148 148  
149 - <section class="resource-strip" aria-labelledby="resources-title">
149 + <section class="resource-strip homepage-resource-strip" aria-labelledby="resources-title">
150 150   <div class="container">
151 151   <h2 id="resources-title">Useful XWiki resources</h2>
152 152   <p class="section-intro">
XWiki.StyleSheetExtension[0]
code
... ... @@ -624,6 +624,77 @@
624 624   }
625 625  }
626 626  
627 +/* ========== Homepage Resource Strip ========== */
628 +
629 +.homepage-resource-strip {
630 + background:
631 + radial-gradient(42rem 16rem at 50% 0%, @brand-bg 0%, transparent 70%);
632 +
633 + .resource-grid {
634 + max-width: 1040px;
635 + margin: 26px auto 0;
636 + display: grid;
637 + grid-template-columns: repeat(2, minmax(0, 1fr));
638 + grid-gap: 22px;
639 + align-items: stretch;
640 + }
641 +
642 + .resource-card {
643 + display: flex;
644 + flex-direction: column;
645 + min-width: 0;
646 + min-height: 100%;
647 + padding: 26px;
648 + }
649 +
650 + .resource-card h4 {
651 + margin: 0 0 10px;
652 + color: @text;
653 + font-size: 21px;
654 + line-height: 1.25;
655 + font-weight: 700;
656 + }
657 +
658 + .resource-card p {
659 + margin: 0 0 18px;
660 + color: @muted;
661 + font-size: 15px;
662 + line-height: 1.6;
663 + }
664 +
665 + .resource-card a {
666 + margin-top: auto;
667 + color: @brand;
668 + font-weight: 700;
669 + text-decoration: underline;
670 +
671 + &:hover,
672 + &:focus {
673 + color: @brand-strong;
674 + }
675 + }
676 +}
677 +
678 +@media (max-width: 980px) {
679 + .homepage-resource-strip {
680 + .resource-grid {
681 + grid-template-columns: 1fr;
682 + }
683 + }
684 +}
685 +
686 +@media (max-width: 640px) {
687 + .homepage-resource-strip {
688 + .resource-card {
689 + padding: 22px;
690 + }
691 +
692 + .resource-card h4 {
693 + font-size: 19px;
694 + }
695 + }
696 +}
697 +
627 627  /* ========== CTA ========== */
628 628  
629 629  .cta-section {
XWiki.StyleSheetExtension[1]
code
... ... @@ -1,16 +1,8 @@
1 1  /* ========== Agnease Public Top Menu ========== */
2 2  
3 -/* Keep the public menu aligned to the right on desktop */
4 -@media (min-width: 768px) {
5 - .navbar-nav {
6 - float: right;
7 - margin-left: auto;
8 - }
9 -
10 - .site-nav {
11 - margin-left: auto;
12 - justify-content: flex-end;
13 - }
3 +/* Desktop alignment */
4 +#menuview .navbar-nav {
5 + float: right !important;
14 14  }
15 15  
16 16  /* Top-level menu items */
... ... @@ -24,10 +24,7 @@
24 24   font-weight: 600;
25 25   padding-left: 16px;
26 26   padding-right: 16px;
27 - background: transparent !important;
28 - background-color: transparent !important;
29 - background-image: none !important;
30 - box-shadow: none !important;
19 + text-decoration: none;
31 31   }
32 32  
33 33   > a:hover,
... ... @@ -34,20 +34,10 @@
34 34   > a:focus,
35 35   > a:active,
36 36   &.open > a,
37 - &.open > a:hover,
38 - &.open > a:focus,
39 - &.open > a:active,
40 - &.active > a,
41 - &.active > a:hover,
42 - &.active > a:focus,
43 - &.active > a:active {
26 + &.active > a {
44 44   color: @brand-strong;
45 - background: transparent !important;
46 - background-color: transparent !important;
47 - background-image: none !important;
48 - box-shadow: none !important;
49 - outline: none;
50 50   text-decoration: none;
29 + outline: none;
51 51   }
52 52  
53 53   .caret {
... ... @@ -66,46 +66,6 @@
66 66   }
67 67  }
68 68  
69 -/* Strong Bootstrap/XWiki overrides for top-level menu backgrounds */
70 -
71 -.navbar-nav > li,
72 -.navbar-nav > li:hover,
73 -.navbar-nav > li:focus,
74 -.navbar-nav > li:active,
75 -.navbar-nav > li.open,
76 -.navbar-nav > li.open:hover,
77 -.navbar-nav > li.open:focus,
78 -.navbar-nav > li.open:active,
79 -.navbar-nav > li.active,
80 -.navbar-nav > li.active:hover,
81 -.navbar-nav > li.active:focus,
82 -.navbar-nav > li.active:active {
83 - background: transparent !important;
84 - background-color: transparent !important;
85 - background-image: none !important;
86 -}
87 -
88 -.navbar-nav > li > a,
89 -.navbar-nav > li > a:hover,
90 -.navbar-nav > li > a:focus,
91 -.navbar-nav > li > a:active,
92 -.navbar-nav > li.open > a,
93 -.navbar-nav > li.open > a:hover,
94 -.navbar-nav > li.open > a:focus,
95 -.navbar-nav > li.open > a:active,
96 -.navbar-nav > li.active > a,
97 -.navbar-nav > li.active > a:hover,
98 -.navbar-nav > li.active > a:focus,
99 -.navbar-nav > li.active > a:active,
100 -.nav .open > a,
101 -.nav .open > a:hover,
102 -.nav .open > a:focus {
103 - background: transparent !important;
104 - background-color: transparent !important;
105 - background-image: none !important;
106 - box-shadow: none !important;
107 -}
108 -
109 109  /* Dropdown panel */
110 110  
111 111  .agnease-dropdown {
... ... @@ -122,14 +122,11 @@
122 122   gap: 12px;
123 123   padding: 11px 14px;
124 124   color: @brand;
125 - background: transparent !important;
126 - background-color: transparent !important;
127 - background-image: none !important;
128 128   white-space: nowrap;
129 129   font-size: 16px;
130 130   font-weight: 600;
131 131   line-height: 1.3;
132 - box-shadow: none !important;
68 + text-decoration: none;
133 133  
134 134   i {
135 135   width: 20px;
... ... @@ -143,12 +143,8 @@
143 143   &:focus,
144 144   &:active {
145 145   color: @brand-strong;
146 - background: transparent !important;
147 - background-color: transparent !important;
148 - background-image: none !important;
149 149   text-decoration: none;
150 150   outline: none;
151 - box-shadow: none !important;
152 152  
153 153   i {
154 154   color: @brand-strong;
... ... @@ -156,16 +156,8 @@
156 156   }
157 157   }
158 158  
159 - > .active > a,
160 - > .active > a:hover,
161 - > .active > a:focus,
162 - > .active > a:active {
91 + > .active > a {
163 163   color: @brand-strong;
164 - background: transparent !important;
165 - background-color: transparent !important;
166 - background-image: none !important;
167 - text-decoration: none;
168 - box-shadow: none !important;
169 169  
170 170   i {
171 171   color: @brand-strong;
... ... @@ -178,32 +178,13 @@
178 178   }
179 179  }
180 180  
181 -/* Strong Bootstrap/XWiki overrides for submenu gray hover backgrounds */
182 -
183 -.dropdown-menu > li > a,
184 -.dropdown-menu > li > a:hover,
185 -.dropdown-menu > li > a:focus,
186 -.dropdown-menu > li > a:active,
187 -.dropdown-menu > .active > a,
188 -.dropdown-menu > .active > a:hover,
189 -.dropdown-menu > .active > a:focus,
190 -.dropdown-menu > .active > a:active,
191 -.agnease-dropdown > li > a,
192 -.agnease-dropdown > li > a:hover,
193 -.agnease-dropdown > li > a:focus,
194 -.agnease-dropdown > li > a:active {
195 - background: transparent !important;
196 - background-color: transparent !important;
197 - background-image: none !important;
198 - box-shadow: none !important;
199 -}
200 -
201 201  /* Mobile */
202 202  
203 203  @media (max-width: 767px) {
204 - .navbar-nav {
205 - float: none;
108 + .site-nav {
206 206   margin-left: 0;
110 + justify-content: center;
111 + flex-wrap: wrap;
207 207   }
208 208  
209 209   .agnease-menu-item,
... ... @@ -229,25 +229,15 @@
229 229   padding: 8px 10px;
230 230   white-space: normal;
231 231   font-size: 15px;
232 - color: @brand;
233 - background: transparent !important;
234 234  
235 235   i {
236 236   width: 18px;
237 237   flex-basis: 18px;
238 238   }
239 -
240 - &:hover,
241 - &:focus,
242 - &:active {
243 - color: @brand-strong;
244 - background: transparent !important;
245 - }
246 246   }
247 247  
248 248   .divider {
249 249   margin: 5px 0;
250 - background-color: fade(@brand, 16%);
251 251   }
252 252   }
253 253  }