Изменения документа VelocityMacros

Редактировал(а) Андрей Ганьков 2025/08/09 17:45

От версии 1.1
отредактировано Андрей Ганьков
на 2021/05/26 11:10
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-help-ui/13.3]
К версии 3.1
отредактировано Андрей Ганьков
на 2025/08/09 17:45
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-help-ui/17.6.0]

Сводка

Подробности

Свойства страницы
Содержимое
... ... @@ -1,7 +1,7 @@
1 1  {{velocity output="false"}}
2 2  #set ($discard = $xwiki.ssx.use('Help.Code.VelocityMacros'))
3 3  #set ($discard = $xwiki.jsx.use('Help.Code.VelocityMacros'))
4 -#set ($docextras = [])
4 +#set ($displayDocExtra = false)
5 5  
6 6  #macro (helpActionCard $data)
7 7   <div class="well">
XWiki.StyleSheetExtension[0]
Код
... ... @@ -26,6 +26,52 @@
26 26   }
27 27  }
28 28  
29 +.card-list {
30 + display: flex;
31 + flex-wrap: wrap;
32 + align-items: stretch;
33 + row-gap: 1em;
34 + column-gap: 1%;
35 + padding-left: 0;
36 +}
37 +
38 +li.card {
39 + list-style: none;
40 + flex-shrink: 1;
41 + width: 24%;
42 +}
43 +
44 +.three-cols > li.card {
45 + width: 32%;
46 +}
47 +
48 +.two-cols > li.card {
49 + width: 49%;
50 +}
51 +
52 +@media (max-width: @screen-lg-min) {
53 + li.card {
54 + width: 32%;
55 + }
56 +}
57 +
58 +@media (max-width: @screen-md-min) {
59 + .card-list > li.card {
60 + width: 49%;
61 + }
62 +}
63 +
64 +@media (max-width: @screen-sm-min) {
65 + .card-list > li.card {
66 + width: 100%;
67 + }
68 +}
69 +
70 +li.card > .well {
71 + height: 100%;
72 + margin-bottom: 0px;
73 +}
74 +
29 29  .video-modal .modal-body {
30 30   text-align: center;
31 31  }