Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Code tags vs Readmore

by parv (Parson)
on May 23, 2014 at 11:46 UTC ( [id://1087195]=note: print w/replies, xml ) Need Help??


in reply to Code tags vs Readmore

Feel free to adjust for yourself ...

p.code , pre.code { overflow: auto; max-height: 55ex; max-width: 101ex; }

... to put too long, too wide of a code in a scrollable widget.

My personal setup is in perlmonks-dark.css.

Replies are listed 'Best First'.
Re^2: Code tags vs Readmore
by chacham (Prior) on May 23, 2014 at 14:58 UTC

    Nice! It makes it nice and tidy without hiding the code at all. That's be an interesting option, "Show Readmore as Scrollable Box".

    I tried the full script. It is more readable, but too dark and large for me. Well, too large in that it takes up so much space. If i decide to tweak settings at some point, i think your script would be an excellent starting point. Thank you for the script, and for showing the relevant part on its own.

Re^2: Code tags vs Readmore
by chacham (Prior) on May 23, 2014 at 14:50 UTC

    Sheesh! I wonder how many times i skimmed over that. It just didn't click until this example and you pointed it out.

    Anyway, put it in, now to test it out. Thanx!

      There are multiple ways to adjust the CSS. I use the Dark theme as a base and my own on-site CSS regarding code is here.:

      .codeblock { max-height: 37em; max-width: 72em; overflow: auto; margin +-bottom: 10px; border: 1px dotted white; border-left: none; padding: +15px; } pre { max-height: 42em; max-width: 75em; overflow: auto; padding: 5px +; }
Re^2: Code tags vs Readmore
by chacham (Prior) on May 23, 2014 at 14:02 UTC

    Would you explain where to use that?

      display settings again! :)

      -> On site CSS markup

      Cheers Rolf

      ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1087195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found