Changes for page Public Web Site

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

From version 13.12
edited by Agnease
on 2026/05/26 10:49
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 {
... ... @@ -697,20 +697,6 @@
697 697   }
698 698  }
699 699  
700 -.resource-inline-cta {
701 - margin: 28px 0;
702 - padding: 18px 20px;
703 - border: 1px solid fade(@brand, 22%);
704 - border-radius: @radius;
705 - background: #fff;
706 - box-shadow: @shadow-sm;
707 -
708 - p {
709 - margin: 0 0 14px;
710 - color: @muted;
711 - }
712 -}
713 -
714 714  /* ========== Responsive ========== */
715 715  
716 716  @media (max-width: 980px) {
... ... @@ -833,18 +833,15 @@
833 833  }
834 834  
835 835  .resource-layout {
836 - display: block;
847 + display: grid;
848 + grid-template-columns: minmax(0, 760px) 280px;
849 + gap: 42px;
837 837   max-width: 1080px;
838 838   margin: 0 auto;
839 839   padding-top: 28px;
853 + align-items: start;
840 840  }
841 841  
842 -.resource-layout::after {
843 - content: "";
844 - display: block;
845 - clear: both;
846 -}
847 -
848 848  .resource-content {
849 849   color: @text;
850 850   font-size: 16px;
... ... @@ -914,10 +914,6 @@
914 914  }
915 915  
916 916  .resource-sidebar {
917 - float: right;
918 - width: 280px;
919 - margin-left: 42px;
920 - margin-bottom: 28px;
921 921   position: sticky;
922 922   top: 96px;
923 923   border: 1px solid @line;
... ... @@ -962,22 +962,13 @@
962 962   }
963 963  }
964 964  
965 -.resource-note,
966 -.resource-checklist,
967 -.resource-cta {
968 - display: flow-root;
969 -}
970 -
971 971  @media (max-width: 900px) {
972 972   .resource-layout {
971 + grid-template-columns: 1fr;
973 973   padding-top: 22px;
974 974   }
975 975  
976 976   .resource-sidebar {
977 - float: none;
978 - width: 100%;
979 - margin-left: 0;
980 - margin-bottom: 24px;
981 981   position: static;
982 982   }
983 983  }
... ... @@ -1241,41 +1241,41 @@
1241 1241  }
1242 1242  
1243 1243  /* ========== Resources Index ========== */
1244 -
1245 1245  .resources-index-page {
1246 1246   background: #fff;
1247 1247  
1248 - .services-grid {
1242 + /* Resources index: show cards in rows of 2, center the last one if alone */
1243 + .resources-grid {
1244 + display: grid;
1249 1249   grid-template-columns: repeat(2, minmax(0, 1fr));
1246 + justify-content: center;
1247 + align-items: stretch;
1250 1250   }
1251 -}
1252 1252  
1253 -@media (max-width: 980px) {
1254 - .resources-index-page {
1255 - .services-grid {
1256 - grid-template-columns: 1fr;
1257 - }
1250 + .resources-grid .resource-card {
1251 + height: 100%;
1258 1258   }
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 + }
1259 1259  }
1260 1260  
1261 +/* Keep 2 columns on tablets. Only switch to 1 column on smaller mobile screens. */
1261 1261  @media (max-width: 767px) {
1262 1262   .resources-index-page {
1263 1263   padding: @section-padding-mobile;
1264 - }
1265 -}
1266 1266  
1267 -.resource-faq-item {
1268 - border-bottom: 1px solid @line;
1269 - padding: 12px 0;
1266 + .resources-grid {
1267 + grid-template-columns: 1fr;
1268 + }
1270 1270  
1271 - summary {
1272 - cursor: pointer;
1273 - font-weight: 700;
1274 - 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 + }
1275 1275   }
1276 -
1277 - p {
1278 - margin: 10px 0 4px;
1279 - color: @muted;
1280 - }
1281 1281  }