Changes for page Public Web Site

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

From version 10.4
edited by Agnease
on 2026/05/19 03:55
Change comment: There is no comment for this version
To version 8.22
edited by Agnease
on 2026/05/19 03:42
Change comment: There is no comment for this version

Summary

Details

XWiki.StyleSheetExtension[1]
code
... ... @@ -1,6 +1,10 @@
1 1  /* ========== Agnease Public Top Menu ========== */
2 2  
3 -.agnease-menu-item {
3 +/* Top-level dropdown menu items */
4 +
5 +.agnease-services-menu,
6 +.agnease-products-menu,
7 +.agnease-resources-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,30 +20,28 @@
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 -/* 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,
27 +/* Keep public top-level dropdown items visually clean when hovered/open/focused */
28 +
35 35  .navbar-nav > li.agnease-services-menu > a,
36 36  .navbar-nav > li.agnease-products-menu > a,
31 +.navbar-nav > li.agnease-resources-menu > a,
37 37  .navbar-nav > li.agnease-services-menu > a:hover,
38 38  .navbar-nav > li.agnease-products-menu > a:hover,
34 +.navbar-nav > li.agnease-resources-menu > a:hover,
39 39  .navbar-nav > li.agnease-services-menu > a:focus,
40 40  .navbar-nav > li.agnease-products-menu > a:focus,
37 +.navbar-nav > li.agnease-resources-menu > a:focus,
41 41  .navbar-nav > li.agnease-services-menu.open > a,
42 42  .navbar-nav > li.agnease-products-menu.open > a,
40 +.navbar-nav > li.agnease-resources-menu.open > a,
43 43  .navbar-nav > li.agnease-services-menu.open > a:hover,
44 44  .navbar-nav > li.agnease-products-menu.open > a:hover,
43 +.navbar-nav > li.agnease-resources-menu.open > a:hover,
45 45  .navbar-nav > li.agnease-services-menu.open > a:focus,
46 -.navbar-nav > li.agnease-products-menu.open > a:focus {
45 +.navbar-nav > li.agnease-products-menu.open > a:focus,
46 +.navbar-nav > li.agnease-resources-menu.open > a:focus {
47 47   background: transparent;
48 48   background-color: transparent;
49 49   color: @brand-strong;
... ... @@ -52,119 +52,111 @@
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-products-dropdown,
57 +.agnease-resources-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   }
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 + }
114 114  }
115 115  
116 -.agnease-products-dropdown,
117 -.agnease-resources-dropdown {
118 - min-width: 260px;
134 +/* Slightly narrower dropdowns where the content is shorter */
135 +
136 +.agnease-products-dropdown {
137 + min-width: 340px;
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;
140 +.agnease-resources-dropdown {
141 + min-width: 380px;
125 125  }
126 126  
127 -/* ========== Mobile Menu ========== */
144 +/* 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 {
147 + .agnease-services-dropdown,
148 + .agnease-products-dropdown,
149 + .agnease-resources-dropdown {
137 137   min-width: 0;
138 138   width: 100%;
139 - padding: 4px 8px 8px 18px;
140 - border: 0;
152 + padding: 6px;
141 141   border-radius: 0;
154 + border-left: 0;
155 + 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 - }
159 + padding: 10px;
163 163   }
164 -
165 - .divider {
166 - margin: 5px 0;
167 - background-color: fade(@brand, 16%);
168 - }
169 169   }
170 170  }