Browse Source

Move cycling buttons around.

tags/v1.0^2
Benjamin Attal 10 years ago
parent
commit
1c7707158f
2 changed files with 25 additions and 21 deletions
  1. +7
    -3
      static/js/index.js
  2. +18
    -18
      static/sass/index.sass

+ 7
- 3
static/js/index.js View File

@@ -151,7 +151,8 @@ function createResult(codelet) {
var displayInfo = document.createElement("div"), var displayInfo = document.createElement("div"),
codeElt = document.createElement("td"), codeElt = document.createElement("td"),
hiddenInfoContainer = document.createElement("td"), hiddenInfoContainer = document.createElement("td"),
hiddenInfo = document.createElement("div");
hiddenInfo = document.createElement("div"),
cycle = document.createElement("div");
//Level 3 //Level 3
var title = document.createElement("span"), var title = document.createElement("span"),
site = document.createElement("span"), site = document.createElement("span"),
@@ -168,6 +169,7 @@ function createResult(codelet) {
displayInfo.id = 'display-info'; displayInfo.id = 'display-info';
codeElt.id = 'code'; codeElt.id = 'code';
hiddenInfo.id = 'hidden-info'; hiddenInfo.id = 'hidden-info';
cycle.id = 'cycle-matches'


title.id = 'title'; title.id = 'title';
site.id = 'site'; site.id = 'site';
@@ -256,11 +258,13 @@ function createResult(codelet) {


displayInfo.appendChild(title); displayInfo.appendChild(title);
displayInfo.appendChild(site); displayInfo.appendChild(site);
displayInfo.appendChild(prevMatch);
displayInfo.appendChild(nextMatch);

cycle.appendChild(prevMatch);
cycle.appendChild(nextMatch);


newDiv.appendChild(displayInfo); newDiv.appendChild(displayInfo);
newDiv.appendChild(table); newDiv.appendChild(table);
newDiv.appendChild(cycle);


return newDiv; return newDiv;
} }


+ 18
- 18
static/sass/index.sass View File

@@ -285,6 +285,12 @@ div#results
margin-right: auto margin-right: auto
width: 80% width: 80%


a
text-decoration: none

&:hover
color: orange

/* TODO: /* TODO:
1) Hidden info 1) Hidden info
- Add links for authors. - Add links for authors.
@@ -306,33 +312,19 @@ div#results


&.cascade &.cascade
@extend .t3 @extend .t3
margin-bottom: 10%
margin-bottom: 15%


div#display-info div#display-info
font-size: 1.3em font-size: 1.3em
padding: 5px 0px 5px 5px padding: 5px 0px 5px 5px
width: 100% width: 100%


a
text-decoration: none

&:hover
color: orange

#title #title
margin-right: 10px margin-right: 10px


#site #site
text-transform: capitalize text-transform: capitalize


#prev-match
font-size: 0.7em
margin-left: 125px

#next-match
font-size: 0.7em
margin-left: 20px

td#code td#code
width: $codeWidth width: $codeWidth
height: inherit height: inherit
@@ -381,7 +373,15 @@ div#hidden-info
#authors #authors
a a
font-family: monospace font-family: monospace
text-decoration: none


&:hover
color: orange
div#cycle-matches
margin-left: 130px
margin-top: 20px

#prev-match
font-size: 1.1em
margin-left: 125px

#next-match
font-size: 1.1em
margin-left: 20px

Loading…
Cancel
Save