Changes for page Public Web Site

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

From version 10.31
edited by Agnease
on 2026/05/19 07:29
Change comment: There is no comment for this version
To version 8.26
edited by Agnease
on 2026/05/19 03:50
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,55 +1,66 @@
1 1  /* ========== Agnease Public Top Menu ========== */
2 2  
3 -/* Desktop alignment */
4 -.navbar-left {
5 - float: right;
3 +.agnease-menu-item {
4 + .dropdown-toggle {
5 + font-weight: inherit;
6 + font-size: inherit;
6 6   }
7 7  
8 -/* Top-level menu items */
9 -
10 -.agnease-menu-item,
11 -.agnease-menu-link {
12 - > a,
13 - > .dropdown-toggle {
14 - color: @brand;
15 - font-size: 17px;
16 - font-weight: 600;
17 - padding-left: 16px;
18 - padding-right: 16px;
19 - text-decoration: none;
20 - }
21 -
22 - > a:hover,
23 - > a:focus,
24 - > a:active,
25 - &.open > a,
26 - &.active > a {
27 - color: @brand-strong;
28 - text-decoration: none;
29 - outline: none;
30 - }
31 -
32 32   .caret {
33 - margin-left: 5px;
10 + margin-left: 4px;
34 34   border-top-color: @brand;
35 35   border-bottom-color: @brand;
36 36   }
37 37  
38 - > a:hover .caret,
39 - > a:focus .caret,
40 - > a:active .caret,
41 - &.open > a .caret,
42 - &.active > a .caret {
15 + &.open > .dropdown-toggle,
16 + .dropdown-toggle:hover,
17 + .dropdown-toggle:focus {
18 + color: @brand-strong;
19 + background: transparent;
20 + background-color: transparent;
21 + box-shadow: none;
22 + }
23 +
24 + &.open > .dropdown-toggle .caret,
25 + .dropdown-toggle:hover .caret,
26 + .dropdown-toggle:focus .caret {
43 43   border-top-color: @brand-strong;
44 44   border-bottom-color: @brand-strong;
45 45   }
46 46  }
47 47  
48 -/* Dropdown panel */
32 +/* Keep public top-level dropdown items clean and green when hovered/open/focused */
49 49  
34 +.navbar-nav > li.agnease-menu-item > a,
35 +.navbar-nav > li.agnease-menu-item > a:hover,
36 +.navbar-nav > li.agnease-menu-item > a:focus,
37 +.navbar-nav > li.agnease-menu-item.open > a,
38 +.navbar-nav > li.agnease-menu-item.open > a:hover,
39 +.navbar-nav > li.agnease-menu-item.open > a:focus {
40 + background: transparent;
41 + background-color: transparent;
42 + color: @brand-strong;
43 + box-shadow: none;
44 +}
45 +
46 +/* Override Bootstrap/XWiki gray open states */
47 +.nav .open > a,
48 +.nav .open > a:hover,
49 +.nav .open > a:focus,
50 +.navbar-nav > .open > a,
51 +.navbar-nav > .open > a:hover,
52 +.navbar-nav > .open > a:focus {
53 + background: transparent;
54 + background-color: transparent;
55 + color: @brand-strong;
56 + box-shadow: none;
57 +}
58 +
59 +/* Dropdown panels */
60 +
50 50  .agnease-dropdown {
51 - min-width: 310px;
52 - padding: 10px 8px;
62 + min-width: 270px;
63 + padding: 8px;
53 53   border: 1px solid fade(@brand, 18%);
54 54   border-radius: 12px;
55 55   background: #fff;
... ... @@ -58,21 +58,22 @@
58 58   > li > a {
59 59   display: flex;
60 60   align-items: center;
61 - gap: 12px;
62 - padding: 11px 14px;
72 + gap: 10px;
73 + padding: 9px 11px;
74 + border-radius: 9px;
63 63   color: @brand;
76 + background: transparent;
64 64   white-space: nowrap;
65 - font-size: 16px;
66 - font-weight: 600;
67 - line-height: 1.3;
68 - text-decoration: none;
78 + font-size: 14px;
79 + font-weight: 700;
80 + line-height: 1.25;
69 69  
70 70   i {
71 - width: 20px;
72 - flex: 0 0 20px;
83 + width: 18px;
84 + flex: 0 0 18px;
73 73   color: @brand;
74 74   text-align: center;
75 - font-size: 15px;
87 + font-size: 14px;
76 76   }
77 77  
78 78   &:hover,
... ... @@ -79,6 +79,7 @@
79 79   &:focus,
80 80   &:active {
81 81   color: @brand-strong;
94 + background: fade(@brand, 8%);
82 82   text-decoration: none;
83 83   outline: none;
84 84  
... ... @@ -88,8 +88,12 @@
88 88   }
89 89   }
90 90  
91 - > .active > a {
104 + > .active > a,
105 + > .active > a:hover,
106 + > .active > a:focus {
92 92   color: @brand-strong;
108 + background: fade(@brand, 10%);
109 + text-decoration: none;
93 93  
94 94   i {
95 95   color: @brand-strong;
... ... @@ -97,30 +97,31 @@
97 97   }
98 98  
99 99   .divider {
100 - margin: 8px 0;
117 + margin: 7px 0;
101 101   background-color: fade(@brand, 16%);
102 102   }
103 103  }
104 104  
105 -/* Mobile */
122 +.agnease-products-dropdown,
123 +.agnease-resources-dropdown {
124 + min-width: 260px;
125 +}
106 106  
127 +/* Remove gray Bootstrap dropdown item states */
128 +.dropdown-menu > li > a:hover,
129 +.dropdown-menu > li > a:focus {
130 + background-image: none;
131 +}
132 +
133 +/* ========== Mobile Menu ========== */
134 +
107 107  @media (max-width: 767px) {
108 - .site-nav {
109 - margin-left: 0;
110 - justify-content: center;
111 - flex-wrap: wrap;
136 + .navbar-nav > li.agnease-menu-item > a,
137 + .navbar-nav > li > a {
138 + padding-top: 8px;
139 + padding-bottom: 8px;
112 112   }
113 113  
114 - .agnease-menu-item,
115 - .agnease-menu-link {
116 - > a,
117 - > .dropdown-toggle {
118 - font-size: 16px;
119 - padding-top: 9px;
120 - padding-bottom: 9px;
121 - }
122 - }
123 -
124 124   .agnease-dropdown {
125 125   min-width: 0;
126 126   width: 100%;
... ... @@ -128,21 +128,51 @@
128 128   border: 0;
129 129   border-radius: 0;
130 130   box-shadow: none;
131 - background: transparent;
149 + background: #fff;
132 132  
133 133   > li > a {
134 134   padding: 8px 10px;
135 135   white-space: normal;
136 - font-size: 15px;
154 + font-size: 14px;
155 + border-radius: 8px;
156 + color: @brand;
137 137  
138 138   i {
139 - width: 18px;
140 - flex-basis: 18px;
159 + width: 16px;
160 + flex-basis: 16px;
141 141   }
162 +
163 + &:hover,
164 + &:focus,
165 + &:active {
166 + color: @brand-strong;
167 + background: fade(@brand, 8%);
168 + }
142 142   }
143 143  
144 144   .divider {
145 145   margin: 5px 0;
173 + background-color: fade(@brand, 16%);
146 146   }
147 147   }
148 148  }
177 +/* Remove gray background from opened top-level public menu items */
178 +
179 +.site-nav .dropdown.open > a,
180 +.site-nav .dropdown.open > a:hover,
181 +.site-nav .dropdown.open > a:focus,
182 +.site-nav .agnease-menu-item.open > a,
183 +.site-nav .agnease-menu-item.open > a:hover,
184 +.site-nav .agnease-menu-item.open > a:focus,
185 +.navbar-nav > li.dropdown.open > a,
186 +.navbar-nav > li.dropdown.open > a:hover,
187 +.navbar-nav > li.dropdown.open > a:focus,
188 +.navbar-nav > li.agnease-menu-item.open > a,
189 +.navbar-nav > li.agnease-menu-item.open > a:hover,
190 +.navbar-nav > li.agnease-menu-item.open > a:focus {
191 + color: @brand-strong;
192 + background: transparent !important;
193 + background-color: transparent !important;
194 + background-image: none !important;
195 + box-shadow: none !important;
196 +}