Last active
May 5, 2017 01:34
-
-
Save dippas/58230e7f1012d66fee4fde40beb3026d to your computer and use it in GitHub Desktop.
Using css selector lastchild and :after together in angular2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
:host/deep/.title-main { | |
display: flex; | |
margin-bottom: 0; | |
.title-inside { | |
&:not(:nth-last-of-type(3)){ | |
&::after{ | |
content : '-'; | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:host /deep/ .title-main { | |
display: flex; | |
margin-bottom: 0; | |
} | |
:host /deep/ .title-main .title-inside:not(:nth-last-of-type(3))::after { | |
content: '-'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/43586221/using-css-selector-lastchild-and-after-together-in-angular2/43586304#43586304