Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Clicking on html tags without relevant CSS selectors should allow you to add styles #1674

Open
core-ai-bot opened this issue Aug 29, 2021 · 4 comments

Comments

@core-ai-bot
Copy link
Member

Issue by srmor
Wednesday Sep 26, 2012 at 01:44 GMT
Originally opened as adobe/brackets#1718


Currently you can only show the CSS styles inline in the HTML files if there are styles associated with it. You should be able to click any tag and if there are no relevant styles it should allow you to add some right then and there instead of doing nothing.

@core-ai-bot
Copy link
Member Author

Comment by pthiess
Wednesday Sep 26, 2012 at 22:41 GMT


Reviewed - Move to Backlog - Trello card 599

@core-ai-bot
Copy link
Member Author

Comment by KraigWalker
Wednesday Oct 24, 2012 at 22:34 GMT


A good idea, but one of the grey areas is "what file do you add the styles in?" - it would be easy if everyone used a stylesheet for every corresponding html file, but of course that's not the case, and adding style elements in your markup doesn't really make for the most maintainable of code.

You can do stuff like this in Blend, right clicking a tag, id or class and adding a CSS Rule, but Blend is a visually cluttered tool, and it dictates where the code goes - usually in your html, because guessing a stylesheet is too unpredictable.

The only ideal option is to link stylesheets and HTML files together, but brackets is a code editor, not an IDE, and it wouldn't really be right to dictate someone's project layout/ coding style.

Buuut... If perhaps you right-clicked the tag/id/class/etc and maybe had to select an appropriate file in your working set, maybe then you could add styles to your elements without interruption. The next grey area to think about is whether you fill in that style like you would in typical inline editing, or get taken to the .css file in question in the main view...

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday Oct 25, 2012 at 00:36 GMT


@KraigWalker: all good points. Have you seen the current discussion thread on this topic? https://groups.google.com/forum/?fromgroups=#!topic/brackets-dev/PX2OORa7Tdw Sounds like you might have some good suggestions to add.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday Oct 25, 2012 at 00:37 GMT


Closing this bug since user story #599 is already tracking it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant