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,55 @@ 1 1 /* ========== Agnease Public Top Menu ========== */ 2 2 3 -#agnease-menu-item { 4 - .dropdown-toggle { 5 - font-weight: inherit; 6 - font-size: inherit; 3 +/* Desktop alignment */ 4 +#menuview .navbar-nav { 5 + float: right !important; 6 +} 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; 7 7 } 8 8 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 + 9 9 .caret { 10 - margin-left: 4px;33 + margin-left: 5px; 11 11 border-top-color: @brand; 12 12 border-bottom-color: @brand; 13 13 } 14 14 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 { 38 + > a:hover .caret, 39 + > a:focus .caret, 40 + > a:active .caret, 41 + &.open > a .caret, 42 + &.active > a .caret { 27 27 border-top-color: @brand-strong; 28 28 border-bottom-color: @brand-strong; 29 29 } 30 30 } 31 31 32 -/* Dropdown panel s*/48 +/* Dropdown panel */ 33 33 34 34 .agnease-dropdown { 35 - min-width: 270px;36 - padding: 8px; 51 + min-width: 310px; 52 + padding: 10px 8px; 37 37 border: 1px solid fade(@brand, 18%); 38 38 border-radius: 12px; 39 39 background: #fff; ... ... @@ -42,22 +42,21 @@ 42 42 > li > a { 43 43 display: flex; 44 44 align-items: center; 45 - gap: 10px; 46 - padding: 9px 11px; 47 - border-radius: 9px; 61 + gap: 12px; 62 + padding: 11px 14px; 48 48 color: @brand; 49 - background: transparent; 50 50 white-space: nowrap; 51 - font-size: 14px; 52 - font-weight: 700; 53 - line-height: 1.25; 65 + font-size: 16px; 66 + font-weight: 600; 67 + line-height: 1.3; 68 + text-decoration: none; 54 54 55 55 i { 56 - width: 18px;57 - flex: 0 0 18px;71 + width: 20px; 72 + flex: 0 0 20px; 58 58 color: @brand; 59 59 text-align: center; 60 - font-size: 1 4px;75 + font-size: 15px; 61 61 } 62 62 63 63 &:hover, ... ... @@ -64,7 +64,6 @@ 64 64 &:focus, 65 65 &:active { 66 66 color: @brand-strong; 67 - background: fade(@brand, 8%); 68 68 text-decoration: none; 69 69 outline: none; 70 70 ... ... @@ -74,12 +74,8 @@ 74 74 } 75 75 } 76 76 77 - > .active > a, 78 - > .active > a:hover, 79 - > .active > a:focus { 91 + > .active > a { 80 80 color: @brand-strong; 81 - background: fade(@brand, 10%); 82 - text-decoration: none; 83 83 84 84 i { 85 85 color: @brand-strong; ... ... @@ -87,29 +87,30 @@ 87 87 } 88 88 89 89 .divider { 90 - margin: 7px 0;100 + margin: 8px 0; 91 91 background-color: fade(@brand, 16%); 92 92 } 93 93 } 94 94 95 -.agnease-products-dropdown, 96 -.agnease-resources-dropdown { 97 - min-width: 260px; 98 -} 105 +/* Mobile */ 99 99 100 -/* Remove gray Bootstrap dropdown item states */ 101 -.dropdown-menu > li > a:hover, 102 -.dropdown-menu > li > a:focus { 103 - background-image: none; 104 -} 105 - 106 -/* ========== Mobile Menu ========== */ 107 - 108 108 @media (max-width: 767px) { 109 - .navbar-nav #agnease-menu-item li a { 110 - font-size: 14px; 108 + .site-nav { 109 + margin-left: 0; 110 + justify-content: center; 111 + flex-wrap: wrap; 111 111 } 112 112 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 + 113 113 .agnease-dropdown { 114 114 min-width: 0; 115 115 width: 100%; ... ... @@ -117,31 +117,21 @@ 117 117 border: 0; 118 118 border-radius: 0; 119 119 box-shadow: none; 120 - background: #fff;131 + background: transparent; 121 121 122 122 > li > a { 123 123 padding: 8px 10px; 124 124 white-space: normal; 125 - font-size: 14px; 126 - border-radius: 8px; 127 - color: @brand; 136 + font-size: 15px; 128 128 129 129 i { 130 - width: 1 6px;131 - flex-basis: 1 6px;139 + width: 18px; 140 + flex-basis: 18px; 132 132 } 133 - 134 - &:hover, 135 - &:focus, 136 - &:active { 137 - color: @brand-strong; 138 - background: fade(@brand, 8%); 139 - } 140 140 } 141 141 142 142 .divider { 143 143 margin: 5px 0; 144 - background-color: fade(@brand, 16%); 145 145 } 146 146 } 147 147 }