Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add style block for Cf helper #456

Merged
merged 1 commit into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions examples/css/atomic.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
.Bgbm\(di\) {
background-blend-mode: difference;
}
.Bgbm\(n\) {
background-blend-mode: normal;
}
.foo .foo_Bgbm\(h\) {
background-blend-mode: hue;
}
.Bgc\(\#000\) {
background-color: #000;
}
Expand Down Expand Up @@ -177,12 +171,6 @@
.Mb\(10px\) {
margin-bottom: 10px;
}
.bar .bar_Mbm\(s\) {
mix-blend-mode: saturation;
}
.Mbm\(pl\) {
mix-blend-mode: plus-lighter;
}
.Mbm\(sc\) {
mix-blend-mode: screen;
}
Expand All @@ -201,10 +189,7 @@
.P\(3rem\) {
padding: 3rem;
}
.Td\(u\) {
text-decoration: underline;
}
.Td\(u\)\:h:hover {
.Td\(u\), .Td\(u\)\:h:hover {
text-decoration: underline;
}
.foo > .foo\>W\(uh\) {
Expand Down Expand Up @@ -258,6 +243,13 @@
.W\(9\/12\) {
width: 75%;
}
.Cf:before, .Cf:after {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Classes correctly added back

content: " ";
display: table;
}
.Cf:after {
clear: both;
}
@media(min-width:500px) {
.D\(b\)--sm {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>Simple</h1>

<div class="Fz(2rem) My(1rem) P(1rem) Bdb(1) C(#ff0000)">Large Red Text</div>

<div class="H(100%) W(500px) Bgc(#000) P(3rem) C(#fff)">Big black box</div>
<div class="H(100%) W(500px) Bgc(#000) P(3rem) C(#fff) Cf">Big black box</div>
</main>

<!-- this is just to reload the page if you make any changes to the html -->
Expand Down
1 change: 1 addition & 0 deletions packages/atomizer/src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ module.exports = [
'link': 'https://acss.io/guides/helper-classes.html#-cf-clearfix-',
'matcher': 'Cf',
'noParams': true,
'styles': {},
'rules': {
'.Cf:before, .Cf:after': {
'content': '" "',
Expand Down