Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
sub closebigbox {
}
+# Sections
+
+sub opensection($) {
+ my $title = shift;
+
+ # Open the section
+ print "<section class=\"section\">";
+
+ # Show the title if set
+ if ($title) {
+ print " <h2 class=\"title\">${title}</h2>\n";
+ }
+}
+
+sub closesection() {
+ print "</section>";
+}
+
###############################################################################
#
# print box opening html layout
my $title = shift;
- print "<div class=\"box\">\n";
+ print "<section class=\"section is-box\">\n";
# Show the title
if ($title) {
#
# print box closing html layout
sub closebox {
- print "</div>";
+ print "</section>";
}
sub green_used() {
border-radius: 3px 3px 3px 3px;
}
-.box {
- border: 1px solid var(--color-grey);
- padding: 0.75rem 1rem;
+section {
margin-bottom: 2rem;
}
-.box .title {
+section.is-box {
+ padding: 0.75rem 1rem;
+ border: 1px solid var(--color-grey);
+}
+
+section .title {
margin-bottom: 1rem;
border-bottom: 1px solid var(--color-grey);
}