Changes for page Public Web Site
Last modified by Agnease on 2026/05/30 16:24
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -146,7 +146,7 @@ 146 146 </div> 147 147 </section> 148 148 149 - <section class="resource-strip" aria-labelledby="resources-title"> 149 + <section class="resource-strip homepage-resource-strip" aria-labelledby="resources-title"> 150 150 <div class="container"> 151 151 <h2 id="resources-title">Useful XWiki resources</h2> 152 152 <p class="section-intro">
- XWiki.StyleSheetExtension[0]
-
- code
-
... ... @@ -329,11 +329,10 @@ 329 329 border: 1px solid @line; 330 330 border-radius: @radius; 331 331 box-shadow: @shadow-sm; 332 - transition: transform .18s ease,box-shadow .18s ease;332 + transition: box-shadow .18s ease; 333 333 334 334 &:hover { 335 - transform: translateY(-2px); 336 - box-shadow: @shadow; 335 + box-shadow: @shadow-sm; 337 337 } 338 338 } 339 339 ... ... @@ -599,6 +599,102 @@ 599 599 } 600 600 } 601 601 601 +.resource-content { 602 + order: 1; 603 +} 604 + 605 +.resource-sidebar { 606 + order: 2; 607 +} 608 + 609 +@media (max-width: 767px) { 610 + .resource-layout { 611 + display: flex; 612 + flex-direction: column; 613 + } 614 + 615 + .resource-sidebar { 616 + order: 0; 617 + position: static; 618 + width: 100%; 619 + } 620 + 621 + .resource-content { 622 + order: 1; 623 + } 624 +} 625 + 626 +/* ========== Homepage Resource Strip ========== */ 627 + 628 +.homepage-resource-strip { 629 + background: 630 + radial-gradient(42rem 16rem at 50% 0%, @brand-bg 0%, transparent 70%); 631 + 632 + .resource-grid { 633 + max-width: 1040px; 634 + margin: 26px auto 0; 635 + display: grid; 636 + grid-template-columns: repeat(2, minmax(0, 1fr)); 637 + grid-gap: 22px; 638 + align-items: stretch; 639 + } 640 + 641 + .resource-card { 642 + display: flex; 643 + flex-direction: column; 644 + min-width: 0; 645 + min-height: 100%; 646 + padding: 26px; 647 + } 648 + 649 + .resource-card h4 { 650 + margin: 0 0 10px; 651 + color: @text; 652 + font-size: 21px; 653 + line-height: 1.25; 654 + font-weight: 700; 655 + } 656 + 657 + .resource-card p { 658 + margin: 0 0 18px; 659 + color: @muted; 660 + font-size: 15px; 661 + line-height: 1.6; 662 + } 663 + 664 + .resource-card a { 665 + margin-top: auto; 666 + color: @brand; 667 + font-weight: 700; 668 + text-decoration: underline; 669 + 670 + &:hover, 671 + &:focus { 672 + color: @brand-strong; 673 + } 674 + } 675 +} 676 + 677 +@media (max-width: 980px) { 678 + .homepage-resource-strip { 679 + .resource-grid { 680 + grid-template-columns: 1fr; 681 + } 682 + } 683 +} 684 + 685 +@media (max-width: 640px) { 686 + .homepage-resource-strip { 687 + .resource-card { 688 + padding: 22px; 689 + } 690 + 691 + .resource-card h4 { 692 + font-size: 19px; 693 + } 694 + } 695 +} 696 + 602 602 /* ========== CTA ========== */ 603 603 604 604 .cta-section { ... ... @@ -1148,3 +1148,141 @@ 1148 1148 padding: 20px; 1149 1149 } 1150 1150 } 1246 +/* ========== Resources Index ========== */ 1247 + 1248 +.resources-index-page { 1249 + padding: 56px 0 72px; 1250 + background: @brand-bg; 1251 +} 1252 + 1253 +.resources-intro { 1254 + max-width: 820px; 1255 + margin: 0 auto 32px; 1256 + text-align: center; 1257 +} 1258 + 1259 +.resources-intro p { 1260 + color: @muted; 1261 + font-size: 17px; 1262 + line-height: 1.7; 1263 + margin: 0; 1264 +} 1265 + 1266 +.resources-grid { 1267 + display: grid; 1268 + grid-template-columns: repeat(2, minmax(0, 1fr)); 1269 + gap: 24px; 1270 + margin-bottom: 36px; 1271 +} 1272 + 1273 +.resource-card { 1274 + display: flex; 1275 + gap: 18px; 1276 + background: #fff; 1277 + border: 1px solid @line; 1278 + border-radius: @radius; 1279 + box-shadow: @shadow-sm; 1280 + padding: 24px; 1281 +} 1282 + 1283 +.resource-card-icon { 1284 + flex: 0 0 46px; 1285 + width: 46px; 1286 + height: 46px; 1287 + border-radius: 14px; 1288 + background: @brand-soft; 1289 + color: @brand-strong; 1290 + display: flex; 1291 + align-items: center; 1292 + justify-content: center; 1293 + font-size: 20px; 1294 +} 1295 + 1296 +.resource-card-label { 1297 + color: @brand-strong; 1298 + font-size: 13px; 1299 + font-weight: 700; 1300 + text-transform: uppercase; 1301 + letter-spacing: .04em; 1302 + margin-bottom: 8px; 1303 +} 1304 + 1305 +.resource-card h2 { 1306 + font-size: 22px; 1307 + line-height: 1.25; 1308 + margin: 0 0 12px; 1309 +} 1310 + 1311 +.resource-card h2 a { 1312 + color: @text; 1313 + text-decoration: none; 1314 +} 1315 + 1316 +.resource-card h2 a:hover { 1317 + color: @brand-strong; 1318 + text-decoration: none; 1319 +} 1320 + 1321 +.resource-card p { 1322 + color: @muted; 1323 + font-size: 15px; 1324 + line-height: 1.65; 1325 + margin: 0 0 16px; 1326 +} 1327 + 1328 +.resource-card-link { 1329 + color: @brand-strong; 1330 + font-weight: 700; 1331 + text-decoration: none; 1332 +} 1333 + 1334 +.resource-card-link:hover { 1335 + color: @brand; 1336 + text-decoration: none; 1337 +} 1338 + 1339 +.resources-next { 1340 + max-width: 820px; 1341 + margin: 0 auto 32px; 1342 + text-align: center; 1343 +} 1344 + 1345 +.resources-next h2 { 1346 + font-size: 26px; 1347 + margin: 0 0 10px; 1348 +} 1349 + 1350 +.resources-next p { 1351 + color: @muted; 1352 + font-size: 16px; 1353 + line-height: 1.7; 1354 + margin: 0; 1355 +} 1356 + 1357 +@media (max-width: 767px) { 1358 + .resources-index-page { 1359 + padding: 36px 0 52px; 1360 + } 1361 + 1362 + .resources-intro { 1363 + text-align: left; 1364 + margin-bottom: 24px; 1365 + } 1366 + 1367 + .resources-grid { 1368 + grid-template-columns: 1fr; 1369 + gap: 18px; 1370 + } 1371 + 1372 + .resource-card { 1373 + padding: 20px; 1374 + } 1375 + 1376 + .resource-card h2 { 1377 + font-size: 20px; 1378 + } 1379 + 1380 + .resources-next { 1381 + text-align: left; 1382 + } 1383 +}
- XWiki.StyleSheetExtension[1]
-
- code
-
... ... @@ -1,156 +1,148 @@ 1 1 /* ========== Agnease Public Top Menu ========== */ 2 2 3 -@brand: #00937D; 4 -@brand-strong: #007B6A; 5 -@text: #2D3A34; 6 -@muted: #5B6B64; 7 -@line: #E4ECE9; 8 -@brand-bg: #F4FCFA; 3 +/* Desktop alignment */ 4 +#menuview .navbar-nav { 5 + float: right !important; 6 +} 9 9 10 10 /* Top-level menu items */ 11 11 12 -.agnease-services-menu, 13 -.agnease-products-menu { 14 - .dropdown-toggle { 15 - font-weight: inherit; 16 - font-size: inherit; 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; 17 17 } 18 18 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 + 19 19 .caret { 20 - margin-left: 4px; 33 + margin-left: 5px; 34 + border-top-color: @brand; 35 + border-bottom-color: @brand; 21 21 } 22 22 23 - &.open>.dropdown-toggle,24 - .dropdown-toggle:hover,25 - .dropdown-toggle:focus{26 - color:@brand-strong;27 - background:transparent;28 - b ackground-color:transparent;29 - bo x-shadow: none;38 + > a:hover .caret, 39 + > a:focus .caret, 40 + > a:active .caret, 41 + &.open > a .caret, 42 + &.active > a .caret { 43 + border-top-color: @brand-strong; 44 + border-bottom-color: @brand-strong; 30 30 } 31 31 } 32 32 33 -/* Keep Agnease public top-level menu visually cleanwhenhovered/open/focused*/48 +/* Dropdown panel */ 34 34 35 -.navbar-nav > li.agnease-services-menu > a, 36 -.navbar-nav > li.agnease-products-menu > a, 37 -.navbar-nav > li.agnease-services-menu > a:hover, 38 -.navbar-nav > li.agnease-products-menu > a:hover, 39 -.navbar-nav > li.agnease-services-menu > a:focus, 40 -.navbar-nav > li.agnease-products-menu > a:focus, 41 -.navbar-nav > li.agnease-services-menu.open > a, 42 -.navbar-nav > li.agnease-products-menu.open > a, 43 -.navbar-nav > li.agnease-services-menu.open > a:hover, 44 -.navbar-nav > li.agnease-products-menu.open > a:hover, 45 -.navbar-nav > li.agnease-services-menu.open > a:focus, 46 -.navbar-nav > li.agnease-products-menu.open > a:focus { 47 - background: transparent; 48 - background-color: transparent; 49 - color: @brand-strong; 50 - box-shadow: none; 51 -} 52 - 53 -/* Dropdown panels */ 54 - 55 -.agnease-services-dropdown, 56 -.agnease-products-dropdown { 57 - min-width: 360px; 58 - padding: 10px; 59 - border: 1px solid @line; 50 +.agnease-dropdown { 51 + min-width: 310px; 52 + padding: 10px 8px; 53 + border: 1px solid fade(@brand, 18%); 60 60 border-radius: 12px; 61 - box-shadow: 0 12px 36px rgba(0, 0, 0, .10); 55 + background: #fff; 56 + box-shadow: 0 12px 32px fade(@brand-strong, 12%); 62 62 63 63 > li > a { 64 64 display: flex; 65 - align-items: flex-start;60 + align-items: center; 66 66 gap: 12px; 67 - padding: 10px 12px; 68 - border-radius: 10px; 69 - color: @text; 70 - white-space: normal; 62 + padding: 11px 14px; 63 + color: @brand; 64 + white-space: nowrap; 65 + font-size: 16px; 66 + font-weight: 600; 67 + line-height: 1.3; 68 + text-decoration: none; 71 71 70 + i { 71 + width: 20px; 72 + flex: 0 0 20px; 73 + color: @brand; 74 + text-align: center; 75 + font-size: 15px; 76 + } 77 + 72 72 &:hover, 73 - &:focus { 79 + &:focus, 80 + &:active { 74 74 color: @brand-strong; 75 - background: @brand-bg; 76 76 text-decoration: none; 83 + outline: none; 77 77 78 - .menu-icon{85 + i { 79 79 color: @brand-strong; 80 - background: fade(@brand, 14%); 81 - border-color: fade(@brand, 28%); 82 82 } 88 + } 89 + } 83 83 84 - strong { 85 - color: @brand-strong; 86 - } 91 + > .active > a { 92 + color: @brand-strong; 87 87 88 - small { 89 - color: @muted; 90 - } 94 + i { 95 + color: @brand-strong; 91 91 } 92 92 } 93 93 94 94 .divider { 95 95 margin: 8px 0; 96 - background-color: @ line;101 + background-color: fade(@brand, 16%); 97 97 } 103 +} 98 98 99 - .menu-icon { 100 - width: 34px; 101 - height: 34px; 102 - border-radius: 50%; 103 - background: fade(@brand, 8%); 104 - border: 1px solid fade(@brand, 18%); 105 - color: @brand; 106 - display: flex; 107 - align-items: center; 105 +/* Mobile */ 106 + 107 +@media (max-width: 767px) { 108 + .site-nav { 109 + margin-left: 0; 108 108 justify-content: center; 109 - flex-shrink: 0; 110 - transition: color .15s ease, background .15s ease, border-color .15s ease; 111 + flex-wrap: wrap; 111 111 } 112 112 113 - .menu-text { 114 - display: flex; 115 - flex-direction: column; 116 - line-height: 1.25; 117 - 118 - strong { 119 - color: @brand; 120 - font-size: 14px; 121 - font-weight: 600; 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; 122 122 } 123 - 124 - small { 125 - color: @muted; 126 - font-size: 12px; 127 - margin-top: 2px; 128 - font-weight: 400; 129 - } 130 130 } 131 -} 132 132 133 -/* Products dropdown can be slightly narrower for now */ 134 - 135 -.agnease-products-dropdown { 136 - min-width: 340px; 137 -} 138 - 139 -/* Mobile */ 140 - 141 -@media (max-width: 767px) { 142 - .agnease-services-dropdown, 143 - .agnease-products-dropdown { 124 + .agnease-dropdown { 144 144 min-width: 0; 145 145 width: 100%; 146 - padding: 6px; 127 + padding: 4px 8px 8px 18px; 128 + border: 0; 147 147 border-radius: 0; 148 - border-left: 0; 149 - border-right: 0; 150 150 box-shadow: none; 131 + background: transparent; 151 151 152 152 > li > a { 153 - padding: 10px; 134 + padding: 8px 10px; 135 + white-space: normal; 136 + font-size: 15px; 137 + 138 + i { 139 + width: 18px; 140 + flex-basis: 18px; 141 + } 154 154 } 143 + 144 + .divider { 145 + margin: 5px 0; 146 + } 155 155 } 156 156 }