Skip to content

Commit

Permalink
Moved styling for icon images to stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Kloos committed Jan 12, 2024
1 parent 12154a2 commit 3be3185
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion example.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ <h2>Figure</h2>
<p>
View on <a href="https://github.com/dutchcelt/system.css">Github</a>.
<svg
style="display: inline-block; float: unset; vertical-align: middle; margin: unset"
aria-hidden="true"
height="16"
viewBox="0 0 16 16"
Expand Down
1 change: 0 additions & 1 deletion forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ <h1>A form with basic layout and input validation</h1>
<p>
View on <a href="https://github.com/dutchcelt/system.css">Github</a>.
<svg
style="display: inline-block; float: unset; vertical-align: middle; margin: unset"
aria-hidden="true"
height="16"
viewBox="0 0 16 16"
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ <h3>Inspiration</h3>
<p>
View on <a href="https://github.com/dutchcelt/system.css">Github</a>.
<svg
style="display: inline-block; float: unset; vertical-align: middle; margin: unset"
aria-hidden="true"
height="16"
viewBox="0 0 16 16"
Expand Down
1 change: 0 additions & 1 deletion openprops.html
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ <h2>Figure</h2>
<p>
View on <a href="https://github.com/dutchcelt/system.css">Github</a>.
<svg
style="display: inline-block; float: unset; vertical-align: middle; margin: unset"
aria-hidden="true"
height="16"
viewBox="0 0 16 16"
Expand Down
9 changes: 7 additions & 2 deletions src/system-selectors.css
Original file line number Diff line number Diff line change
Expand Up @@ -403,15 +403,20 @@
display: block;
max-inline-size: 100%;
block-size: auto;
/* explicit small widths are usually icons and shouldn't scale */
&:is([width='32'], [width='24'], [width='16']) {
display: inline-block;
vertical-align: middle;
}
}
:is(p, li, td, dd) > :is(img, picture, svg, figure) {
:is(p, li, td, dd) > :is(img, picture, svg, figure):not([width='32'], [width='24'], [width='16']) {
float: inline-end;
margin-inline-start: var(--system-spacing-column-gap);
margin-block: var(--system-spacing-element-block);
max-inline-size: 42cqw;
}
@container --content (width < 42ch) {
:is(p, li, dd, td) > :is(img, picture, svg, figure) {
:is(p, li, dd, td) > :is(img, picture, svg, figure):not([width='32'], [width='24'], [width='16']) {
width: 100%;
max-inline-size: unset;
}
Expand Down
1 change: 0 additions & 1 deletion style-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ <h3>Browser Bugs</h3>
<p>
View on <a href="https://github.com/dutchcelt/system.css">Github</a>.
<svg
style="display: inline-block; float: unset; vertical-align: middle; margin: unset"
aria-hidden="true"
height="16"
viewBox="0 0 16 16"
Expand Down

0 comments on commit 3be3185

Please sign in to comment.