From: Marius Gavrilescu Date: Wed, 11 Feb 2015 16:59:05 +0000 (+0200) Subject: Remove 90-autoresize.js and extraneous css X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=36ee16eebe0a00eb12b6b951381b2e2bd49cd356;p=plack-app-gruntmaster.git Remove 90-autoresize.js and extraneous css --- diff --git a/css/custom.css b/css/custom.css index a6b7d0e..73affe6 100644 --- a/css/custom.css +++ b/css/custom.css @@ -11,26 +11,6 @@ footer{ color: #777; } -#logo { - margin: 5em auto 2em; - display: block; -} - -.txtstuff { - overflow: hidden; -} - -.hiddendiv { - display: none; - white-space: pre-wrap; - word-wrap: break-word; - overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */ -} - -a.thumbnail { - border: none !important; -} - div.container-fluid { padding: 0 15px; } @@ -51,11 +31,6 @@ a.dropdown-toggle{ table-layout: fixed; } -#clock{ - float: right; - margin-right: 1em; -} - nav li{ padding: 5px; } diff --git a/js/90-autoresize.js b/js/90-autoresize.js deleted file mode 100644 index e40ef4e..0000000 --- a/js/90-autoresize.js +++ /dev/null @@ -1,20 +0,0 @@ -(function(){ - 'use strict'; - - $( document ).ready(function() { - var hiddenDiv = $(document.createElement('div')); - - hiddenDiv.addClass('hiddendiv common'); - - $('body').append(hiddenDiv); - - $("textarea.autoresize").on('keyup', function () { - var content = $(this).val(); - - content = content.replace(/\n/g, '
'); - hiddenDiv.html(content + '
'); - - $(this).css('height', hiddenDiv.height()+23); - }); - }); -})();