Skip to content

Move redundant absolute positioning to shared styles and handle zero border width better#44

Merged
hojberg merged 2 commits intohojberg:masterfrom
bra1n:master
Nov 2, 2013
Merged

Move redundant absolute positioning to shared styles and handle zero border width better#44
hojberg merged 2 commits intohojberg:masterfrom
bra1n:master

Conversation

@bra1n
Copy link

@bra1n bra1n commented Nov 1, 2013

Hi,
it seems like the absolute positioning is the same for :after and :before in all cases, so there is no need to put it twice in the CSS. I moved it to the shared styles section (baseCSS) to save the user a redundant line. :)
Then there's the special case where you end up with 2 :after rules and no :before rule for a border width of zero, which I simplified into a single :after rule.
I also updated the unittests to reflect the changes.

What do you think?

Cheers,
bra1n

@hojberg
Copy link
Owner

hojberg commented Nov 2, 2013

sweeeeeeeet!

hojberg added a commit that referenced this pull request Nov 2, 2013
Move redundant absolute positioning to shared styles and handle zero border width better
@hojberg hojberg merged commit 6abb87d into hojberg:master Nov 2, 2013
@bra1n
Copy link
Author

bra1n commented Nov 13, 2013

Would you mind updating cssarrowplease.com to the most recent version?

@hojberg
Copy link
Owner

hojberg commented Nov 13, 2013

@bra1n been having some npm issues. will deploy asap

@hojberg
Copy link
Owner

hojberg commented Nov 13, 2013

@bra1n deployed ;)

@bra1n
Copy link
Author

bra1n commented Nov 13, 2013

Awesome, thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants