aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-26 12:18:11 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-26 12:18:11 +0000
commit22df83a71e97f752eeab510222009cb77df6bda8 (patch)
treee5b9c3cd84d80b14bf2ca5fb7b01dc3af8b7af3b
parent5f3faad7e5d540bea9eba1a0171f4d1a6e812106 (diff)
downloadelgg-22df83a71e97f752eeab510222009cb77df6bda8.tar.gz
elgg-22df83a71e97f752eeab510222009cb77df6bda8.tar.bz2
Update to SitePages and CSSEditor code input fields, code input (monospaced style) added to base css file.
git-svn-id: http://code.elgg.org/elgg/trunk@5874 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/sitepages/views/default/sitepages/forms/editfront.php6
-rw-r--r--views/default/css.php4
2 files changed, 7 insertions, 3 deletions
diff --git a/mod/sitepages/views/default/sitepages/forms/editfront.php b/mod/sitepages/views/default/sitepages/forms/editfront.php
index d42d496e2..b6c0f741c 100644
--- a/mod/sitepages/views/default/sitepages/forms/editfront.php
+++ b/mod/sitepages/views/default/sitepages/forms/editfront.php
@@ -22,9 +22,9 @@ if ($sitepages_object = sitepages_get_sitepage_object('front')) {
}
// set the required form variables
-$input_css = elgg_view('input/plaintext', array('internalname' => 'css', 'value' => $css));
-$input_logged_in_content = elgg_view('input/plaintext', array('internalname' => 'logged_in_content', 'value' => $logged_in_content ));
-$input_logged_out_content = elgg_view('input/plaintext', array('internalname' => 'logged_out_content', 'value' => $logged_out_content ));
+$input_css = elgg_view('input/plaintext', array('internalname' => 'css', 'value' => $css, 'class' => 'input_textarea monospace'));
+$input_logged_in_content = elgg_view('input/plaintext', array('internalname' => 'logged_in_content', 'value' => $logged_in_content, 'class' => 'input_textarea monospace'));
+$input_logged_out_content = elgg_view('input/plaintext', array('internalname' => 'logged_out_content', 'value' => $logged_out_content, 'class' => 'input_textarea monospace'));
$submit_input = elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save')));
$logged_in_content_title = elgg_echo("sitepages:logged_in_front_content");
diff --git a/views/default/css.php b/views/default/css.php
index f05ad518e..0afb4b38d 100644
--- a/views/default/css.php
+++ b/views/default/css.php
@@ -1122,6 +1122,10 @@ input[type="text"]:focus {
background: #e4ecf5;
color:#333333;
}
+.input_textarea.monospace {
+ font-family:Monaco,"Courier New",Courier,monospace;
+ font-size:13px;
+}
a.longtext_control {
float:right;
margin-left:14px;