Changes for page Public Web Site

Last modified by Agnease on 2026/05/30 16:24

From version 13.16
edited by Agnease
on 2026/05/26 11:08
Change comment: There is no comment for this version
To version 13.5
edited by Agnease
on 2026/05/26 09:03
Change comment: There is no comment for this version

Summary

Details

XWiki.StyleSheetExtension[0]
code
... ... @@ -590,6 +590,31 @@
590 590   }
591 591  }
592 592  
593 +.resource-content {
594 + order: 1;
595 +}
596 +
597 +.resource-sidebar {
598 + order: 2;
599 +}
600 +
601 +@media (max-width: 767px) {
602 + .resource-layout {
603 + display: flex;
604 + flex-direction: column;
605 + }
606 +
607 + .resource-sidebar {
608 + order: 0;
609 + position: static;
610 + width: 100%;
611 + }
612 +
613 + .resource-content {
614 + order: 1;
615 + }
616 +}
617 +
593 593  /* ========== Homepage Resource Strip ========== */
594 594  
595 595  .homepage-resource-strip {
... ... @@ -697,53 +697,6 @@
697 697   }
698 698  }
699 699  
700 -.resource-inline-cta {
701 - display: flex;
702 - align-items: center;
703 - justify-content: space-between;
704 - gap: 22px;
705 - margin: 30px 0;
706 - padding: 20px 22px;
707 - border: 1px solid fade(@brand, 22%);
708 - border-radius: @radius;
709 - background: @brand-bg;
710 - box-shadow: @shadow-sm;
711 -
712 - p {
713 - margin: 0;
714 - color: @muted;
715 - line-height: 1.55;
716 - }
717 -
718 - strong {
719 - color: @text;
720 - }
721 -
722 - .btn {
723 - flex-shrink: 0;
724 - }
725 -}
726 -
727 -@media (max-width: 767px) {
728 - .resource-inline-cta {
729 - display: block;
730 -
731 - p {
732 - margin-bottom: 14px;
733 - }
734 - }
735 -}
736 -
737 -@media (max-width: 767px) {
738 - .resource-inline-cta {
739 - display: block;
740 -
741 - p {
742 - margin-bottom: 14px;
743 - }
744 - }
745 -}
746 -
747 747  /* ========== Responsive ========== */
748 748  
749 749  @media (max-width: 980px) {
... ... @@ -866,18 +866,15 @@
866 866  }
867 867  
868 868  .resource-layout {
869 - display: block;
847 + display: grid;
848 + grid-template-columns: minmax(0, 760px) 280px;
849 + gap: 42px;
870 870   max-width: 1080px;
871 871   margin: 0 auto;
872 872   padding-top: 28px;
853 + align-items: start;
873 873  }
874 874  
875 -.resource-layout::after {
876 - content: "";
877 - display: block;
878 - clear: both;
879 -}
880 -
881 881  .resource-content {
882 882   color: @text;
883 883   font-size: 16px;
... ... @@ -947,10 +947,6 @@
947 947  }
948 948  
949 949  .resource-sidebar {
950 - float: right;
951 - width: 280px;
952 - margin-left: 42px;
953 - margin-bottom: 28px;
954 954   position: sticky;
955 955   top: 96px;
956 956   border: 1px solid @line;
... ... @@ -980,14 +980,8 @@
980 980  }
981 981  
982 982  .resource-cta {
983 - display: flex;
984 - flex-direction: column;
985 - align-items: center;
986 - text-align: center;
987 -
988 - max-width: 820px;
989 - margin: 42px auto 0;
990 - padding: 28px 30px;
954 + margin-top: 36px;
955 + padding: 22px;
991 991   border: 1px solid fade(@brand, 20%);
992 992   border-radius: @radius;
993 993   background: @brand-bg;
... ... @@ -994,43 +994,20 @@
994 994  
995 995   h3 {
996 996   margin-top: 0;
997 - margin-bottom: 10px;
998 998   }
999 999  
1000 1000   p {
1001 - max-width: 680px;
1002 - margin-left: auto;
1003 - margin-right: auto;
1004 1004   color: @muted;
1005 1005   }
1006 -
1007 - .btn {
1008 - margin-top: 8px;
1009 - }
1010 1010  }
1011 1011  
1012 -.resource-note,
1013 -.resource-checklist,
1014 -.resource-cta {
1015 - display: flow-root;
1016 -}
1017 -
1018 -@media (max-width: 767px) {
1019 - .resource-cta {
1020 - padding: 24px 20px;
1021 - }
1022 -}
1023 -
1024 1024  @media (max-width: 900px) {
1025 1025   .resource-layout {
971 + grid-template-columns: 1fr;
1026 1026   padding-top: 22px;
1027 1027   }
1028 1028  
1029 1029   .resource-sidebar {
1030 - float: none;
1031 - width: 100%;
1032 - margin-left: 0;
1033 - margin-bottom: 24px;
1034 1034   position: static;
1035 1035   }
1036 1036  }
... ... @@ -1294,41 +1294,41 @@
1294 1294  }
1295 1295  
1296 1296  /* ========== Resources Index ========== */
1297 -
1298 1298  .resources-index-page {
1299 1299   background: #fff;
1300 1300  
1301 - .services-grid {
1242 + /* Resources index: show cards in rows of 2, center the last one if alone */
1243 + .resources-grid {
1244 + display: grid;
1302 1302   grid-template-columns: repeat(2, minmax(0, 1fr));
1246 + justify-content: center;
1247 + align-items: stretch;
1303 1303   }
1304 -}
1305 1305  
1306 -@media (max-width: 980px) {
1307 - .resources-index-page {
1308 - .services-grid {
1309 - grid-template-columns: 1fr;
1310 - }
1250 + .resources-grid .resource-card {
1251 + height: 100%;
1311 1311   }
1253 +
1254 + .resources-grid .resource-card:last-child:nth-child(odd) {
1255 + grid-column: 1 / -1;
1256 + max-width: calc(50% - 12px);
1257 + justify-self: center;
1258 + }
1312 1312  }
1313 1313  
1261 +/* Keep 2 columns on tablets. Only switch to 1 column on smaller mobile screens. */
1314 1314  @media (max-width: 767px) {
1315 1315   .resources-index-page {
1316 1316   padding: @section-padding-mobile;
1317 - }
1318 -}
1319 1319  
1320 -.resource-faq-item {
1321 - border-bottom: 1px solid @line;
1322 - padding: 12px 0;
1266 + .resources-grid {
1267 + grid-template-columns: 1fr;
1268 + }
1323 1323  
1324 - summary {
1325 - cursor: pointer;
1326 - font-weight: 700;
1327 - color: @text;
1270 + .resources-grid .resource-card:last-child:nth-child(odd) {
1271 + grid-column: auto;
1272 + max-width: none;
1273 + justify-self: stretch;
1274 + }
1328 1328   }
1329 -
1330 - p {
1331 - margin: 10px 0 4px;
1332 - color: @muted;
1333 - }
1334 1334  }