summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-09-22 16:33:56 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-09-22 16:33:56 +0200
commite484fbe3e012a57c95963c24db190c91575e1bc5 (patch)
tree5f805a22f77debba76bcd8517885c886ba26c449
parent7e4912fc03111ab5071e8e7478db48422597777a (diff)
Fix autoresizing of textarea on upload_form
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/views/file/upload_form.php2
-rw-r--r--data/css/style.css6
2 files changed, 4 insertions, 4 deletions
diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php
index b3e405173..a977aaa92 100644
--- a/application/views/file/upload_form.php
+++ b/application/views/file/upload_form.php
@@ -4,7 +4,7 @@
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-upload-form">
<?php echo form_open_multipart('file/do_paste'); ?>
<h2>Text paste</h2>
- <textarea name="content" class="form-control" rows="15"><?php
+ <textarea name="content" class="form-control text-upload"><?php
if (isset($textarea_content)) {
echo $textarea_content;
}
diff --git a/data/css/style.css b/data/css/style.css
index 62132f35d..b7a4b5143 100644
--- a/data/css/style.css
+++ b/data/css/style.css
@@ -90,18 +90,18 @@
}
}
-.text-upload {
+textarea.text-upload {
height: 200px;
}
@media (min-height: 700px) {
- .text-upload {
+ textarea.text-upload {
height: 300px;
}
}
@media (min-height: 800px) {
- .text-upload {
+ textarea.text-upload {
height: 400px;
}
}