styling improvements
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
Danbooru.RelatedTag.initialize_all = function() {
|
Danbooru.RelatedTag.initialize_all = function() {
|
||||||
this.initialize_buttons();
|
this.initialize_buttons();
|
||||||
|
$("#related-tags").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.RelatedTag.initialize_buttons = function() {
|
Danbooru.RelatedTag.initialize_buttons = function() {
|
||||||
@@ -55,6 +56,8 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#related-tags").show();
|
||||||
|
|
||||||
var query = Danbooru.RelatedTag.recent_search.query;
|
var query = Danbooru.RelatedTag.recent_search.query;
|
||||||
var related_tags = Danbooru.RelatedTag.recent_search.tags;
|
var related_tags = Danbooru.RelatedTag.recent_search.tags;
|
||||||
var wiki_page_tags = Danbooru.RelatedTag.recent_search.wiki_page_tags;
|
var wiki_page_tags = Danbooru.RelatedTag.recent_search.wiki_page_tags;
|
||||||
@@ -118,6 +121,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.RelatedTag.find_artist = function(e) {
|
Danbooru.RelatedTag.find_artist = function(e) {
|
||||||
|
$("#related-tags").show();
|
||||||
Danbooru.RelatedTag.recent_search = null;
|
Danbooru.RelatedTag.recent_search = null;
|
||||||
var url = $("#upload_source,#post_source");
|
var url = $("#upload_source,#post_source");
|
||||||
$.get("/artists.json", {"search[url_match]": url.val()}).success(Danbooru.RelatedTag.process_artist);
|
$.get("/artists.json", {"search[url_match]": url.val()}).success(Danbooru.RelatedTag.process_artist);
|
||||||
@@ -132,7 +136,7 @@
|
|||||||
$dest.html("No artists found");
|
$dest.html("No artists found");
|
||||||
return;
|
return;
|
||||||
} else if (data.length > 2) {
|
} else if (data.length > 2) {
|
||||||
$dest.html("Too many matches found");
|
$dest.html("Too many matching artists found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,17 +4,25 @@ div#related-tags {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
|
padding: 1em;
|
||||||
|
background: #EEE;
|
||||||
|
|
||||||
div.artist {
|
div.artist {
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.artist:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
div.tag-column {
|
div.tag-column {
|
||||||
max-width: 15em;
|
max-width: 15em;
|
||||||
margin-right: 2em;
|
margin-right: 2em;
|
||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
padding: 0.25em 0.5em;
|
padding: 0.25em 0.5em;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user