Git Product home page Git Product logo

stylishthemes / stackoverflow-dark Goto Github PK

View Code? Open in Web Editor NEW
687.0 20.0 43.0 3.31 MB

๐Ÿ“š Dark theme for Stack Overflow & most Stack Exchange network sites

Home Page: https://github.com/StylishThemes/StackOverflow-Dark/raw/master/stackoverflow-dark.user.css

License: Other

CSS 98.02% JavaScript 1.76% Shell 0.22%
theme css dark-theme awesome userstyle stackoverflow usercss dark

stackoverflow-dark's Introduction

stackexchange-logo
Tag Star Fork devDependencies Gitter

This dark theme applied to Stack Overflow and almost all Stack Exchange sites (except Area 51).

Preview

Stack Overflow Dark preview

Installation

A userstyle manager is required, common ones include:

๐ŸŽจ Stylus for Firefox, Chrome or Opera.
๐ŸŽจ xStyle for Firefox or Chrome.

Then:

๐Ÿ“ฆ Install the usercss. Supports automatic updates.

Additional styles

๐Ÿ“ฆ Install the StackOverflow Syntax Themes usercss

  • The StackOverflow Syntax Themes style is a required additional style for rendering blocks of code on StackOverflow, it contains preset + custom syntax themes.

๐Ÿ“ฆ Install the global Overlay-Scrollbars usercss

  • The Overlay-Scrollbars style is an optional additional style for styling scrollbars on modern browsers since removing scrollbars styles in this commit

Notes

  • In versions 2.8.0+, this style will apply to almost all Stack Exchange sites.
  • From version 5.0.0, the syntax themes are removed and added as separate theme switcher, this is because SO design upstream changed, see issue #218
  • Do not use this style and the native site dark mode together. Make your choice and stick with one but not both at same time. See below.

Bug reports

We only accept bug reports with Stack Overflow/Exchange light style enabled.

Contributions

If you would like to contribute to this repository, please...

  1. ๐Ÿ‘“ Read the contribution guidelines.
  2. repo-forked Fork or cloud-download download this repository.
  3. ๐Ÿ‘Œ Create a pull request!

Thanks to all that have contributed so far!

stackoverflow-dark's People

Contributors

9redhat avatar afrothundr3007730 avatar bmwalters avatar chutzimir avatar codepurble avatar colonelgerdauf avatar derekantrican avatar hasimir avatar idomo avatar importtaste avatar jmona789 avatar kelunik avatar lwchris avatar mikejerred avatar mottie avatar petermortensen avatar podesta avatar raitaroh avatar seanharrs avatar silverwind avatar spottedmahn avatar sylwesterzarebski avatar tambry avatar the-j0k3r avatar theslimshaney avatar vcfvct avatar xt0rted avatar zeeex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stackoverflow-dark's Issues

Extending to StackExchange

How can I safely edit the source to make this dark theme available to the whole of StackExchange network (if it is possible, of course)?

Code block themes similar to GitHub-Dark

Would it be possible to customize the theme for code blocks as with GitHub-Dark? The bright blue coloring of keywords in the default style a bit too harsh for my taste. I'd like to be able to switch to Tomorrow Night Eighties or something similar if possible.

Highlighted jobs stay white/off-white

As shown below, highlighted search results at StackOverflow Jobs have a light background which clashes with the dark aesthetic and the light text.

so-jobs-mishighlight

I've fixed this locally using the styling below.

.-item._highlighted {
  background: #111111!important;
}

StackExchange Site Issues (To Do List)

Tampermonkey userscript doesn't seem to work

Hi there,

Since I try to keep my browser/computer free of 'junk' software as much as I can I was pleased to note that there was an option to get the theme as a Tampermonkey userscript. But, this doesn't appear to be working, given the fact that my pages are still white and TM doesn't indicate that a script is running. I just clicked the link on userstyles.org and added the script it gave me.

Is this an issue that can be reproduced, or is my TM not working correctly?

Thanks.

line spacing for prettyprinted code

Hi,

Great work on this theme! I noticed the line height is a bit tight on the prettyprinted code:

screenshot before

Here it is after increasing it to 1.4em:

screenshot after

Let me know what you think.

Repository name

For the most part, we are following a convention of properly named repositories.

I think Stackoverflow-Dark should be renamed to StackOverflow-Dark

Ask Ubuntu

Ask Ubuntu is also an official Stack Exchange website. I noticed that it's not targeted by this style.

I tried adding domain("askubuntu.com") to the @-moz-document rule, but it misses a few things, notably the Ubuntu navbar in the header, and the Stack Exchange footer.

Is there any particular reason why Ask Ubuntu isn't being styled? Are there any plans to style it? (I presume you simply didn't encounter it whilst looking for Stack Exchange sites that needed styling.)

Header-bar background opacity option

Currently it has an opacity of 0.4 which in my personal opinion doesn't look good with the page content showing through it. Can we open up that as a Stylish option?

(Suggestion) Increase the tags font size

I've been using the StackOverflow-Dark theme and it's great.

There's one minor thing:
the tags font size (I mean the tags below each question and in the 'Favorite Tags' list) is too small,
making them difficult to read.
It would be great if it was increased to the default size.
(FF 48, Stylish 2.0.7)

Screenshots for comparison:
Initially
With the userstyle

@Mention unreadable in Stack Overflow chat

The background color for mentions on chat.stackoverflow.com seems to not be altered by this style (using Google Chrome), leaving it as the default green-y color:
before
This seems to be easily changed though by explicitly altering the background-color for the "mention" class to be transparent (this keeps it looking the same as chat.stackexchange.com):
.mention { background-color: transparent !important; }
after

[new navigation for StackOveflow(beta feature)] the text in 2 of the 3 new tabs appears truncated

Affected pages: http://stackoverflow.com/*

I've been testing the New Navigation for StackOverflow (beta feature) some months now (using FF 48, Stylish 2.0.7 in win 10 x64).

I've noticed this issue:
The text in 2 of the 3 new tabs, voted, active appears truncated after applying the userstyle.
All three tabs, have this classname .intellitab.
STR
Login to http://stackoverflow.com having enabled the new-nav feature.
Screenshots:
2016-08-19_212949
2016-08-19_212936

CODE box color in accepted answers

Code boxes in accepted answers could use a slightly different background color that blends into the surroundings better.

  • Before:

    1-fs8

  • After:

    3-fs8

.accepted-answer pre, .accepted-answer code, .accepted-answer .pln, .accepted-answer .youarehere {
    background: #202A20 !important;
}

tex stackexchange forum

screenshot
tex.stackexchange.com is not displayed properly. Is this indented, as this site is not supported or do you just overlooked it? I wasn't able to quick-fix it for now, even though I will continue trying.

The second favourite tag highlighting is broken

  1. Be logged in
  2. Go to the questions section
  3. Make sure you have at least 2 tags added
  4. If you modified your favourite tags, then refresh the page
  5. All tags except the 2nd when hovering have correct highlighting (example with hover toggeled on all tags)

This is caused by the a:nth-child(2):hover selector located here. It is unclear to me why that section is there and why and how it affects anything. The commit message for the commit it was added in is very lackluster.

It was working fine until...

It was working fine until white background started to show up on questions and answers. Windows 7 64bit Chrome Version 39.0.2171.99 m
1

Great theme BTW, could not use stackoverflow without it xD

Text Color in 'code' tag on StackOverflow.com does not show up

I changed the line in section box 1:

/* custom code font */
pre.prettyprint {
font-family: "Menlo", Monaco, Consolas, "Liberation Mono", Menlo, Courier, monospace !important;
}

To:

/* custom code font */
pre.prettyprint {
font-family: "Menlo", Monaco, Consolas, "Liberation Mono", Menlo, Courier, monospace !important;
color : lightblue;
}

Before

screenshot 2016-04-07 at 12 31 23 am

After

screenshot 2016-04-07 at 12 30 24 am

Portuguese Stackoverflow logo is clipped

stackoverflow_dark_bug_sopt

The solution is to increase the height of anchor tag to 70px:

#hlogo a {
    background-image: url(http://StylishThemes.github.io/StackOverflow-Dark/images/pt-stackoverflow-logo.svg) !important;
    height: 70px !important;
}

CodeReview broken

Hi,

Hat down to your amazing effort, sir! Your contribution is relieving a lot of pain in my eyes.
I was able to mod some things for myself, but the size of the overall style is too much for my limited CSS knowledge. Thank you for taking your time to provide all these fixes and mods.

As per the recommendation in the style, I am posting about a broken site: http://codereview.stackexchange.com
They add "background-color" to a lot of elements ๐Ÿ˜ข . I don't understand why they can't be consistent. So the home page and the question page are broken :(

Wiki instructions no longer reflect the userstyles.org installation

The wiki at:

https://github.com/StylishThemes/StackOverflow-Dark/wiki/Install

unfortunately is no longer accurate since their site upgrade. Now, if you are a userscript user, there is not even any way to select the parameters or what they call "advanced options" and then select to install the userscript to actually receive those settings. Instead, it appears the parameters are only applied for their Stylish native CSS installs. I have commented in their forums to their management however I have no idea when they will finally get around to fixing this MAJOR issue.

Until then, it almost seems that manually fashioning the install url from Github may be the only current way other than having to manually edit the script once installed.

NOTE: Upgrades will hold their original parameter strings, so unless NEW parameters are added that did not exist in the string and if so (as in this new background update) simply figuring out that param name and manually adding it yourself in TM then re-installing works.

EDIT: I just did this to re-confirm, adding in this case

&ik-bg-url=ik-original

To the end of the "update" url string, then ran that entire update string in Chrome which re-installs right from the proper URL, but now adding in my case the new "original" background string, refreshed, and sure enough - all is well.

Current unstyled things

  • "Insert a link" popup (white, unreadable)
  • Meta StackExchange header shows alt text
  • Winter Bash hats popup (not so important as I guess it'll disappear in 2 days)
  • Activity impact card separator line (I feel it should be gray)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.