commentform_replyTo

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
TimBeam
Regular
Posts: 71
Joined: Fri Jun 22, 2007 3:24 pm
Contact:

commentform_replyTo

Post by TimBeam »

I want to resize the input field to the same width as the other fields. But in the commentform.tpl I can only find this:

commentform_replyTo

Where can I change the size?
|
http://www.wind-in-unseren-fluegeln.de
Benutzername: Serendipity
Passwort: Serendipity

Serendipity 1.3 und PHP 5.2.2
Editor: Notepad++
FTP: Filezilla
Hoster: Strato
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: commentform_replyTo

Post by garvinhicking »

Hi!

You can use CSS to do that? Remember that the replyTo thing is a select, not an input field.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: commentform_replyTo

Post by yellowled »

TimBeam wrote:I want to resize the input field to the same width as the other fields. But in the commentform.tpl I can only find this:

commentform_replyTo

Where can I change the size?
Erm ... we're talking default template, right?

Code: Select all

.serendipityCommentForm input {
   width: <WHATEVER>;
}
should do the trick. .serendipityCommentForm is the class of the container div which, well, contains the comment form. So the code above assigns a width to all input elements in that particular form.

YL
TimBeam
Regular
Posts: 71
Joined: Fri Jun 22, 2007 3:24 pm
Contact:

Post by TimBeam »

You are my heros!

All input fields have now the same width. But the "reply to" field is not affected?

Additionally I have resized the textarea with ".serendipityCommentForm textarea" but how can I change the "reply to", "checkboxes" and the "submit buttons".

.serendipityCommentForm submit {
width: <WHATEVER>;
}

does not work. And now it looks a little bit ugly.

Shall I make my own classes arround these other fileds?
|
http://www.wind-in-unseren-fluegeln.de
Benutzername: Serendipity
Passwort: Serendipity

Serendipity 1.3 und PHP 5.2.2
Editor: Notepad++
FTP: Filezilla
Hoster: Strato
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

TimBeam wrote:Additionally I have resize the textarea with ".serendipityCommentForm textarea" but how can I change the "reply to"

Code: Select all

#serendipity_replyTo { width: <BLAFASEL>; }
TimBeam wrote:"checkboxes"

Code: Select all

#checkbox_remember,
#checkbox_subscribe { width: <BLAFASEL>; }
TimBeam wrote:"submit buttons"
That's the tricky one. Edit your commentform.tpl like this:

Code: Select all

<td><input type="submit" id="serendipity_submitcomment" name="serendipity[submit]" value="{$CONST.SUBMIT_COMMENT}" /> <input type="submit" id="serendipity_preview" name="serendipity[preview]" value="{$CONST.PREVIEW}" /></td>
That's based on the code in the default commentform.tpl, if your commentform.tpl is different, you'll have to figure it out or post a code example :)

Your css code for this is:

Code: Select all

#serendipity_submitcomment,
#serendipity_preview { width: <BLAFASEL>; }
YL
Post Reply