Skip to content

Instantly share code, notes, and snippets.

View felipefialho's full-sized avatar
:octocat:
working at @juntossomosmais and @frontendbr 🚀

Felipe Fialho felipefialho

:octocat:
working at @juntossomosmais and @frontendbr 🚀
View GitHub Profile
@felipefialho
felipefialho / css-empty.md
Last active November 24, 2016 20:42
[CSS Trick] Hide dynamic element that break the layout when it is empty.

Hide dynamic element that break the layout when it is empty.

&:empty
  display none

!important, it can't have space on HTML

✌️

@felipefialho
felipefialho / css-capitalize.md
Last active December 19, 2018 19:18
[CSS Trick] Capitalize the first letter only

Capitalize the first letter only

.foo
  text-transform lowercase
  
  &:first-letter 
    text-transform uppercase
@felipefialho
felipefialho / css-fist-not-last.md
Created November 23, 2016 17:55
[CSS Trick] Select on sametime the first element but not if it is the last element

Select on sametime the first element but not if it is the last element

&:first-child:not(:last-child)

👺

@felipefialho
felipefialho / git-delete-local-remote-branch.md
Created November 24, 2016 12:49
[Git Trick] Easier way to delete branch local and remote

Easier way to delete branch local and remote

$ git branch -d [the_branch]
$ git push origin :[the_branch]

👽

@felipefialho
felipefialho / border-color-parent-color.md
Created December 5, 2016 15:44
[CSS Trick] Border-color with the same color of parent font dynamically

Border-color with the same color of parent font dynamically

.foo
  border-color currentColor
  color tomato

!important, It works with all elements inside of parent.