Browse Source

Fix error-message bug; mod anchor styling.

Add:
        static/js/index.js
                -Fix the `No results found.` end-of-page error-message bug.

        static/sass/index.sass
                -Mod results anchor and hidden-information styling.
tags/v1.0^2
Severyn Kozak 10 years ago
parent
commit
d08d04c860
2 changed files with 8 additions and 9 deletions
  1. +1
    -1
      static/js/index.js
  2. +7
    -8
      static/sass/index.sass

+ 1
- 1
static/js/index.js View File

@@ -402,7 +402,7 @@ function queryServer(){
var resultDivs = []; var resultDivs = [];
if("error" in result) if("error" in result)
insertErrorMessage(result["error"]); insertErrorMessage(result["error"]);
else if(result["results"].length == 0)
else if(result["results"].length == 0 && searchResultsPage == 1)
insertErrorMessage("No search results."); insertErrorMessage("No search results.");
else else
for(var codelet = 0; codelet < result["results"].length; codelet++) for(var codelet = 0; codelet < result["results"].length; codelet++)


+ 7
- 8
static/sass/index.sass View File

@@ -6,7 +6,6 @@
@import variables @import variables


$minSearchFieldsWidth: 490px $minSearchFieldsWidth: 490px
// $resultWidth: 400px
$codeWidth: 700px $codeWidth: 700px
$hiddenInfoWidth: 300px $hiddenInfoWidth: 300px


@@ -86,6 +85,7 @@ div#search-field
width: 40% width: 40%


a#title a#title
letter-spacing: 0.3em
text-decoration: none text-decoration: none


div#title div#title
@@ -327,10 +327,12 @@ div#results
width: 80% width: 80%


a a
@extend .t3

text-decoration: none text-decoration: none


&:hover &:hover
color: orange
color: $baseColor1


div#error div#error
font-size: 170% font-size: 170%
@@ -353,7 +355,6 @@ div#results
div.result div.result
@extend .t3 @extend .t3


// width: $resultWidth
height: 200px height: 200px
margin-bottom: 100% margin-bottom: 100%
pointer-events: auto pointer-events: auto
@@ -407,9 +408,6 @@ td#code
position: relative position: relative
z-index: 1 z-index: 1


// &:hover
// overflow: auto

table table
border-collapse: collapse border-collapse: collapse
font-family: monospace font-family: monospace
@@ -443,9 +441,10 @@ div#hidden-info
padding-left: 20px padding-left: 20px


span span
font-family: monospace
color: $baseColor1 color: $baseColor1
float: right
font-family: monospace
font-size: 1.1em
// float: right


div div
display: block display: block


Loading…
Cancel
Save