Changes for page Public Web Site

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

From version 13.7
edited by Agnease
on 2026/05/26 09:06
Change comment: There is no comment for this version
To version 13.10
edited by Agnease
on 2026/05/26 09:43
Change comment: There is no comment for this version

Summary

Details

XWiki.StyleSheetExtension[0]
code
... ... @@ -590,31 +590,6 @@
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 -
618 618  /* ========== Homepage Resource Strip ========== */
619 619  
620 620  .homepage-resource-strip {
... ... @@ -844,15 +844,18 @@
844 844  }
845 845  
846 846  .resource-layout {
847 - display: grid;
848 - grid-template-columns: minmax(0, 760px) 280px;
849 - gap: 42px;
822 + display: block;
850 850   max-width: 1080px;
851 851   margin: 0 auto;
852 852   padding-top: 28px;
853 - align-items: start;
854 854  }
855 855  
828 +.resource-layout::after {
829 + content: "";
830 + display: block;
831 + clear: both;
832 +}
833 +
856 856  .resource-content {
857 857   color: @text;
858 858   font-size: 16px;
... ... @@ -922,6 +922,10 @@
922 922  }
923 923  
924 924  .resource-sidebar {
903 + float: right;
904 + width: 280px;
905 + margin-left: 42px;
906 + margin-bottom: 28px;
925 925   position: sticky;
926 926   top: 96px;
927 927   border: 1px solid @line;
... ... @@ -966,13 +966,22 @@
966 966   }
967 967  }
968 968  
951 +.resource-note,
952 +.resource-checklist,
953 +.resource-cta {
954 + display: flow-root;
955 +}
956 +
969 969  @media (max-width: 900px) {
970 970   .resource-layout {
971 - grid-template-columns: 1fr;
972 972   padding-top: 22px;
973 973   }
974 974  
975 975   .resource-sidebar {
963 + float: none;
964 + width: 100%;
965 + margin-left: 0;
966 + margin-bottom: 24px;
976 976   position: static;
977 977   }
978 978  }
... ... @@ -1236,41 +1236,25 @@
1236 1236  }
1237 1237  
1238 1238  /* ========== Resources Index ========== */
1230 +
1239 1239  .resources-index-page {
1240 1240   background: #fff;
1241 1241  
1242 - /* Resources index: show cards in rows of 2, center the last one if alone */
1243 - .resources-grid {
1244 - display: grid;
1234 + .services-grid {
1245 1245   grid-template-columns: repeat(2, minmax(0, 1fr));
1246 - justify-content: center;
1247 - align-items: stretch;
1248 1248   }
1237 +}
1249 1249  
1250 - .resources-grid .resource-card {
1251 - height: 100%;
1239 +@media (max-width: 980px) {
1240 + .resources-index-page {
1241 + .services-grid {
1242 + grid-template-columns: 1fr;
1243 + }
1252 1252   }
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. */
1262 1262  @media (max-width: 767px) {
1263 1263   .resources-index-page {
1264 1264   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 - }
1275 1275   }
1276 1276  }