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,18 +1,10 @@ 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 { 3 +/* Desktop alignment */ 4 +.navbar-nav { 6 6 float: right; 7 - margin-left: auto; 8 8 } 9 9 10 - .site-nav { 11 - margin-left: auto; 12 - justify-content: flex-end; 13 - } 14 -} 15 - 16 16 /* Top-level menu items */ 17 17 18 18 .agnease-menu-item, ... ... @@ -24,10 +24,7 @@ 24 24 font-weight: 600; 25 25 padding-left: 16px; 26 26 padding-right: 16px; 27 - background: transparent !important; 28 - background-color: transparent !important; 29 - background-image: none !important; 30 - box-shadow: none !important; 19 + text-decoration: none; 31 31 } 32 32 33 33 > a:hover, ... ... @@ -34,20 +34,10 @@ 34 34 > a:focus, 35 35 > a:active, 36 36 &.open > a, 37 - &.open > a:hover, 38 - &.open > a:focus, 39 - &.open > a:active, 40 - &.active > a, 41 - &.active > a:hover, 42 - &.active > a:focus, 43 - &.active > a:active { 26 + &.active > a { 44 44 color: @brand-strong; 45 - background: transparent !important; 46 - background-color: transparent !important; 47 - background-image: none !important; 48 - box-shadow: none !important; 49 - outline: none; 50 50 text-decoration: none; 29 + outline: none; 51 51 } 52 52 53 53 .caret { ... ... @@ -66,46 +66,6 @@ 66 66 } 67 67 } 68 68 69 -/* Strong Bootstrap/XWiki overrides for top-level menu backgrounds */ 70 - 71 -.navbar-nav > li, 72 -.navbar-nav > li:hover, 73 -.navbar-nav > li:focus, 74 -.navbar-nav > li:active, 75 -.navbar-nav > li.open, 76 -.navbar-nav > li.open:hover, 77 -.navbar-nav > li.open:focus, 78 -.navbar-nav > li.open:active, 79 -.navbar-nav > li.active, 80 -.navbar-nav > li.active:hover, 81 -.navbar-nav > li.active:focus, 82 -.navbar-nav > li.active:active { 83 - background: transparent !important; 84 - background-color: transparent !important; 85 - background-image: none !important; 86 -} 87 - 88 -.navbar-nav > li > a, 89 -.navbar-nav > li > a:hover, 90 -.navbar-nav > li > a:focus, 91 -.navbar-nav > li > a:active, 92 -.navbar-nav > li.open > a, 93 -.navbar-nav > li.open > a:hover, 94 -.navbar-nav > li.open > a:focus, 95 -.navbar-nav > li.open > a:active, 96 -.navbar-nav > li.active > a, 97 -.navbar-nav > li.active > a:hover, 98 -.navbar-nav > li.active > a:focus, 99 -.navbar-nav > li.active > a:active, 100 -.nav .open > a, 101 -.nav .open > a:hover, 102 -.nav .open > a:focus { 103 - background: transparent !important; 104 - background-color: transparent !important; 105 - background-image: none !important; 106 - box-shadow: none !important; 107 -} 108 - 109 109 /* Dropdown panel */ 110 110 111 111 .agnease-dropdown { ... ... @@ -122,14 +122,11 @@ 122 122 gap: 12px; 123 123 padding: 11px 14px; 124 124 color: @brand; 125 - background: transparent !important; 126 - background-color: transparent !important; 127 - background-image: none !important; 128 128 white-space: nowrap; 129 129 font-size: 16px; 130 130 font-weight: 600; 131 131 line-height: 1.3; 132 - box-shadow: none!important;68 + text-decoration: none; 133 133 134 134 i { 135 135 width: 20px; ... ... @@ -143,12 +143,8 @@ 143 143 &:focus, 144 144 &:active { 145 145 color: @brand-strong; 146 - background: transparent !important; 147 - background-color: transparent !important; 148 - background-image: none !important; 149 149 text-decoration: none; 150 150 outline: none; 151 - box-shadow: none !important; 152 152 153 153 i { 154 154 color: @brand-strong; ... ... @@ -156,16 +156,8 @@ 156 156 } 157 157 } 158 158 159 - > .active > a, 160 - > .active > a:hover, 161 - > .active > a:focus, 162 - > .active > a:active { 91 + > .active > a { 163 163 color: @brand-strong; 164 - background: transparent !important; 165 - background-color: transparent !important; 166 - background-image: none !important; 167 - text-decoration: none; 168 - box-shadow: none !important; 169 169 170 170 i { 171 171 color: @brand-strong; ... ... @@ -178,32 +178,13 @@ 178 178 } 179 179 } 180 180 181 -/* Strong Bootstrap/XWiki overrides for submenu gray hover backgrounds */ 182 - 183 -.dropdown-menu > li > a, 184 -.dropdown-menu > li > a:hover, 185 -.dropdown-menu > li > a:focus, 186 -.dropdown-menu > li > a:active, 187 -.dropdown-menu > .active > a, 188 -.dropdown-menu > .active > a:hover, 189 -.dropdown-menu > .active > a:focus, 190 -.dropdown-menu > .active > a:active, 191 -.agnease-dropdown > li > a, 192 -.agnease-dropdown > li > a:hover, 193 -.agnease-dropdown > li > a:focus, 194 -.agnease-dropdown > li > a:active { 195 - background: transparent !important; 196 - background-color: transparent !important; 197 - background-image: none !important; 198 - box-shadow: none !important; 199 -} 200 - 201 201 /* Mobile */ 202 202 203 203 @media (max-width: 767px) { 204 - .navbar-nav { 205 - float: none; 108 + .site-nav { 206 206 margin-left: 0; 110 + justify-content: center; 111 + flex-wrap: wrap; 207 207 } 208 208 209 209 .agnease-menu-item, ... ... @@ -229,25 +229,15 @@ 229 229 padding: 8px 10px; 230 230 white-space: normal; 231 231 font-size: 15px; 232 - color: @brand; 233 - background: transparent !important; 234 234 235 235 i { 236 236 width: 18px; 237 237 flex-basis: 18px; 238 238 } 239 - 240 - &:hover, 241 - &:focus, 242 - &:active { 243 - color: @brand-strong; 244 - background: transparent !important; 245 - } 246 246 } 247 247 248 248 .divider { 249 249 margin: 5px 0; 250 - background-color: fade(@brand, 16%); 251 251 } 252 252 } 253 253 }