@@ -15,27 +15,43 @@ function template_main_above()
15
15
global $ context , $ scripturl ;
16
16
17
17
echo '
18
- <style>
19
- li.padding
20
- {
21
- padding: 0.4em 0.7em !important;
22
- }
23
- li.padding a
24
- {
25
- font-size: 1.1em;
26
- }
27
- li.padding div.d
28
- {
29
- font-style: italic;
30
- opacity: 0.4;
31
- padding: 0.4em 0.7em;
32
- }
33
- </style>
34
- <div class="cat_bar">
35
- <h3 class="catbg">
36
- ' , $ context ['page_title ' ], '
37
- </h3>
38
- </div>
18
+ <style>
19
+ ul.reset, ul.reset li
20
+ {
21
+ padding: 0;
22
+ margin: 0;
23
+ list-style: none;
24
+ }
25
+ .reset li:not(:last-child)
26
+ {
27
+ padding-bottom: 0.5em;
28
+ }
29
+ .reset a
30
+ {
31
+ font-size: 1.1em;
32
+ }
33
+ li.padding div.d
34
+ {
35
+ font-style: italic;
36
+ opacity: 0.4;
37
+ padding: 0.4em 0.7em;
38
+ }
39
+ </style>
40
+ <div class="cat_bar">
41
+ <h3 class="catbg">
42
+ ' , $ context ['page_title ' ], '
43
+ </h3>
44
+ </div> ' ;
45
+
46
+ if (!empty ($ context ['page_message ' ]))
47
+ echo '
48
+ <div class="information noup"> '
49
+ , $ context ['page_message ' ], '
50
+ </div> ' ;
51
+
52
+ echo '
53
+ <div class="windowbg noup">
54
+ <span class="topslice"><span></span></span>
39
55
<ul class="reset"> ' ;
40
56
}
41
57
@@ -45,11 +61,8 @@ function template_main(): void
45
61
46
62
foreach ($ context ['forms ' ] as [$ id_form , $ title , $ description ])
47
63
{
48
- $ col = empty ($ col ) ? 2 : '' ;
49
- $ color_class = 'windowbg ' . $ col ;
50
-
51
64
echo '
52
- <li class="padding ' , $ color_class , ' " >
65
+ <li>
53
66
<a href=" ' . $ scripturl . '?action=form;n= ' . $ id_form . '"> ' . $ title . '</a> ' ;
54
67
55
68
if (!empty ($ description ))
@@ -64,7 +77,9 @@ function template_main(): void
64
77
function template_main_below (): void
65
78
{
66
79
echo '
67
- </ul> ' ;
80
+ </ul>
81
+ <span class="botslice"><span></span></span>
82
+ </div> ' ;
68
83
}
69
84
70
85
function template_form_above (): void
@@ -82,6 +97,10 @@ function template_form_above(): void
82
97
{
83
98
grid-column: span 2;
84
99
}
100
+ .main_section, .lower_padding
101
+ {
102
+ padding-bottom: 0.5em;
103
+ }
85
104
</style>
86
105
<form action=" ' , $ scripturl , '?action=form" method="post" accept-charset=" ' , $ context ['character_set ' ], '" enctype="multipart/form-data">
87
106
<div class="cat_bar">
@@ -90,7 +109,7 @@ function template_form_above(): void
90
109
</h3>
91
110
</div>
92
111
<span class="upperframe"><span></span></span>
93
- <div class="roundframe"> ' ;
112
+ <div class="roundframe noup "> ' ;
94
113
}
95
114
96
115
function template_errors_above (): void
0 commit comments