mirror of
https://github.com/blasten/turn.js.git
synced 2025-04-06 03:57:41 +08:00
175 lines
3.5 KiB
CSS
175 lines
3.5 KiB
CSS
/* Docs sample */
|
|
|
|
body{
|
|
margin:0;
|
|
padding:0;
|
|
overflow:hidden;
|
|
}
|
|
|
|
#canvas{
|
|
width: 960px;
|
|
height: 600px;
|
|
margin: 100px auto;
|
|
}
|
|
|
|
#book-zoom{
|
|
-webkit-transition: -webkit-transform 1s;
|
|
-moz-transition: -moz-transform 1s;
|
|
-ms-transition: -ms-transform 1s;
|
|
-o-transition: -o-transform 1s;
|
|
transition: transform 1s;
|
|
}
|
|
|
|
.animated{
|
|
-webkit-transition:margin-left 0.2s ease-in-out;
|
|
-moz-transition:margin-left 0.2s ease-in-out;
|
|
-o-transition:margin-left 0.2s ease-in-out;
|
|
-ms-transition:margin-left 0.2s ease-in-out;
|
|
transition:margin-left 0.2s ease-in-out;
|
|
}
|
|
|
|
.sample-docs{
|
|
margin-top:20px;
|
|
width:942px;
|
|
height:600px;
|
|
}
|
|
|
|
.sample-docs .page{
|
|
width:471px;
|
|
height:600px;
|
|
background:white;
|
|
|
|
-webkit-box-shadow:0 0 20px rgba(0,0,0,0.2);
|
|
-moz-box-shadow:0 0 20px rgba(0,0,0,0.2);
|
|
-ms-box-shadow:0 0 20px rgba(0,0,0,0.2);
|
|
-o-box-shadow:0 0 20px rgba(0,0,0,0.2);
|
|
box-shadow:0 0 20px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.sample-docs .hard{
|
|
background-image:url(../pics/covers.jpg);
|
|
}
|
|
|
|
.sample-docs .p2{
|
|
background-position:-471px 0;
|
|
}
|
|
|
|
.sample-docs .p28{
|
|
background:-webkit-gradient(linear, left top, right top, color-stop(0.95, #fff), color-stop(1, #dadada));
|
|
background-image:-webkit-linear-gradient(left, #fff 95%, #dadada 100%);
|
|
background-image:-moz-linear-gradient(left, #fff 95%, #dadada 100%);
|
|
background-image:-ms-linear-gradient(left, #fff 95%, #dadada 100%);
|
|
background-image:-o-linear-gradient(left, #fff 95%, #dadada 100%);
|
|
background-image:linear-gradient(left, #fff 95%, #dadada 100%);
|
|
}
|
|
|
|
.sample-docs .p29{
|
|
background-position:-942px 0;
|
|
}
|
|
|
|
.sample-docs .p30{
|
|
background-position:-1413px 0;
|
|
}
|
|
|
|
.sample-docs .even .gradient{
|
|
position:absolute;
|
|
top:0;
|
|
left:0;
|
|
width:100%;
|
|
height:100%;
|
|
background-image:url(../pics/right-border.png);
|
|
background-position:right top;
|
|
background-repeat: repeat-y;
|
|
}
|
|
|
|
.sample-docs .odd .gradient{
|
|
position:absolute;
|
|
top:0;
|
|
left:0;
|
|
width:100%;
|
|
height:100%;
|
|
background-image:url(../pics/left-border.png);
|
|
background-position:left top;
|
|
background-repeat: repeat-y;
|
|
}
|
|
|
|
.sample-docs .page-wrapper{
|
|
-webkit-perspective:2000px;
|
|
-moz-perspective: 2000px;
|
|
-ms-perspective: 2000px;
|
|
perspective: 2000px;
|
|
}
|
|
|
|
|
|
.sample-docs .loader{
|
|
background-image:url(../pics/loader.gif);
|
|
width:22px;
|
|
height:22px;
|
|
position:absolute;
|
|
top:280px;
|
|
left:219px;
|
|
}
|
|
|
|
.sample-docs .shadow{
|
|
-webkit-transition: -webkit-box-shadow 0.5s;
|
|
-moz-transition: -moz-box-shadow 0.5s;
|
|
-o-transition: -webkit-box-shadow 0.5s;
|
|
-ms-transition: -ms-box-shadow 0.5s;
|
|
|
|
-webkit-box-shadow:0 0 20px #ccc;
|
|
-moz-box-shadow:0 0 20px #ccc;
|
|
-o-box-shadow:0 0 20px #ccc;
|
|
-ms-box-shadow:0 0 20px #ccc;
|
|
box-shadow:0 0 20px #ccc;
|
|
}
|
|
|
|
.sample-docs .tabs{
|
|
width:942px;
|
|
height:22px;
|
|
top:-22px;
|
|
position:relative;
|
|
z-index:1;
|
|
}
|
|
|
|
.sample-docs .tabs > div{
|
|
width:461px;
|
|
height:22px;
|
|
float:left;
|
|
}
|
|
|
|
.sample-docs .tabs .left{
|
|
text-align:left;
|
|
margin-left:10px;
|
|
}
|
|
|
|
|
|
.sample-docs .tabs .right{
|
|
text-align:right;
|
|
margin-right:10px;
|
|
}
|
|
|
|
.sample-docs .tabs a{
|
|
color:black;
|
|
-webkit-border-image: url(../pics/tab-off.png) 5 20 5 20 repeat stretch;
|
|
border-width: 5px 20px 5px 20px;
|
|
display:inline-block;
|
|
font:bold 11px arial;
|
|
text-shadow:1px 1px 0 #ddd;
|
|
color:#333;
|
|
line-height:12px;
|
|
text-decoration:none;
|
|
}
|
|
|
|
.sample-docs .tabs .on,
|
|
.sample-docs .tabs .on:hover{
|
|
-webkit-border-image: url(../pics/tab-on.png) 5 20 5 20 repeat stretch;
|
|
cursor:default;
|
|
}
|
|
|
|
.sample-docs .tabs a:hover{
|
|
color:black;
|
|
text-decoration: none;
|
|
cursor:pointer;
|
|
-webkit-border-image: url(../pics/tab-hover.png) 5 20 5 20 repeat stretch;
|
|
|
|
} |