Changes for page Public Web Site

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

From version 13.14
edited by Agnease
on 2026/05/26 10:54
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,43 +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 737  /* ========== Responsive ========== */
738 738  
739 739  @media (max-width: 980px) {
... ... @@ -856,18 +856,15 @@
856 856  }
857 857  
858 858  .resource-layout {
859 - display: block;
847 + display: grid;
848 + grid-template-columns: minmax(0, 760px) 280px;
849 + gap: 42px;
860 860   max-width: 1080px;
861 861   margin: 0 auto;
862 862   padding-top: 28px;
853 + align-items: start;
863 863  }
864 864  
865 -.resource-layout::after {
866 - content: "";
867 - display: block;
868 - clear: both;
869 -}
870 -
871 871  .resource-content {
872 872   color: @text;
873 873   font-size: 16px;
... ... @@ -937,10 +937,6 @@
937 937  }
938 938  
939 939  .resource-sidebar {
940 - float: right;
941 - width: 280px;
942 - margin-left: 42px;
943 - margin-bottom: 28px;
944 944   position: sticky;
945 945   top: 96px;
946 946   border: 1px solid @line;
... ... @@ -985,22 +985,13 @@
985 985   }
986 986  }
987 987  
988 -.resource-note,
989 -.resource-checklist,
990 -.resource-cta {
991 - display: flow-root;
992 -}
993 -
994 994  @media (max-width: 900px) {
995 995   .resource-layout {
971 + grid-template-columns: 1fr;
996 996   padding-top: 22px;
997 997   }
998 998  
999 999   .resource-sidebar {
1000 - float: none;
1001 - width: 100%;
1002 - margin-left: 0;
1003 - margin-bottom: 24px;
1004 1004   position: static;
1005 1005   }
1006 1006  }
... ... @@ -1264,41 +1264,41 @@
1264 1264  }
1265 1265  
1266 1266  /* ========== Resources Index ========== */
1267 -
1268 1268  .resources-index-page {
1269 1269   background: #fff;
1270 1270  
1271 - .services-grid {
1242 + /* Resources index: show cards in rows of 2, center the last one if alone */
1243 + .resources-grid {
1244 + display: grid;
1272 1272   grid-template-columns: repeat(2, minmax(0, 1fr));
1246 + justify-content: center;
1247 + align-items: stretch;
1273 1273   }
1274 -}
1275 1275  
1276 -@media (max-width: 980px) {
1277 - .resources-index-page {
1278 - .services-grid {
1279 - grid-template-columns: 1fr;
1280 - }
1250 + .resources-grid .resource-card {
1251 + height: 100%;
1281 1281   }
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 + }
1282 1282  }
1283 1283  
1261 +/* Keep 2 columns on tablets. Only switch to 1 column on smaller mobile screens. */
1284 1284  @media (max-width: 767px) {
1285 1285   .resources-index-page {
1286 1286   padding: @section-padding-mobile;
1287 - }
1288 -}
1289 1289  
1290 -.resource-faq-item {
1291 - border-bottom: 1px solid @line;
1292 - padding: 12px 0;
1266 + .resources-grid {
1267 + grid-template-columns: 1fr;
1268 + }
1293 1293  
1294 - summary {
1295 - cursor: pointer;
1296 - font-weight: 700;
1297 - 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 + }
1298 1298   }
1299 -
1300 - p {
1301 - margin: 10px 0 4px;
1302 - color: @muted;
1303 - }
1304 1304  }