Opened 11 years ago
Closed 9 years ago
#35358 closed enhancement (fixed)
Values of 0 doesn't need to have units specified in .scss file
| Reported by: | MatheusFD | Owned by: | swissspidy |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.8 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
If we are using .scss files to simplify our CSS writing, let's improve this to write less and do more!
The patch just removes the unit px from the .scss file.
Attachments (1)
Change History (6)
#3
@
10 years ago
- Keywords 2nd-opinion removed
- Milestone Awaiting Review → 4.8
- Owner set to
- Status new → accepted
We can easily apply 35358.patch. Output is the same because of autoprefixer. Example:
.media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484;
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484;
}
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
9 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

Just remove the px unit from .scss file