Changes for page Public Web Site

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

From version 8.21
edited by Agnease
on 2026/05/19 03:42
Change comment: There is no comment for this version
To version 10.2
edited by Agnease
on 2026/05/19 03:53
Change comment: There is no comment for this version

Summary

Details

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