Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Clicking on html tags without relevant CSS selectors should allow you to add styles #1718

Closed
srmor opened this issue Sep 26, 2012 · 4 comments

Comments

@srmor
Copy link

srmor commented Sep 26, 2012

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.

@pthiess
Copy link
Contributor

pthiess commented Sep 26, 2012

Reviewed - Move to Backlog - Trello card 599

@KraigWalker
Copy link
Contributor

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...

@peterflynn
Copy link
Member

@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.

@peterflynn
Copy link
Member

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

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

No branches or pull requests

4 participants