Aardvard postit- how can I change the block width? (v.2.2)

Aardvard postit- how can I change the block width? (v.2.2)

by sue sugizaki -
Number of replies: 12

Hi,

Q: how can I change the block width?

Thx in advance.

BR, sue

Average of ratings: -
In reply to sue sugizaki

Re: Aardvard postit- how can I change the block width? (v.2.2)

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

If you tell me what widths you would like the blocks I can let you have the code.

Alternativly you can experiment using this great little program made by Dietmar Wagner especially for this very thing! smile

http://dwagner.eu/moodle20tools/simple-px-normal.php

Have fun

Mary

In reply to Mary Evans

Re: Aardvard postit- how can I change the block width? (v.2.2)

by sue sugizaki -

Hi,

Thank you for your reply and the link.

I think I know why all the things I'd come up w/ failed. 

Let me have fun fiddling w/ the codes the link provides w/... for a while.

BR, sue

In reply to sue sugizaki

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Aardvard postit- how can I change the block width? (v.2.2)

by sue sugizaki -

Hi, Dietmar!

Thank you for your info. Yup, I'll look into it!

BR, sue

In reply to Mary Evans

Re: Aardvard postit- how can I change the block width? (v.2.2)

by sue sugizaki -

Hi,

I've fiddled w/ codes and made it to widen the block width a couple of times. But the width got stuck at 200px, the original one, at a stage and I can't change it any longer. Sure I did sth wrong...

Q1: could you pls. give the answer (the code w/ 250px block) to this weak student. Ma'am???

 

However, a good news. I found one of my problems was gone.

Before the selection bar wasn't w/i the block.

 

BTW,

Q2: how could I solve this?

 

Thank you in advance. 

In reply to sue sugizaki

Re: Aardvard postit- how can I change the block width? (v.2.2)

by sue sugizaki -

Hi,

re: calendar,

Seems I've solved it??? 

 

re: block width,

I've attached the css sheets.

Q1: are they correct?

Since config.php in Aarvard Postit says,

$THEME->parents = array('canvas','base');

I've customised the pagelayout.php of canvas and base.

Q2: should these be w/ base pagelayout.php???

/** Stabalise some IE6 behaviour **/

/** Report layout **/

/** Correct for content only **/

/** Correct for right to left languages **/

/** Stabalise IE6 behaviour on the report layout **/

In reply to sue sugizaki

Re: Aardvard postit- how can I change the block width? (v.2.2)

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Sue,

Definitely not a good idea to edit the css of base and canvas. These are core themes which are used as parents of many other themes which your changes will affect. They will also get overwritten whenever you upgrade your moodle.

Any css changes you have made you should be able to copy into the css files of postit and this will overwrite any css in canvas or base.

Richard

In reply to Richard Oelmann

Re: Aardvard postit- how can I change the block width? (v.2.2)

by sue sugizaki -

Hi,

Thank you for your advice.

>Definitely not a good idea to edit the css of base and canvas.

I thought so.

>These are core themes which are used as parents of many other themes which your changes will affect. They will also get overwritten whenever you upgrade your moodle.

I knew that I wouldn't use other themes at this stage and dared to do so...

>Any css changes you have made you should be able to copy into the css files of postit and this will overwrite any css in canvas or base.

Right! I've totally forgotten about this. 

 

Anyway, this is what I did w/ my testmoodle installed on my PC, so so far no harm on anything.

In reply to sue sugizaki

Re: Aardvard postit- how can I change the block width? (v.2.2)

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

OK...

With respect to what you are trying to do with the theme...is work within the theme itself.

In Aardvark Post-IT new version get it from my GITHUB

https://github.com/lazydaisy/Moodle-Studio/tree/aardvark_postit

This has latest changes to fix some errors.

As for changing the block widths what width do you want them to be?

If you let me know I'll do the changes and let you have the CSS to fix your theme...OK? smile

Cheers

Mary

In reply to Mary Evans

Re: Aardvard postit- how can I change the block width? (v.2.2)

by sue sugizaki -

Hi,

Thank you for your help.

I've even tested as below, but w/o a success.

1. put the original base and canvas pagelayout.php. back.

2. put a pagelayput named "postit_pagelayout" in Style folder.

3. add extra line in config.php.

In reply to sue sugizaki

Re: Aardvard postit- how can I change the block width? (v.2.2)

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

Sorry I missed the bit about the 250px block width in previous version.

I'll get back with code for you.

Cheers

Mary