Closed Bug 1915382 Opened 3 months ago Closed 3 months ago

inspector-shared.css and inspector-color-swatches.css could be refactored

Categories

(DevTools :: Inspector: Rules, task)

task

Tracking

(firefox132 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(3 files)

Mose of the classes are prefixed with ruleview, but they are now also used in the tooltip, so we might switch this to inspector instead.

Color swatch rule is setting top/right/bottom/left where we could use inset
we could also use css variables to avoid repeating some values

Summary: Color swatch css rule could be refactored → inspector-shared.css and inspector-color-swatches.css could be refactored
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

The variable is being used in inspector-swatches.css,
so it should be set in a shared stylesheet too.
The highlight of shape points on hover was broken,
so I took the opportunity to fix it here.

Attachment #9421448 - Attachment description: Bug 1915382 - [devtools] Migrate --rule-highlight-background-color to inspectore-shared.css and rename it. r=#devtools-reviewers. → Bug 1915382 - [devtools] Migrate --rule-highlight-background-color to inspector-shared.css and rename it. r=#devtools-reviewers.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/84e58343d8eb [devtools] Refactor ruleview-colorswatch CSS rule. r=Itiel,devtools-reviewers. https://hg.mozilla.org/integration/autoland/rev/114997492b00 [devtools] Replace ruleview prefix with inspector in inspector shared CSS files. r=devtools-reviewers,jdescottes. https://hg.mozilla.org/integration/autoland/rev/da2176c13494 [devtools] Migrate --rule-highlight-background-color to inspector-shared.css and rename it. r=devtools-reviewers,ochameau.
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: