Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Small CSS change filter_list
Author
Message
Small CSS change #1
The current CSS rules are the same for both code blocks and quotes, meaning that quotes don't have the right "word-break" value and get broken wherever instead of just on spaces and hyphens. The following small edit removes the breaks from quotes, but retains them for code tags.

Edit: new CSS also limits the height of code tags, so users don't need to scroll past big blocks of code if they don't want to view all of it.

Old CSS:
Code:
blockquote, .codeblock {
    padding: 6px;
    background-color: rgba(0,0,0,0.200);
    border: 1px solid rgba(255,255,255,0.040);
    margin: 8px 0px;
    overflow: auto;
    word-break: break-all;
}

New CSS:
Code:
blockquote, .codeblock {
    padding: 6px;
    background-color: rgba(0,0,0,0.200);
    border: 1px solid rgba(255,255,255,0.040);
    margin: 8px 0px;
    overflow: auto;
}

.codeblock .body {
    word-break: break-all;
    max-height: 450px;
}
(This post was last modified: 01-30-2017, 05:49 PM by Inori.)
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.

[+] 1 user Likes Inori's post

RE: Small CSS change #2
A simple class selector has fixed the word-break Issue.

Nice piece of work @"Inori".
[Image: AD83g1A.png]


RE: Small CSS change #3
Thank you, Good work keep it up Smile .
Die  But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
[Image: p_237m2jx1.png]
Click for Free VPN


RE: Small CSS change #4
Should be implemented now.
[Image: fSEZXPs.png]

[+] 1 user Likes Dismas's post

RE: Small CSS change #5
I think we still need to fix the max-height.
[Image: fSEZXPs.png]


RE: Small CSS change #6
(02-14-2017, 03:19 AM)Oni Wrote: I think we still need to fix the max-height.

I've been playing with the CSS for a little bit (thank god for CDT) and I think something around 275-300px would work, but that's just a really quick look at it. Might be better to tinker a little when you've got some time.
(This post was last modified: 02-14-2017, 04:06 AM by Inori.)
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.








Users browsing this thread: 1 Guest(s)