Comments (15)
Yeah, thats true. I forgot
from makegithubgreatagain.
I was just about to post this.... it looks like they're now nesting the header. The selector should now instead be something like body > div > .header
or perhaps body div.header
.
from makegithubgreatagain.
Its body > div > .header (https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Combinators_and_multiple_selectors)
from makegithubgreatagain.
Would it not be better just making it .header
, effectively future proofing this from changes in the HTML layout?
from makegithubgreatagain.
Perhaps an extension option to customize the selector?
from makegithubgreatagain.
I'd say that absolutely referencing the element is not a good practice, as it's better to have "modular" CSS and nothing else on the page has the .header
class.
from makegithubgreatagain.
How would that work exactly? The only way you can reliable detect the header is by using the .header
class (or other classes pertaining to the header), so I don't see why we don't just go for .header
on it's own.
from makegithubgreatagain.
If you publish using the Chrome Developer Dashboard, you can ignore this page.
And this extension is published using the dashboard, so I don't see what your point is?
from makegithubgreatagain.
Maybe another method to access .header should be used. GitHub could patch the extension by just renaming the class. However, certain things about the header are constant, they dont change.
from makegithubgreatagain.
I doubt they'll rename the .header
class, it's a sensible name for it. They've kept it when doing the styling changes so I don't see why they'd change it again. I guess you could look it up by it's banner
role too.
from makegithubgreatagain.
Mark Otto seems to be feisty about it though. (https://twitter.com/mdo/status/830138373230653440)
from makegithubgreatagain.
Yeah I get that, but the current class is sensible and hasn't changed even with all of the changes they've implemented. Having a more vague selector means we don't need to change the extension when (minor) HTML changes are made.
from makegithubgreatagain.
Okay. Also, maybe this project should port to stylus (https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne). This is because GitHub is going to change more stuff that we might not like, and it would be harder for this project if it is a standalone extension.
from makegithubgreatagain.
https://github.com/StylishThemes/GitHub-Dark uses it
from makegithubgreatagain.
Fixed now, chrome extension store update coming soon!
from makegithubgreatagain.
Related Issues (20)
- Style issue with search in Repo HOT 1
- Enhancement wanted HOT 3
- Add focus class to "This repository" label HOT 4
- Move Chromium extension source to Chromium folder for consistency
- Missed pun opportunity HOT 1
- I think black background better HOT 3
- The header will firstly become black and then turn to white. HOT 9
- Save the colors!!! HOT 12
- Header formatting in your README is messed up (probably)
- Does not seem to be working on trending pages HOT 2
- Colors are weird HOT 12
- Appoint a new director of mergifications HOT 5
- Github broke extension again HOT 4
- manifest.json doesn't follow the release version HOT 1
- Put the list of repos back on the right again? HOT 1
- Create new button is white
- Well damn
- This repo gave me epilepsy
- For an alternative extension that still works, read this
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from makegithubgreatagain.