Changes for page Public Web Site

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

From version 13.10
edited by Agnease
on 2026/05/26 09:43
Change comment: There is no comment for this version
To version 13.7
edited by Agnease
on 2026/05/26 09:06
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 {
... ... @@ -819,18 +819,15 @@
819 819  }
820 820  
821 821  .resource-layout {
822 - display: block;
847 + display: grid;
848 + grid-template-columns: minmax(0, 760px) 280px;
849 + gap: 42px;
823 823   max-width: 1080px;
824 824   margin: 0 auto;
825 825   padding-top: 28px;
853 + align-items: start;
826 826  }
827 827  
828 -.resource-layout::after {
829 - content: "";
830 - display: block;
831 - clear: both;
832 -}
833 -
834 834  .resource-content {
835 835   color: @text;
836 836   font-size: 16px;
... ... @@ -900,10 +900,6 @@
900 900  }
901 901  
902 902  .resource-sidebar {
903 - float: right;
904 - width: 280px;
905 - margin-left: 42px;
906 - margin-bottom: 28px;
907 907   position: sticky;
908 908   top: 96px;
909 909   border: 1px solid @line;
... ... @@ -948,22 +948,13 @@
948 948   }
949 949  }
950 950  
951 -.resource-note,
952 -.resource-checklist,
953 -.resource-cta {
954 - display: flow-root;
955 -}
956 -
957 957  @media (max-width: 900px) {
958 958   .resource-layout {
971 + grid-template-columns: 1fr;
959 959   padding-top: 22px;
960 960   }
961 961  
962 962   .resource-sidebar {
963 - float: none;
964 - width: 100%;
965 - margin-left: 0;
966 - margin-bottom: 24px;
967 967   position: static;
968 968   }
969 969  }
... ... @@ -1227,25 +1227,41 @@
1227 1227  }
1228 1228  
1229 1229  /* ========== Resources Index ========== */
1230 -
1231 1231  .resources-index-page {
1232 1232   background: #fff;
1233 1233  
1234 - .services-grid {
1242 + /* Resources index: show cards in rows of 2, center the last one if alone */
1243 + .resources-grid {
1244 + display: grid;
1235 1235   grid-template-columns: repeat(2, minmax(0, 1fr));
1246 + justify-content: center;
1247 + align-items: stretch;
1236 1236   }
1237 -}
1238 1238  
1239 -@media (max-width: 980px) {
1240 - .resources-index-page {
1241 - .services-grid {
1242 - grid-template-columns: 1fr;
1243 - }
1250 + .resources-grid .resource-card {
1251 + height: 100%;
1244 1244   }
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 + }
1245 1245  }
1246 1246  
1261 +/* Keep 2 columns on tablets. Only switch to 1 column on smaller mobile screens. */
1247 1247  @media (max-width: 767px) {
1248 1248   .resources-index-page {
1249 1249   padding: @section-padding-mobile;
1265 +
1266 + .resources-grid {
1267 + grid-template-columns: 1fr;
1268 + }
1269 +
1270 + .resources-grid .resource-card:last-child:nth-child(odd) {
1271 + grid-column: auto;
1272 + max-width: none;
1273 + justify-self: stretch;
1274 + }
1250 1250   }
1251 1251  }