eGuru on Moodle 3.1: Anyone have luck reducing line spacing?

eGuru on Moodle 3.1: Anyone have luck reducing line spacing?

by Aaron Batty -
Number of replies: 3

Hi All.

I'm running eGuru on my site (Moodle 3.1), and I'm pretty happy with it, except for the huge space between lines, which just makes everything a nightmare scroll. 

Has anyone had any luck reducing line spacing?

Average of ratings: -
In reply to Aaron Batty

Re: eGuru on Moodle 3.1: Anyone have luck reducing line spacing?

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Add some CSS to the Custom Css box in the eguru settings page/s

body { line-height: 1;}

p { line-height: 90%; }

this last one you can alter the percentage.

In reply to Mary Evans

Re: eGuru on Moodle 3.1: Anyone have luck reducing line spacing?

by Aaron Batty -

Thanks, Mary!

I probably should have been clearer; I actually meant paragraph spacing. Is there a way to reduce it across the board, or do I need to do it per style? And how is spacing between resources handled?

Whenever I've tried to change things like that, I've broken themes...

In reply to Aaron Batty

Re: eGuru on Moodle 3.1: Anyone have luck reducing line spacing?

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Aaron,

Well the CSS I gave you should restyle all the paragraphs.

Try this instead?

p { line-height: 1; }

I have eGuru on my test server and found that the links in the navigation blocks are spaced out, I have not noticed the Paragraphs though. But then I have limited text as this is not usually a problem with themes.

I'll take another closer look and see if I can spot where the styles are being generated.

Cheers

Mary