Style Side Panel
From FirebugWiki
Sebastianz (Talk | contribs) (Added description of element.style) |
Sebastianz (Talk | contribs) (Introduced a 'Panel' section and moved parts of the description there plus enhanced the description) |
||
| Line 1: | Line 1: | ||
[[Image:Style_Side_Panel.png|thumb|400px|Style Side Panel]] | [[Image:Style_Side_Panel.png|thumb|400px|Style Side Panel]] | ||
| - | Inside the ''Style'' side panel you can see the CSS styles, that are currently assigned to the selected node inside the [[HTML Panel]]. It also offers you similar possibilities of CSS manipulation like the [[CSS Panel]]. The difference between them is organizational. The Style | + | Inside the ''Style'' side panel you can see the CSS styles, that are currently assigned to the selected node inside the [[HTML Panel]]. It also offers you similar possibilities of CSS manipulation like the [[CSS Panel]]. The difference between them is organizational. The ''Style'' side panel is a live view of the styles assigned to the selected node inside the [[HTML Panel]] (which can be in different CSS files) while the ''CSS'' panel shows all styles of a CSS containing file. |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
== Options Menu == | == Options Menu == | ||
| Line 10: | Line 6: | ||
{| class="wikitable" style="width:100%; vertical-align:top;" | {| class="wikitable" style="width:100%; vertical-align:top;" | ||
| - | |||
! style="width:180px;" | Option || Preference || Description | ! style="width:180px;" | Option || Preference || Description | ||
|- | |- | ||
| Line 18: | Line 13: | ||
|- | |- | ||
| Expand Shorthand Properties || <code>extensions.firebug.expandShorthandProps</code> || If activated, all shorthand properties will be separated into the different styles, that make up the combined style (e. g. "margin" will be separated into "margin-top", "margin-right", "margin-bottom" and "margin-left") | | Expand Shorthand Properties || <code>extensions.firebug.expandShorthandProps</code> || If activated, all shorthand properties will be separated into the different styles, that make up the combined style (e. g. "margin" will be separated into "margin-top", "margin-right", "margin-bottom" and "margin-left") | ||
| - | |- | + | |- |
| + | | Colors As Hex || extensions.firebug.colorDisplay || Display color values in hexadecimal format | ||
| + | |- | ||
| + | | Colors As RGB || extensions.firebug.colorDisplay || Display color values in RGB(A) format | ||
| + | |- | ||
| + | | Colors As HSL || extensions.firebug.colorDisplay || Display color values in HSL(A) format | ||
| + | |- | ||
| :active || - || Toggles display of styles defined in the <code>:active</code> pseudo-class applying to the currently selected HTML element | | :active || - || Toggles display of styles defined in the <code>:active</code> pseudo-class applying to the currently selected HTML element | ||
|- | |- | ||
| :hover || - || Toggles display of styles defined in the <code>:hover</code> pseudo-class applying to the currently selected HTML element | | :hover || - || Toggles display of styles defined in the <code>:hover</code> pseudo-class applying to the currently selected HTML element | ||
| + | |- | ||
| + | | :focus || - || Toggles display of styles defined in the <code>:focus</code> pseudo-class applying to the currently selected HTML element | ||
|} | |} | ||
For more info about tweaks available in Firebug please see the [[Firebug Preferences|full list of preferences]]. | For more info about tweaks available in Firebug please see the [[Firebug Preferences|full list of preferences]]. | ||
| + | |||
| + | == Panel == | ||
| + | === Styles display === | ||
| + | ==== Element styles ==== | ||
| + | The ''Style'' side panel also shows styles set inside the <code>style</code> attribute of an element inside an <code>element.style</code> "rule" | ||
| + | |||
| + | ==== Inherited rules ==== | ||
| + | For inherited styles according to the CSS cascading mechanism are having the ancestor element will be shown as title. | ||
| + | |||
| + | ==== User agent rules ==== | ||
| + | Styles coming from the user agent will be displayed when the option ''Show User Agent CSS'' is checked. For these rules there will be <span style="color: red;"><System></span> shown below the source link. | ||
| + | |||
| + | ==== Overwritten styles ==== | ||
| + | Styles being overwritten by others will be striked out. | ||
| + | |||
| + | === Inline editing === | ||
| + | The ''Style'' side panel allows inline-editing of the selectors, property names and values. To do so just click on the item you want to edit. | ||
| + | |||
| + | === Rendered font highlighted === | ||
| + | The actually used font is displayed highlighted to easily allow to see errors in font definitions. | ||
== Context Menu == | == Context Menu == | ||
{| class="wikitable" style="width:100%; vertical-align:top;" | {| class="wikitable" style="width:100%; vertical-align:top;" | ||
| - | |||
! style="width:180px;" | Option || Context || Description | ! style="width:180px;" | Option || Context || Description | ||
|- | |- | ||
| Line 51: | Line 73: | ||
| Refresh || everywhere || Reloads the contents of the panel | | Refresh || everywhere || Reloads the contents of the panel | ||
|- | |- | ||
| - | | Inspect in CSS | + | | Inspect in CSS Panel || CSS rule || Lets you inspect the current CSS rule inside the [[CSS Panel]] |
|- | |- | ||
| - | | Inspect in DOM | + | | Inspect in DOM Panel || CSS rule || Lets you inspect the current CSS rule inside the [[DOM Panel]] |
|- | |- | ||
| Open in external editor || CSS rule || Opens the CSS file containing the current rule in an external editor | | Open in external editor || CSS rule || Opens the CSS file containing the current rule in an external editor | ||
|} | |} | ||
Revision as of 11:06, 12 July 2012
Inside the Style side panel you can see the CSS styles, that are currently assigned to the selected node inside the HTML Panel. It also offers you similar possibilities of CSS manipulation like the CSS Panel. The difference between them is organizational. The Style side panel is a live view of the styles assigned to the selected node inside the HTML Panel (which can be in different CSS files) while the CSS panel shows all styles of a CSS containing file.
Contents |
Options Menu
This menu is reachable via the little arrow in the panel tab ( File:OptionsMenuArrow.png ) or by right-clicking on on the panel tab (since Firebug 1.9).
| Option | Preference | Description |
|---|---|---|
| Only Show Applied Styles | extensions.firebug.onlyShowAppliedStyles | Toggles the display of overwritten styles |
| Show User Agent CSS | extensions.firebug.showUserAgentCSS | Toggles display of CSS styles specified by the user agent; these styles will be marked with <System> |
| Expand Shorthand Properties | extensions.firebug.expandShorthandProps | If activated, all shorthand properties will be separated into the different styles, that make up the combined style (e. g. "margin" will be separated into "margin-top", "margin-right", "margin-bottom" and "margin-left") |
| Colors As Hex | extensions.firebug.colorDisplay | Display color values in hexadecimal format |
| Colors As RGB | extensions.firebug.colorDisplay | Display color values in RGB(A) format |
| Colors As HSL | extensions.firebug.colorDisplay | Display color values in HSL(A) format |
| :active | - | Toggles display of styles defined in the :active pseudo-class applying to the currently selected HTML element
|
| :hover | - | Toggles display of styles defined in the :hover pseudo-class applying to the currently selected HTML element
|
| :focus | - | Toggles display of styles defined in the :focus pseudo-class applying to the currently selected HTML element
|
For more info about tweaks available in Firebug please see the full list of preferences.
Panel
Styles display
Element styles
The Style side panel also shows styles set inside the style attribute of an element inside an element.style "rule"
Inherited rules
For inherited styles according to the CSS cascading mechanism are having the ancestor element will be shown as title.
User agent rules
Styles coming from the user agent will be displayed when the option Show User Agent CSS is checked. For these rules there will be <System> shown below the source link.
Overwritten styles
Styles being overwritten by others will be striked out.
Inline editing
The Style side panel allows inline-editing of the selectors, property names and values. To do so just click on the item you want to edit.
Rendered font highlighted
The actually used font is displayed highlighted to easily allow to see errors in font definitions.
Context Menu
| Option | Context | Description |
|---|---|---|
| Copy Rule Declaration | CSS selector | Copies the current CSS rule including the selector and all styles formatted to the clipboard |
| Copy Style Declaration | CSS selector | Copies all styles of the current CSS rule formatted to the clipboard |
| Copy Location | source link | Copies the URL of the file containing the current CSS rule |
| Open in New Tab | source link | Opens the file containing the current CSS rule in a new Tab |
| Edit Element Style... | everywhere | Enables editing of the element's inline style |
| New Property... | CSS rule | Allows adding new styles to the current CSS rule |
| Edit "<property name>"... | CSS property | Starts inline-editing of the current CSS property |
| Delete "<property name>"... | CSS property | Deletes the current CSS property from the rule |
| Disable "<property name>"... | CSS property | Disables the current CSS property |
| Refresh | everywhere | Reloads the contents of the panel |
| Inspect in CSS Panel | CSS rule | Lets you inspect the current CSS rule inside the CSS Panel |
| Inspect in DOM Panel | CSS rule | Lets you inspect the current CSS rule inside the DOM Panel |
| Open in external editor | CSS rule | Opens the CSS file containing the current rule in an external editor |