Permalink
Browse files

Changes for step 2, adding basic UI

  • Loading branch information...
1 parent 0afb38e commit 36517ac140831e78ad11d7f3a1cc416433a3940f @fortes fortes committed Jul 20, 2011
Showing with 100 additions and 1 deletion.
  1. +10 −0 resources.html
  2. +90 −1 style.css
View
@@ -4,6 +4,16 @@
<div class="chrome">
<div class="viewer">
</div>
+ <div class="controls">
+ <div class="pagewidth">
+ <span class="pagenumbers">
+ <span data-bind="pagenumber">1</span> /
+ <span data-bind="pagecount">5</span>
+ </span>
+ <button class="prev">Prev</button>
+ <button class="next">Next</button>
+ </div>
+ </div>
</div>
<div class="grid">
View
@@ -19,7 +19,7 @@
/* Stretch the viewer to fill the screen */
.viewer {
top: 0;
- bottom: 0;
+ bottom: 40px;
left: 0;
right: 0;
}
@@ -28,6 +28,7 @@
width: 300px;
border: 1px solid #ccc;
margin: 9px;
+ opacity: .25;
}
.column {
@@ -36,3 +37,91 @@
bottom: 5px;
left: 5px;
}
+
+#currentPage {
+ opacity: 1;
+}
+
+.controls {
+ position: absolute;
+ bottom: 10px;
+ left: 0;
+ right: 0;
+ height: 30px;
+ line-height: 30px;
+ font-family: Helvetica, Sans-Serif;
+}
+
+.pagenumbers {
+ display: block;
+ text-align: center;
+ color: #999;
+ font-size: 12px;
+ font-weight: bold;
+}
+
+.controls .pagewidth {
+ margin: 0 auto;
+ position: relative;
+}
+
+.controls .next {
+ position: absolute;
+ right: 0;
+ top: 0;
+}
+
+.controls .prev {
+ position: absolute;
+ left: 0;
+ top: 0;
+}
+
+/* Button styling from ubuwaits' css3-buttons
+ * http://github.com/ubuwaits/css3-buttons
+ */
+button {
+ font-family: Helvetica, Sans-Serif;
+ font-size: 14px;
+ line-height: 20px;
+ height: 30px;
+ box-sizing: border-box;
+ font-weight: bold;
+ padding: 4px 12px;
+ color: #666;
+ background: #eee;
+ background: -moz-linear-gradient(0% 100% 90deg, #ccc, #eee);
+ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eee), to(#ccc));
+ border: 1px solid #ccc;
+ border-bottom: 1px solid #bbb;
+ border-radius: 3px;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ margin: 0;
+}
+
+button:hover {
+ background: #ddd;
+ background: -moz-linear-gradient(0% 100% 90deg, #bbb, #ddd);
+ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ddd), to(#bbb));
+ border: 1px solid #bbb;
+ border-bottom: 1px solid #999;
+ cursor: pointer;
+ text-shadow: 0 1px 0 #ddd;
+}
+
+button:active {
+ border: 1px solid #aaa;
+ border-bottom: 1px solid #888;
+ -moz-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee;
+ -webkit-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee;
+ box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee;
+}
+
+button:disabled, button:disabled:hover, button:active:disabled {
+ color: #ccc;
+ background: #f6f6f6;
+ border-color: #eee;
+ text-shadow: none;
+ box-shadow: none;
+}

0 comments on commit 36517ac

Please sign in to comment.