style/js fixes
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
Danbooru.Post.notice_update("dec");
|
||||
},
|
||||
error: function(data, status, xhr) {
|
||||
Danbooru.j_alert("Error: " + data.reason);
|
||||
Danbooru.notice("Error: " + data.reason);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ Danbooru.Note = {
|
||||
},
|
||||
|
||||
error_handler: function(xhr, status, exception) {
|
||||
Danbooru.j_error("There was an error saving the note");
|
||||
Danbooru.error("There was an error saving the note");
|
||||
},
|
||||
|
||||
success_handler: function(data, status, xhr) {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Danbooru.Post.initialize_all = function() {
|
||||
this.initialize_titles();
|
||||
|
||||
|
||||
if ($("#c-posts").length && $("#a-index").length) {
|
||||
this.initialize_wiki_page_excerpt();
|
||||
}
|
||||
@@ -120,30 +120,42 @@
|
||||
$("#show-wiki-page-excerpt").hide();
|
||||
}
|
||||
|
||||
$("#hide-wiki-page-excerpt").click(function() {
|
||||
$("#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");
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("#show-wiki-page-excerpt").click(function() {
|
||||
$("#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");
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
Danbooru.Post.initialize_post_sections = function() {
|
||||
$("#post-sections li a").click(function(e) {
|
||||
$("#comments").hide();
|
||||
$("#notes").hide();
|
||||
$("#edit").hide();
|
||||
if (e.target.hash === "#comments") {
|
||||
$("#comments").fadeIn("fast");
|
||||
$("#notes").hide();
|
||||
$("#edit").hide();
|
||||
} else if (e.target.hash === "#notes") {
|
||||
$("#notes").fadeIn("fast");
|
||||
$("#comments").hide();
|
||||
$("#edit").hide();
|
||||
} else {
|
||||
$("#edit").fadeIn("fast");
|
||||
$("#comments").hide();
|
||||
$("#notes").hide();
|
||||
}
|
||||
|
||||
$("#post-sections li").removeClass("active");
|
||||
$(e.target).parent("li").addClass("active");
|
||||
var name = e.target.hash;
|
||||
$(name).show();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
}
|
||||
|
||||
Danbooru.notice = function(msg) {
|
||||
$('#notice').html(msg).addClass("ui-state-highlight").removeClass("ui-state-error").show();
|
||||
$('#notice').html(msg).addClass("ui-state-highlight").removeClass("ui-state-error").slideDown("fast");
|
||||
}
|
||||
|
||||
Danbooru.error = function(msg) {
|
||||
$('#notice').html(msg).removeClass("ui-state-highlight").addClass("ui-state-error").show();
|
||||
$('#notice').html(msg).removeClass("ui-state-highlight").addClass("ui-state-error").slideDown("fast");
|
||||
}
|
||||
|
||||
Danbooru.ajax_start = function(target) {
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
$link_color: #006FFA;
|
||||
$link_hover_color: #9093FF;
|
||||
$link_color: hsl(213, 100%, 50%);
|
||||
$link_hover_color: hsl(213, 100%, 75%);
|
||||
$link_dark_color: hsl(213, 100%, 25%);
|
||||
$border_color: #CCC;
|
||||
$highlight_color: #F0F0F0;
|
||||
$reverse_highlight_color: #FFFDF4;
|
||||
$reverse_highlight_color: hsl(50, 100, 90);
|
||||
$h1_size: 2em;
|
||||
$h2_size: 1.5em;
|
||||
$h3_size: 1.16667em;
|
||||
|
||||
@@ -144,12 +144,21 @@ div#c-posts {
|
||||
|
||||
div#a-show {
|
||||
menu#post-sections {
|
||||
font-size: $h3_size;
|
||||
font-size: $h2_size;
|
||||
font-weight: bold;
|
||||
line-height: 1.25em;
|
||||
|
||||
li a {
|
||||
color: $link_color;
|
||||
li {
|
||||
padding: 0;
|
||||
margin: 0 0.5em 0 0;
|
||||
|
||||
a {
|
||||
color: $link_dark_color;
|
||||
}
|
||||
|
||||
&.active a {
|
||||
color: $link_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user