From 4efcba6ceb6a43796f8205bc8fc666bd9a47af0e Mon Sep 17 00:00:00 2001 From: Bart Kamphorst Date: Mon, 30 Mar 2020 09:52:34 +0200 Subject: [PATCH 1/3] Let Primer.CSS determine H1-H6 styling (fixes #1515). --- lib/gollum/public/gollum/stylesheets/template.scss.erb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/gollum/public/gollum/stylesheets/template.scss.erb b/lib/gollum/public/gollum/stylesheets/template.scss.erb index cec8ddf4..e7c3a841 100644 --- a/lib/gollum/public/gollum/stylesheets/template.scss.erb +++ b/lib/gollum/public/gollum/stylesheets/template.scss.erb @@ -167,20 +167,15 @@ a { } h3 { - font-size: 1.5em; } h4 { - font-size: 1.2em; } h5 { - font-size: 1em; } h6 { - color: #777; - font-size: 1em; } p, blockquote, ul, ol, dl, table, pre { From 9ab308412ca2585951f61ffb697f205be5550f6c Mon Sep 17 00:00:00 2001 From: Bart Kamphorst Date: Mon, 30 Mar 2020 10:06:53 +0200 Subject: [PATCH 2/3] Let Primer.CSS style
element. --- lib/gollum/public/gollum/stylesheets/template.scss.erb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/gollum/public/gollum/stylesheets/template.scss.erb b/lib/gollum/public/gollum/stylesheets/template.scss.erb index e7c3a841..85340dca 100644 --- a/lib/gollum/public/gollum/stylesheets/template.scss.erb +++ b/lib/gollum/public/gollum/stylesheets/template.scss.erb @@ -220,12 +220,6 @@ a { } hr { - background: transparent $img_dirty_shade repeat-x 0 0; - border: 0 none; - color: #ccc; - height: 4px; - padding: 0; - margin: 15px 0; } blockquote { From c99da8ff34e668cf02b94f0a340734418ae4f137 Mon Sep 17 00:00:00 2001 From: Bart Kamphorst Date: Mon, 30 Mar 2020 10:16:18 +0200 Subject: [PATCH 3/3] Hide the correct html elements for printing. Fixes #1516. --- lib/gollum/public/gollum/stylesheets/print.scss | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/gollum/public/gollum/stylesheets/print.scss b/lib/gollum/public/gollum/stylesheets/print.scss index eab862e5..427338b0 100644 --- a/lib/gollum/public/gollum/stylesheets/print.scss +++ b/lib/gollum/public/gollum/stylesheets/print.scss @@ -1,15 +1,16 @@ // Removes the action buttons at the top, -// the delete link at the bottom, +// the breadcrumb at the top, // and the footer for better printing. -ul.actions { - display: none; -} - -#delete-link { - display: none; -} div#footer { display: none; } + +nav.actions{ + display:none +} + +.breadcrumb{ + display:none +}