Changes for page Public Web Site
Last modified by Agnease on 2026/05/30 16:24
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.StyleSheetExtension[1]
-
- code
-
... ... @@ -1,102 +1,39 @@ 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 - } 8 - 9 - .site-nav { 10 - margin-left: auto; 11 - justify-content: flex-end; 12 - } 13 -} 14 - 15 -/* Top-level menu items */ 16 - 17 17 .agnease-menu-item { 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; 5 + font-weight: inherit; 6 + font-size: inherit; 28 28 } 29 29 30 30 .caret { 31 - margin-left: 5px;10 + margin-left: 4px; 32 32 border-top-color: @brand; 33 33 border-bottom-color: @brand; 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 { 17 + .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; 19 + background: transparent; 20 + background-color: transparent; 21 + box-shadow: none; 47 47 } 48 48 49 49 &.open > .dropdown-toggle .caret, 50 - &.active > .dropdown-toggle .caret, 51 51 .dropdown-toggle:hover .caret, 52 - .dropdown-toggle:focus .caret, 53 - .dropdown-toggle:active .caret { 26 + .dropdown-toggle:focus .caret { 54 54 border-top-color: @brand-strong; 55 55 border-bottom-color: @brand-strong; 56 56 } 57 57 } 58 58 59 -/* Remove Bootstrap/XWiki gray backgrounds from top-level nav states */ 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 { 92 - color: @brand-strong; 93 -} 94 - 95 95 /* Dropdown panels */ 96 96 97 97 .agnease-dropdown { 98 - min-width: 310px;99 - padding: 10px8px;35 + min-width: 270px; 36 + padding: 8px; 100 100 border: 1px solid fade(@brand, 18%); 101 101 border-radius: 12px; 102 102 background: #fff; ... ... @@ -105,25 +105,22 @@ 105 105 > li > a { 106 106 display: flex; 107 107 align-items: center; 108 - gap: 1 2px;109 - padding: 11px 14px;110 - border-radius: 0;45 + gap: 10px; 46 + padding: 9px 11px; 47 + border-radius: 9px; 111 111 color: @brand; 112 - background: transparent !important; 113 - background-color: transparent !important; 114 - background-image: none !important; 49 + background: transparent; 115 115 white-space: nowrap; 116 - font-size: 16px; 117 - font-weight: 600; 118 - line-height: 1.3; 119 - box-shadow: none !important; 51 + font-size: 14px; 52 + font-weight: 700; 53 + line-height: 1.25; 120 120 121 121 i { 122 - width: 20px;123 - flex: 0 0 20px;56 + width: 18px; 57 + flex: 0 0 18px; 124 124 color: @brand; 125 125 text-align: center; 126 - font-size: 1 5px;60 + font-size: 14px; 127 127 } 128 128 129 129 &:hover, ... ... @@ -130,12 +130,9 @@ 130 130 &:focus, 131 131 &:active { 132 132 color: @brand-strong; 133 - background: transparent !important; 134 - background-color: transparent !important; 135 - background-image: none !important; 67 + background: fade(@brand, 8%); 136 136 text-decoration: none; 137 137 outline: none; 138 - box-shadow: none !important; 139 139 140 140 i { 141 141 color: @brand-strong; ... ... @@ -145,14 +145,10 @@ 145 145 146 146 > .active > a, 147 147 > .active > a:hover, 148 - > .active > a:focus, 149 - > .active > a:active { 79 + > .active > a:focus { 150 150 color: @brand-strong; 151 - background: transparent !important; 152 - background-color: transparent !important; 153 - background-image: none !important; 81 + background: fade(@brand, 10%); 154 154 text-decoration: none; 155 - box-shadow: none !important; 156 156 157 157 i { 158 158 color: @brand-strong; ... ... @@ -160,7 +160,7 @@ 160 160 } 161 161 162 162 .divider { 163 - margin: 8px 0;90 + margin: 7px 0; 164 164 background-color: fade(@brand, 16%); 165 165 } 166 166 } ... ... @@ -167,37 +167,26 @@ 167 167 168 168 .agnease-products-dropdown, 169 169 .agnease-resources-dropdown { 170 - min-width: 2 90px;97 + min-width: 260px; 171 171 } 172 172 173 -/* Remove Bootstrap/XWiki gray backgrounds from dropdown entries globally */ 174 - 175 -.dropdown-menu > li > a, 100 +/* Remove gray Bootstrap dropdown item states */ 176 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; 102 +.dropdown-menu > li > a:focus { 103 + background-image: none; 187 187 } 188 188 189 189 /* ========== Mobile Menu ========== */ 190 190 191 191 @media (max-width: 767px) { 192 - .navbar-nav { 193 - f loat:none;109 + .navbar-default .navbar-nav li { 110 + font-size: 14px; 194 194 } 195 - 196 - .navbar-nav > li > a, 197 - .agnease-menu-item .dropdown-toggle { 198 - font-size: 16px; 199 - padding-top: 9px; 200 - padding-bottom: 9px; 112 + .navbar-nav > li.agnease-menu-item > a, 113 + .navbar-nav > li > a { 114 + padding-top: 8px; 115 + padding-bottom: 8px; 116 + 201 201 } 202 202 203 203 .agnease-dropdown { ... ... @@ -207,18 +207,18 @@ 207 207 border: 0; 208 208 border-radius: 0; 209 209 box-shadow: none; 210 - background: transparent;126 + background: #fff; 211 211 212 212 > li > a { 213 213 padding: 8px 10px; 214 214 white-space: normal; 215 - font-size: 15px; 131 + font-size: 14px; 132 + border-radius: 8px; 216 216 color: @brand; 217 - background: transparent !important; 218 218 219 219 i { 220 - width: 1 8px;221 - flex-basis: 1 8px;136 + width: 16px; 137 + flex-basis: 16px; 222 222 } 223 223 224 224 &:hover, ... ... @@ -225,7 +225,7 @@ 225 225 &:focus, 226 226 &:active { 227 227 color: @brand-strong; 228 - background: transparent !important;144 + background: fade(@brand, 8%); 229 229 } 230 230 } 231 231