Changes for page Public Web Site

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

From version 10.27
edited by Agnease
on 2026/05/19 07:13
Change comment: There is no comment for this version
To version 8.20
edited by Agnease
on 2026/05/19 03:38
Change comment: There is no comment for this version

Summary

Details

XWiki.StyleSheetExtension[0]
code
... ... @@ -617,6 +617,7 @@
617 617   order: 0;
618 618   position: static;
619 619   width: 100%;
620 + margin-bottom: 24px;
620 620   }
621 621  
622 622   .resource-content {
XWiki.StyleSheetExtension[1]
code
... ... @@ -1,237 +1,283 @@
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 - }
3 +@brand: #00937D;
4 +@brand-strong: #007B6A;
5 +@text: #2D3A34;
6 +@muted: #5B6B64;
7 +@line: #E4ECE9;
8 +@brand-bg: #F4FCFA;
8 8  
9 - .site-nav {
10 - margin-left: auto;
11 - justify-content: flex-end;
12 - }
13 -}
14 -
15 15  /* Top-level menu items */
16 16  
17 -.agnease-menu-item {
12 +.agnease-services-menu,
13 +.agnease-products-menu {
18 18   .dropdown-toggle {
19 - color: @brand;
20 - font-weight: 600;
21 - font-size: 17px;
22 - padding-left: 16px;
23 - padding-right: 16px;
24 - background: transparent !important;
25 - background-color: transparent !important;
26 - background-image: none !important;
27 - box-shadow: none !important;
15 + font-weight: inherit;
16 + font-size: inherit;
28 28   }
29 29  
30 30   .caret {
31 - margin-left: 5px;
32 - border-top-color: @brand;
33 - border-bottom-color: @brand;
20 + margin-left: 4px;
34 34   }
35 35  
36 36   &.open > .dropdown-toggle,
37 - &.active > .dropdown-toggle,
38 38   .dropdown-toggle:hover,
39 - .dropdown-toggle:focus,
40 - .dropdown-toggle:active {
25 + .dropdown-toggle:focus {
41 41   color: @brand-strong;
42 - background: transparent !important;
43 - background-color: transparent !important;
44 - background-image: none !important;
45 - box-shadow: none !important;
46 - outline: none;
27 + background: transparent;
28 + background-color: transparent;
29 + box-shadow: none;
47 47   }
48 -
49 - &.open > .dropdown-toggle .caret,
50 - &.active > .dropdown-toggle .caret,
51 - .dropdown-toggle:hover .caret,
52 - .dropdown-toggle:focus .caret,
53 - .dropdown-toggle:active .caret {
54 - border-top-color: @brand-strong;
55 - border-bottom-color: @brand-strong;
56 - }
57 57  }
58 58  
59 -/* Remove Bootstrap/XWiki gray backgrounds from top-level nav states */
33 +/* Keep Agnease public top-level menu visually clean when hovered/open/focused */
60 60  
61 -.navbar-nav > li > a,
62 -.navbar-nav > li > a:hover,
63 -.navbar-nav > li > a:focus,
64 -.navbar-nav > li > a:active,
65 -.navbar-nav > li.open > a,
66 -.navbar-nav > li.open > a:hover,
67 -.navbar-nav > li.open > a:focus,
68 -.navbar-nav > li.open > a:active,
69 -.navbar-nav > li.active > a,
70 -.navbar-nav > li.active > a:hover,
71 -.navbar-nav > li.active > a:focus,
72 -.navbar-nav > li.active > a:active,
73 -.nav .open > a,
74 -.nav .open > a:hover,
75 -.nav .open > a:focus {
76 - background: transparent !important;
77 - background-color: transparent !important;
78 - background-image: none !important;
79 - box-shadow: none !important;
80 -}
81 -
82 -/* Contact item should visually match the dropdown top-level entries */
83 -.navbar-nav > li > a {
84 - color: @brand;
85 - font-size: 17px;
86 - font-weight: 600;
87 -}
88 -
89 -.navbar-nav > li > a:hover,
90 -.navbar-nav > li > a:focus,
91 -.navbar-nav > li > a:active {
35 +.navbar-nav > li.agnease-services-menu > a,
36 +.navbar-nav > li.agnease-products-menu > a,
37 +.navbar-nav > li.agnease-services-menu > a:hover,
38 +.navbar-nav > li.agnease-products-menu > a:hover,
39 +.navbar-nav > li.agnease-services-menu > a:focus,
40 +.navbar-nav > li.agnease-products-menu > a:focus,
41 +.navbar-nav > li.agnease-services-menu.open > a,
42 +.navbar-nav > li.agnease-products-menu.open > a,
43 +.navbar-nav > li.agnease-services-menu.open > a:hover,
44 +.navbar-nav > li.agnease-products-menu.open > a:hover,
45 +.navbar-nav > li.agnease-services-menu.open > a:focus,
46 +.navbar-nav > li.agnease-products-menu.open > a:focus {
47 + background: transparent;
48 + background-color: transparent;
92 92   color: @brand-strong;
50 + box-shadow: none;
93 93  }
94 94  
95 95  /* Dropdown panels */
96 96  
97 -.agnease-dropdown {
98 - min-width: 310px;
99 - padding: 10px 8px;
100 - border: 1px solid fade(@brand, 18%);
55 +.agnease-services-dropdown,
56 +.agnease-resources-dropdown,
57 +.agnease-products-dropdown {
58 + min-width: 360px;
59 + padding: 10px;
60 + border: 1px solid @line;
101 101   border-radius: 12px;
102 - background: #fff;
103 - box-shadow: 0 12px 32px fade(@brand-strong, 12%);
62 + box-shadow: 0 12px 36px rgba(0, 0, 0, .10);
104 104  
105 105   > li > a {
106 106   display: flex;
107 - align-items: center;
66 + align-items: flex-start;
108 108   gap: 12px;
109 - padding: 11px 14px;
110 - border-radius: 0;
111 - color: @brand;
112 - background: transparent !important;
113 - background-color: transparent !important;
114 - background-image: none !important;
115 - white-space: nowrap;
116 - font-size: 16px;
117 - font-weight: 600;
118 - line-height: 1.3;
119 - box-shadow: none !important;
68 + padding: 10px 12px;
69 + border-radius: 10px;
70 + color: @text;
71 + white-space: normal;
120 120  
121 - i {
122 - width: 20px;
123 - flex: 0 0 20px;
124 - color: @brand;
125 - text-align: center;
126 - font-size: 15px;
127 - }
128 -
129 129   &:hover,
130 - &:focus,
131 - &:active {
74 + &:focus {
132 132   color: @brand-strong;
133 - background: transparent !important;
134 - background-color: transparent !important;
135 - background-image: none !important;
76 + background: @brand-bg;
136 136   text-decoration: none;
137 - outline: none;
138 - box-shadow: none !important;
139 139  
140 - i {
79 + .menu-icon {
141 141   color: @brand-strong;
81 + background: fade(@brand, 14%);
82 + border-color: fade(@brand, 28%);
142 142   }
143 - }
144 - }
145 145  
146 - > .active > a,
147 - > .active > a:hover,
148 - > .active > a:focus,
149 - > .active > a:active {
150 - color: @brand-strong;
151 - background: transparent !important;
152 - background-color: transparent !important;
153 - background-image: none !important;
154 - text-decoration: none;
155 - box-shadow: none !important;
85 + strong {
86 + color: @brand-strong;
87 + }
156 156  
157 - i {
158 - color: @brand-strong;
89 + small {
90 + color: @muted;
91 + }
159 159   }
160 160   }
161 161  
162 162   .divider {
163 163   margin: 8px 0;
164 - background-color: fade(@brand, 16%);
97 + background-color: @line;
165 165   }
99 +
100 + .menu-icon {
101 + width: 34px;
102 + height: 34px;
103 + border-radius: 50%;
104 + background: fade(@brand, 8%);
105 + border: 1px solid fade(@brand, 18%);
106 + color: @brand;
107 + display: flex;
108 + align-items: center;
109 + justify-content: center;
110 + flex-shrink: 0;
111 + transition: color .15s ease, background .15s ease, border-color .15s ease;
112 + }
113 +
114 + .menu-text {
115 + display: flex;
116 + flex-direction: column;
117 + line-height: 1.25;
118 +
119 + strong {
120 + color: @brand;
121 + font-size: 14px;
122 + font-weight: 600;
123 + }
124 +
125 + small {
126 + color: @muted;
127 + font-size: 12px;
128 + margin-top: 2px;
129 + font-weight: 400;
130 + }
131 + }
166 166  }
167 167  
168 -.agnease-products-dropdown,
169 -.agnease-resources-dropdown {
170 - min-width: 290px;
134 +/* Products dropdown can be slightly narrower for now */
135 +
136 +.agnease-products-dropdown {
137 + min-width: 340px;
171 171  }
172 172  
173 -/* Remove Bootstrap/XWiki gray backgrounds from dropdown entries globally */
140 +/* Mobile */
174 174  
175 -.dropdown-menu > li > a,
176 -.dropdown-menu > li > a:hover,
177 -.dropdown-menu > li > a:focus,
178 -.dropdown-menu > li > a:active,
179 -.dropdown-menu > .active > a,
180 -.dropdown-menu > .active > a:hover,
181 -.dropdown-menu > .active > a:focus,
182 -.dropdown-menu > .active > a:active {
183 - background: transparent !important;
184 - background-color: transparent !important;
185 - background-image: none !important;
186 - box-shadow: none !important;
142 +@media (max-width: 767px) {
143 + .agnease-services-dropdown,
144 + .agnease-resources-dropdown,
145 + .agnease-products-dropdown {
146 + min-width: 0;
147 + width: 100%;
148 + padding: 6px;
149 + border-radius: 0;
150 + border-left: 0;
151 + border-right: 0;
152 + box-shadow: none;
153 +
154 + > li > a {
155 + padding: 10px;
156 + }
157 + }
187 187  }
188 188  
189 -/* ========== Mobile Menu ========== */
160 +/* ========== Compact Public Menu on Mobile ========== */
190 190  
191 191  @media (max-width: 767px) {
163 + /* Prevent any menu element from creating horizontal scroll */
164 + html,
165 + body {
166 + overflow-x: hidden;
167 + }
168 +
169 + .agnease-services-dropdown,
170 + .agnease-products-dropdown,
171 + .agnease-resources-dropdown {
172 + width: 100% !important;
173 + min-width: 0 !important;
174 + max-width: 100% !important;
175 + left: auto !important;
176 + right: auto !important;
177 + }
178 +
179 + .navbar,
180 + .navbar-collapse,
181 + .navbar-nav,
182 + .navbar-nav > li,
183 + .navbar-nav .dropdown-menu {
184 + max-width: 100%;
185 + }
186 +
187 + /* Make the main menu vertical inside the burger menu */
192 192   .navbar-nav {
193 - float: none;
189 + float: none !important;
190 + width: 100%;
191 + margin: 0;
194 194   }
195 195  
196 - .navbar-nav > li > a,
197 - .agnease-menu-item .dropdown-toggle {
198 - font-size: 16px;
199 - padding-top: 9px;
200 - padding-bottom: 9px;
194 + .navbar-nav > li {
195 + float: none !important;
196 + display: block;
197 + width: 100%;
201 201   }
202 202  
203 - .agnease-dropdown {
204 - min-width: 0;
200 + .navbar-nav > li > a {
201 + display: block;
205 205   width: 100%;
206 - padding: 4px 8px 8px 18px;
203 + padding: 11px 16px;
204 + font-size: 14px;
205 + font-weight: 600;
206 + line-height: 1.3;
207 + white-space: normal;
208 + }
209 +
210 + .navbar-nav > li > a .caret {
211 + float: right;
212 + margin-top: 7px;
213 + }
214 +
215 + /* Dropdowns become compact nested sections */
216 + .navbar-nav .dropdown-menu {
217 + position: static !important;
218 + float: none !important;
219 + width: 100% !important;
220 + min-width: 0 !important;
221 + max-width: 100% !important;
222 + margin: 0;
223 + padding: 4px 0 8px;
207 207   border: 0;
208 208   border-radius: 0;
209 209   box-shadow: none;
210 - background: transparent;
227 + background: @brand-bg;
228 + }
211 211  
212 - > li > a {
213 - padding: 8px 10px;
214 - white-space: normal;
215 - font-size: 15px;
216 - color: @brand;
217 - background: transparent !important;
230 + .navbar-nav .dropdown-menu > li {
231 + width: 100%;
232 + }
218 218  
219 - i {
220 - width: 18px;
221 - flex-basis: 18px;
222 - }
234 + .navbar-nav .dropdown-menu > li > a {
235 + display: block;
236 + width: 100%;
237 + padding: 8px 16px 8px 28px;
238 + white-space: normal;
239 + overflow-wrap: anywhere;
240 + color: @text;
241 + }
223 223  
224 - &:hover,
225 - &:focus,
226 - &:active {
227 - color: @brand-strong;
228 - background: transparent !important;
229 - }
230 - }
243 + .navbar-nav .dropdown-menu > li > a:hover,
244 + .navbar-nav .dropdown-menu > li > a:focus {
245 + background: @brand-soft;
246 + color: @brand-strong;
247 + }
231 231  
232 - .divider {
233 - margin: 5px 0;
234 - background-color: fade(@brand, 16%);
235 - }
249 + /* Compact the rich dropdown layout on mobile */
250 + .navbar-nav .dropdown-menu .menu-icon {
251 + display: none;
236 236   }
253 +
254 + .navbar-nav .dropdown-menu .menu-text {
255 + display: block;
256 + min-width: 0;
257 + }
258 +
259 + .navbar-nav .dropdown-menu .menu-text strong {
260 + display: block;
261 + font-size: 13px;
262 + line-height: 1.25;
263 + font-weight: 600;
264 + color: @text;
265 + }
266 +
267 + /* Hide descriptions on mobile to avoid a very tall / wide menu */
268 + .navbar-nav .dropdown-menu .menu-text small {
269 + display: none;
270 + }
271 +
272 + .navbar-nav .dropdown-menu .divider {
273 + margin: 4px 16px;
274 + background-color: @line;
275 + }
276 +
277 + .navbar-nav .open > a,
278 + .navbar-nav .open > a:hover,
279 + .navbar-nav .open > a:focus {
280 + background: @brand-bg;
281 + color: @brand-strong;
282 + }
237 237  }