mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
edit css/app
This commit is contained in:
parent
23ddcbebee
commit
dda86bcca3
22
css/app.css
22
css/app.css
@ -288,14 +288,30 @@ body {
|
|||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
||||||
height: 17px;
|
height: 100%;
|
||||||
top: 45%;
|
width: 100%;
|
||||||
|
top: 0;
|
||||||
|
background-color: rgba(0,0,0,0.5);
|
||||||
|
|
||||||
margin-left: 560px;
|
z-index:10;
|
||||||
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 40rem) {
|
||||||
|
#loading, #error {
|
||||||
|
display: none;
|
||||||
|
position: fixed;
|
||||||
|
|
||||||
|
height: 17px;
|
||||||
|
top: 45%;
|
||||||
|
|
||||||
|
margin-left: 560px;
|
||||||
|
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* okaidia theme for JavaScript, CSS and HTML
|
* okaidia theme for JavaScript, CSS and HTML
|
||||||
* Loosely based on Monokai textmate theme by http://www.monokai.nl/
|
* Loosely based on Monokai textmate theme by http://www.monokai.nl/
|
||||||
|
10
js/ditto.js
10
js/ditto.js
@ -171,10 +171,6 @@ function show_loading() {
|
|||||||
|
|
||||||
function router() {
|
function router() {
|
||||||
|
|
||||||
$('html, body').animate({
|
|
||||||
scrollTop: $('#content').offset().top
|
|
||||||
}, 200);
|
|
||||||
|
|
||||||
var path = location.hash.replace("#", "./");
|
var path = location.hash.replace("#", "./");
|
||||||
|
|
||||||
// default page if hash is empty
|
// default page if hash is empty
|
||||||
@ -222,6 +218,12 @@ function router() {
|
|||||||
})();
|
})();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
if(path.indexOf('README') === -1){
|
||||||
|
$('html, body').animate({
|
||||||
|
scrollTop: $('#content').offset().top
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
|
|
||||||
}).fail(function() {
|
}).fail(function() {
|
||||||
show_error();
|
show_error();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user