Browse Source

Remove merge artifacts. Tweak hidden-info styles.

tags/v1.0^2
Benjamin Attal 10 years ago
parent
commit
a1fc510ae0
3 changed files with 9 additions and 36 deletions
  1. +1
    -1
      static/js/index.js
  2. +8
    -7
      static/sass/index.sass
  3. +0
    -28
      templates/index.html

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

@@ -174,7 +174,7 @@ function createResult(codelet) {
dateCreated.innerHTML = 'Created ' + codelet.date_created; dateCreated.innerHTML = 'Created ' + codelet.date_created;
authors.innerHTML = 'Authors: '; authors.innerHTML = 'Authors: ';
$.each(codelet.authors, function(i, a) { $.each(codelet.authors, function(i, a) {
authors.innerHTML += '<a href=#>' + a + '; </a>';
authors.innerHTML += '<a href=#>' + a + ' </a>';
}); });


sidebar.innerHTML = ''; sidebar.innerHTML = '';


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

@@ -290,10 +290,11 @@ div#results
1) Sidebar 1) Sidebar
- Add way to cycle through hits in the code. - Add way to cycle through hits in the code.
2) Hidden info 2) Hidden info
- Use effect to make it transition into view.
- Add links for authors. - Add links for authors.
- Remove language field.
3) Header 3) Header
- Add an icon for the website. - Add an icon for the website.
- Add language tag.
4) Code body 4) Code body
- Add highlighting.*/ - Add highlighting.*/
div.result div.result
@@ -319,7 +320,7 @@ div#results


table table
border-collapse: collapse border-collapse: collapse
border: 1px solid #ccc
border: 1px solid $baseColor3
height: inherit height: inherit


tr tr
@@ -328,13 +329,13 @@ div#results
#sidebar #sidebar
width: $sidebarWidth width: $sidebarWidth
background-color: #eee background-color: #eee
border-right: 1px solid #ccc
border-right: 1px solid $baseColor3
height: inherit height: inherit


#code #code
width: $codeWidth width: $codeWidth
height: inherit height: inherit
border-right: 1px solid #ccc
border-right: 1px solid $baseColor3


#tablecontainer #tablecontainer
overflow: scroll overflow: scroll
@@ -365,9 +366,9 @@ div#results
width: $hiddenInfoWidth width: $hiddenInfoWidth
margin-left: -$hiddenInfoWidth margin-left: -$hiddenInfoWidth
height: 100% height: 100%
padding-top: 25px
padding-top: 50px
text-align: center text-align: center
font-size: 1.2em
font-size: 1em
line-height: 1.5em line-height: 1.5em
@include vendor(transition, margin-left 0.2s ease-in-out) @include vendor(transition, margin-left 0.2s ease-in-out)


@@ -383,7 +384,7 @@ div#results
#language #language
display: inline-block display: inline-block
font-weight: bold font-weight: bold
color: purple
color: orange


#authors #authors
a a


+ 0
- 28
templates/index.html View File

@@ -90,34 +90,6 @@
<span class="regex">Regex</span> <span class="regex">Regex</span>
</div> </div>
</div> </div>
<<<<<<< HEAD
=======

<div id="lower-half">
<ul>
<li>
<label for="symbols">Symbols</label>
<input type="text" name="symbols" id="symbols"><br>
</li>

<li>
<label for="functions">Functions</label>
<input type="text" name="functions" id="functions"><br>
</li>

<li>
<label for="classes">Classes</label>
<input type="text" name="classes" id="classes"><br>
</li>

<li>
<label for="variables">Variables</label>
<input type="text" name="variables" id="variables"><br>
</li>

</ul>
</div>
>>>>>>> Search results are now code blocks. Used pygments to parse a block of code into html, and used html styles to highlight the text.
</div> </div>
</div> </div>
</form> </form>


Loading…
Cancel
Save