[Rt-commit] rt branch, 4.4/polish-shredder-web-ui, created. rt-4.4.3-68-g3235c897f

Maureen Mirville maureen at bestpractical.com
Wed Nov 14 11:55:33 EST 2018


The branch, 4.4/polish-shredder-web-ui has been created
        at  3235c897f241c4377250ef12f9032cda6a3e1bbd (commit)

- Log -----------------------------------------------------------------
commit 3235c897f241c4377250ef12f9032cda6a3e1bbd
Author: Maureen E. Mirville <maureen at bestpractical.com>
Date:   Wed Nov 14 11:49:17 2018 -0500

    Update RT Shredder web UI styling

diff --git a/lib/RT/Shredder/POD.pm b/lib/RT/Shredder/POD.pm
index d867d13ea..3a67aef96 100644
--- a/lib/RT/Shredder/POD.pm
+++ b/lib/RT/Shredder/POD.pm
@@ -95,8 +95,11 @@ sub command
     my $out_fh = $self->output_handle();
     my $expansion = $self->interpolate($paragraph, $line_num);
     $expansion =~ s/^\s+|\s+$//;
+    $expansion = lc( $expansion );
+    $expansion = ucfirst( $expansion );
 
-    print $out_fh "<$tag>" if $tag;
+    print $out_fh "<$tag class=\"rt-general-header1\">" if $tag eq 'h1';
+    print $out_fh "<$tag class=\"rt-general-header2\">" if $tag eq 'h2';
     print $out_fh $expansion;
     print $out_fh "</$tag>" if $tag;
     print $out_fh "\n";
@@ -107,7 +110,7 @@ sub verbatim
 {
     my ($self, $paragraph, $line_num) = @_;
     my $out_fh = $self->output_handle();
-    print $out_fh "<pre>";
+    print $out_fh "<pre class=\"rt-general-paragraph\">";
     print $out_fh $paragraph;
     print $out_fh "</pre>";
     print $out_fh "\n";
@@ -119,7 +122,7 @@ sub textblock {
     my $out_fh = $self->output_handle();
     my $expansion = $self->interpolate($paragraph, $line_num);
     $expansion =~ s/^\s+|\s+$//;
-    print $out_fh "<p>";
+    print $out_fh "<p class=\"rt-general-paragraph\">";
     print $out_fh $expansion;
     print $out_fh "</p>";
     print $out_fh "\n";
diff --git a/share/static/css/base/main.css b/share/static/css/base/main.css
index 7cc29066b..1bdf4b87b 100644
--- a/share/static/css/base/main.css
+++ b/share/static/css/base/main.css
@@ -32,3 +32,4 @@
 @import "dropzone.css";
 @import "dropzone.customized.css";
 @import "keyboard-shortcuts.css";
+ at import "shredder.css"
diff --git a/share/static/css/base/shredder.css b/share/static/css/base/shredder.css
new file mode 100644
index 000000000..dc57f2441
--- /dev/null
+++ b/share/static/css/base/shredder.css
@@ -0,0 +1,17 @@
+.rt-general-header1 {
+  color: #3858a3;
+  font-size: 1.3em;
+}
+
+.rt-general-header2 {
+  font-style: italic;
+  font-size: 1.1em;
+}
+
+.rt-general-paragraph {
+  padding-left: 2em;
+}
+
+.shredder-form {
+  padding-left: 4em;
+}

-----------------------------------------------------------------------


More information about the rt-commit mailing list