Jump to content


Photo

Textbox CSS


  • Please log in to reply
7 replies to this topic

#1 Euler

    Member

  • Members
  • 2,885 posts
  • Joined: 26-February 18

Posted 14 May 2020 - 10:48 AM

IllinoisCarry editor.css appears very determined to set white-space to pre for <textbox> tags. Excerpt below:

.cke_skin_ips *,
.cke_skin_ips a:hover,
.cke_skin_ips a:link,
.cke_skin_ips a:visited,
.cke_skin_ips a:active
{
margin: 0;
padding: 0;
border: 0;
background: transparent;
text-decoration: none;
font: normal normal normal 100% Sans-Serif;
width: auto;
height: auto;
border-collapse: collapse;
text-align: left;
vertical-align: baseline;
white-space: nowrap;
cursor: auto;
color: #444;

font-size: 11px;
font-family: "Helvetica Neue", Arial,Helvetica,Tahoma,Verdana,Sans-Serif;
}

.cke_skin_ips textarea
{
white-space: pre;
}

.cke_skin_ips textarea.cke_source
{
font-family: 'Courier New' , Monospace;
font-size: small;
background-color: #fff;
white-space: pre;
}


Could at least the last one above (.cke_skin_ips textarea.cke_source) be changed to white-space: pre-wrap;? It would wrap long lines inside a textbox, but otherwise leave white-space untouched, removing the need to scroll horizontally in the post editor, thus making it a lot friendlier. (BTW, that's the default behavior for textboxes if you don't apply CSS.)
The welfare of the people in particular has always been the alibi of tyrants, and it provides the further advantage of giving the servants of tyranny a good conscience.

- Albert Camus, Resistance, Rebellion, and Death, 1960.


#2 Molly B.

    IllinoisCarry spokesperson

  • Moderator
  • 17,076 posts
  • Joined: 18-April 05

Posted 15 May 2020 - 10:06 AM

I am sorry, I do not know what this means. . .


"It does not take a majority to prevail ... but rather an irate, tireless minority, keen on setting brushfires of freedom in the minds of men." --Samuel Adams

#3 Euler

    Member

  • Members
  • 2,885 posts
  • Joined: 26-February 18

Posted 15 May 2020 - 10:35 AM

I am sorry, I do not know what this means. . .


I suspect moderators don't have the ability to support the site technically. Mostly it means you need to ask whoever supports the site CSS. (My understanding is that IP Board's CSS and HTML files are truly a pain to maintain, because they're actually written in a PHP-like proprietary language, but it can be done.)
The welfare of the people in particular has always been the alibi of tyrants, and it provides the further advantage of giving the servants of tyranny a good conscience.

- Albert Camus, Resistance, Rebellion, and Death, 1960.


#4 mauserme

    Eliminating the element of surprise one bill at a time.

  • Admin
  • 21,893 posts
  • Joined: 20-February 09

Posted 15 May 2020 - 02:06 PM

As a workaround you can type your post in rich text mode which will wrap when it hits the end of the line.  Alternately, if you want to use BBCode mode, type your response in a plain text editor that supports word wrap, then copy the contents to your post.



#5 Euler

    Member

  • Members
  • 2,885 posts
  • Joined: 26-February 18

Posted 15 May 2020 - 02:21 PM

...  Alternately, if you want to use BBCode mode, type your response in a plain text editor that supports word wrap, then copy the contents to your post.


That's what I'm trying to avoid. The BB software shouldn't make me have to work around it. I'm more than half convinced that's why lots of people use Tapatalk on mobile, too, and why Bubbacs always starts a new sentence on a new line. Presently, my work-around is:
(function () {
	'use strict';

	var
		i,
		ta = document.getElementsByTagName('textarea');

	for ( i = 0; i < ta.length; ++i ) {
		ta[i].style['white-space'] = 'pre-wrap';
	}
}());

Edited by Euler, 15 May 2020 - 02:23 PM.

The welfare of the people in particular has always been the alibi of tyrants, and it provides the further advantage of giving the servants of tyranny a good conscience.

- Albert Camus, Resistance, Rebellion, and Death, 1960.


#6 Euler

    Member

  • Members
  • 2,885 posts
  • Joined: 26-February 18

Posted 20 July 2020 - 02:38 AM

Is a fix for the CSS (for everyone) moving forward?
The welfare of the people in particular has always been the alibi of tyrants, and it provides the further advantage of giving the servants of tyranny a good conscience.

- Albert Camus, Resistance, Rebellion, and Death, 1960.


#7 Molly B.

    IllinoisCarry spokesperson

  • Moderator
  • 17,076 posts
  • Joined: 18-April 05

Posted 20 July 2020 - 08:10 AM

I still don't know what this means.  But, we are still working on the upgrade and keep running into snags.


"It does not take a majority to prevail ... but rather an irate, tireless minority, keen on setting brushfires of freedom in the minds of men." --Samuel Adams

#8 Euler

    Member

  • Members
  • 2,885 posts
  • Joined: 26-February 18

Posted 20 July 2020 - 02:18 PM

A fix for the site's CSS shouldn't require a software upgrade. It's even less involved than a software configuration change. I have noticed (small) changes over time, so there's someone who makes them. Who is that?
The welfare of the people in particular has always been the alibi of tyrants, and it provides the further advantage of giving the servants of tyranny a good conscience.

- Albert Camus, Resistance, Rebellion, and Death, 1960.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users