Danbooru

Custom CSS Thread

Posted under General

Inspired by BrokenEagle's upvote/downvote CSS, I made some that reverts the next/prev page buttons, "more" indicator (...), and search button to text.

/* Change ... and < > and search button to text */
input#tags.ui-autocomplete-input {
    margin-right: 3px;
}
a[rel~="next"][href*="posts?"]:after {
    content: ">>";
}
a[rel~="prev"][href*="posts?"]:after {
    content: "<<";
}
li.more:after {
    content: "...";
}
form[action~="/posts"] button:after {
    font-style: normal;
    content: "Go";
}
svg.svg-inline--fa.fa-search.fa-w-16, svg.svg-inline--fa.fa-chevron-left.fa-w-10, svg.svg-inline--fa.fa-chevron-right.fa-w-10, svg.svg-inline--fa.fa-ellipsis-h.fa-w-16 {
    display: none;
}

Updated

Is there a way to move or remove that box with "fetch source data" and stuff that now appears between the image and the tag box? (and loads after everything else as well, potentially causing mistagging when clicking from the dropdown box)

skylightcrystal said:

Is there a way to move or remove that box with "fetch source data" and stuff that now appears between the image and the tag box? (and loads after everything else as well, potentially causing mistagging when clicking from the dropdown box)

Yeah, I don’t like how it pops up all the time now even when you don’t need it because you want to add just one tag…

Try adding this to your user CSS:

div#source-info {display:none}

skylightcrystal said:

Is there a way to move or remove that box with "fetch source data" and stuff that now appears between the image and the tag box? (and loads after everything else as well, potentially causing mistagging when clicking from the dropdown box)

#c-posts #source-info {
    display: none;
}

The above won't stop translated tags from appearing though. To do that, use the following CSS.

#c-posts #translated-related-tags-column {
    display: none;
}

Like pointed out in forum #150579, I'm still seeing boxes instead the FontAwesome icons, so as a workaround while waiting for a reply there, I've been using emojis for the meantime. I couldn't figure out the icons (or their FA codes) for the tooltips. What are the FA names of the different symbols used in those tooltips? Thanks!

nanami said:

Like pointed out in forum #150579, I'm still seeing boxes instead the FontAwesome icons, so as a workaround while waiting for a reply there, I've been using emojis for the meantime. I couldn't figure out the icons (or their FA codes) for the tooltips. What are the FA names of the different symbols used in those tooltips? Thanks!

forum #148728

Hey guys, just need a little help with the code that I copied from a user here that he/she posted in the forum.

The code is to make Danbooru dark sitewide. It's nice, but the problem is in the pools page or similar pages that list texts, which is also the same with the forums.

This is the code:

Show

div#news-updates
{
background: #000;
border-bottom: 1px solid #666;
color: #b5b5b5;
}
#top
{
background-color: #181818;
}
body
{
background-color: #040001;
}
#page
{
background-color: rgba(0, 0, 0, 0);
}
header#top menu
{
background: #191919;
border-top: 1px solid #2f2e2e;
}
header#top menu.main li.current a
{
background: #2f2e2e;
}
h1
{
color: #FB4B2B;
}
h2
{
color: #06c1c1;
}
p
{
color:gray;
}

div#c-comments div#a-index div.header span.info
{
color: #8a8a8a;
}

div#page {
margin: 0 20px;
padding: 0;
}

aside#sidebar
{
background: #181818;
padding-left: 10px;
}

div#posts
{
background: #181818;
margin-left: 10px;
padding-top: 10px;
}

a:focus {
outline: none;
}
menu#post-sections
{
background: #181818;
margin-left: 10px;
padding-top: 10px;
margin-bottom: 0px;
padding-left: 10px;
}
div#c-posts div#a-index menu#post-sections {
margin-bottom: 0em;
}
li.active
{
padding-left: 22px;
}
/*--comments--*/
div#c-comments div#a-index div.post, div#c-comments div#a-show div.post
{
margin-bottom: 10px;
padding-top: 10px;
background-color: #14171A;
}
div.body.prose
{
color:#808080;
}
blockquote
{
background: #292929;
}
time
{
color: #505050;
}
/*--paginator--*/
menu li
{
color: #4c4c4c;
}
div.paginator li a
{
border: 1px solid #243138;
}
/*--artist--*/
table.striped tr.even
{
background-color: #181D20;
}
table.striped tbody tr
{
border-bottom: 1px solid #384248;
background: #14171A;
color: #9c9c9c;
}
table.striped td:hover,table.striped th:hover
{
background:#222222;
}
label
{
color:#808080;
}
/*--??-*/
table.striped tr.even:hover
{
background:transparent;
}
table.striped tbody tr:hover
{
background:transparent;
}
div.prose li
{
list-style-type: disc;
color: #556079;
}
table {
color: #808080;
}
/*--settings--*/
div#c-users div#a-edit .active
{
color: #b12727;
}
/*--footer--*/
footer#page-footer
{
border-top: 1px solid #242a2f;
}
#page-footer
{
background-color: #14171a;
color: #808080;
}
/*-fixes-*/
div.prose div.expandable
{
border: 1px inset #0073ff;
}
div.prose div.expandable-header span
{
color: #f00;
}
div#c-posts div#a-show #artist-commentary
{
border: 0px solid #CCC;
border-left: 3px solid #80b9ff;
border-radius: 0px;
background-color: #1b1b1b;
}
h3
{
color: #ce3b3b;
}
div#c-posts div.nav-notice
{
background: #1b1b1b;
border: 0px solid red;
}
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br {
border-bottom-right-radius: 0px;
}
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl {
border-bottom-left-radius: 0px;
}
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr {
border-top-right-radius: 0px;
}
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl {
border-top-left-radius: 0px;
}
div#c-posts div#a-show #search-seq-nav li:hover
{
background: rgba(0, 0, 0, 0);
}
span.search-name
{
color: #27a25f;
}
div#c-posts aside#sidebar>section>ul li
{
color: #903636;
}
div.prose h4
{
color: #19b77e;
}
input
{
background-color: transparent;
border: 0px solid red;
border-left: 3px solid #0073ff;
padding-left: 3px;
color: #12a59f;
}
header#top menu form input
{
color: #00fdff;
}
button, input[type="button"], input[type="reset"], input[type="submit"]
{
color: #00fff5;
}
/*-spoiler-*/
.spoiler a {
color: #946802;
}
.spoiler {
color: #808080;
}
.spoiler {
background: #808080 !important;
}
/*-new-*/
strong,li,h3, h4, h5, h6 {
color: #909090;
}
div.prose h6,div.prose h5
{
color: #00945f;
}

The code, once applied, shows the listed pools as striped. Example: poolA(black background), poolB(white background), poolC(black background), so on and so forth.

I tried removing the codes that mentions "striped" and reapplied it, but doesn't seem to work. Any ideas on how solve this problem?

BrokenEagle98 said:

The following will keep the DText internal links (links to elsewhere on Danbooru) from displaying the external link icon afterwards.

a.dtext-external-link[href^="/"]::after {
    content: "";
}

I'd been meaning to ask about this, but I kept forgetting...

BrokenEagle98 said:

The following will keep the DText internal links (links to elsewhere on Danbooru) from displaying the external link icon afterwards.

a.dtext-external-link[href^="/"]::after {
    content: "";
}

Doesn't work/stopped working, mind fixing it?

DeusExCalamus said:

Doesn't work/stopped working, mind fixing it?

Unbreakable said:

Still works for me.

Sometimes your custom CSS doesn't load (for various reasons), and so you get the barebones style of the site. This has happened to me multiple times. It usually resolves it self given enough time.

As noticed in forum #151314, the ever-expanding search bar no longer seems to be in effect. So I created the following to get around that in the meantime, for those that want something similar. It basically makes the search bar stretch the entire length of the display (only in Desktop mode).

/*Screen-wide search bar*/
@media screen and (min-width: 661px){
    #c-posts #tags {
        width: 95vw;
    }
    #c-posts #a-index #posts,
    #c-posts #a-index #excerpt {
        margin-top: 2em;
    }
    #c-posts #a-show #content {
        margin-top: 4em;
    }
    #c-posts #a-show #sidebar {
        margin-top: -4em;
    }
}
1 8 9 10 11 12 13 14 15 16 19