[Rt-commit] rt branch, 4.6/polish-shredder-web-ui, created. rt-4.4.2-96-g665a42b31

Maureen Mirville maureen at bestpractical.com
Fri Jul 20 12:13:16 EDT 2018


The branch, 4.6/polish-shredder-web-ui has been created
        at  665a42b31f23ad8641bd45e22769346ece8ddc75 (commit)

- Log -----------------------------------------------------------------
commit 665a42b31f23ad8641bd45e22769346ece8ddc75
Author: Maureen E. Mirville <maureen at bestpractical.com>
Date:   Fri Jul 6 13:51:04 2018 -0400

    Update RT Shredder web UI styling

diff --git a/lib/RT/Shredder/POD.pm b/lib/RT/Shredder/POD.pm
index 5435e26e2..382c15189 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