Changes for page Public Web Site

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

From version 10.3
edited by Agnease
on 2026/05/19 03:55
Change comment: There is no comment for this version
To version 8.14
edited by Agnease
on 2026/05/19 03:31
Change comment: There is no comment for this version

Summary

Details

XWiki.StyleSheetExtension[1]
code
... ... @@ -1,6 +1,16 @@
1 1  /* ========== Agnease Public Top Menu ========== */
2 2  
3 -.agnease-menu-item {
3 +@brand: #00937D;
4 +@brand-strong: #007B6A;
5 +@text: #2D3A34;
6 +@muted: #5B6B64;
7 +@line: #E4ECE9;
8 +@brand-bg: #F4FCFA;
9 +
10 +/* Top-level menu items */
11 +
12 +.agnease-services-menu,
13 +.agnease-products-menu {
4 4   .dropdown-toggle {
5 5   font-weight: inherit;
6 6   font-size: inherit;
... ... @@ -8,8 +8,6 @@
8 8  
9 9   .caret {
10 10   margin-left: 4px;
11 - border-top-color: @brand;
12 - border-bottom-color: @brand;
13 13   }
14 14  
15 15   &.open > .dropdown-toggle,
... ... @@ -20,18 +20,10 @@
20 20   background-color: transparent;
21 21   box-shadow: none;
22 22   }
23 -
24 - &.open > .dropdown-toggle .caret,
25 - .dropdown-toggle:hover .caret,
26 - .dropdown-toggle:focus .caret {
27 - border-top-color: @brand-strong;
28 - border-bottom-color: @brand-strong;
29 - }
30 30  }
31 31  
32 32  /* Keep Agnease public top-level menu visually clean when hovered/open/focused */
33 -.navbar-nav > li.agnease-menu-item > a,
34 -.navbar-nav > li.agnease-menu-item > a:hover,
34 +
35 35  .navbar-nav > li.agnease-services-menu > a,
36 36  .navbar-nav > li.agnease-products-menu > a,
37 37  .navbar-nav > li.agnease-services-menu > a:hover,
... ... @@ -52,139 +52,106 @@
52 52  
53 53  /* Dropdown panels */
54 54  
55 -.agnease-dropdown {
56 - min-width: 270px;
57 - padding: 8px;
58 - 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;
59 59   border-radius: 12px;
60 - background: #fff;
61 - box-shadow: 0 12px 32px fade(@brand-strong, 12%);
62 + box-shadow: 0 12px 36px rgba(0, 0, 0, .10);
62 62  
63 63   > li > a {
64 64   display: flex;
65 - align-items: center;
66 - gap: 10px;
67 - padding: 9px 11px;
68 - border-radius: 9px;
69 - color: @brand;
70 - background: transparent;
71 - white-space: nowrap;
72 - font-size: 14px;
73 - font-weight: 700;
74 - line-height: 1.25;
66 + align-items: flex-start;
67 + gap: 12px;
68 + padding: 10px 12px;
69 + border-radius: 10px;
70 + color: @text;
71 + white-space: normal;
75 75  
76 - i {
77 - width: 18px;
78 - flex: 0 0 18px;
79 - color: @brand;
80 - text-align: center;
81 - font-size: 14px;
82 - }
83 -
84 84   &:hover,
85 - &:focus,
86 - &:active {
74 + &:focus {
87 87   color: @brand-strong;
88 - background: fade(@brand, 8%);
76 + background: @brand-bg;
89 89   text-decoration: none;
90 - outline: none;
91 91  
92 - i {
79 + .menu-icon {
93 93   color: @brand-strong;
81 + background: fade(@brand, 14%);
82 + border-color: fade(@brand, 28%);
94 94   }
95 - }
96 - }
97 97  
98 - > .active > a,
99 - > .active > a:hover,
100 - > .active > a:focus {
101 - color: @brand-strong;
102 - background: fade(@brand, 10%);
103 - text-decoration: none;
85 + strong {
86 + color: @brand-strong;
87 + }
104 104  
105 - i {
106 - color: @brand-strong;
89 + small {
90 + color: @muted;
91 + }
107 107   }
108 108   }
109 109  
110 110   .divider {
111 - margin: 7px 0;
112 - background-color: fade(@brand, 16%);
96 + margin: 8px 0;
97 + background-color: @line;
113 113   }
114 -}
115 115  
116 -.agnease-products-dropdown,
117 -.agnease-resources-dropdown {
118 - min-width: 260px;
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 + }
119 119  }
120 120  
121 -/* Remove gray Bootstrap dropdown item states */
122 -.dropdown-menu > li > a:hover,
123 -.dropdown-menu > li > a:focus {
124 - background-image: none;
134 +/* Products dropdown can be slightly narrower for now */
135 +
136 +.agnease-products-dropdown {
137 + min-width: 340px;
125 125  }
126 126  
127 -/* ========== Mobile Menu ========== */
140 +/* Mobile */
128 128  
129 129  @media (max-width: 767px) {
130 - .navbar-nav > li.agnease-menu-item > a,
131 - .navbar-nav > li > a {
132 - padding-top: 8px;
133 - padding-bottom: 8px;
134 - }
135 -
136 - .agnease-dropdown {
143 + .agnease-services-dropdown,
144 + .agnease-products-dropdown {
137 137   min-width: 0;
138 138   width: 100%;
139 - padding: 4px 8px 8px 18px;
140 - border: 0;
147 + padding: 6px;
141 141   border-radius: 0;
149 + border-left: 0;
150 + border-right: 0;
142 142   box-shadow: none;
143 - background: #fff;
144 144  
145 145   > li > a {
146 - padding: 8px 10px;
147 - white-space: normal;
148 - font-size: 14px;
149 - border-radius: 8px;
150 - color: @brand;
151 -
152 - i {
153 - width: 16px;
154 - flex-basis: 16px;
155 - }
156 -
157 - &:hover,
158 - &:focus,
159 - &:active {
160 - color: @brand-strong;
161 - background: fade(@brand, 8%);
162 - }
154 + padding: 10px;
163 163   }
164 -
165 - .divider {
166 - margin: 5px 0;
167 - background-color: fade(@brand, 16%);
168 - }
169 169   }
170 170  }
171 -/* Remove gray background from opened top-level public menu items */
172 -
173 -.site-nav .dropdown.open > a,
174 -.site-nav .dropdown.open > a:hover,
175 -.site-nav .dropdown.open > a:focus,
176 -.site-nav .agnease-menu-item.open > a,
177 -.site-nav .agnease-menu-item.open > a:hover,
178 -.site-nav .agnease-menu-item.open > a:focus,
179 -.navbar-nav > li.dropdown.open > a,
180 -.navbar-nav > li.dropdown.open > a:hover,
181 -.navbar-nav > li.dropdown.open > a:focus,
182 -.navbar-nav > li.agnease-menu-item.open > a,
183 -.navbar-nav > li.agnease-menu-item.open > a:hover,
184 -.navbar-nav > li.agnease-menu-item.open > a:focus {
185 - color: @brand-strong;
186 - background: transparent !important;
187 - background-color: transparent !important;
188 - background-image: none !important;
189 - box-shadow: none !important;
190 -}