Changes for page Public Web Site

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

From version 13.13
edited by Agnease
on 2026/05/26 10:53
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,31 +697,6 @@
697 697   }
698 698  }
699 699  
700 -.resource-inline-cta {
701 - display: flow-root;
702 - margin: 30px 0;
703 - padding: 20px 22px;
704 - border: 1px solid fade(@brand, 22%);
705 - border-radius: @radius;
706 - background: @brand-bg;
707 - box-shadow: @shadow-sm;
708 - max-width: 820px;
709 -
710 - p {
711 - margin: 0 0 14px;
712 - color: @muted;
713 - line-height: 1.55;
714 - }
715 -
716 - strong {
717 - color: @text;
718 - }
719 -
720 - .btn {
721 - margin-top: 2px;
722 - }
723 -}
724 -
725 725  /* ========== Responsive ========== */
726 726  
727 727  @media (max-width: 980px) {
... ... @@ -844,18 +844,15 @@
844 844  }
845 845  
846 846  .resource-layout {
847 - display: block;
847 + display: grid;
848 + grid-template-columns: minmax(0, 760px) 280px;
849 + gap: 42px;
848 848   max-width: 1080px;
849 849   margin: 0 auto;
850 850   padding-top: 28px;
853 + align-items: start;
851 851  }
852 852  
853 -.resource-layout::after {
854 - content: "";
855 - display: block;
856 - clear: both;
857 -}
858 -
859 859  .resource-content {
860 860   color: @text;
861 861   font-size: 16px;
... ... @@ -925,10 +925,6 @@
925 925  }
926 926  
927 927  .resource-sidebar {
928 - float: right;
929 - width: 280px;
930 - margin-left: 42px;
931 - margin-bottom: 28px;
932 932   position: sticky;
933 933   top: 96px;
934 934   border: 1px solid @line;
... ... @@ -973,22 +973,13 @@
973 973   }
974 974  }
975 975  
976 -.resource-note,
977 -.resource-checklist,
978 -.resource-cta {
979 - display: flow-root;
980 -}
981 -
982 982  @media (max-width: 900px) {
983 983   .resource-layout {
971 + grid-template-columns: 1fr;
984 984   padding-top: 22px;
985 985   }
986 986  
987 987   .resource-sidebar {
988 - float: none;
989 - width: 100%;
990 - margin-left: 0;
991 - margin-bottom: 24px;
992 992   position: static;
993 993   }
994 994  }
... ... @@ -1252,41 +1252,41 @@
1252 1252  }
1253 1253  
1254 1254  /* ========== Resources Index ========== */
1255 -
1256 1256  .resources-index-page {
1257 1257   background: #fff;
1258 1258  
1259 - .services-grid {
1242 + /* Resources index: show cards in rows of 2, center the last one if alone */
1243 + .resources-grid {
1244 + display: grid;
1260 1260   grid-template-columns: repeat(2, minmax(0, 1fr));
1246 + justify-content: center;
1247 + align-items: stretch;
1261 1261   }
1262 -}
1263 1263  
1264 -@media (max-width: 980px) {
1265 - .resources-index-page {
1266 - .services-grid {
1267 - grid-template-columns: 1fr;
1268 - }
1250 + .resources-grid .resource-card {
1251 + height: 100%;
1269 1269   }
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 + }
1270 1270  }
1271 1271  
1261 +/* Keep 2 columns on tablets. Only switch to 1 column on smaller mobile screens. */
1272 1272  @media (max-width: 767px) {
1273 1273   .resources-index-page {
1274 1274   padding: @section-padding-mobile;
1275 - }
1276 -}
1277 1277  
1278 -.resource-faq-item {
1279 - border-bottom: 1px solid @line;
1280 - padding: 12px 0;
1266 + .resources-grid {
1267 + grid-template-columns: 1fr;
1268 + }
1281 1281  
1282 - summary {
1283 - cursor: pointer;
1284 - font-weight: 700;
1285 - 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 + }
1286 1286   }
1287 -
1288 - p {
1289 - margin: 10px 0 4px;
1290 - color: @muted;
1291 - }
1292 1292  }