Changes for page Public Web Site

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

From version 8.22
edited by Agnease
on 2026/05/19 03:42
Change comment: There is no comment for this version
To version 10.41
edited by Agnease
on 2026/05/22 08:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -146,7 +146,7 @@
146 146   </div>
147 147   </section>
148 148  
149 - <section class="resource-strip" aria-labelledby="resources-title">
149 + <section class="resource-strip homepage-resource-strip" aria-labelledby="resources-title">
150 150   <div class="container">
151 151   <h2 id="resources-title">Useful XWiki resources</h2>
152 152   <p class="section-intro">
XWiki.StyleSheetExtension[0]
code
... ... @@ -329,11 +329,10 @@
329 329   border: 1px solid @line;
330 330   border-radius: @radius;
331 331   box-shadow: @shadow-sm;
332 - transition: transform .18s ease, box-shadow .18s ease;
332 + transition: box-shadow .18s ease;
333 333  
334 334   &:hover {
335 - transform: translateY(-2px);
336 - box-shadow: @shadow;
335 + box-shadow: @shadow-sm;
337 337   }
338 338  }
339 339  
... ... @@ -617,7 +617,6 @@
617 617   order: 0;
618 618   position: static;
619 619   width: 100%;
620 - margin-bottom: 24px;
621 621   }
622 622  
623 623   .resource-content {
... ... @@ -625,6 +625,77 @@
625 625   }
626 626  }
627 627  
626 +/* ========== Homepage Resource Strip ========== */
627 +
628 +.homepage-resource-strip {
629 + background:
630 + radial-gradient(42rem 16rem at 50% 0%, @brand-bg 0%, transparent 70%);
631 +
632 + .resource-grid {
633 + max-width: 1040px;
634 + margin: 26px auto 0;
635 + display: grid;
636 + grid-template-columns: repeat(2, minmax(0, 1fr));
637 + grid-gap: 22px;
638 + align-items: stretch;
639 + }
640 +
641 + .resource-card {
642 + display: flex;
643 + flex-direction: column;
644 + min-width: 0;
645 + min-height: 100%;
646 + padding: 26px;
647 + }
648 +
649 + .resource-card h4 {
650 + margin: 0 0 10px;
651 + color: @text;
652 + font-size: 21px;
653 + line-height: 1.25;
654 + font-weight: 700;
655 + }
656 +
657 + .resource-card p {
658 + margin: 0 0 18px;
659 + color: @muted;
660 + font-size: 15px;
661 + line-height: 1.6;
662 + }
663 +
664 + .resource-card a {
665 + margin-top: auto;
666 + color: @brand;
667 + font-weight: 700;
668 + text-decoration: underline;
669 +
670 + &:hover,
671 + &:focus {
672 + color: @brand-strong;
673 + }
674 + }
675 +}
676 +
677 +@media (max-width: 980px) {
678 + .homepage-resource-strip {
679 + .resource-grid {
680 + grid-template-columns: 1fr;
681 + }
682 + }
683 +}
684 +
685 +@media (max-width: 640px) {
686 + .homepage-resource-strip {
687 + .resource-card {
688 + padding: 22px;
689 + }
690 +
691 + .resource-card h4 {
692 + font-size: 19px;
693 + }
694 + }
695 +}
696 +
628 628  /* ========== CTA ========== */
629 629  
630 630  .cta-section {
XWiki.StyleSheetExtension[1]
code
... ... @@ -1,162 +1,148 @@
1 1  /* ========== Agnease Public Top Menu ========== */
2 2  
3 -/* Top-level dropdown menu items */
3 +/* Desktop alignment */
4 +#menuview .navbar-nav {
5 + float: right !important;
6 +}
4 4  
5 -.agnease-services-menu,
6 -.agnease-products-menu,
7 -.agnease-resources-menu {
8 - .dropdown-toggle {
9 - font-weight: inherit;
10 - font-size: inherit;
11 - }
8 +/* Top-level menu items */
12 12  
13 - .caret {
14 - margin-left: 4px;
10 +.agnease-menu-item,
11 +.agnease-menu-link {
12 + > a,
13 + > .dropdown-toggle {
14 + color: @brand;
15 + font-size: 17px;
16 + font-weight: 600;
17 + padding-left: 16px;
18 + padding-right: 16px;
19 + text-decoration: none;
15 15   }
16 16  
17 - &.open > .dropdown-toggle,
18 - .dropdown-toggle:hover,
19 - .dropdown-toggle:focus {
22 + > a:hover,
23 + > a:focus,
24 + > a:active,
25 + &.open > a,
26 + &.active > a {
20 20   color: @brand-strong;
21 - background: transparent;
22 - background-color: transparent;
23 - box-shadow: none;
28 + text-decoration: none;
29 + outline: none;
24 24   }
25 -}
26 26  
27 -/* Keep public top-level dropdown items visually clean when hovered/open/focused */
32 + .caret {
33 + margin-left: 5px;
34 + border-top-color: @brand;
35 + border-bottom-color: @brand;
36 + }
28 28  
29 -.navbar-nav > li.agnease-services-menu > a,
30 -.navbar-nav > li.agnease-products-menu > a,
31 -.navbar-nav > li.agnease-resources-menu > a,
32 -.navbar-nav > li.agnease-services-menu > a:hover,
33 -.navbar-nav > li.agnease-products-menu > a:hover,
34 -.navbar-nav > li.agnease-resources-menu > a:hover,
35 -.navbar-nav > li.agnease-services-menu > a:focus,
36 -.navbar-nav > li.agnease-products-menu > a:focus,
37 -.navbar-nav > li.agnease-resources-menu > a:focus,
38 -.navbar-nav > li.agnease-services-menu.open > a,
39 -.navbar-nav > li.agnease-products-menu.open > a,
40 -.navbar-nav > li.agnease-resources-menu.open > a,
41 -.navbar-nav > li.agnease-services-menu.open > a:hover,
42 -.navbar-nav > li.agnease-products-menu.open > a:hover,
43 -.navbar-nav > li.agnease-resources-menu.open > a:hover,
44 -.navbar-nav > li.agnease-services-menu.open > a:focus,
45 -.navbar-nav > li.agnease-products-menu.open > a:focus,
46 -.navbar-nav > li.agnease-resources-menu.open > a:focus {
47 - background: transparent;
48 - background-color: transparent;
49 - color: @brand-strong;
50 - box-shadow: none;
38 + > a:hover .caret,
39 + > a:focus .caret,
40 + > a:active .caret,
41 + &.open > a .caret,
42 + &.active > a .caret {
43 + border-top-color: @brand-strong;
44 + border-bottom-color: @brand-strong;
45 + }
51 51  }
52 52  
53 -/* Dropdown panels */
48 +/* Dropdown panel */
54 54  
55 -.agnease-services-dropdown,
56 -.agnease-products-dropdown,
57 -.agnease-resources-dropdown {
58 - min-width: 360px;
59 - padding: 10px;
60 - border: 1px solid @line;
50 +.agnease-dropdown {
51 + min-width: 310px;
52 + padding: 10px 8px;
53 + border: 1px solid fade(@brand, 18%);
61 61   border-radius: 12px;
62 - box-shadow: 0 12px 36px rgba(0, 0, 0, .10);
55 + background: #fff;
56 + box-shadow: 0 12px 32px fade(@brand-strong, 12%);
63 63  
64 64   > li > a {
65 65   display: flex;
66 - align-items: flex-start;
60 + align-items: center;
67 67   gap: 12px;
68 - padding: 10px 12px;
69 - border-radius: 10px;
70 - color: @text;
71 - white-space: normal;
62 + padding: 11px 14px;
63 + color: @brand;
64 + white-space: nowrap;
65 + font-size: 16px;
66 + font-weight: 600;
67 + line-height: 1.3;
68 + text-decoration: none;
72 72  
70 + i {
71 + width: 20px;
72 + flex: 0 0 20px;
73 + color: @brand;
74 + text-align: center;
75 + font-size: 15px;
76 + }
77 +
73 73   &:hover,
74 - &:focus {
79 + &:focus,
80 + &:active {
75 75   color: @brand-strong;
76 - background: @brand-bg;
77 77   text-decoration: none;
83 + outline: none;
78 78  
79 - .menu-icon {
85 + i {
80 80   color: @brand-strong;
81 - background: fade(@brand, 14%);
82 - border-color: fade(@brand, 28%);
83 83   }
88 + }
89 + }
84 84  
85 - strong {
86 - color: @brand-strong;
87 - }
91 + > .active > a {
92 + color: @brand-strong;
88 88  
89 - small {
90 - color: @muted;
91 - }
94 + i {
95 + color: @brand-strong;
92 92   }
93 93   }
94 94  
95 95   .divider {
96 96   margin: 8px 0;
97 - background-color: @line;
101 + background-color: fade(@brand, 16%);
98 98   }
103 +}
99 99  
100 - .menu-icon {
101 - width: 34px;
102 - height: 34px;
103 - border-radius: 50%;
104 - background: fade(@brand, 8%);
105 - border: 1px solid fade(@brand, 18%);
106 - color: @brand;
107 - display: flex;
108 - align-items: center;
105 +/* Mobile */
106 +
107 +@media (max-width: 767px) {
108 + .site-nav {
109 + margin-left: 0;
109 109   justify-content: center;
110 - flex-shrink: 0;
111 - transition: color .15s ease, background .15s ease, border-color .15s ease;
111 + flex-wrap: wrap;
112 112   }
113 113  
114 - .menu-text {
115 - display: flex;
116 - flex-direction: column;
117 - line-height: 1.25;
118 -
119 - strong {
120 - color: @brand;
121 - font-size: 14px;
122 - font-weight: 600;
114 + .agnease-menu-item,
115 + .agnease-menu-link {
116 + > a,
117 + > .dropdown-toggle {
118 + font-size: 16px;
119 + padding-top: 9px;
120 + padding-bottom: 9px;
123 123   }
124 -
125 - small {
126 - color: @muted;
127 - font-size: 12px;
128 - margin-top: 2px;
129 - font-weight: 400;
130 - }
131 131   }
132 -}
133 133  
134 -/* Slightly narrower dropdowns where the content is shorter */
135 -
136 -.agnease-products-dropdown {
137 - min-width: 340px;
138 -}
139 -
140 -.agnease-resources-dropdown {
141 - min-width: 380px;
142 -}
143 -
144 -/* Mobile */
145 -
146 -@media (max-width: 767px) {
147 - .agnease-services-dropdown,
148 - .agnease-products-dropdown,
149 - .agnease-resources-dropdown {
124 + .agnease-dropdown {
150 150   min-width: 0;
151 151   width: 100%;
152 - padding: 6px;
127 + padding: 4px 8px 8px 18px;
128 + border: 0;
153 153   border-radius: 0;
154 - border-left: 0;
155 - border-right: 0;
156 156   box-shadow: none;
131 + background: transparent;
157 157  
158 158   > li > a {
159 - padding: 10px;
134 + padding: 8px 10px;
135 + white-space: normal;
136 + font-size: 15px;
137 +
138 + i {
139 + width: 18px;
140 + flex-basis: 18px;
141 + }
160 160   }
143 +
144 + .divider {
145 + margin: 5px 0;
146 + }
161 161   }
162 162  }