added some icons for the toolbar buttons, need to use sprites..
|
@ -4,8 +4,8 @@
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
background-color: #111;
|
background-color: #111;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
opacity: .9;
|
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
|
opacity: 0.95;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cb-control.cb-floating {
|
.cb-control.cb-floating {
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
#cb-toolbar {
|
#cb-toolbar {
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 25px;
|
line-height: 42px;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
border-left: none;
|
border-left: none;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
|
@ -63,6 +63,72 @@
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button {
|
||||||
|
height: 32px;
|
||||||
|
width: 32px;
|
||||||
|
color: transparent;
|
||||||
|
border: none;
|
||||||
|
background-color: transparent;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
margin: 0 16px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-close {
|
||||||
|
background-image: url(../img/iconic/white/x_28x28.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-close:hover,
|
||||||
|
#cb-toolbar button.cb-close:active {
|
||||||
|
background-image: url(../img/iconic/green/x_28x28.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-color {
|
||||||
|
background-image: url(../img/iconic/white/cog_alt_32x32.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-color:hover,
|
||||||
|
#cb-toolbar button.cb-color:active {
|
||||||
|
background-image: url(../img/iconic/green/cog_alt_32x32.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-layout {
|
||||||
|
background-image: url(../img/iconic/white/document_fill_32x32.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-layout:hover,
|
||||||
|
#cb-toolbar button.cb-layout:active {
|
||||||
|
background-image: url(../img/iconic/green/document_fill_32x32.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-zoom-out {
|
||||||
|
background-image: url(../img/iconic/white/minus_32x8.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-zoom-out:hover,
|
||||||
|
#cb-toolbar button.cb-zoom-out:active {
|
||||||
|
background-image: url(../img/iconic/green/minus_32x8.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-zoom-in {
|
||||||
|
background-image: url(../img/iconic/white/plus_32x32.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-zoom-in:hover,
|
||||||
|
#cb-toolbar button.cb-zoom-in:active {
|
||||||
|
background-image: url(../img/iconic/green/plus_32x32.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-fit-width {
|
||||||
|
background-image: url(../img/iconic/white/fullscreen_32x32.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb-toolbar button.cb-fit-width:hover,
|
||||||
|
#cb-toolbar button.cb-fit-width:active {
|
||||||
|
background-image: url(../img/iconic/green/fullscreen_32x32.png);
|
||||||
|
}
|
||||||
|
|
||||||
#cb-color {
|
#cb-color {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
|
|
7
img/iconic/LICENSE
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Iconic Icons by PJ Onori
|
||||||
|
|
||||||
|
@somerandomdude
|
||||||
|
http://somerandomdude.com/projects/iconic/
|
||||||
|
|
||||||
|
http://creativecommons.org/licenses/by-sa/3.0/us/
|
||||||
|
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
|
BIN
img/iconic/green/cog_alt_32x32.png
Normal file
After Width: | Height: | Size: 533 B |
BIN
img/iconic/green/document_fill_32x32.png
Normal file
After Width: | Height: | Size: 332 B |
BIN
img/iconic/green/fullscreen_32x32.png
Normal file
After Width: | Height: | Size: 363 B |
BIN
img/iconic/green/magnifying_glass_32x32.png
Normal file
After Width: | Height: | Size: 545 B |
BIN
img/iconic/green/minus_32x8.png
Normal file
After Width: | Height: | Size: 122 B |
BIN
img/iconic/green/plus_32x32.png
Normal file
After Width: | Height: | Size: 181 B |
BIN
img/iconic/green/x_28x28.png
Normal file
After Width: | Height: | Size: 336 B |
BIN
img/iconic/white/cog_alt_32x32.png
Normal file
After Width: | Height: | Size: 441 B |
BIN
img/iconic/white/document_fill_32x32.png
Normal file
After Width: | Height: | Size: 289 B |
BIN
img/iconic/white/fullscreen_32x32.png
Normal file
After Width: | Height: | Size: 245 B |
BIN
img/iconic/white/magnifying_glass_32x32.png
Normal file
After Width: | Height: | Size: 440 B |
BIN
img/iconic/white/minus_32x8.png
Normal file
After Width: | Height: | Size: 122 B |
BIN
img/iconic/white/plus_32x32.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
img/iconic/white/x_28x28.png
Normal file
After Width: | Height: | Size: 253 B |
|
@ -162,14 +162,13 @@ function ComicBook(id, srcs, opts) {
|
||||||
.addClass("cb-control")
|
.addClass("cb-control")
|
||||||
.append(
|
.append(
|
||||||
$(document.createElement("button"))
|
$(document.createElement("button"))
|
||||||
.text("X")
|
.addClass("cb-close")
|
||||||
.click(function(){
|
.click(function(){
|
||||||
ComicBook.prototype.toggleToolbar();
|
ComicBook.prototype.toggleToolbar();
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.append(
|
.append(
|
||||||
$(document.createElement("button"))
|
$(document.createElement("button"))
|
||||||
.text("layout")
|
|
||||||
.addClass("cb-layout " + options.displayMode)
|
.addClass("cb-layout " + options.displayMode)
|
||||||
.click(function(){
|
.click(function(){
|
||||||
ComicBook.prototype.toggleLayout();
|
ComicBook.prototype.toggleLayout();
|
||||||
|
@ -177,28 +176,28 @@ function ComicBook(id, srcs, opts) {
|
||||||
)
|
)
|
||||||
.append(
|
.append(
|
||||||
$(document.createElement("button"))
|
$(document.createElement("button"))
|
||||||
.text("enhance")
|
.addClass("cb-color")
|
||||||
.click(function(){
|
.click(function(){
|
||||||
ComicBook.prototype.toggleControl("color");
|
ComicBook.prototype.toggleControl("color");
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.append(
|
.append(
|
||||||
$(document.createElement("button"))
|
$(document.createElement("button"))
|
||||||
.text("zoom out")
|
.addClass("cb-zoom-out")
|
||||||
.click(function(){
|
.click(function(){
|
||||||
ComicBook.prototype.zoom(scale - 0.1);
|
ComicBook.prototype.zoom(scale - 0.1);
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.append(
|
.append(
|
||||||
$(document.createElement("button"))
|
$(document.createElement("button"))
|
||||||
.text("zoom in")
|
.addClass("cb-zoom-in")
|
||||||
.click(function(){
|
.click(function(){
|
||||||
ComicBook.prototype.zoom(scale + 0.1);
|
ComicBook.prototype.zoom(scale + 0.1);
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.append(
|
.append(
|
||||||
$(document.createElement("button"))
|
$(document.createElement("button"))
|
||||||
.text("fit width")
|
.addClass("cb-fit-width")
|
||||||
.click(function(){
|
.click(function(){
|
||||||
options.zoomMode = "fitWidth"
|
options.zoomMode = "fitWidth"
|
||||||
ComicBook.prototype.drawPage();
|
ComicBook.prototype.drawPage();
|
||||||
|
|