upgraded jquery, restyled post wiki excerpts
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//= require jquery-1.6.2.min.js
|
||||
//= require jquery-1.7.1.min.js
|
||||
//= require jquery-ui-1.8.12.custom.min.js
|
||||
//= require keymaster.min.js
|
||||
//= require jquery.hotkeys.js
|
||||
|
||||
@@ -132,26 +132,21 @@
|
||||
}
|
||||
|
||||
Danbooru.Post.initialize_wiki_page_excerpt = function() {
|
||||
if (Danbooru.Cookie.get("hide-wiki-page-excerpt") === "1") {
|
||||
$("#hide-wiki-page-excerpt").hide();
|
||||
$("#wiki-page-excerpt-content").hide();
|
||||
} else {
|
||||
$("#show-wiki-page-excerpt").hide();
|
||||
}
|
||||
$("#wiki-page-excerpt").hide();
|
||||
|
||||
$("#hide-wiki-page-excerpt").click(function(e) {
|
||||
$("#hide-wiki-page-excerpt").hide();
|
||||
$("#wiki-page-excerpt-content").hide();
|
||||
$("#show-wiki-page-excerpt").show();
|
||||
Danbooru.Cookie.put("hide-wiki-page-excerpt", "1");
|
||||
$("#show-posts-link").click(function(e) {
|
||||
$("#show-posts-link").parent("li").addClass("active");
|
||||
$("#show-wiki-excerpt-link").parent("li").removeClass("active");
|
||||
$("#posts").show();
|
||||
$("#wiki-page-excerpt").hide();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("#show-wiki-page-excerpt").click(function(e) {
|
||||
$("#hide-wiki-page-excerpt").show();
|
||||
$("#wiki-page-excerpt-content").show();
|
||||
$("#show-wiki-page-excerpt").hide();
|
||||
Danbooru.Cookie.put("hide-wiki-page-excerpt", "0");
|
||||
$("#show-wiki-excerpt-link").click(function(e) {
|
||||
$("#show-posts-link").parent("li").removeClass("active");
|
||||
$("#show-wiki-excerpt-link").parent("li").addClass("active");
|
||||
$("#posts").hide();
|
||||
$("#wiki-page-excerpt").show();
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -102,32 +102,19 @@ div#c-posts {
|
||||
font-size: $h3_size;
|
||||
}
|
||||
|
||||
div#wiki-page-excerpt {
|
||||
position: relative;
|
||||
width: 40em;
|
||||
background: #EEE;
|
||||
padding: 0.5em 1em;
|
||||
margin-bottom: 1em;
|
||||
border: 1px solid #CCC;
|
||||
@include border-radius(0.5em);
|
||||
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
div#hide-or-show-wiki-page-excerpt {
|
||||
font-size: 1em;
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
right: 9px;
|
||||
div#a-index {
|
||||
menu#post-sections {
|
||||
margin-bottom: 0.5em;
|
||||
font-size: $h3_size;
|
||||
|
||||
span {
|
||||
cursor: pointer;
|
||||
color: #AAA;
|
||||
}
|
||||
|
||||
span:hover {
|
||||
color: #333;
|
||||
li {
|
||||
padding: 0.25em 0.5em;
|
||||
|
||||
&.active {
|
||||
background-color: $menu_color;
|
||||
font-weight: bold;
|
||||
@include border-radius(4px);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user