Commit 3e36adf
committed
Toolbar: Constrain the site icon's size.
The toolbar site icon added in 7.1 is sized only by `width` and `height`. A theme or plugin rule such as `img { width: auto !important; height: auto !important; }` overrides those, and the icon renders at the size of the image file. Add matching `max-width`, `max-height`, `min-width`, and `min-height`, and qualify the selector with `img` for added specificity, so the icon stays 20 pixels square, or 28 pixels on small screens.
Follow-up to r62625.
Props donniam, kgagne, khokansardar, jorbin, webverts, adrianduffell, iamchitti, joedolson, sabernhardt, adamsilverstein.
Fixes #65912.
git-svn-id: https://develop.svn.wordpress.org/trunk@64034 602fd350-edb4-49c9-b593-d223f7449a821 parent 2ca6eae commit 3e36adf
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
| 593 | + | |
| 594 | + | |
594 | 595 | | |
595 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
596 | 601 | | |
597 | 602 | | |
598 | 603 | | |
| |||
942 | 947 | | |
943 | 948 | | |
944 | 949 | | |
945 | | - | |
| 950 | + | |
946 | 951 | | |
947 | 952 | | |
948 | 953 | | |
949 | 954 | | |
950 | 955 | | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
951 | 960 | | |
952 | 961 | | |
953 | 962 | | |
| |||
0 commit comments