]> git.parisson.com Git - pdf.js.git/commitdiff
outline view
authorArtur Adib <arturadib@gmail.com>
Fri, 13 Apr 2012 00:19:57 +0000 (17:19 -0700)
committerArtur Adib <arturadib@gmail.com>
Fri, 13 Apr 2012 00:19:57 +0000 (17:19 -0700)
web/viewer.css
web/viewer.html

index 0517c85f7aa819b3bd433de6df9c1d898fb78f0f..2b2266952b40f60cc14d370a3abec9f8587fb0eb 100644 (file)
@@ -407,14 +407,14 @@ body {
   width: 188px;
   top: 33px;
   bottom: 0;
-  padding: 52px 4px 0;
+  padding: 16px 4px 0;
   overflow: auto;
 }
 #outlineView.hidden {
   display:none;
 }
 
-.outlineEntry {
+/*.outlineItem {
   width: -moz-calc(100% - 8px);
   height: 20px;
   padding: 2px 0 0 10px;
@@ -427,7 +427,7 @@ body {
   cursor: default;
 }
 
-.outlineEntry:hover {
+.outlineItem:hover {
   background-color: hsla(0,0%,100%,.02);
   background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
   background-clip: padding-box;
@@ -437,7 +437,7 @@ body {
   color: hsla(0,0%,100%,.9);
 }
 
-.outlineEntry.selected {
+.outlineItem.selected {
   background-color: hsla(0,0%,100%,.08);
   background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
   background-clip: padding-box;
@@ -446,6 +446,25 @@ body {
               0 0 1px hsla(0,0%,0%,.2);
   color: hsla(0,0%,100%,1);
 }
+*/
+
+
+.outlineItem > .outlineItems {
+  margin-left: 20px;
+}
+
+.outlineItem > a {
+  text-decoration: none;
+  color: hsla(0,0%,100%,.8);
+  font-size: 12px;
+}
+
+.outlineItem > a:hover {
+  background-color: hsla(0,0%,100%,.1);
+  color: hsla(0,0%,100%,.9);
+}
+
+
 
 canvas {
   margin: auto;
index 75c447edd36176b41fbfa0e37ccd9edbd682cb26..1d3680e30e14df4b2ca8251fcb96fc19aba0a7c4 100644 (file)
         </div>
 
         <div id="outlineView" class="hidden">
-          <div class="outlineEntry selected">Page 1</div>
-          <div class="outlineEntry">Page 2</div>
-          <div class="outlineEntry">Page 3</div>
-          <div class="outlineEntry">Page 4</div>
-          <div class="outlineEntry">Page 5</div>
         </div>
       </div>