From: Stefan Lage Date: Thu, 23 May 2013 20:42:27 +0000 (-0400) Subject: nitdoc: Cleaning js/css files X-Git-Tag: v0.6~46^2~30 X-Git-Url: http://nitlanguage.org nitdoc: Cleaning js/css files Deleted all windows spaces in js and css files signed-off by: Stefan Lage --- diff --git a/share/nitdoc/scripts/js-facilities.js b/share/nitdoc/scripts/js-facilities.js index 0c9f42b..cb45d6e 100644 --- a/share/nitdoc/scripts/js-facilities.js +++ b/share/nitdoc/scripts/js-facilities.js @@ -45,8 +45,8 @@ $(document).ready(function() { $(this).find("a.fold").html("+"); } $(this).nextAll().toggle(); - }) - + }) + // Insert search field $("nav.main ul") .append( @@ -256,7 +256,7 @@ $(document).ready(function() { }) ) ); - + // Filter toggle between H I R in nav porperties list $("nav.properties.filterable .filter") .append( @@ -306,9 +306,9 @@ $(document).ready(function() { $(this).toggleClass("hidden"); }) - ); - - // Filter toggle between I R in + ); + + // Filter toggle between I R in $("article.properties.filterable .filter, article.classes.filterable .filter") .append( $(document.createElement("a")) @@ -363,24 +363,24 @@ function currentAnchor() { return null; } -/* Prealod filters field using search query */ -function preloadFilters() { - // Parse URL and get query string - var search = currentAnchor(); - - if(search == null || search.indexOf("q=") == -1) - return; - +/* Prealod filters field using search query */ +function preloadFilters() { + // Parse URL and get query string + var search = currentAnchor(); + + if(search == null || search.indexOf("q=") == -1) + return; + search = search.substring(2, search.length); - - if(search == "" || search == "undefined") - return; - $(":text").val(search); - $(".filter :text") - .removeClass("notUsed") - .trigger("keyup"); - + if(search == "" || search == "undefined") + return; + + $(":text").val(search); + $(".filter :text") + .removeClass("notUsed") + .trigger("keyup"); + } /* Hightlight the spoted block */ diff --git a/share/nitdoc/styles/main.css b/share/nitdoc/styles/main.css index 8ddd688..20a2ac4 100644 --- a/share/nitdoc/styles/main.css +++ b/share/nitdoc/styles/main.css @@ -349,48 +349,48 @@ article .info .code { margin: 0; } -/* JS facilities */ - +/* JS facilities */ + input[type=text] { width: 150px; border: 1px solid #CCC; - margin-right: 5px; + margin-right: 5px; padding: 1px 2px; -} - +} + input[type=text].notUsed { color: #999; font-style: italic; } - + nav .filter { text-align: center; padding: 5px; -} - -nav.main input[type=text] { - margin: -2px 10px; - color: black; - font-style: normal; -} - -nav.main form { - float: right; +} + +nav.main input[type=text] { + margin: -2px 10px; + color: black; + font-style: normal; +} + +nav.main form { + float: right; } .filter a { color: #0D8921; cursor: pointer; font-family: monospace; - margin-right: 5px; + margin-right: 5px; font-weight: bold; } .filter a.hidden { - color: #999; + color: #999; font-weight: normal; -} - +} + .filter a:hover { text-decoration: underline; } @@ -430,7 +430,7 @@ nav h3 a.fold { background-color: #FFFFFF; border: 1px solid #E0E0E0; border-spacing: 0px; - z-index: 10; /* the menu must be over the rest of the page. */ + z-index: 10; /* the menu must be over the rest of the page. */ } #searchTable .activeSearchResult {