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,39 +1,102 @@ 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 + 3 3 .agnease-menu-item { 4 4 .dropdown-toggle { 5 - font-weight: inherit; 6 - font-size: inherit; 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; 7 7 } 8 8 9 9 .caret { 10 - margin-left: 4px;31 + margin-left: 5px; 11 11 border-top-color: @brand; 12 12 border-bottom-color: @brand; 13 13 } 14 14 15 15 &.open > .dropdown-toggle, 37 + &.active > .dropdown-toggle, 16 16 .dropdown-toggle:hover, 17 - .dropdown-toggle:focus { 39 + .dropdown-toggle:focus, 40 + .dropdown-toggle:active { 18 18 color: @brand-strong; 19 - background: transparent; 20 - background-color: transparent; 21 - box-shadow: none; 42 + background: transparent !important; 43 + background-color: transparent !important; 44 + background-image: none !important; 45 + box-shadow: none !important; 46 + outline: none; 22 22 } 23 23 24 24 &.open > .dropdown-toggle .caret, 50 + &.active > .dropdown-toggle .caret, 25 25 .dropdown-toggle:hover .caret, 26 - .dropdown-toggle:focus .caret { 52 + .dropdown-toggle:focus .caret, 53 + .dropdown-toggle:active .caret { 27 27 border-top-color: @brand-strong; 28 28 border-bottom-color: @brand-strong; 29 29 } 30 30 } 31 31 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 + 32 32 /* Dropdown panels */ 33 33 34 34 .agnease-dropdown { 35 - min-width: 270px;36 - padding: 8px; 98 + min-width: 310px; 99 + padding: 10px 8px; 37 37 border: 1px solid fade(@brand, 18%); 38 38 border-radius: 12px; 39 39 background: #fff; ... ... @@ -42,22 +42,25 @@ 42 42 > li > a { 43 43 display: flex; 44 44 align-items: center; 45 - gap: 1 0px;46 - padding: 9px 11px;47 - border-radius: 9px;108 + gap: 12px; 109 + padding: 11px 14px; 110 + border-radius: 0; 48 48 color: @brand; 49 - background: transparent; 112 + background: transparent !important; 113 + background-color: transparent !important; 114 + background-image: none !important; 50 50 white-space: nowrap; 51 - font-size: 14px; 52 - font-weight: 700; 53 - line-height: 1.25; 116 + font-size: 16px; 117 + font-weight: 600; 118 + line-height: 1.3; 119 + box-shadow: none !important; 54 54 55 55 i { 56 - width: 18px;57 - flex: 0 0 18px;122 + width: 20px; 123 + flex: 0 0 20px; 58 58 color: @brand; 59 59 text-align: center; 60 - font-size: 1 4px;126 + font-size: 15px; 61 61 } 62 62 63 63 &:hover, ... ... @@ -64,9 +64,12 @@ 64 64 &:focus, 65 65 &:active { 66 66 color: @brand-strong; 67 - background: fade(@brand, 8%); 133 + background: transparent !important; 134 + background-color: transparent !important; 135 + background-image: none !important; 68 68 text-decoration: none; 69 69 outline: none; 138 + box-shadow: none !important; 70 70 71 71 i { 72 72 color: @brand-strong; ... ... @@ -76,10 +76,14 @@ 76 76 77 77 > .active > a, 78 78 > .active > a:hover, 79 - > .active > a:focus { 148 + > .active > a:focus, 149 + > .active > a:active { 80 80 color: @brand-strong; 81 - background: fade(@brand, 10%); 151 + background: transparent !important; 152 + background-color: transparent !important; 153 + background-image: none !important; 82 82 text-decoration: none; 155 + box-shadow: none !important; 83 83 84 84 i { 85 85 color: @brand-strong; ... ... @@ -87,7 +87,7 @@ 87 87 } 88 88 89 89 .divider { 90 - margin: 7px 0;163 + margin: 8px 0; 91 91 background-color: fade(@brand, 16%); 92 92 } 93 93 } ... ... @@ -94,24 +94,39 @@ 94 94 95 95 .agnease-products-dropdown, 96 96 .agnease-resources-dropdown { 97 - min-width: 2 60px;170 + min-width: 290px; 98 98 } 99 99 100 -/* Remove gray Bootstrap dropdown item states */ 173 +/* Remove Bootstrap/XWiki gray backgrounds from dropdown entries globally */ 174 + 175 +.dropdown-menu > li > a, 101 101 .dropdown-menu > li > a:hover, 102 -.dropdown-menu > li > a:focus { 103 - background-image: none; 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; 104 104 } 105 105 106 106 /* ========== Mobile Menu ========== */ 107 107 108 108 @media (max-width: 767px) { 109 - .navbar-nav > li.agnease-menu-item > a, 110 - .navbar-nav > li > a { 111 - padding-top: 8px; 112 - padding-bottom: 8px; 192 + .navbar-nav { 193 + float: none; 113 113 } 114 114 196 + .navbar-nav > li > a, 197 + .agnease-menu-item .dropdown-toggle { 198 + font-size: 16px; 199 + padding-top: 9px; 200 + padding-bottom: 9px; 201 + } 202 + 115 115 .agnease-dropdown { 116 116 min-width: 0; 117 117 width: 100%; ... ... @@ -119,18 +119,18 @@ 119 119 border: 0; 120 120 border-radius: 0; 121 121 box-shadow: none; 122 - background: #fff;210 + background: transparent; 123 123 124 124 > li > a { 125 125 padding: 8px 10px; 126 126 white-space: normal; 127 - font-size: 14px; 128 - border-radius: 8px; 215 + font-size: 15px; 129 129 color: @brand; 217 + background: transparent !important; 130 130 131 131 i { 132 - width: 1 6px;133 - flex-basis: 1 6px;220 + width: 18px; 221 + flex-basis: 18px; 134 134 } 135 135 136 136 &:hover, ... ... @@ -137,7 +137,7 @@ 137 137 &:focus, 138 138 &:active { 139 139 color: @brand-strong; 140 - background: fade(@brand, 8%);228 + background: transparent !important; 141 141 } 142 142 } 143 143