mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-23 20:11:46 +00:00
more playing with the editor...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a4060fa8e8
commit
fd265c4c0b
46
index.html
46
index.html
@ -140,6 +140,42 @@
|
|||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.editor .page.cover:after {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
vertical-align: bottom;
|
||||||
|
text-align: left;
|
||||||
|
|
||||||
|
content: "Cover";
|
||||||
|
background: red;
|
||||||
|
color: white;
|
||||||
|
font-size: 50px;
|
||||||
|
width: 100%;
|
||||||
|
height: 60px;
|
||||||
|
bottom: 0px;
|
||||||
|
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
|
.editor .article {
|
||||||
|
margin-left: 40px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor .article:before {
|
||||||
|
display: block;
|
||||||
|
vertical-align: bottom;
|
||||||
|
position: absolute;
|
||||||
|
content: "Article";
|
||||||
|
color: white;
|
||||||
|
font-size: 50px;
|
||||||
|
bottom: -60px;
|
||||||
|
}
|
||||||
|
.editor .article:nth-child(odd) {
|
||||||
|
border-bottom: solid 50px gray;
|
||||||
|
}
|
||||||
|
.editor .article:nth-child(even) {
|
||||||
|
border-bottom: solid 50px silver;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@ -206,7 +242,15 @@ function clearEditor(){
|
|||||||
$('.current-page-indicator').children().remove()
|
$('.current-page-indicator').children().remove()
|
||||||
}
|
}
|
||||||
|
|
||||||
var toggleEditor = createCSSClassToggler('.chrome', 'editor')
|
var toggleEditor = createCSSClassToggler(
|
||||||
|
'.chrome',
|
||||||
|
'editor',
|
||||||
|
function(){
|
||||||
|
setTransitionDuration($('.magazine'), 0)
|
||||||
|
},
|
||||||
|
function(){
|
||||||
|
setCurrentPage($('.current.page'))
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user