tag:danbooru.me,2005:/forum_topics/9662 Custom CSS Thread 2020-03-19T10:28:35-04:00 tag:danbooru.me,2005:ForumPost/164178 2020-03-19T10:28:35-04:00 2020-03-19T10:28:35-04:00 @Zurreak: > @Flopsy said: > > CSS critique is welcome.... <blockquote> <p><a href="/users?name=Flopsy">@Flopsy</a> said:</p> <p>CSS critique is welcome. In particular, if you know a neater way to select the "a" tags around the "NEW" labels, then please tell me about it.</p> </blockquote><p>One of the site developers recommended the following:<br>div#c-forum-topics #a-index tr span.new {<br> display: none;<br>}</p> Zurreak /users/484260 tag:danbooru.me,2005:ForumPost/164175 2020-03-19T08:30:13-04:00 2020-03-19T08:38:33-04:00 @Flopsy: Forum beautification for those who are not hard... <p>Forum beautification for those who are not hard of seeing:</p><pre>tr[data-is-read=false] &gt; td.title-column { font-weight: bold; } td.title-column &gt; a[href="/forum_topics?search%5Bis_read%5D=false"] { display: none; } </pre><p>CSS critique is welcome. In particular, if you know a neater way to select the "a" tags around the "NEW" labels, then please tell me about it.</p><p>Edit: Now bolds only the topic title.</p> Flopsy /users/118142 tag:danbooru.me,2005:ForumPost/163186 2020-02-17T01:07:48-05:00 2020-02-17T01:09:21-05:00 @Sakil: > evazion said: > > Danbooru has a native dark... <blockquote> <p>evazion said:</p> <p>Danbooru has a native dark theme if you weren't aware. You can enable it in your <a class="dtext-link" href="/settings">account settings</a>. Otherwise it's this:</p> <pre>:root { --target-background: grey; } </pre> </blockquote><p>Damn, I've had no idea about this honestly, I looked for it before but since there was nothing I was just using some random dark theme I've found on pastebin which I've modified to not look so terrible. I see that on GitHub this was added recently, it looks great too. Thanks a lot for letting me know and also thanks for adding the theme as well.</p> Sakil /users/491364 tag:danbooru.me,2005:ForumPost/163182 2020-02-17T00:55:25-05:00 2020-02-17T00:55:25-05:00 @evazion: Danbooru has a native dark theme if you weren't... <p>Danbooru has a native dark theme if you weren't aware. You can enable it in your <a class="dtext-link" href="/settings">account settings</a>. Otherwise it's this:</p><pre>:root { --target-background: grey; } </pre> evazion /users/52664 tag:danbooru.me,2005:ForumPost/163181 2020-02-17T00:09:22-05:00 2020-02-17T00:09:22-05:00 @Sakil: Does anyone know how to change that yellow... <p>Does anyone know how to change that yellow background color (#ffffcc) when you click the date when a post was made? I use a dark theme and it really sticks out badly with it.</p> Sakil /users/491364 tag:danbooru.me,2005:ForumPost/163127 2020-02-14T17:29:14-05:00 2020-02-14T17:32:40-05:00 @rrroi: > BrokenEagle98 said: > > The following should... <blockquote> <p>BrokenEagle98 said:</p> <p>The following should work:</p> <pre>#c-posts #a-show #image { height: 100vh; width: auto; } </pre> </blockquote><p>changing the 'parameter 100' this worked perfect, thanks!<br>I guess I should ask for the download shortcut in another thread x)</p> rrroi /users/733199 tag:danbooru.me,2005:ForumPost/163126 2020-02-14T14:08:00-05:00 2020-02-14T14:08:00-05:00 @BrokenEagle98: > rrroi said: > > Hello guys, do you know of... <blockquote> <p>rrroi said:</p> <p>Hello guys, do you know of any CSS or script to make images fit screen by height instead width by default?</p> <p>One more thing... you know if it's possible to give a keyboard shortcut to Download button? </p> <p>Thx.</p> </blockquote><p>The following should work:</p><pre>#c-posts #a-show #image { height: 100vh; width: auto; } </pre> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/163125 2020-02-14T13:20:19-05:00 2020-02-14T13:20:19-05:00 @rrroi: Hello guys, do you know of any CSS or script to... <p>Hello guys, do you know of any CSS or script to make images fit screen by height instead width by default?</p><p>One more thing... you know if it's possible to give a keyboard shortcut to Download button? </p><p>Thx.</p> rrroi /users/733199 tag:danbooru.me,2005:ForumPost/162935 2020-02-07T02:11:47-05:00 2020-02-07T02:11:47-05:00 @Zurreak: That works. Thank you! <p>That works. Thank you!</p> Zurreak /users/484260 tag:danbooru.me,2005:ForumPost/162932 2020-02-06T23:44:40-05:00 2020-02-06T23:44:40-05:00 @BrokenEagle98: > Zurreak said: > > Does anyone know how to... <blockquote> <p>Zurreak said:</p> <p>Does anyone know how to change the color of the border that appears around the post listing when in a specific viewing mode?</p> </blockquote><p>Just change the colors as desired.</p><p><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://www.w3schools.com/html/html_colors.asp">https://www.w3schools.com/html/html_colors.asp</a></p><pre>body { background-color: #fff; } body.mode-edit { background-color: #5c5; } body.mode-tag-script { background-color: #d6d; } body.mode-add-fav { background-color: #ffa; } body.mode-remove-fav { background-color: #ffa; } body.mode-vote-down { background-color: #faa; } body.mode-vote-up { background-color: #afa; } body.mode-lock-rating { background-color: #aa3; } body.mode-lock-note { background-color: #3aa; } </pre> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/162931 2020-02-06T23:02:19-05:00 2020-02-06T23:02:19-05:00 @Zurreak: Does anyone know how to change the color of the... <p>Does anyone know how to change the color of the border that appears around the post listing when in a specific viewing mode?</p> Zurreak /users/484260 tag:danbooru.me,2005:ForumPost/161959 2019-12-29T07:12:43-05:00 2019-12-29T10:31:13-05:00 @anonbl: /* Blur instead of hiding (blacklisted) */... <pre>/* Blur instead of hiding (blacklisted) */ .post.blacklisted-active, #image-container.blacklisted-active, .post-preview.blacklisted-active { display: inline-block!important; } .post.blacklisted-active picture, #image-container.blacklisted-active picture, .post-preview.blacklisted-active picture {filter: blur(4px) brightness(0.5);} .post.blacklisted-active, #image-container.blacklisted-active {filter: blur(8px) brightness(0.5);} .post.blacklisted-active:hover picture, #image-container.blacklisted-active:hover picture, .post-preview.blacklisted-active:hover picture,.post.blacklisted-active:hover, #image-container.blacklisted-active:hover {filter: blur(0px) brightness(1);} .post-preview.post-status-flagged:not(.mod-queue-preview) img, .post-preview.post-status-pending:not(.mod-queue-preview) img, .post-preview.post-status-has-parent img, .post-preview.post-status-has-children img, .post-preview.post-status-deleted img {border: none !important;} .post-preview a {border : 2px solid transparent !important;overflow: hidden;} .post-preview.post-status-deleted a {border-color: var(--preview-deleted-color); } .post-preview.post-status-has-parent a {border-color: var(--preview-has-parent-color);} .post-preview.post-status-has-children a {border-color: var(--preview-has-children-color);} .post-preview.post-status-flagged:not(.mod-queue-preview) a, .post-preview.post-status-pending:not(.mod-queue-preview) a {border-color: var(--preview-pending-color);} .post-preview.post-status-has-children.post-status-has-parent a {border-color: var(--preview-has-children-color) var(--preview-has-parent-color) var(--preview-has-parent-color) var(--preview-has-children-color);} .post-preview.post-status-has-children.post-status-flagged:not(.mod-queue-preview) a, .post-preview.post-status-has-children.post-status-pending:not(.mod-queue-preview) a { border-color: var(--preview-has-children-color) var(--preview-pending-color) var(--preview-pending-color) var(--preview-has-children-color);} .post-preview.post-status-has-parent.post-status-flagged:not(.mod-queue-preview) a, .post-preview.post-status-has-parent.post-status-pending:not(.mod-queue-preview) a {border-color: var(--preview-has-parent-color) var(--preview-pending-color) var(--preview-pending-color) var(--preview-has-parent-color);} .post-preview.post-status-has-parent.post-status-deleted a {border-color: var(--preview-has-parent-color) var(--preview-deleted-color) var(--preview-deleted-color) var(--preview-has-parent-color);} .post-preview.post-status-has-children.post-status-deleted a {border-color: var(--preview-has-children-color) var(--preview-deleted-color) var(--preview-deleted-color) var(--preview-has-children-color);} </pre><p>For example, in <a class="dtext-link dtext-id-link dtext-post-id-link" href="/posts/3724300">post #3724300</a> Rem focus, but this post will be hidden if <a class="dtext-link dtext-wiki-link tag-type-4" href="/wiki_pages/emilia_%28re%3Azero%29">Emilia_(re:zero)</a> is blacklisted. With blur, you can understand who is in focus and not miss the post.<br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="https://imgur.com/a/oGv8Hkv">Screenshot</a></p> anonbl /users/473183 tag:danbooru.me,2005:ForumPost/161883 2019-12-26T07:16:56-05:00 2019-12-26T07:16:56-05:00 @Icy_Auron: > BrokenEagle98 said: > > Based upon a... <blockquote> <p>BrokenEagle98 said:</p> <p>Based upon a conversation in <a class="dtext-link dtext-id-link dtext-forum-topic-id-link" href="/forum_topics/16501">topic #16501</a>, I thought I'd share some CSS that I've been using.</p> <pre>//Removes the minus link "+" next to tags .search-inc-tag { display: none !important; } //Removes the minus link "-" next to tags .search-exl-tag { display: none !important; } </pre> </blockquote><p>Thank you very much! This worked like a charm.</p> Icy_Auron /users/326528 tag:danbooru.me,2005:ForumPost/161872 2019-12-25T22:31:40-05:00 2019-12-25T22:31:59-05:00 @BrokenEagle98: Based upon a conversation in topic #16501, I... <p>Based upon a conversation in <a class="dtext-link dtext-id-link dtext-forum-topic-id-link" href="/forum_topics/16501">topic #16501</a>, I thought I'd share some CSS that I've been using.</p><pre>//Removes the minus link "+" next to tags .search-inc-tag { display: none !important; } //Removes the minus link "-" next to tags .search-exl-tag { display: none !important; } </pre> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/160425 2019-10-17T15:30:31-04:00 2019-10-17T15:30:31-04:00 @BrokenEagle98: issue #4194 was recently fixed, so now items in... <p><a rel="external nofollow noreferrer" class="dtext-link dtext-id-link dtext-github-id-link" href="https://github.com/r888888888/danbooru/issues/4194">issue #4194</a> was recently fixed, so now items in the upload menu can be hidden/sorted with a bit more stability.</p><p>The following is a hiding example pulled from <a class="dtext-link dtext-id-link dtext-forum-post-id-link" href="/forum_posts/160379">forum #160379</a>.</p><pre>#c-uploads #a-new .upload_artist_commentary_container { display: none; } /* Hide commentary section */ </pre><p><a class="dtext-link dtext-id-link dtext-forum-post-id-link" href="/forum_posts/159841">forum #159841</a> above can be used as an example for how to change the order.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/160002 2019-09-24T22:08:20-04:00 2019-09-24T22:08:20-04:00 @Arcana55: Is there a way to do a bulleted list in a note,... <p>Is there a way to do a bulleted list in a note, using a specified character for the bullet (which is different between the first list-item and subsequent ones) and have the text aligned correctly in hanging indent form?</p><p>I was able to get a satsifactory result with this (see <a class="dtext-link dtext-id-link dtext-post-id-link" href="/posts/3636149">post #3636149</a>):<br><code> &lt;p style="... margin:-4px; padding:6px 6px 6px 23px"&gt; &lt;span style="margin-left:-17px; margin-right:3px"&gt;※&lt;/span&gt;Head toward the Atmosphere Regulation Facility &lt;span style="margin-left:-13px; margin-right:9px"&gt;!&lt;/span&gt;Search for City 682 &lt;span style="margin-left:-13px; margin-right:9px"&gt;!&lt;/span&gt;Obtain map data for this area&lt;/p&gt; </code></p><p>based on formatting from <a class="dtext-link dtext-id-link dtext-post-id-link" href="/posts/3329440">post #3329440</a>. But I don't think this works in general (i.e. might look wrong to other users with different browsers).</p> Arcana55 /users/584523 tag:danbooru.me,2005:ForumPost/159841 2019-09-17T12:43:44-04:00 2019-09-17T12:44:36-04:00 @BrokenEagle98: With the addition of IDs to the post options in... <p>With the addition of IDs to the post options in the side menu (<a class="dtext-link dtext-id-link dtext-forum-post-id-link" href="/forum_posts/159833">forum #159833</a>), it's a lot easier and more stable to change the order of items how they appear in the menu. You can use the following as a template which demonstrates ordering the post options section.</p><pre>#c-posts #a-show #post-options ul { display: flex; flex-direction: column; } #post-option-resize-to-window { order: 1; } #post-option-add-to-favorites { order: 2; } #post-option-remove-from-favorites { order: 2; } #post-option-edit { order: 3; } #post-option-download { order: 4; } #post-option-add-to-pool { order: 5; } #post-option-add-note { order: 6; } #post-option-copy-notes { order: 7; } #post-option-add-commentary { order:8; } #post-option-add-fav-group { order: 9; } #post-option-find-similar{ order: 10; } #post-option-flag { order: 11; } #post-option-appeal { order: 11; } </pre><p>Note that all options that are available to the user must be included in the list, otherwise they get bumped to the top of the listing.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/158420 2019-07-19T20:38:05-04:00 2019-07-19T20:38:05-04:00 @nanami: > BrokenEagle98 said: > > Okay, looking over... <blockquote> <p>BrokenEagle98 said:</p> <p>Okay, looking over it I was able to see why the icons weren't loading on my browser. It's because the "*" block at the beginning of your CSS overrides ALL font choices, but the <strong>Overpass</strong> font doesn't have those Font Awesome glyphs encoded into it, so it reverts to the browser default which is Arial on mine, which doesn't show anything either. To fix the Font Awesome icons, I just had to specify that those class items get the <strong>Font Awesome 5 Pro</strong> font, and since a class has a higher specificity than the "*", that's the font that will be correctly used.</p> <pre>.far, .fas { font-family: "Font Awesome 5 Pro"; } </pre> <p>I believe I found all of the classes, but if there are any missing, then just inspect the missing icon using the dev console to find the base class.</p> </blockquote><p>Just applied the .far/.fas code to my custom CSS. Works now. Also fixed the Russo One problem you're mentioning. I did save my emoji codes in my phone just in case. (I'm using my phone right now.) Thanks! </p> nanami /users/49091 tag:danbooru.me,2005:ForumPost/158410 2019-07-19T18:46:12-04:00 2019-07-19T18:49:02-04:00 @BrokenEagle98: > nanami said: > > Here's a link to my custom... <blockquote> <p>nanami said:</p> <p>Here's a link to my custom CSS, minus the emoji codes: </p> <p>I hope this helps.</p> </blockquote><p>Okay, looking over it I was able to see why the icons weren't loading on my browser. It's because the "*" block at the beginning of your CSS overrides ALL font choices, but the <strong>Overpass</strong> font doesn't have those Font Awesome glyphs encoded into it, so it reverts to the browser default which is Arial on mine, which doesn't show anything either. To fix the Font Awesome icons, I just had to specify that those class items get the <strong>Font Awesome 5 Pro</strong> font, and since a class has a higher specificity than the "*", that's the font that will be correctly used.</p><pre>.far, .fas { font-family: "Font Awesome 5 Pro"; } </pre><p>I believe I found all of the classes, but if there are any missing, then just inspect the missing icon using the dev console to find the base class.</p><p>Also, on a side note, one of your import lines is consistently causing faulty network calls since the line isn't formatted correctly.</p><pre>@import url("https://fonts.googleapis.com/css?family=Russo+One"); </pre><p>The above loads the following section in addition to what you want:</p><pre>/* sampled usage */ @font-face { font-family: 'Russo One'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/stats/Russo+One/normal/400); unicode-range: U+20; } </pre><p>However, that URL is bogus so it always errors out on every single page load. To get the same fonts that you want without the bogus section above, just specify the font weight at the end.</p><pre>@import url("https://fonts.googleapis.com/css?family=Russo+One:400"); </pre> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/158409 2019-07-19T16:33:09-04:00 2019-07-19T16:33:59-04:00 @nanami: > BrokenEagle98 said: > > If you want to post... <blockquote> <p>BrokenEagle98 said:</p> <p>If you want to post your custom CSS somewhere, I could take a look at it as well.</p> </blockquote><p>Here's a link to my custom CSS, minus the emoji codes: <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://shrib.com/#_jPO9d8NMuyU12GhpnE9">https://shrib.com/#_jPO9d8NMuyU12GhpnE9</a></p><p>I hope this helps. </p> nanami /users/49091