From f389012d685827d7f51dc343152b48f6808abeb3 Mon Sep 17 00:00:00 2001 From: paulej72 Date: Wed, 28 May 2014 23:35:49 -0400 Subject: [PATCH 1/2] Set long text boxes to use 100% width. this fixes overflow of long text boxes when with is set to minimum value. --- plugins/Admin/templates/editStory;admin;default | 12 ++++++------ .../Journal/templates/journaledit;journal;default | 4 ++-- plugins/Submit/templates/displayForm;submit;default | 4 ++-- themes/default/htdocs/admin.cssraw | 1 - themes/default/htdocs/base.css | 7 +++++++ .../default/templates/edit_comment;comments;default | 2 +- themes/default/templates/userlogin;misc;default | 4 ++-- 7 files changed, 20 insertions(+), 14 deletions(-) diff --git a/plugins/Admin/templates/editStory;admin;default b/plugins/Admin/templates/editStory;admin;default index a005d13cf..e6257dcdd 100644 --- a/plugins/Admin/templates/editStory;admin;default +++ b/plugins/Admin/templates/editStory;admin;default @@ -78,12 +78,12 @@ __template__ [% END %] [% shown_in_desc %] [% PROCESS formLabel value => "Title" %] - +
[% ispell_comments.title %]
[% IF constants.use_dept %] [% PROCESS formLabel value => "Dept" %] - + [% END %] [% PROCESS formLabel value="Author" %] @@ -96,7 +96,7 @@ __template__ [% IF extra.2 == 'text' %] [% ELSIF extra.2 == 'textarea' %] - + [% ELSIF extra.2 == 'list' %] [% Slash.createSelect(extra.1, Slash.db.getDescriptions('genericstring',extra.1), storyref.${extra.1}, 1, 1) %] [% END %] @@ -158,7 +158,7 @@ __template__ - +
[% ispell_comments.introtext %]
[% PROCESS editbuttons %] @@ -227,12 +227,12 @@ __template__ - + - +
[% ispell_comments.bodytext %]
[% PROCESS editbuttons %] diff --git a/plugins/Journal/templates/journaledit;journal;default b/plugins/Journal/templates/journaledit;journal;default index 93904d7f7..5595c2d96 100644 --- a/plugins/Journal/templates/journaledit;journal;default +++ b/plugins/Journal/templates/journaledit;journal;default @@ -21,7 +21,7 @@ __template__ [% PROCESS formLabel value => "Subject" %] [% PROCESS formNote note => "This is required" %] - + [% PROCESS formLabel value => "Journal Topic", comment => ""; def_topic = article.tid || constants.journal_default_topic; Slash.selectTopic('tid', def_topic, '', 1) %] @@ -42,7 +42,7 @@ __template__ [% PROCESS formNote note => "Comments are enabled" %] [% END %] [% PROCESS formLabel value => "Entry" %] - +
[% format_select %]
diff --git a/plugins/Submit/templates/displayForm;submit;default b/plugins/Submit/templates/displayForm;submit;default index 67a74b273..c79699b62 100644 --- a/plugins/Submit/templates/displayForm;submit;default +++ b/plugins/Submit/templates/displayForm;submit;default @@ -99,7 +99,7 @@ __template__ [% END %] [% PROCESS formLabel value => "Subject" %] - + [% PROCESS formNote note => "Be descriptive and concise!" %] [% PROCESS formNote note => "(Nondescriptive subjects like 'Check this out!' usually just get deleted, because we get many every day. For best results, put the important words early.)" %] @@ -148,7 +148,7 @@ __template__ [% PROCESS formNote note => "In general, submit to $submitToLabel" %] [% PROCESS formLabel value => "The Scoop" %] -
+
[% PROCESS formNote note => "Are you sure you included a URL? Did you test them for typos?" %] [% PROCESS formNote note => "HTML is fine, but double check those URLs and HTML tags!" %] [% PROCESS formLabel value => "Submission format", comment => "" %] diff --git a/themes/default/htdocs/admin.cssraw b/themes/default/htdocs/admin.cssraw index 7987df025..79d5c1965 100755 --- a/themes/default/htdocs/admin.cssraw +++ b/themes/default/htdocs/admin.cssraw @@ -6,7 +6,6 @@ body.admin .admin fieldset { margin: 0 0 1em 1em; } label.checkbox { display: inline; } -input {width: auto !important;} .contentsadmin { width: auto; diff --git a/themes/default/htdocs/base.css b/themes/default/htdocs/base.css index 4139cdfae..4077a423d 100755 --- a/themes/default/htdocs/base.css +++ b/themes/default/htdocs/base.css @@ -356,6 +356,13 @@ input[type=submit]:hover, .logout a:hover, div.storylinks ul li.more a:hover {ba input[type=text], input[type=password] {border: 1px solid #555; font-size: 1em;} +.fullbox{ + width: 100%; + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + box-sizing:border-box; +} + #login-block {display: none;} /* FORMTABS */ diff --git a/themes/default/templates/edit_comment;comments;default b/themes/default/templates/edit_comment;comments;default index 11e80bf80..24303efa6 100644 --- a/themes/default/templates/edit_comment;comments;default +++ b/themes/default/templates/edit_comment;comments;default @@ -117,7 +117,7 @@ END %] [% END %] [% PROCESS formLabel value => 'Comment' %] - + [% PROCESS formNote note => 'Use the Preview Button! Check those URLs!' %]
[% IF user.is_anon %] diff --git a/themes/default/templates/userlogin;misc;default b/themes/default/templates/userlogin;misc;default index cab2d9c08..6dd25b761 100644 --- a/themes/default/templates/userlogin;misc;default +++ b/themes/default/templates/userlogin;misc;default @@ -22,13 +22,13 @@ __template__ - + - +